Start Apache encountered error: Httpd:could not reliably determine the server ' s fully qualified domain name
[[email protected] httpd-2.2.4]#/usr/local/apache/bin/apachectl start
Httpd:could not reliably determine the server ' s fully qualified domain name, using 127.0.0.1 for ServerName
1) into the Apache installation directory: (depending on the individual installation situation and different)
[Email protected] ~]# cd/usr/local/apache/conf
2) Edit the httpd.conf file, search for "#ServerName", add
ServerName localhost:80
[[email protected] conf]# Lsextra httpd.conf Magic mime.types original[[email protected] conf]# VI Httpd.conf#servername Www.example.com:80ServerName localhost:80
3) Restart Apache again.
[Email protected] ~]#/usr/local/apache/bin/apachectl restart
How to troubleshoot Apache Startup error: Could not reliably determine the server ' s fully qualified domain name