소스 설치 기준 (centos 7.6.1810 워크스테이션용)
1. https://httpd.apache.org 에서 apache 웹서버를 다운로드 한다. - 내가 받은 버전은 2.4.41
2. tar xvfz httpd-2.4.41.tar.gz 로 압축 해제 (나의 경우 /app 디렉토리에 파일을 옮겨옴)
3. cd httpd-2.4.41
4. ./configure --prefix=/app/apache2.4.41 --enable-mods-shared=all --enable-so --enable-rewrite --enable-proxy --enable-proxy-ajp --enable-proxy-balaner --enable-proxy-http --enable-proxy-connect --enable-ssl --with-included-apr
5. 위의 구문을 실행 시키면 apr , apr-util 을 설치 하라고 하면서 오류 발생
6. http://apr.apache.org 에서 apr 다운로드 후 설치 - 1.7.0 버전 다운로드 - /app 폴더에 이동시켜놓음 - tar xvfz apr-1.7.0 - cd apr-1.7.0 - ./configure --prefix=/app/apr1.7.0 - make && make insall
7. http://apr.apache.org 에서 apr-util 다운로드 후 설치 - 1.6.1 버전 다운로드 - /app 폴더에 이동시킴 - tar xvfz apr-util-1.6.1.tar.gz - cd apr-util-1.6.1 - ./configure --prefix=/app/apr-util1.6.1 --with-apr=/app/apr1.7.0 (open ssl 이 설치 되는 거면 --with-openssl=경로 옵션을 추가해 줘야 할 것으로 보임) - make && make install
make 시 에러가 발생함 xml/apr_xml.c:35:19: fatal error: expat.h: 그런 파일이나 디렉터리가 없습니다
- expat-devel 설치 https://libexpat.github.io 에서 다운로드 받음 expat2.2.9 버전 다운로드 받음 /app 에 expat-2.2.9.tar.gz 이동 tar xvfz expat-2.2.9.tar.gz ./configure --prefix=/app/expat2.2.9 make && make install
- 다시 /app/apr-util-1.6.1 폴더 이동 ./configure --prefix=/app/apr-util1.6.1 --with-apr=/app/apr1.7.0 --with-expat=/app/expat2.2.9 make && make insatll
8. pcre 설치 - https://www.pcre.org 에서 다운로드 받음 pcre-8.00.tar.gz 로 다운 받았음 - /app 폴더에 복사함 - tar xvfz pcre-8.00.tar.gz - cd pcre-8.00 - ./configure --enable-utf8 --prefix=/app/pcre8.00 - make && make install
9. openssl 설치 - https://www.openssl.org 에서 다운로드 받음 - openssl-1.0.2t.tar.gz 를 받음 - /app 폴더로 이동 - tar xvfz openssl-1.0.2t.tar.gz - cd openssl-1.0.2t - ./config linux-x86_64 --prefix=/app/openssl1.0.2t --openssldir=/app/openssl1.0.2t shared - make && make install
10. 다시 apache 설치로 돌아감 - cd /app/httpd-2.4.41 - ./configure --prefix=/app/apache2.4.41 --enable-mods-shared=all --enable-so --enable-rewrite --enable-proxy --enable-proxy-ajp --enable-proxy-balaner --enable-proxy-http --enable-proxy-connect --enable-ssl --with-apr=/app/apr1.7.0 --with-apr-util=/app/apr-util1.6.1 --with-pcre=/app/pcre8.00 --with-ssl=/app/openssl1.0.2t (동시접속자가 많은 사이트의 경우 --with-mpm=worker 추가) - make && make install
11. apache 시작 및 종료 - 설치 폴더 이동 cd /app/apache2.4.41/bin - 아파치 시작 apachectl start - 아파치 종료 apachectl stop - 아파치 상태 확인
|
댓글