1.启动apache时会有错误
[Mon Jul 30 14:09:06 2007] [error] (EAI 2)Name or
service not known: Failed to resolve server name for
192.168.0.111 (check DNS) -- or specify an explicit
ServerName
下面我们将ServerName字段加上去,后面的名称我们随意写
<VirtualHost 192.168.0.111>
    ServerAdmin [email]hong.yao@infonaligy.com[/email]
    DocumentRoot /var/www/html/s1
    ServerName s1
    ErrorLog logs/dbpi_web-error_log
    TransferLog logs/dbpi_web-access_log
</VirtualHost>
2.启动apache时会有警告
Starting httpd: httpd: apr_sockaddr_info_get() failed
for MYHOST
httpd: Could not determine the server's fully qualified
domain name, using 127.0.0.1 for ServerName
还是能够正常的启动和访问,只是有这个问题.
解决:
#ServerName [url]www.example.com:80[/url] 将这句话修改如下
ServerName 192.168.0.111 当然根据你的实际情况修改为本机
的IP或者域名
3.错误:
[warn] module php5_module is already loaded, skipping
这个错误是由于/etc/httpd/conf/httpd.conf的 Include
conf.d/*.conf已经把php.conf包含进来了,php.conf里面已经
加载了php5_modules模块。