Web/apache
[Linux] Apache 2.2 Compile
고지식한청춘
2020. 6. 11. 11:34
728x90
아파치 2.2 컴파일
1. Compile을 위한 패키지 설치
$ yum -y install wget gcc gcc-c++ pcre-devel openssl-devel expat-devel
2. Apache Source file 설치
$ wget http://archive.apache.org/dist/httpd/httpd-2.2.17.tar.gz
$ tar -xzf httpd-2.2.17.tar.gz
$ cd httpd-2.2.17
3. Compile
$ ./configure --prefix=/usr/local/apache --enable-mods-shared=all --enable-modules=all --with-included-apr
$ make
$ make install
4. Apache 실행
$ /usr/local/apache/bin/apachectl start
◎ 정상적으로 Apache가 설치되었는지 확인
1. 주소창에 WebServer의 IP 입력
2. It works!가 출력되면 정상
728x90