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/";
4、重啟 service nginx restart。
? 版權聲明
文章版權歸作者所有,未經允許請勿轉載。
THE END