php 环境require(): open_basedir restriction in effect 错误

php 环境require(): open_basedir restriction in effect 错误


错误日志显示,访问脚本不在 open_basedir的限定目录里面

 


解决方法
打开fastcgi.conf
设置如下
fastcgi_param PHP_ADMIN_VALUE "open_basedir=$document_root/:/tmp/:/proc/:/data/web/";
ps:/data/web改成项目路径 这样就没有限制了

posted @ 2019-11-13 21:31  newmiracle宇宙  阅读(235)  评论(0编辑  收藏  举报