Saturday, April 10, 2010

Error while setting up Apache fixed

I got the following error on running
sudo /etc/init.d/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

to fix it you need to edit httpd.conf file. type

sudo gedit /etc/apache2/httpd.conf

this will be a blank file by default. simply add the following line.

ServerName localhost

save the file and exit from gedit.

Finally restart the apche

sudo /etc/init.d/apache2 restart

This will probably fix your problem also.

hope it helps...

No comments:

 
Copyright 2009 ENDEAVOR