414878 发表于 2018-9-3 11:10:09

lnmp 1.5 open_basedir 问题

军哥,网站迁移,刚安装的lnmp1.5,按照https://lnmp.org/faq/lnmp-vhost-add-howto.html 里边的 方跨目录设置设置完 但是不起作用是为啥,fpm以及 nginx 都重启了 依然报错Warning:file_exists(): open_basedir restriction in effect. File(/www/wwwlogs/) is not within the allowed path(s): (/www/wwwroot/app_new/:/tmp/:/proc/) in /www/wwwroot/app_new/lib/library/core/LI_Log.php on line 14Warning:mkdir(): open_basedir restriction in effect. File(/www/wwwlogs/) is not within the allowed path(s): (/www/wwwroot/app_new/:/tmp/:/proc/) in /www/wwwroot/app_new/lib/library/core/LI_Log.php on line 14Warning:is_dir(): open_basedir restriction in effect. File(/www/wwwlogs/) is not within the allowed path(s): (/www/wwwroot/app_new/:/tmp/:/proc/) in /www/wwwroot/app_new/lib/library/core/LI_Log.php on line 16请军哥帮忙看下。谢谢file:///C:\Users\Administrator\AppData\Roaming\Tencent\Users\414878271\QQ\WinTemp\RichOle\`7A]_(NBGLWXZP5$BU89YLV.png

licess 发表于 2018-9-3 19:19:02

还提示说明没改成功或没都修改或未生效

38d 发表于 2018-10-10 20:41:07

碰到这个问题了,而且open_basedir的值在nginx配置了多个server的时候,还会覆盖其他server。
搞了半天搞定了
fastcgi.conf 里面,把下面这行#掉
fastcgi_param PHP_ADMIN_VALUE "open_basedir=$document_root/:/tmp/:/proc/";
页: [1]
查看完整版本: lnmp 1.5 open_basedir 问题