2014. 5. 8. 12:02
1. 설치 파일 및 버전
 가. httpd-2.4.9
 나. apr-1.5.1
 다. apr-util-1.5.3
 라. pcre-8.35

2. 설치 파일 다운로드
 가. HTTPD 파일 다운로드
   - Apache.org에서 다운로드
   #> wget "http://apache.tt.co.kr//httpd/httpd-2.4.9.tar.gz"

 나. APR(Apache Portable Runtime) 파일 다운로드
   - Apache.org에서 다운로드
   #> wget "http://mirror.apache-kr.org//apr/apr-1.5.1.tar.gz"

 다. APR-UTIL 파일 다운로드
   - Apache.org에서 다운로드
   #> wget "http://mirror.apache-kr.org//apr/apr-util-1.5.3.tar.gz"

 라. APR(Apache Portable Runtime) 파일 다운로드
   - www.pcre.org에서 다운로드
   #> wget "http://sourceforge.net/projects/pcre/files/pcre/8.35/pcre-8.35.tar.gz"

3. 설치
 가. pcre 설치
   #> tar -zxvf pcre-8.35.tar.gz
   #> cd pcre-8.35
   #> ./configure --prefix=/usr/local/pcre
   #> make
   #> make install

 나. apr 설치
   #> tar -zxvf apr-1.5.1.tar.gz
   #> cd apr-1.5.1
   #> ./configure --prefix=/usr/local/apr
   #> make
   #> make install
  ※ configure중 아래의 에러 발생 시,
       rm: cannot remove `libtoolT': No such file or directory
       아래의 명령어 실행 후, 다시 configure 실행
   #> cp -arp libtool libtoolT

 다. apr-util 설치
   #> tar -zxvf apr-util-1.5.3.tar.gz
   #> cd apr-util-1.5.3
   #> ./configure --prefix=/usr/local/apr-util --with-apr=/usr/local/apr
   #> make
   #> make install

 라. httpd 설치
   #> tar -zxvf httpd-2.4.9.tar.gz
   #> cd httpd-2.4.9
   #> ./configure \
   --prefix=/usr/local/apache2 \
   --with-apr=/usr/local/apr \
   --with-apr-util=/usr/local/apr-util \
   --with-pcre=/usr/local/pcre \
   --enable-mods-shared=all \
   --enable-so --enable-rewrite
  #> make
  #> make install

※ 설치 순서만 위와 같이 진행하면 특별한 ERROR 없이 설치 가능, 그 외 필요한 라이브러리는 yum으로 설치

4. 설정
 가. httpd.conf 설정
  #> vi /usr/local/apache2/conf/httpd.conf
ServerName localhost <= HOSTNAME 변경
User nobody
Group nobody


Posted by Kimos