√ OS : CentOS release 6.6 (Final)
[root@Apache ~]# yum install httpd
[root@Apache ~]# rpm -qa | grep httpd httpd-tools-2.2.15-39.el6.centos.x86_64 httpd-2.2.15-39.el6.centos.x86_64
Apache(httpd) Download URL : http://httpd.apache.org/download.cgi
DownLoad File httpd-2.4.12.tar.gz http://httpd.apache.org/download.cgi#apache24
APR(APR-Util) Download URL : http://apache.mirror.cdnetworks.com/apr/
DownLoad File apr-1.5.1.tar.gz http://apache.mirror.cdnetworks.com/apr/apr-1.5.1.tar.gz
DownLoad File apr-util-1.5.4.tar.gz http://apache.mirror.cdnetworks.com/apr/apr-util-1.5.4.tar.gz
[root@Apache Downloads]# pwd /root/Downloads [root@Apache Downloads]# ls -al total 6704 drwxr-xr-x. 2 root root 4096 Mar 26 16:39 . dr-xr-x---. 25 root root 4096 Mar 26 16:38 .. -rw-r--r-- 1 root root 6853506 Mar 26 16:39 httpd-2.4.12.tar.gz
[root@Apache Downloads]# tar -xvf httpd-2.4.12.tar.gz [root@Apache Downloads]# ls -al total 6708 drwxr-xr-x. 3 root root 4096 Mar 26 16:45 . dr-xr-x---. 25 root root 4096 Mar 26 16:38 .. drwxr-xr-x 11 501 games 4096 Jan 23 03:50 httpd-2.4.12 -rw-r--r-- 1 root root 6853506 Mar 26 16:39 httpd-2.4.12.tar.gz
[root@Apache Downloads]# cd httpd-2.4.12 // INSTALL 하는 방법을 확인 하기 위해 해당 문서를 열어본다. [root@Apache httpd-2.4.12]# cat INSTALL Quick Start - Unix ------------------ For complete installation documentation, see [ht]docs/manual/install.html or http://httpd.apache.org/docs/2.4/install.html $ ./configure --prefix=PREFIX $ make $ make install $ PREFIX/bin/apachectl start ...
[root@Apache httpd-2.4.12]# ./configure --prefix=/app/apache --enable-modules=all --enable-mods-shared=all --with-mpm=worker --with-mpm=prefork --with-included-apr
configure: error: Bundled APR requested but not found at ./srclib/. Download and unpack the corresponding apr and apr-util packages to ./srclib/.
⇒ http://apache.mirror.cdnetworks.com/apr/ 에서 apr , apr-utile 파일을 다운받아서 설치 한다.
[root@Apache httpd-2.4.12]# make && make install
[root@localhost ~]# rpm -qa | grep httpd [root@localhost ~]# httpd -version