2016. 9. 21. 17:00 Linux Server/apache
[apache] apache 소스설치 (2.4.3)
[apache 소스설치 방법]
apr , apr-util , apache , pcre 설치
[yum 으로 설치해야할 것들]
# yum -y install openssl openssl-devel mhash mhash-devel libtool libtool-ltdl libtool-ltdl-devel imap-devel imap zlib-devel zlib freetype-devel freetype libpng-devel libpng libjpeg-devel libjpeg libtiff-devel libtiff gd-devel gd pcre-devel pcre libxml-devel libxml libxml2-devel libxml2 gdbm-devel gdbm ncurses-devel ncurses curl-devel curl expat-devel expat bzip2-devel bzip2-libs bzip2 libc libc-devel libc-client-devel gcc* wget
[관련 라이브러리 apr 설치]
# cd /usr/local/src
# tar -zxvf apr-1.4.6.tar.gz
# cd apr-1.4.6
# ./configure --prefix=/usr/local/apr -> apr 을 /usr/local/apr 경로에 설치한다.
# make
# make install
[관련 라이브러리 apr-util 설치]
# cd /usr/local/src
# tar -zxvf apr-util-1.4.1.tar.gz
# cd apr-util-1.4.1
./configure --prefix=/usr/local/apr-util --with-apr=/usr/local/apr -> apr을 /usr/local/apr-util 경로에 설치하며, apr을 참조한다.
# make
# make install
# mv /usr/local/src/apr-1.4.6 /usr/local/src/httpd-2.4.3/srclib/apr -> 아파치 컴파일 할때 apr 경로 알아서 잡아주기 위해 옮기는작업
# cd /usr/local/src
# tar -zxvf httpd-2.4.3.tar.gz
# cd httpd-2.4.3
./configure \
--prefix=/usr/local/apache \
--enable-so \
--enable-rewrite--enable-mods-shared=all \
--enable-modules=shared \
--enable-ssl \
--with-included-apr \
--with-included-apr-util \
--with-mpms-shared=all
# make
# make install
# cp /usr/local/apache/bin/apachectl /etc/init.d/apachectl
# vi /etc/init.d/apachectl -> 해당 파일 열어서 상단에 아래내용 추가
# chkconfig: 2345 90 90
# description: init file for Apache server daemon
# processname: /usr/local/apache/bin/apachectl
# config: /usr/local/apache/conf/httpd.conf
# pidfile: /usr/local/apache/logs/httpd.pid
# chkconfig --add apachectl -> 해당 명령어로 아파치 추가
# chkconfig httpd on -> 해당 명령어로 부팅시 자동실행되도록 설정
'Linux Server > apache' 카테고리의 다른 글
[php 언어셋 문제] (0) | 2017.05.09 |
---|---|
[apache] cband 모듈설치 (0) | 2017.04.27 |
[apache] rewrite 모듈을 이용한 http -> https 포워딩 (0) | 2017.04.26 |
[apache] 모듈 userdir (0) | 2017.01.10 |
[apache] mod_rewrite 설치 (0) | 2016.09.14 |