cd configmv all-simple.php all.phpvim all.php //配置正确的数据库连接信息访问 http://xxx.xxx/install.php 进行安装
安装后会创建一个管理员账户,用该账户登录可访问后台,然后进行详细的配置。
由于完全依赖于伪静态,所以必须对文件进行重定向。
location / { if (!-f $request_filename){ rewrite (.*) /index.php; }}# 重定向404页面,防止静态资源404无法获取error_page 404 /index.php;
RewriteEngine OnRewriteBase /#不存在的文件直接重定向RewriteCond %{REQUEST_FILENAME} !-fRewriteRule ^(.*)$ /index.php [L]
同时,对于Apache也可以使用PATH_INFO的形式,如 index.php/Home
.
系统默认将Web配置目录放到web文件夹下,其他对应的文件sys,app,install等文件均在web目录的上级目录, 这是为了安全性的考虑,如果有需要将文件调整到一个目录,可具体参考sys/config.php
文件调整目录结构,并调整index.php文件的具体参数 同时如果未安装系统,同时可能需要修改install.php中的文件参数。