nginx require(): open_basedir restriction in effect.

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/xl4025/article/details/79975703

require(): open_basedir restriction in effect. File(............) is not within the allowed path(s): (/......./public/:/tmp/:/proc/) 

错误

https://lnmp.org/install.html 在使用lnmp一键安装后布置项目报如上错误

修改

cd /usr/local/nginx/conf/

vi  fastcgi.conf  

fastcgi_param PHP_ADMIN_VALUE "open_basedir=$document_root/:/tmp/:/proc/";  此行删除即可正常运行




阅读更多

没有更多推荐了,返回首页