VPS侦探论坛

 找回密码
 注册
查看: 5535|回复: 3

求助!升级为lnmpa后网站不能访问了

[复制链接]
发表于 2012-2-20 21:36:56 | 显示全部楼层 |阅读模式

以前用的是lnmp
0.7版本
今天升级了nginx到1.0.10
然后安装了apache

删除了原先绑定的域名,然后用/root/vhost.sh重新添加了主域名和二级域名
出现了两个问题

第一、绑了个二级域名到子目录 m.xianlan.net
Warning: require() [function.require]: open_basedir restriction in effect. File(../common.inc.php) is not within the allowed path(s): (/home/wwwroot/xianlan.net/wap:/tmp/:/var/tmp/:/proc/) in /home/wwwroot/xianlan.net/wap/index.php on line 8

Warning: require(../common.inc.php) [function.require]: failed to open stream: Operation not permitted in /home/wwwroot/xianlan.net/wap/index.php on line 8

Fatal error: require() [function.require]: Failed opening required '../common.inc.php' (include_path='.:') in /home/wwwroot/xianlan.net/wap/index.php on line 8


第二、主域名alixing.com
Server error!The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there was an error in a CGI script.
If you think this is a server error, please contact the webmaster.
Error 500alixing.com
Mon Feb 20 21:35:08 2012
Apache/2.2.17 (Unix) mod_ssl/2.2.17 OpenSSL/0.9.8e-fips-rhel5 PHP/5.2.17


求解答 不胜感激。
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
 楼主| 发表于 2012-2-20 22:46:15 | 显示全部楼层


二级域名的.PHP文件都有问题
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
 楼主| 发表于 2012-2-20 22:50:45 | 显示全部楼层

二级域名访问php不正常,放在二级目录下访问就正常了
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2012-2-21 11:06:26 | 显示全部楼层



1、修改/usr/local/apache/conf/vhost/域名.conf 将里面的open_basedir注释掉或删掉,重启

2、应该是升级到lnmpa时输入的域名和安装lnmp时输入的域名不一样造成的。
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2024-9-22 09:37 , Processed in 0.025978 second(s), 16 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

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