mac Upgrade: httpd: apr_sockaddr_info_get() failed for bogon

Apache server startup prompt HTTPD: apr_sockaddr_info_get() failed for

Apache server startup prompt HTTPD: apr_sockaddr_info_get() failed for
After configuring Apache on RedHat Linux 5 and CentOS 5 servers, always report an error when starting or closing:
HTTPD: apr_sockaddr_info_get() failed for XX (host name)
HTTPD: Could not reliably determine the server’s fully qualified domain name, using 127.0.0.1 for ServerName
does not affect the normal start of apache though say! But it always felt like there was something wrong. Because an Apache startup process is stuck in the process
Found under the data, the original is the host name setting is not caused! Not in the/etc/HTTPD/conf/HTTPD. Set the ServerName conf so it will use the name of the host to replace, will first go to have a host defined in/etc/hosts.
. To solve this problem, set ServerName or enter your host name MYHOST in /etc/hosts, like this:
> Vi /etc/hosts
127.0.0.1 localhost.localdomain localhost XX (host name)
The command to view the hostname is: hostName
 
Additional errors that may occur:
Stopping HTTPD: [root@bogon xy]# service HTTPD restart
restart HTTPD: [OK]
Stopping HTTPD: [OK]
restart HTTPD: HTTPD: apr_sockaddr_info_get() failed for bogon
HTTPD: Could not reliably determine the server’s fully qualified domain name, using 127.0.0.1 for ServerName
Solutions:
Remove the # before ServerName from httpd.conf.
RedHat 5 with CentOS in the configuration file in/etc/HTTPD/conf/HTTPD. Conf. (this is the default operating system installation path)

Read More: