编程技术分享平台

网站首页 > 技术教程 正文

thinkphp5出现500错误怎么办(thinkphp页面错误)

xnh888 2024-09-28 03:16:12 技术教程 177 ℃ 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错误怎么办的详细内容,更多请关注其它相关文章!

更多技巧请《转发 + 关注》哦!

Tags:

本文暂时没有评论,来添加一个吧(●'◡'●)

欢迎 发表评论:

最近发表
标签列表