Apache重启时报警: AH00112: Warning: DocumentRoot [/usr/local/apache/docs/dummy-host.example.com] does not exist AH00112: Warning: DocumentRoot [/usr/local/apache/docs/dummy-host2.example.com] does not exist 问题原因: Apache在配置虚拟主机时会在配置文件中(httpd.conf)开启虚拟主机的配置…
在Ubuntu上安装Apache,每次重启,都会出现以下错误提示: Could not reliably determine the server’s fully qualified domain name, using 127.0.1.1 for ServerName 解决办法 修改 httpd.conf 文件 打开终端,输入以下命令: sudo vi /etc/apache2/httpd.conf 默认情况下,这个是一个空文件,在文件中加入以下内容: ServerName localhost…
AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1. Set the 'ServerName' directive globally to suppress this message 解决的问题是: sudo gedit /etc/apache2/apache2.conf 在文件后面加上: #Server Name ServerName 1…