Page 1 of 1

Could not determine the server's fully qualified domain name

Posted: Sun Feb 24, 2008 5:47 pm
by ^rooker
[PROBLEM]
(Re)starting apache outputs the following error message:
apache2: Could not determine the server's fully qualified domain name, using 127.0.1.1 for ServerName
[SOLUTION]
Make sure that your hostname is a fully qualified domain name. Often it's set to something like "myhostname" instead of "myhostname.domain.xxx".
You can see the current hostname by calling the command:

Code: Select all

hostname
To set it to a FQDN, call:

Code: Select all

hostname myhostname.domain.xxx