您好,欢迎来到三六零分类信息网!老站,搜索引擎当天收录,欢迎发信息

thinkphp5出现500错误怎么办

2024/3/13 7:53:46发布28次查看
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错误怎么办的详细内容。
该用户其它信息

VIP推荐

免费发布信息,免费发布B2B信息网站平台 - 三六零分类信息网 沪ICP备09012988号-2
企业名录 Product