Apache+PHP编译【原创】

1. 编译安装Apache2.2.11
(1) ./configure --prefix=/usr/local/apache2/ --enable-mods-shared=all
(2) make
(3) sudo make install

【注意】
Caveat: --enable-mods-shared=all does not actually build all modules. To build all modules then, one might use:

./configure \
--with-ldap \
--enable-mods-shared="all ssl ldap cache proxy authn_alias mem_cache file_cache authnz_ldap charset_lite dav_lock disk_cache" 

如果使用反向代理功能,可以如下configure:

./configure --enable-mods-shared="all proxy"


2. 编译安装PHP5.3.0
./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-mysql --with-zlib --with-bz2 --with-curl --enable-mbstring

posted on 2010-11-10 18:33  sulpha  阅读(142)  评论(0编辑  收藏  举报

导航