linux下apache启动问题(dummy-host.example.com does not exist)
2013-09-08 02:32
609 查看
今天启动apache是提示:
Warning: DocumentRoot [/usr/local/apache2/docs/dummy-host.example.com] does not exist
Warning: DocumentRoot [/usr/local/apache2/docs/dummy-host2.example.com] does not exist
在网上查的结果:把httpd.conf中Include conf/extra/httpd-vhosts.conf的注释去掉会出现警告:
原来是我前两天配置虚拟主机是烦的错误,解决方法(全部摘录:)
起初我在/usr/local/apache2/docs/目录下建了dummy-host.example.com和dummy-host2.example.com两个文件,重启Apache,还是同样的警告,后来去conf/extra/httpd-vhosts.conf文件中才找到答案,原来应该在docs目录中建dummy-host.example.com和dummy-host2.example.com两个文件夹,然后重启Apache,就ok了。
附上此文中提到的另一个可能出现的错误:
在安装完php5.2.17,apache和php整合以后,重启Apache出现了以下的一个错误:
httpd: Syntax error on line 57 of /usr/local/apache2/conf/httpd.conf: Cannot load /usr/local/apache2/modules/libphp5.so into server: /usr/local/apache2/modules/libphp5.so: cannot restore segment prot after reloc: Permission denied
起初我把httpd.conf中的LoadModule php5_module modules/libphp5.so 这一行注释掉,重启Apache,不会报错,但不能解析php文件,这不是解决的根本方法,后来(把LoadModule php5_module modules/libphp5.so 这一行注释去掉)试着把防火墙和selinux都禁掉,再重启Apache,就OK了。
本文出自 “leesir” 博客,请务必保留此出处http://leezhxing.blog.51cto.com/6634351/1291150
Warning: DocumentRoot [/usr/local/apache2/docs/dummy-host.example.com] does not exist
Warning: DocumentRoot [/usr/local/apache2/docs/dummy-host2.example.com] does not exist
在网上查的结果:把httpd.conf中Include conf/extra/httpd-vhosts.conf的注释去掉会出现警告:
原来是我前两天配置虚拟主机是烦的错误,解决方法(全部摘录:)
起初我在/usr/local/apache2/docs/目录下建了dummy-host.example.com和dummy-host2.example.com两个文件,重启Apache,还是同样的警告,后来去conf/extra/httpd-vhosts.conf文件中才找到答案,原来应该在docs目录中建dummy-host.example.com和dummy-host2.example.com两个文件夹,然后重启Apache,就ok了。
附上此文中提到的另一个可能出现的错误:
在安装完php5.2.17,apache和php整合以后,重启Apache出现了以下的一个错误:
httpd: Syntax error on line 57 of /usr/local/apache2/conf/httpd.conf: Cannot load /usr/local/apache2/modules/libphp5.so into server: /usr/local/apache2/modules/libphp5.so: cannot restore segment prot after reloc: Permission denied
起初我把httpd.conf中的LoadModule php5_module modules/libphp5.so 这一行注释掉,重启Apache,不会报错,但不能解析php文件,这不是解决的根本方法,后来(把LoadModule php5_module modules/libphp5.so 这一行注释去掉)试着把防火墙和selinux都禁掉,再重启Apache,就OK了。
本文出自 “leesir” 博客,请务必保留此出处http://leezhxing.blog.51cto.com/6634351/1291150
相关文章推荐
- linux下apache启动问题(dummy-host.example.com does not exist, Could not..127.0.0.1 for ServerName)
- LAMP下安装Discuz后apache启动问题(dummy-host.example.com does not exist)
- LAMP下安装Discuz后apache启动问题(dummy-host.example.com does not exist)
- com.sun.org.apache.xml.internal.security.utils does not exist问题的解决
- 启动Tomcat报异常host-manager does not exist or is not a readable directory
- 启动Tomcat报异常host-manager does not exist or is not a
- 启动Tomcat报异常host-manager does not exist or is not a readable directory
- Tomcat 启动报错:host-manager does not exist or is not a readable directory
- tomcat启动报错:java.lang.IllegalArgumentException: Document base D:\apache-tomcat-6.0.45\webapps\activiti-explorer does not exist or is not a readable directory
- 启动Tomcat报异常host-manager does not exist or is not a readable directory
- 启动Tomcat报异常host-manager does not exist or is not a readable directory
- org.apache.hadoop.mapred.InvalidInputException: Input path does not exist问题
- Linux中启动Apache中的Could not reliably determine the server's fully qualified domain name问题
- ptables的NAT功能设置和linux升级内核后遇到 can't initialize iptables table `nat': Table does not exist 问题
- 启动tomcat报错,host-manager does not exist
- 启动Tomcat报异常host-manager does not exist or is not a readable directory
- 启动Tomcat报异常host-manager does not exist or is not a readable directory
- Eclipse下启动Tomcat报错: The archive: F:/JSPDev/apache-tomcat-8.0.32/bin/bootstrap.jar which is referenced by the classpath, does not exist.
- storm '*/stormconf.ser' does not exist 问题nimbus进程刚启动后就自动退出
- tomcat启动报错Document base D:\apache-tomcat-6.0.35\webapps\CelLoud does not exist or is n...