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

Practice



If, when starting or restarting the Apache server, you get this warning:

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

where instead of 127.0.0.1 the server's IP address might appear, this simply means that the Apache daemon didn't find the "ServerName" directive in its config file and had to use the IP address instead of the server name.


To stop this message from bothering you - open the Apache configuration file and add this line:

ServerName "MyWebServer"

where instead of "MyWebServer" you write the name of this server (however you want it to be displayed in Apache's messages.
Applies to: Apache2.x

Comments

To leave a comment

If you have any suggestion, idea, thanks or comment, feel free to write. We really value feedback and are glad to hear your opinion.
To reply

Lectures and tutorial on "Running server side scripts using PHP as an example (LAMP)"

Terms: Running server side scripts using PHP as an example (LAMP)