LAMP下安装Discuz后apache启动问题(dummy-host.example.com does not exist)
2017-07-21 21:41
465 查看
今天启动apache是提示:[root@cbhLinux www]# /usr/local/apache2/bin/apachectl -t
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
Syntax OK
在网上查的结果:把httpd.conf中Include conf/extra/httpd-vhosts.conf的注释去掉会出现警告:
原来是我前两天配置虚拟主机是烦的错误,解决方法(全部摘录:)[root@cbhLinux www]# cd /usr/local/apache2/docs/
-bash: cd: /usr/local/apache2/docs/: 没有那个文件或目录
[root@cbhLinux www]# mkdir -p !$
mkdir -p /usr/local/apache2/docs/
[root@cbhLinux www]# cd /usr/local/apache2/docs/
[root@cbhLinux docs]# ls
新建对应的两个文件 dummy-host.example.com dummy-host2.example.com
[root@cbhLinux docs]# touch dummy-host.example.com dummy-host2.example.com
[root@cbhLinux docs]# /usr/local/apache2/bin/apachectl -t
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
Syntax OK
起初我在/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了。
[root@cbhLinux docs]# mkdir dummy-host.example.com dummy-host2.example.com
[root@cbhLinux docs]# /usr/local/apache2/bin/apachectl -t
Syntax OK
[root@cbhLinux docs]# /usr/local/apache2/bin/apachectl restart
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
Syntax OK
在网上查的结果:把httpd.conf中Include conf/extra/httpd-vhosts.conf的注释去掉会出现警告:
原来是我前两天配置虚拟主机是烦的错误,解决方法(全部摘录:)[root@cbhLinux www]# cd /usr/local/apache2/docs/
-bash: cd: /usr/local/apache2/docs/: 没有那个文件或目录
[root@cbhLinux www]# mkdir -p !$
mkdir -p /usr/local/apache2/docs/
[root@cbhLinux www]# cd /usr/local/apache2/docs/
[root@cbhLinux docs]# ls
新建对应的两个文件 dummy-host.example.com dummy-host2.example.com
[root@cbhLinux docs]# touch dummy-host.example.com dummy-host2.example.com
[root@cbhLinux docs]# /usr/local/apache2/bin/apachectl -t
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
Syntax OK
起初我在/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了。
[root@cbhLinux docs]# mkdir dummy-host.example.com dummy-host2.example.com
[root@cbhLinux docs]# /usr/local/apache2/bin/apachectl -t
Syntax OK
[root@cbhLinux docs]# /usr/local/apache2/bin/apachectl restart
相关文章推荐
- LAMP下安装Discuz后apache启动问题(dummy-host.example.com does not exist)
- linux下apache启动问题(dummy-host.example.com does not exist, Could not..127.0.0.1 for ServerName)
- linux下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 readable directory
- 启动Tomcat 时报异常host-manager does not exist or is not a readable directory
- 安装 xen interface eth0 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
- 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
- yii2安装后报The file or directory to be published does not exist:path/vendor/bower/jquery/dist的问题
- tomcat启动报错Document base D:\apache-tomcat-6.0.35\webapps\CelLoud does not exist or is n...
- 启动Tomcat报异常host-manager does not exist or is not a
- storm '*/stormconf.ser' does not exist 问题nimbus进程刚启动后就自动退出
- 启动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报异常host-manager does not exist or is not a readable directory