環境:
RedHat 9 + sipxpbx-3.2.0
增加用戶sipxuser(可自己定義,這個在安裝sipxpbx時要用到)
1、卸載安裝時自帶的apache
rpm -e httpd
如果提示有軟件依賴,就先卸載依賴的軟件,同樣使用rpm -e <軟件名>
2、下載apache 2.2.2
URL http://mirror.vmmatrix.net/apache/httpd/httpd-2.2.2.tar.gz
./configure --prefix=/usr/local/httpd --enable-ssl
make
make install
3、安裝mod_cplusplus 1.5.2
URL http://surfnet.dl.sourceforge.net/sourceforge/modcplusplus/mod_cplusplus-1.5.2.tar.gz
此爲apache的c++支持模塊
安裝時需要用到apxs,此模塊可在apache的安裝目錄的bin目錄下找到
編譯時:
./autogen.sh ./autogen.sh --with-httpd=/usr/local/httpd --with-apxs=/usr/local/httpd/bin/apxs
make
make check
4、安裝cgicc-3.2.3.tar.gz
tar -zxvf cgicc-3.2.3.tar.gz
make
make install
5、安裝apr-1.2.7.tar.gz
tar -zxvf apr-1.2.7.tar.gz
make
make install