When installing Apache, use the User1 user first./configure the command configuration before using the root user make && make install, resulting in Apache reporting the following error:
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
Although not hinder the use, but looked at the error always feel awkward, after finding out that the problem should not be set in the/etc/httpd/conf/httpd.conf ServerName. So Apache will use the host name to replace, first will find/etc/hosts in the definition of the host.
So to solve this problem you can set the ServerName in the httpd.conf file, as follows:
(1) ServerName localhost:80
or fill in the/etc/hosts with your host name Bogon, as follows :
(2) 127.0.0.1bogon
Note :
The host name of the current system is subject to the hostname command, and the hostname settings in the/etc/sysconfig/network may not be consistent.
/etc/sysconfig/network Default host name is: Hostname=localhost.localdomain
This article from "Nicol Lock Silk Sorrow" blog, please make sure to keep this source http://smoke520.blog.51cto.com/9256117/1827886
How to troubleshoot Linux under Apache boot Httpd:apr_sockaddr_info_get () failed for error