如何解决ThinkPHP5出现500内部服务器错误问题?
- 内容介绍
- 文章标签
- 相关推荐
本文共计139个文字,预计阅读时间需要1分钟。
相关推荐:
相关推荐:《ThinkPHP教程》
require(): open_basedir restriction in effect. File(/home/wwwroot/pic/thinkphp/start.php) is not within the allowed
解决方法:
立即学习“PHP免费学习笔记(深入)”;
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。
本文共计139个文字,预计阅读时间需要1分钟。
相关推荐:
相关推荐:《ThinkPHP教程》
require(): open_basedir restriction in effect. File(/home/wwwroot/pic/thinkphp/start.php) is not within the allowed
解决方法:
立即学习“PHP免费学习笔记(深入)”;
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。

