- 최신버전의 apache를 설치하기 위해 yum 및 rpm을 찾아봤지만 제공해주는 곳이 마땅하지 않음
- apache를 쉽게 업그레이드 하기 위해 별도의 디렉토리에 설치 후 설정파일에서 apache 설치 경로만 변경하는 방식으로 업그레이드가 가능하게 할 수 있음
> sudo yum install gcc gcc-c++ expat-devel zlib-devel openssl-devel libtool
> mkdir /apache
> mkdir /apache/sources
# /apache/sources 디렉토리에 아래 소스파일 업로드
# apache를 설치하기 위해서는 apr, apr-util, pcre 함께 필요
apr-1.7.0.tar # https://apr.apache.org 에서 다운로드
apr-util-1.6.1.tar # https://apr.apache.org 에서 다운로드
pcre-8.45.tar # https://www.pcre.org 에서 다운로드
httpd-2.4.52.tar # https://httpd.apache.org 에서 다운로드
tomcat-connectors-1.2.48-src.tar # https://tomcat.apache.org 에서 다운로드
# 소스파일 압축 풀기
/apache/sources> tar -xvf pcre-8.45.tar
# compile
/apache/sources/pcre-8.45> ./configure --prefix=/apache/pcre-8.45
/apache/sources/pcre-8.45> make
/apache/sources/pcre-8.45> make install
# 소스파일 압축풀기
/apache/sources> tar -xvf httpd-2.4.52.tar
/apache/sources> tar -xvf apr-1.7.0.tar
/apache/sources> tar -xvf apr-util-1.6.1.tar
# apr 관련 소스를 compile에 필요한 디렉토리로 이동
/apache/sources> mv apr-1.7.0 /apache/sources/httpd-2.4.52/srclib/apr
/apache/sources> mv apr-util-1.6.1 /apache/sources/httpd-2.4.52/srclib/apr-util
# compile
# 필자는 SSL 및 데이터 압축을 위해 ssl 과 deflate를 enable 했음
/apache/sources/httpd-2.4.52> ./configure --prefix=/apache/apache2.4.52 --with-pcre=/apache/pcre-8.45 --with-include-apr --enable-ssl --enable-deflate
/apache/sources/httpd-2.4.52> make
/apache/sources/httpd-2.4.52> make install
# 압축파일 풀기
/apache/sources> tar -xvf tomcat-connectors-1.2.48-src.tar
# compile
/apache/sources/tomcat-connectors-1.2.48-src/native> ./configure --with-apxs=/apache/apache2.4.52/bin/apxs --prefix=/apache/apache2.4.52/modules/
/apache/sources/tomcat-connectors-1.2.48-src/native> make
/apache/sources/tomcat-connectors-1.2.48-src/native> make install
댓글 영역