Setting up apache 2 on my Kubuntu box lead to the following error whenever I restarted the daemon:
apache2: Could not determine the server's fully qualified domain name, using 127.0.1.1 for ServerName
The fix is to edit the conf file and add in the ServerName setting (as the error message requests). In other words,
sudo vi /etc/apache2/httpd.conf
followed by adding the following string:,
# ServerName is to be specified to avoid warning during reload
I am not entirely sure about the status of the httpd.conf (vs. apache2.conf where the above line can also be inserted) file in Debian based distros.. Is it deprecated or something?
Either way, I thought it best to avoid editing the apache2.conf file directly and use an included file.