类别:ThinkPHP / 日期:2019-11-27 / 浏览:284 / 评论:0

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网别的相干文章!

打赏

感谢您的赞助~

打开支付宝扫一扫,即可进行扫码打赏哦~

版权声明 : 本文未使用任何知识共享协议授权,您可以任何形式自由转载或使用。

 可能感兴趣的文章