当前位置:首页 > PHP教程 >

php错误提示 open_basedir restriction in effect 解决:/tmp/:/proc/

发布时间:2018-10-02 21:53:42 作者:佚名 阅读:(256)

Warning: require_once(): open_basedir restriction in effect. File(/home/wwwroot/www.xxxx.com/config/config.php) is not within the allowed path(s): (/home/wwwroot/www.xxxx.com/m/:/tmp/:/proc/) in /home/wwwroot/www.xxxx.com/m/cmobile/base.php on line 7

 

 

fastcgi_param PHP_ADMIN_VALUE "open_basedir=$document_root/:/tmp/:/proc/";

   修改为:

fastcgi_param PHP_ADMIN_VALUE "open_basedir=$document_root/:/tmp/:/proc/:/home/wwwroot/";

重启nginx即可

欢迎分享转载→ php错误提示 open_basedir restriction in effect 解决:/tmp/:/proc/

© 2015-2021 - 吾爱编程网 版权所有 苏ICP备18033726号-1关于我们 - 网站声明 - 联系我们