thinkphp5出现500错误怎么办

thinkphp5出现500错误怎么办,第1张

thinkphp5出现500错误怎么办

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错误怎么办的详细内容,

欢迎分享,转载请注明来源:内存溢出

原文地址: https://outofmemory.cn/web/701359.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-04-23
下一篇 2022-04-23

发表评论

登录后才能评论

评论列表(0条)

保存