[Solved] Apache Startup Error: httpd: apr_sockaddr_info_get() failed for

When executing apachectl start, the following error will be prompted:

httpd: apr_ sockaddr_ info_ get() failed for shiwei
httpd: Could not reliably determine the server’s fully qualified domain name, using for ServerName

reason: the problem should be that servername is not set in/etc/httpd/conf/httpd.conf. So Apache will replace it with the name of the host. First, it will find out if there is a definition of the host in/etc/hosts


(1) you can set the servername in httpd.conf file as follows: servername localhost:80

(2) fill in your own host name Bogon in/etc/hosts, as follows: Shiwei (user name)

Similar Posts: