Apache

By Druss , 31 December, 2006

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
ServerName MYSERVER

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?

Tags Old

All times are UTC. All content licensed under the Creative Commons Attribution-Noncommercial-Share Alike 3.0 License.