November 6th, 2009 posted by Bender Rodríguez
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.
"Humans think they are smarter than dolphins because we build cars and buildings and start wars etc., and all that dolphins do is swim in the water, eat fish and play around. Dolphins believe that they are smarter for exactly the same reasons."
Douglas Adams