VPS侦探论坛

 找回密码
 注册
查看: 2935|回复: 2

lnmp 1.5 open_basedir 问题

[复制链接]
发表于 2018-9-3 11:10:09 | 显示全部楼层 |阅读模式

军哥,网站迁移,刚安装的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
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2018-9-3 19:19:02 | 显示全部楼层


还提示说明没改成功或没都修改或未生效
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
发表于 2018-10-10 20:41:07 | 显示全部楼层

碰到这个问题了,而且open_basedir的值在nginx配置了多个server的时候,还会覆盖其他server。
搞了半天搞定了
fastcgi.conf 里面,把下面这行#掉
fastcgi_param PHP_ADMIN_VALUE "open_basedir=$document_root/:/tmp/:/proc/";
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|VPS侦探 ( 鲁ICP备16040043号-1 )

GMT+8, 2024-9-23 15:29 , Processed in 0.026116 second(s), 17 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表