問題:
更新 port tree 之後,安裝 port 出現下列的錯誤訊息:
X11BASE is now deprecated.  Unset X11BASE in make.conf and try again.
*** Error code 1
Stop.
解決方法:
/etc/make.conf 中加入下列一行:
X11BASE=${LOCALBASE}

參考網站:http://forums.freebsd.org/showthread.php?t=13030


問題:
在 private network 中的機器,執行 apachectl start 後,沒有錯誤訊息,但 httpd 沒有起來。查看 /var/log/httpd-error.log 看到下面的錯誤訊息:

[Sat Jun 05 00:20:46 2010] [alert] (EAI 8)hostname nor servname provided, or not known: mod_unique_id: unable to find IPv4 address of "host.name.and.domain"
Configuration Failed

其中 host.name.and.domain 是 host 的 domain name。

解決方法:
原因是 httpd 找不到該 domain name 的 IP。在 /etc/hosts 中加入下列兩行:
10.1.1.203              host.name.and.domain host
10.1.1.203              host.name.and.domain.

記得將 10.1.1.203 代換成這台機器的虛擬 IP。


問題:
啟動 Apache2.x 時都會出現錯誤訊息 :Failed to enable the 'httpready' Accept Filter

解決方法:
原因是沒有安裝 accf_http 這個 kernel module。手動動態安裝的方法是在 shell 中鍵入以下指令:

> kldload accf_http

再 restart apache 即可。若要開機時自動載入,請在 /boot/loader.conf 加入下面這行:

accf_http_load="YES"

參考資料:

By closer

發表迴響