求助!升级为lnmpa后网站不能访问了
以前用的是lnmp0.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
求解答 不胜感激。 二级域名的.PHP文件都有问题 二级域名访问php不正常,放在二级目录下访问就正常了 1、修改/usr/local/apache/conf/vhost/域名.conf 将里面的open_basedir注释掉或删掉,重启
2、应该是升级到lnmpa时输入的域名和安装lnmp时输入的域名不一样造成的。
页:
[1]