Install Apache
wget http://redrockdigimark.com/apachemirror//httpd/httpd-2.4.25.tar.gz
tar xvzf httpd-2.4.25.tar.gz
./configure --with-apr=directory path where apr is installed
Eg: ./configure --with-apr=/usr/local/apr
By default, it is /usr/local/apr.
# APR
wget http://mirrors.axint.net/apache//apr/apr-1.4.6.tar.gz
tar -xvzf apr-1.4.6.tar.gz
cd apr-1.4.6/
./configure
make
make install
cd ..
# APR Utils
wget http://mirrors.axint.net/apache//apr/apr-util-1.4.1.tar.gz
tar -xvzf apr-util-1.4.1.tar.gz
cd apr-util-1.4.1
./configure --with-apr=/usr/local/apr
make
make install
cd ..
# Apache
wget http://apache.petsads.us//httpd/httpd-2.4.1.tar.gz
tar -xvzf httpd-2.4.1.tar.gz
cd httpd-2.4.1
./configure --enable-file-cache --enable-cache --enable-disk-cache --enable-mem-cache --enable-
deflate --enable-expires --enable-headers --enable-usertrack --enable-ssl --enable-cgi --enable-
vhost-alias --enable-rewrite --enable-so --with-apr=/usr/local/apr/
make
make install