How to fix Apache – "Could not reliably determine the server’s fully qualified domain name, using 127.0.1.1 for ServerName" Error on Ubuntu
Apache重启时出现下面错误
~$ sudo /etc/init.d/apache2 restart
* Restarting web server apache2
apache2: Could not reliably determine the server's fully qualified
domain name, using 127.0.1.1 for ServerName
... waiting apache2: Could not reliably determine the server's fully
qualified domain name, using 127.0.1.1 for ServerName
sudo gedit /etc/apache2/httpd.conf
httpd.conf为空白文档,填入下面内容。
ServerName localhost
再次重启
sudo /etc/init.d/apache2 restart