ThinkPHP5部署到云主机,报500错误(已解决)

浏览:4009 发布日期:2018/04/25 分类:技术分享 关键字: ThinkPHP5
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
最佳答案
评论( 相关
后面还有条评论,点击查看>>