Could not reliably determine the server's fully qualified domain name

I had been seeing this error on one of our Ubuntu servers when restarting Apache2, and I could not figure out why.  All of the obvious reasons for this error were not relevant to our situation.  In /etc/hosts we had the following:

127.0.0.1     localhost localhost.localdomain ourdomain.com www.ourdomain.com
127.0.0.1     ourservername

which should have been sufficient, but apache did not like the fact that ourdomain.com and www.ourdomain.com was on the same line as the localhost stuff.  I changed /etc/hosts to:

127.0.0.1     localhost localhost.localdomain
127.0.0.1     ourdomain.com www.ourdomain.com
127.0.0.1     ourservername

and the error went away.

0 Comments, 0 trackbacks (Trackback URL)

0 responses to Could not reliably determine the server's fully qualified domain name

Leave a Comment
  1. (required)
  2. Ignore this field:
  3. Don't put anything in this field:
    Don't put anything here:
  4. Leave this empty:
    (required)
  5. Your email is not publically displayed.