Ubuntu: Remove "Could not reliably determine the server's fully qualified domain name" Message

For some reason, Ubuntu’s default Apache install is missing a directive in /etc/apache2/apache2.conf. This leads to the following message on every service 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

The fix is simple! Add “ServerName your.local.url” i.e. “ServerName beshoy.emfluence.com” to /etc/apache2/apache2/conf.

voila:

 * Restarting web server apache2
... waiting                                                                                                                                                                               [ OK ]

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.