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 127.0.0.1 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
solutions:
(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: 127.0.0.1 Shiwei (user name)
Similar Posts:
- ubuntu apache2: apr_sockaddr_info_get() failed
- wampserver 3.0.4 Same LAN Error: You don’t have permission to access /index.php on this server
- About the Ubuntu configuration file apache2 httpd.conf position
- Apache : Error: Apache shutdown unexpectedly [How to Solve]
- Apache was unable to start solving the requested operation has failed
- [Solved] Apache Warning: DocumentRoot must be a directory
- Xampp modify the port number Apache service detected with wrong [How to Solve]
- How to Solve ORA-21561 Error: OID generation failed
- ServerRoot must be a valid directory