thinkphp5出現500錯誤怎么辦

thinkphp5出現500錯誤怎么辦

thinkphp5出現500錯誤,如下圖所示:

thinkphp5出現500錯誤怎么辦

相關推薦:《ThinkPHP教程

require():?open_basedir?restriction?in?effect.?File(/home/wwwroot/pic/thinkphp/start.php)?is?not?within? the?allowed

解決方法:

立即學習PHP免費學習筆記(深入)”;

1、我是lnmp1.4 php5.6,php.ini里面的open_basedir 是注釋掉的。

2、查找到是fastcgi問題。

3、修改fastcgi的配置文件。

/usr/local/nginx/conf/fastcgi.conffastcgi_param?PHP_ADMIN_VALUE?"open_basedir=$document_root/:/tmp/:/proc/";

修改為

fastcgi_param?PHP_ADMIN_VALUE?"open_basedir=$document_root/../:/tmp/:/proc/";

thinkphp5出現500錯誤怎么辦

4、重啟 service nginx restart。

? 版權聲明
THE END
喜歡就支持一下吧
點贊7 分享