The Pursuit of Happyness

반응형


1. 먼저 소스 설치시 필요한 모듈을 설치합니다. (install modules) 

이미 설치된 모듈은 건너 뛰어도 상관 없습니다.

> yum install wget pcre pcre-devel make


2. 최신 아파치 소스를 다운로드 받습니다. (download httpd source from this link)

http://httpd.apache.org/download.cgi

> wget http://URL/httpd-NN.tar.gz


3. 압축을 적당한 폴더에 압축을 풀어 둡니다. (extract source code)

> tar zxvf httpd-NN.tar.gz

> cd httpd-NN/srclib


4. 필요한 경우 apr, apr-util 소스를 다운로드 받아서 srclib 폴더에 풀어 둡니다. (download apr and apr-util source from this link)

http://apr.apache.org/


> wget http://URL/apr-NN.tar.gz

> wget http://URL/apr-util-NN.tar.gz


5. 압축을 풀고 폴더 이름을 다음과 같이 변경합니다. (extract source code on srclib folder and change folder name)

> tar zxvf apr-NN.tar.gz

> mv apr-NN apr

> tar zxvf apr-util-NN.tar.gz

> mv apr-util-NN apr-util


4. 이제 컴파일 해서 설치를 하게 되는데 경로는 "/usr/local/httpd" 에 설치하도록 하겠습니다. (install to "/usr/local/httpd")

> cd ..

> ./configure --prefix=/usr/local/httpd --with-included-apr

> make

> make install


5. 아파치 서버에 필요한 설정을 변경합니다. (configuration)

> vi /user/local/httpd/conf/httpd.conf


6. 다음과 같이 아파치를 실행합니다. (run)

> /user/local/httpd/bin/apachectl -k start





반응형