Linux에 Apache2.4를 설치하기 위해서는 다음 순서로 설치를 수행한다.
1. [apr install]
wget http://apache.mirror.cdnetworks.com/apr/apr-1.6.1.tar.gz ./configure --prefix=/usr/local/apr cp -arp libtool libtoolT make && make install |
2. [apr-util install]
wget http://apache.mirror.cdnetworks.com/apr/apr-util-1.6.1.tar.gz ./configure --with-apr=/usr/local/apr --prefix=/usr/local/apr-util xml/apr_xml.c:35:19: fatal error: expat.h: No such file or directory #include <expat.h> ^ compilation terminated. make[1]: *** [xml/apr_xml.lo] Error 1 make[1]: Leaving directory `/usr/local/apr-util-1.6.1' make: *** [all-recursive] Error 1 yum install expat-devel make && make install |
3. [pcre 설치]
wget http://sourceforge.net/projects/pcre/files/pcre/8.31/pcre-8.31.tar.gz ./configure --prefix=/usr/local/pcre --disable-cpp make && make install |
4. [openssl install]
wget http://www.openssl.org/source/openssl-1.0.2o.tar.gz ./config --prefix=/usr/local/openssl-1.0.2d --openssldir=/usr/local/openssl shared threads zlib make & make install echo /usr/local/openssl/lib >> /etc/ld.so.conf /sbin/ldconfig yum install openssl-devel |
5. [apache install]
./configure --prefix=/home/ec2-user/apache --with-apr=/usr/local/apr --with-apr-util=/usr/local/apr-util --with-pcre=/usr/local/pcre --enable-so --enable-rewrite --with-mpm=worker --enable-mpms-shared=all --enable-ssl --with-ssl=/usr --enable-cache --enable-file-cache --enable-proxy --enable-proxy-connect --enable-proxy-http --enable-rewrite --enable-deflate checking for zlib location... not found checking whether to enable mod_deflate... configure: error: mod_deflate has been requested but can not be built due to prerequisite failures yum을 이용하여 zlib 설치 yum -y install zlib-devel configure: WARNING: OpenSSL version is too old no checking whether to enable mod_ssl... configure: error: mod_ssl has been requested but can not be built due to prerequisite failures [open ssl install] |