Could not determine the server's fully qualified domain name

Linux howto's, compile information, information on whatever we learned on working with linux, MACOs and - of course - Products of the big evil....
Post Reply
User avatar
^rooker
Site Admin
Posts: 1481
Joined: Fri Aug 29, 2003 8:39 pm

Could not determine the server's fully qualified domain name

Post 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
Jumping out of an airplane is not a basic instinct. Neither is breathing underwater. But put the two together and you're traveling through space!
Post Reply