问题一
freebsd63# apachectl -t
Syntax OK
freebsd63# apachectl -k start
[Sun Feb 24 17:15:37 2008] [warn] (2)No such file or directory: Failed to enable the ‘httpready’ Accept Filter
决方法是:
freebsd63# kldload accf_http
并将/boot/defaults/loader.conf中,以便下次启动自动装载模块
accf_data_load="YES"
accf_http_load="YES"
问题二
freebsd63# apachectl -k start
没有任何提示。但是访问不了web服务器,??
freebsd63# tail /var/log/httpd-error.log
……
[Sun Feb 24 17:17:41 2008] [alert] (EAI 8)hostname nor servname provided, or not known: mod_unique_id: unable to find IPv4 address of "freebsd63.web"
Configuration Failed
……
解决方法:
注释掉 /usr/local/etc/apache22/httpd.conf 中的mod_unique_id 模块
freebsd63# tail /var/log/httpd-error.log
……
[Sun Feb 24 17:19:57 2008] [warn] Init: Session Cache is not configured [hint: SSLSessionCache]
[Sun Feb 24 17:19:57 2008] [notice] Digest: generating secret for digest authentication …
[Sun Feb 24 17:19:57 2008] [notice] Digest: done
[Sun Feb 24 17:19:57 2008] [notice] Apache/2.2.8 (FreeBSD) DAV/2 mod_ssl/2.2.8 OpenSSL/0.9.7e-p1 configured — resuming normal operations
……
问题三
[root@freebsd ~]# apachectl -t
httpd: Could not reliably determine the server’s fully qualified domain name, using freebsd.web for ServerName
Syntax OK
解决方案:
vi /usr/local/etc/apache22/httpd.conf
添加这么一行:ServerName 127.0.0.1:80
成功启动。
参考:
红联Enlist开源军长的FreeBSD Apache22 启动故障
http://www.linuxdiyf.com/bbs/redirect.php?tid=76813&goto=lastpost
FreeBSD Apache HTTP Accept Filter Error
http://www.steve-oh.com/blog/?p=24