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]# ls
Extra httpd.conf Magic Mime.types Original
[Email protected] conf]# vim httpd.conf
#ServerName www.example.com:80
ServerName localhost:80
3) Restart Apache again.
[Email protected] ~]#/usr/local/apache/bin/apachectl restart
Troubleshooting Apache Boot Error "httpd:could not reliably determine ..."