close
boa porting
關鍵字:boa 安裝 移植 porting 輕量級網頁伺服器
google找boa也太多寶兒的資料了吧@@
安裝環境:
Fedora Core 4
GCC 3.4.6 (FC4內建為4.0.0)
boa-0.94.14rc18
網頁目錄預計放在/home/httpd
下載
wget http://tinyurl.com/yrgnpu
wget http://tinyurl.com/29pyf6
解開
tar -zxvf boa-0.94.14rc18.tar.gz
cd boa-0.94.14rc18
./configue
視需要修改 src/Makefile
CC=gcc
CPP=gcc -E
編譯
make
make install
結果他說
Please read the documentation then install manually.
.....囧......
手動安裝
cp src/boa_indexer /bin
mkdir /etc/boa
cp src/boa /etc/boa/
cp examples/boa.conf /etc/boa/
vi /etc/boa/boa.conf
- 確定組態檔中的User跟 Group都存在
通常可以設為nobody - 如果目標板的空間太小,ErrorLog跟AccessLog可以註解掉
如果要看的話記得mkdir /var/log/boa - DocumentRoot設為/home/httpd
- DirectoryMaker設為/bin/boa_indexer
- 如果目標板缺少/etc/mime.types可以複製原本linux中的過去
- ScriptAlias設為/cgi-bin/ /home/httpd/cgi-bin/
CGI測試
mkdir -p /home/httpd/cgi-bin
cp examples/cgi-test.cgi /home/httpd/cgi-bin
執行
/etc/boa/boa
連上
http://xxxxxxxxxx/cgi-bin/cgi-test.cgi
全站熱搜
留言列表