CentOS 6.5 编译安装
包下载地址:http://pan.baidu.com/s/1miHrZdQ 密码:p6ny
由于httpd依赖于apr-1.4,apr-util-1.4,所以得安装1.4及以上版本。
首先安装apr和apr-util
tar xf apr-1.5.0.tar.bz2
./configure --prefix=/usr/local/apr
make && make install
tar xf apr-util-1.5.2.tar.bz2
./configure --prefix=/usr/local/apr-util --with-apr=/usr/local/apr
make && make install
安装httpd2.4
yum -y install pcre-devel
yum -y install openssl-devel
groupadd -r apache
useradd -r -g apache apache
tar xf httpd-2.4.6.tar.bz2
./configure --prefix=/usr/local/apache --sysconf=/etc/httpd24 --enable-so --enable-ssl --enable-cgi --enable-rewrite --with-zlib --with-pcre --with-apr=/usr/local/apr --with-apr-util=/usr/local/apr-util/ --enable-modules=most --enable-mpms-shared=all --with-mpm=prefork
make && make install
启动服务
/usr/local/apache/bin/apachectl