apache2: Could not reliably determine the server’s fully qualified domain

Issue:

# /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

To fix that problem, you need to edit the httpd.conf file.

  • vi /etc/apache2/httpd.conf

Set content to:

ServerName localhost

  • /etc/init.d/apache2 restart

Tag Cloud