先到下載apr和apr-util
.1. 安裝apr-1.3.2.tar.gz
# tar zxvf apr-1.3.2.tar.gz
# cd apr-1.3.2
# ./configure
# make
# make install
//apr被安裝在/usr/local/apr下
2. 安裝apr-util-1.3.2.tar.gz
# tar zxvf apr-util-1.3.2.tar.gz
# cd apr-util-1.3.2
# ./configure --with-apr=/usr/local/apr
// --with-apr=/usr/local/apr 指定APR安裝路徑
# make
# make install
3.到http://httpd.apache.org/download.cgi#apache20下載httpd
tar vzxf httpd-2.2.9.tar.gz
cd httpd-2.2.9
./configure --prefix=/usr/local/apache2 --enable-so --enable-rewrite --enable-auth-digest --enable-cgi --enable-suexec --with-suexec-caller=daemon --with-suexec-docroot=/usr/local/apache2/htdocs
make
make install