Wednesday, June 23, 2010

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

I've been getting this warning on starting up Apache for a while. I have the domain name in the site configuration (under /etc/apache2/sites-enabled), with the line:



ServerName consected.net

appearing right after the line, but the error still appears. 

Its easy to fix though. Just 

nano /etc/apache2/httpd.conf 

Then add the following line to the file (my file was empty to start with, so don't panic)

ServerName consected.net

Now restart the apache server (service apache2 restart) and the error has gone. Cool!


No comments:

Post a Comment