다음
이전
차례
%주의 : 여기서는 쓰고자 하는 DB들과 gd, imap이 깔려있는 상태라 가정한다.
위의 부분들에 대해서는 kldp내의 문서를 참조하기 바란다.
# 패키지 풀기
$ gzip -d -c apache_1.3.12.tar.gz | tar xvf -
$ gzip -d -c mod_ssl-2.6.2-1.3.12.tar.gz | tar xvf -
$ gzip -d -c php-4.0.0.tar.gz | tar xvf -
# 아파치 소스 위치 확인 => 아파치를 설치하는 곳이 아닌 소스 위치다 헷갈리지 말기.
%참고로 필자는 apache는 /usr/local/src/apache-1.3.12에
mod_ssl-2.6.2-1.3.12는 /usr/local/src/mod_ssl-2.6.2-1.3.12에 소스를 풀었다
$ cd mod_ssl-2.6.2-1.3.12
$ ./configure \
--with-apache=../apache_1.3.12
$ cd ..
# PHP를 컴파일 하기 전의 아파치 사전 설정
$ cd apache_1.3.12
$ ./configure \
--prefix=/usr/local/apache <= 설치할 곳
$ cd ..
# PHP컴파일 하기 (DB,imap,gd,apache)
$ cd ../php-4.0.0
$ CFLAGS='-O2 -I/path/to/openssl/include' \
./configure \
--with-apache=../apache_1.3.12 \
--with-mysql=/usr/local/mysql \ <= 사용자가 설치한 위치
--with-pgsql=/usr/local/pgsql
--with-gd=/usr/local/gd-1.3
--with-imap=/usr/local/imap
--enable-memory-limit=yes \
--enable-debug=no
$ gmake
$ gmake install
$ cd ..
# Apache 와 mod_ssl, PHP3, etc...컴파일하기.(마무리 하기)
$ cd apache_1.3.x
$ SSL_BASE=/path/to/openssl \
./configure \
--prefix=/usr/local/apache
--enable-module=ssl \
--activate-module=src/modules/php4/libphp4.a \
--enable-module=php4
$ make
$ make certificate
$ make install
이제 다 마무리 되었다.
+--------------------------------------------------------+
| You now have successfully built and installed the |
| Apache 1.3 HTTP server. To verify that Apache actually |
| works correctly you now should first check the |
| (initially created or preserved) configuration files |
| |
| /usr/local/apache/conf/httpd.conf
| |
| and then you should be able to immediately fire up |
| Apache the first time by running: |
| |
| /usr/local/apache/bin/apachectl start
| |
| Or when you want to run it with SSL enabled use: |
| |
| /usr/local/apache/bin/apachectl startssl
| |
| Thanks for using Apache. The Apache Group |
| http://www.apache.org/ |
+--------------------------------------------------------+
위 안내 메세지가 제대로 뜬다면 성공한 것이다.
conf파일을 수정하여 기동하자.
$cd /usr/local/apache/bin/apachectl startssl
설치중에 넣었던 패스워드를 넣으면 기동이 된다. ps ax | grep httpd로 확인해 본다.
:)
다음
이전
차례