Archive for October 31, 2008

Could not Determine The Server’s Fully Qualified Domain Name, Using 127.0.0.1 for ServerName

When you are trying to restart your apache2 service by inserting command sudo /etc/init.d/apache2 restart , then you got the following error message:

Could not determine the server’s fully qualified domain name, using 127.0.0.1 for ServerName

To fix this problem, all you have to do is following instructions as follows:

  1. Open your system httpd.conf file by running:

    sudo vi /etc/apache2/httpd.conf

    in your terminal, then enter a line for ServerName. For Example:

    ServerName ryawww.myvaio.com

    after all, don’t forget to make sure you save all the changes you have made to the file.

  2. Open your system hosts file by running:

    sudo vi /etc/hosts

    in your terminal, then in the line which consists 127.0.0.1 localhost, you need to add:

    127.0.0.1 localhost.myvaio localhost ryawww.myvaio.com

    after all, don’t forget to make sure you save all the changes you have made to the file.

Try to restart your apache2 service again.

Good Luck

Advertisement

Leave a Comment