1. Compile and install apr
APR download address: http://apr.apache.org/download.cgi
# tar -zxf apr-1.6.3.tar.gz
# cd apr-1.6.3
# ./configure --prefix=/usr/local/apr
# make
# sudo make install
2. Compile and install apr
APR-UTIL download address: http://apr.apache.org/download.cgi
# tar -zxf apr-util-1.6.1.tar.gz
# cd apr-util-1.6.1
# ./configure --prefix=/usr/local/apr-util --with-apr=/usr/local/apr/bin/apr-1-config
# make
# sudo make install
3. Compile and install pcre
PCRE download address: http://sourceforge.net/projects/pcre
# tar -zxf pcre-8.42.tar.gz
# cd pcre-8.42
# ./configure --prefix=/usr/local/pcre
# make
# sudo make install
4. Apache compilation and installation
APACHE download address: http://httpd.apache.org/download.cgi
# tar -zxf httpd-2.4.33.tar.bz2
# mv httpd-2.4.33 apache
# cd apache
# ./configure --prefix=/usr/local/apache2 --with-apr=/usr/local/apr --with-apr-util=/usr/local/apr-util/
# make
# sudo make install
Type in the browser, display