VI installapache.sh
#!/bin/bash
TAR-ZXF apr-1.4.6.tar.gz
CD apr-1.4.6
./configure--PREFIX=/USR/LOCAL/APR &>/dev/null
Make &>/dev/null
Make install &>/dev/null
Cd
TAR-ZXF apr-util-1.4.1.tar.gz
CD apr-util-1.4.1
./configure--prefix=/usr/local/apr-util--with-apr=/usr/local/apr/bin/apr-1-config &>/dev/null
Make &>/dev/null
Make install &>/dev/null
Cd
TAR-ZXF pcre-8.30.tar.gz
CD pcre-8.30
./configure--prefix=/usr/local/pcre &>/dev/null
Make &>/dev/null
Make install &>/dev/null
Cd
TAR-ZXF httpd-2.4.1.tar.gz
CD httpd-2.4.1
./configure--prefix=/usr/local/apache2-enable-so-enable-rewrite--with-mpm=worker--WITH-APR=/USR/LOCAL/APR-- With-apr-util=/usr/local/apr-util--with-pcre=/usr/local/pcre &>dev/null
Make &>/dev/null
Make install &>/dev/null
Cd
/usr/local/apache2/bin/apachectl start
: Wq
NETATAT-TUNLP | grep httpd
There are 80 ports that are successful
Apache One-click installation script