
thinkphp5涌现500毛病,如下图所示:
相干引荐:《ThinkPHP教程》
require(): open_basedir restriction in effect. File(/home/wwwroot/pic/thinkphp/start.php) is not within the allowed
解决方法:
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。
以上就是thinkphp5涌现500毛病怎么办的细致内容,更多请关注ki4网别的相干文章!