[bash]
cd /usr/ports/www/apache22;make install clean
[/bash]
1. 安裝Apache後,start出現的問題:
httpd.conf not found,實在找不出藏在哪裡,用find找
[bash]
find / -type f -name "httpd.conf"
[/bash]
結果藏在這種詭異的地方: /usr/local/share/examples/apache24/httpd.conf
2. restart會發生錯誤
[bash]
Performing sanity check on apache24 configuration:
AH00557: httpd: apr_sockaddr_info_get() failed for FBSD9x64
AH00558: httpd: Could not reliably determine the server’s fully qualified domain name, using 127.0.0.1. Set the ‘ServerName’ directive globally to suppress this message
Syntax OK
……
/usr/local/etc/rc.d/apache24: WARNING: failed to start apache24
[/bash]
必須到/etc/hosts加入主機名,
之後還是有failed發生,到httpd.conf改:ServerName 127.0.0.1:80
3. 網頁根目錄: /usr/local/www/apache24/data/
裡面什麼都沒有……自己加上去吧
但是apache仍無法啟動,後來發現少了三個檔案:mime.types, httpd.conf, magic
不知道是否因freebsd版本太舊,會有這樣的問題……