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

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
2
3
4
5
service httpd restart

httpd を停止中: [ OK ]
httpd を起動中: httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName
[ OK ]

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
2
#ServerName www.example.com:80
ServerName hogehost:80

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

https://kenzo0107.github.io/en/2015/03/16/httpd-error-could-not-reliably-determine-the-servers-fully-qualified-domain-name/

Author

Kenzo Tanaka

Posted on

2015-03-16

Licensed under