Friday, November 26, 2010

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

Quite often, i face the same error. Well at first, i did not care as long as it still functioning..
Well, i follow this blog http://vyc0d.blogspot.com/2010/10/fixed-apache-error-on-ubuntu-how-to.html, and then there is entry about apache error on ubuntu..

When u restart apache with this command, sudo /etc/init.d/apache2 restart , result will be
* Restarting web serverapache2 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


What u need to do is,

Type this command in ur terminal
sudo nano /etc/apache2/httpd.conf,
then at the end of the line, add this line : ServerName localhost.
After that,restart ur apache again. sudo /etc/init.d/apache2 restart.

No comments:

Post a Comment