2013년 6월 18일 화요일

Apache 2.4.x 버전 설치하기..

Apache 2.4.x 버전 설치

apache2.4.x 버전부터는 apr과 apr-util을 별로도 설치하여야 함.
이전 버전에는 설치파일에 포함, 2.4.x 버전부터 별도 설치


# Build and install apr 1.2
 cd srclib/apr
 ./configure --prefix=/usr/local/apr-httpd/
 make
 make install

 # Build and install apr-util 1.2
 cd ../apr-util
 ./configure --prefix=/usr/local/apr-util-httpd/ --with-apr=/usr/local/apr-httpd/
 make
 make install

 # Configure httpd
 cd ../../
 ./configure --with-apr=/usr/local/apr-httpd/ --with-apr-util=/usr/local/apr-util-httpd/

또는...
 ./configure --prefix=/usr/local/apache2 --with-apr=/usr/local/apr/ --with-apr-util=/usr/local/apr-util/ --enable-module=so --enable-mods-shared-all --enable-so --enable-rewrite --enable-all

pcre 필요한 경우
 ./configure --prefix=/usr/local/apache2 --with-pcre=/usr/local/pcre/ --with-apr=/usr/local/apr/ --with-apr-util=/usr/local/apr-util/ --enable-module=so --enable-mods-shared-all --enable-so --enable-rewrite --enable-all



* PCRE 설치 절차 (http://pcre.org 참고)
wget ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-8.33.tar.gz
tar xvfz pcre-8.33.tar.gz
cd pcre-8.33
./configure --prefix=/usr/local/pcre --enable-static=yes --enable-utf8=yes --enable-unicode-properties=yes
make
make install




출처: http://stackoverflow.com/questions/13813856/compile-apache-2-4-3-on-centos-6-2-64bit

댓글 없음:

댓글 쓰기