[root@hae install]# wget http://mirror.apache-kr.org/httpd/httpd-2.4.46.tar.gz
[root@hae install]# wget http://mirror.apache-kr.org/apr/apr-1.7.0.tar.gz
[root@hae install]# wget http://mirror.apache-kr.org/apr/apr-util-1.6.1.tar.gz
[root@hae install]# wget https://sourceforge.net/projects/pcre/files/pcre/8.44/pcre-8.44.tar.gz
[root@hae install]# tar zxvf apr-1.7.0.tar.gz
[root@hae install]# tar zxvf apr-util-1.6.1.tar.gz
[root@hae install]# tar zxvf httpd-2.4.46.tar.gz
[root@hae install]# tar zxvf pcre-8.44.tar.gz
[root@hae install]# mv apr-1.7.0 apr-util-1.6.1 pcre-8.44 httpd-2.4.46 /usr/local/src
[root@hae install]# cd /usr/local/src/
[root@hae src]# ls
apr-1.7.0 apr-util-1.6.1 pcre-8.44
- apr install
[root@hae src]# cd apr-1.7.0/
[root@hae apr-1.7.0]# ./configure --prefix=/usr/local/src/apr-1.7.0
[root@hae apr-1.7.0]# make && make install
- apr-util install
[root@hae src]# cd apr-util-1.6.1/
[root@hae apr-util-1.6.1]# ./configure --prefix=/usr/local/src/apr-util-1.6.1 --with-apr=/usr/local/src/apr-1.7.0
[root@hae apr-util-1.6.1]# make && make install
- pcre install
[root@hae src]# cd pcre-8.44/
[root@hae pcre-8.44]# ./configure --prefix=/usr/local/src/apr-util-1.6.1 --with-apr=/usr/local/src/apr-1.7.0
[root@hae pcre-8.44]# make && make install
- apache install
[root@hae src]# cd httpd-2.4.46/
[root@hae httpd-2.4.46]#./configure --prefix=/app/web/apache2 --enable-so --enable-rewrite --enable-proxy --enable-ssl --enable-mods-shared=all --enable-modules=shared --with-apr=/usr/local/src/apr-1.7.0 --with-apr-util=/usr/local/src/apr-util-1.6.1
[root@hae httpd-2.4.46]# make && make install