CMS001 下载地址:https://gitee.com/ls363/cms001
CMS001 安装
git clone https://gitee.com/ls363/cms001.git demo cd mySite chmod -R 777 public/ # 静态文件,及安装判断 install.lock, 如需重新安装,必须删除install.lock chmod -R 777 runtimes/ #运行时的缓存目录
nginx配置文件如下,网站的主目录可以是根目录也可以是public目录,建议使用public目录。
server { listen 80; server_name demo.cms001.top; set $root_path '/www/web/demo/public'; root $root_path; location /{ index index.php index.html; try_files $uri $uri/index.html /index.php?$query_string; } location ~ \.php$ { fastcgi_pass fpm:9000; fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME /var/www/demo/public/$fastcgi_script_name; include fastcgi_params; } location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)$ { expires 30d; } location ~ .*\.(js|css)?$ { expires 1h; } }
以上配置好之后,输入 demo.cms001.top(您的域名) 就会展示安装界面,安装完成会自动跳转到首页。