http://www.5dlinux.com/article/9/2009/linux_29218.html
http://hi.baidu.com/phps/blog/item/44d25c82a2edaba00df4d227.html
安装apr和apr-util
http://apr.apache.org上面有这些源码包自己编译安装
tar xzvf apr-1.2.9.tar.gz
cd apr-1.2.9
./configure --prefix=/usr/local/apr
make
make install
tar xzvf apr-util-1.2.8.tar.gz
cd apr-util-1.2.8
./configure --prefix=/usr/local/apr-util --with-apr=/usr/local/apr
make
make install
接下来安装apache
下载apachehttp://httpd.apache.org/download.cgi
解压缩gzip -d httpd-2.2.9.tar.gz
tar xvf httpd-2.2.9.tar
在httpd-XX文件夹下可以看到configure 的文件夹,此时用:./configure --prefix=/usr/local/apache --enable-so 设置安装目录和参数设置
命令so模块是用来提DSO支持的apache核心模块,这里设置启动
5:用make 和make install 编译安装apache 就可以了
./configure --prefix=/usr/local/apache --enable-so --enable-proxy --enable-proxy-ajp --enable-mods-shared=all --enable-cgi --enable-rewrite --enable-deflate --with-apr=/usr/local/apr --with-apr-util=/usr/local/apr-util --with-mpm=worker
make
make install
6:/usr/local/apache/bin/apachectl start ,该命令用来启用apache。