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


I just installed the new karmic koala, in my laptop. After I configured everything i installed apache2. While i started the apache2 service daemon I bumped into the following error:

apache2: Could not determine the server's fully qualified domain name, using 127.0.1.1 for ServerName

While this error is not new to people who have configured apache previously, but the remedy was wonderfully easy. So i wanted to share this with you folks. To do so, you need to edit the httpd.conf file located in /etc/apache2 folder. You need to have sudo access (Obviously). So choose your favourite editor and write the following lines in it.

ServerName YOURSERVERNAME

This majical line will solve your problem. Try restarting the service by the following command and watch the error fly away.

sudo /etc/init.d/apache2 restart

Posted via web from Linux fanatic