Fixing ‘Could not determine fully qualified name’ issue on localhost

Whenever you setup Ubuntu on a new machine, every apache restart always ends up with a silly error which goes something like :

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

Other than the fact that it is slightly irritating, it is usually harmless.

But if you still want to get rid of it, so that you can have a seemingly beautiful apache2 restart, you can just add the following to /etc/apache2/apache2.conf

ServerName vxtindia

Now apache knows what is your server called. But it will get an error if it tries to access the server name directly.

To fix this, you need to go to /etc/hosts and add your IP there.

192.168.1.10 vxtindia

That’s it. You are done!

This entry was tagged , . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>