Install Apache Httpd 2.4.6
1. Prepare list
1.1 apr
download apr1.4.8.tar.gz and then run:
./configure
make & make install
apr has installed
1.2 apr-util
download apr-util-1.4.1.tar.gz and then run:
./configure --with-apr=..../apr
make & make install
notice! apr-util must have the same version with apr, liked apr.1.4.* and apr-util.1.4.*
pcre
1.3 pcre
downlaod pcre from http://www.pcre.org
./configure
make & make install
2. Install httpd
go into httpd-2.4.6
2.1
./configure --prefix=youpath --with-pcre=.../pcre/ --with-apr=.../apr-1-config --with-apr=.../apr
--with-pcre=.../pcre/pcre-config (in CentOS 6.3 and ubuntu)
On my ubuntu is:
./configure --prefix=/usr/local/apache --with-apr=/usr/local/apache/apr-1.4.8 --with-apr-util=/usr/local/apache/apr-util-1.4.1 --with-pcre=/usr/local/apache/pcre-8.21/pcre-config
2.2 On my ubuntu it can not run make & make install. You must input tow commands
make
make install
if make errer: pcre.h: No such file or directory, you need
apt-get install libpcre3-dev or yum install pcre-devel
3. You need read: