I've never encountered this error before. And secondly I'd like to know how you folks debug your apache configurations.

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

In my Virtual Host configuration I do have these lines:

ServerName  example.com
ServerAlias www.example.com

(of course it has my actual info in there)

So I guess my question is, why wouldn’t apache be able to determine my fully qualified domain name?

link|improve this question

feedback

2 Answers

up vote 4 down vote accepted

check your /etc/hosts file. It should look something like this:

127.0.0.1     localhost
a.b.c.d       www.example.com

The first line should already be there, you only have to add the second line with your values.

link|improve this answer
did you mean /etc/hosts? – lamcro Aug 7 '10 at 16:59
yes. thanks. i've corrected it in the answer. – Christian Aug 12 '10 at 12:30
feedback

I think it's because you need to have "ServerName" declared outside vhost configuration, in the apache2.conf and the ServerName value declared in the /etc/hosts

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

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