VPS侦探论坛

 找回密码
 注册
查看: 5426|回复: 1

LNMPA 故障

[复制链接]
发表于 2011-11-9 13:35:34 | 显示全部楼层 |阅读模式

Warning: Unknown: open_basedir restriction in effect. File(/home/wwwroot/www/index.php) is not within the allowed path(s): (www:/tmp/:/var/tmp/:/proc/) in Unknown on line 0

Warning: Unknown: failed to open stream: Operation not permitted in Unknown on line 0

Fatal error: Unknown: Failed opening required '/home/wwwroot/www/index.php' (include_path='.:') in Unknown on line 0


网页目录是/home/wwwroot/www/
执行起来3个错误。。
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2011-11-9 14:05:37 | 显示全部楼层


需要修改/usr/local/apache/conf/vhost/域名.conf 把php_admin_value open_basedir 注释掉。

重启apache就行了。
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2024-11-16 02:43 , Processed in 0.024912 second(s), 16 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

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