Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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 127.0.1.1 for ServerName

Can someone explain this error to me please?

share|improve this question

marked as duplicate by Zypher Mar 2 '11 at 22:56

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

    
you should search before posting. This is a duplicate of many other posts, such as: serverfault.com/questions/101164/… –  Coops Mar 2 '11 at 22:52

2 Answers 2

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

share|improve this answer
    
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 127.0.0.1, 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.

share|improve this answer

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