WEB - apache 설치 가이드
apache 설치 가이드
실 사용 환경에서 필요한 내용만 정리
Test environment
OS : CentOS 7 3.10.0-957.el7.x86_64
사전 작업
Install APR (Apache Protable Runtime)
컴파일방식으로 설치 하기 때문에 사전에 APR을 다운로드
최신 Apache HTTP Server 사용하기 위해서는 버전에 맞는 APR 설치가 필요.
- 패키지 사전 설치 확인
yum -y install gcc make gcc-c++ pcre-devel
apr
Download link : https://apr.apache.org/download.cgi
[root@was11 apr]$ ./configure --prefix=/SW/web/tools/apr
[root@was11 apr]$ make && make install
apr-util
#압축 해제
[root@was11 apr-util]$ ./configure --prefix=/SW/web/tools/apr-util --with-apr=/SW/web/tools/apr
[root@was11 apr-util]$ make && make install
PCRE
https://www.pcre.org/
[root@was11 pcre]# ./configure --prefix=/SW/web/tools/pcre
[root@was11 pcre]# make && make install
openssl
Download link : https://www.openssl.org/source/
[root@was11 openssl]# ./config --openssldir=/SW/web/tools/openssl
make
make uninstall
주요 내용
[root@was11 httpd24]$ tar -zxvf httpd-2.4.41.tar.gz
[root@was11 openssl]# make && make install
configure command
[root@was11 httpd24]# ./configure -prefix=/SW/web/httpd24 -enable-so -enable-rewrite --enable-proxy -enable-ssl -enable-mods-shared=all -enable-modules=shared -enable-mpms-shared=all --with-mpm=worker --with-apr=/SW/web/tools/apr --with-apr-util=/SW/web/tools/apr-util --with-pcre=/SW/web/tools/pcre --with-ssl=/SW/web/tools/openssl --enable-ssl -enable-unique-id
[root@was11 httpd24]# make && make install
start
/SW/web/httpd24/bin/apachectl start