Possible Duplicate:
apache2: Could not reliably determine the server's fully qualified domain name

Starting Apache is giving this error:

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

Can someone explain this error to me please?


That FQDN error is not a problem for apache, it is just a minor warning. You could run this server in production and it would make no difference.

If you google how to set up the FQDN there are tutorials for almost every flavor of linux. http://ubuntuforums.org/showthread.php?t=204360

  • so should i ignore this error or not??? – frank Mar 2 '11 at 14:37
  • 1
    yes, you can ignore the error. – chrism2671 Mar 3 '11 at 13:22

When using virtual hostnames and someone requests the IP instead of a hostname, Apache might use the ServerName setting to redirect clients to the correct URL.

Therefore, you should define the ServerName value. On Debian-based Apache 2 installations, you can do this in the file "/etc/apache2/httpd.conf", which should be empty by default. Just add

ServerName my.website.com

If you're only having Apache as development server, you can simply ignore the warning. Apache will use reverse DNS to lookup for requests to, for example, and thus automatically find out that the hostname is "localhost".

Another way is to edit the "/etc/hosts" file. That will work as well because of named reverse DNS lookup.

Not the answer you're looking for? Browse other questions tagged or ask your own question.