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)