[ FreeBSD ] Failed to enable the 'httpready' Accept Filter

最近在安裝一台新的 server ,使用的是 FreeBSD 6.2 release,在安裝好系統,做完了 make installworld 等等工作以後,開始裝上一些網路服務。

以往安裝的都是 apache 1.x + php4.x + mysql 4.1x,這一台想說裝裝 apache 2.x + php5.x + mysql 5.x 這一種組合好了。在裝完 apache 2.x ,啟動後,一直出現以下的訊息。

Failed to enable the 'httpready' Accept Filter

看了一下設定並沒有弄錯呀!百思不得其解!後來找了一下資料,原來要這樣做:

Add the HTTP Accept Filter FreeBSD kernel module (accf_http).

  • Change the Log level for this to debug. (or don't even log it)
  •  The entire AcceptFilter/TCP_DEFER_ACCEPT code needs to be refactored to properly work with different protocols.

解決方法有兩個:

  • 在 /boot/loader.conf 加入一行
    accf_http_load="yes"
  • 編譯 kernel 時在   options INET  底下加入
    options ACCEPT_FILTER_HTTP

就可以解除這個訊息!

相關文章:

3 thoughts on “[ FreeBSD ] Failed to enable the 'httpready' Accept Filter

  1. 其實也可以馬上用 kldload accf_http 這樣子就會載入 accf_http.ko 這個 kernel module 了,

    當然,建議還是得在 /boot/loader.conf 加上 accf_http_load="YES"
    或者在 /etc/rc.local 加上 kldload accf_http

發佈回覆給「chinsan」的留言 取消回覆

發佈留言必須填寫的電子郵件地址不會公開。