FreeBSD Apache22 启动故障排除

问题一

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

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值