httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName
Overview
When restarting Apache, an error message like the following is displayed.
- Note: Apache itself restarts without any problems.
1 | service httpd restart |
It means that the FQDN, which uses 127.0.0.1 for ServerName, cannot be reliably determined.
Cause
The host name configured for “127.0.0.1” in /etc/hosts is not defined in the Apache configuration file.
hogehost is not configured in the Apache configuration file.
1 | 127.0.0.1 hogehost localhost.localdomain localhost |
/etc/httpd/conf/httpd.conf
1 | #ServerName www.example.com:80 |
httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName