Prepare apr and apr-util
# 编译和安装 apr 1.2
$cd srclib/apr
$./configure --prefix=/usr/local/apr-httpd/
$make
$make install
# 编译和安装 apr-util 1.2
$cd ../apr-util
$./configure --prefix=/usr/local/apr-util-httpd/ --with-apr=/usr/local/apr-httpd/
$make
$make install
# 配置 httpd
$cd ../../
$./configure --with-apr=/usr/local/apr-httpd/ --with-apr-util=/usr/local/apr-util-httpd/
# 编译
$make
$make install
Test
# Stop Ubuntu bundled apache 2.2.9
$ps -e | grep apache
$ kill [ID
#Start KH apache 2.2.11
$sudo ./apachectl -k start
# Access http://127.0.0.1, You will see "It works"
# Edit PREFIX/htdocs/index.html, Change to "It Works, Kevin 2.2.11"
mod_perl
cannot find -lperl ==> You need install libperl-dev
$perl Makefile.PL MP_AP_PREFIX=/usr/local/apache2
$make
$make install