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

In: ,

5 Feb 2009

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!

Comment Form

About this blog

Gyaan Sutra is about entrepreneurship and technology. It is written and maintained by Sudhanshu Raheja, who is also the founder of Vercingetorix Technologies

Photostream

    Drunk
    The Ivy In Store
    The old joint
    The setup
    Some light years earlier
    Wollongong

  • Collin: Er, why would you reboot to finish installation? sudo /etc/init.d/postfix restart :) [...]
  • nix: Stumbled into your blog post and I find it quite interesting. Now I have a comment or two; sorry to [...]
  • Narendra.s.v: That's interesting! But i guess Screwvala haven't raised there salaries and so they resigned ;) [...]
  • Brijesh: I think you should ask Screwvala to fill in their posts and you should take over as the head. Eve [...]
  • Manjunath: I too had a same feeling and wrote post in my blog about it there are many such similar sites who po [...]