我是疯子 我怕谁?

所有的东西都是乱弹和自己的技术积累和网络见闻

【转】FreeBSD6.4安装Apache2.2不成功的两种原因

tcsm | 31 元月, 2009 22:31

第一种:
    在FreeBSD下使用ports安装apache22会出现类似的warming:
No such file or directory: Failed to enable the 'httpready' Accept Filter

决方法是:

#kldload accf_http
并将/boot/defaults/loader.conf中,以便下次启动自动装载模块

accf_data_load="YES"
accf_http_load="YES"

作者觉得这好像是一个apache22的bug,不能启动FreeBSD自带的一个基于http端口过滤的模块。这个模块的作用很不错——检查HTTP请求是否完整,符合规则accpt一个Http进程,否则就扔掉。

第二种:

    apachectl -k start没有报错。但是80端口没有响应。

同时,/var/log/httpd-error.log这个文件里面有一下报错:[Sun Apr 15 20:22:48 2007] [alert] (EAI 8)hostname nor servname provided, or not known: mod_unique_id: unable to find IPv4 address o
Configuration Failed

在httpd.conf里面注释掉mod_unique_id 这个模块

评论

发表评论
 authimage
 
Accessible and Valid XHTML 1.0 Strict and CSS
Powered by LifeType - Design by BalearWeb