-
本地放到線上 500 錯誤
在入口文件index.php下打印錯誤
open_basedir 配置項的文件權限問題
open_basedir 配置,php不能引入其授權目錄上級及其以上的文件
修改完配置後,切記重啓環境 ,重啓後就可訪問到網站首頁了,
如果你pathinfo路由沒有設置,那麼跳轉其他頁面時會報404,你需要去配置pathinfo模式,一般lnmp線上環境默認是關閉pathinfo模式的,自己去開啓吧。
-
nginx.conf中配置轉發規則,使其支持PATHINFO
location / {
if (!-e $request_filename) {
rewrite ^(.*)$ /index.php?s=/$1 last;
break;
}
}