Apache 1.3.x 컴파일 메뉴얼 (Ver 1.0)


Official distribution site : http://jkkang.net/
Technical Info : jkkang65@hanmail.net

Last Updated in July 12, 2006
Written by Kang Jul Ki



   본 문서는 AIX 5.2에서 Apache 1.3.x 버전을 컴파일하는 방법을 소개하는 문서이다.

S/WVersion비고
IBM AIX5.2ML #3 or higher
Apache1.3.36
GNU gcc4.1.1or higher
GNU make3.803.75 or higher
GNU tar1.13or higher


   위에서 higher란 말은 그 이상에서도 컴파일이 될수 있음을 의미한다. 옆에 있는 버전은 필자가 테스트한 환경을 의미한다. 각각의 디렉토리및 경로는 필자의 경우를 예로 들은 것이므로 자신들의 환경에 맞추어서 약간씩 변경할 수도 있다.



1. Apache 1.3.36 컴파일 환경


[root@www] /usr/local> id
uid=0(root) gid=0(system) groups=2(bin),3(sys),7(security),8(cron),10(audit),11(lp)

[root@www] /usr/local> cat ~/.profile|more
PATH=/usr/local/bin:/usr/bin:/etc:/usr/sbin:/usr/ucb:$HOME/bin:/usr/bin/X11:/sbin:.

[root:www] /usr/local> gcc -v
Using built-in specs.
Target: powerpc-ibm-aix5.2.0.0
Configured with: ../gcc-4.1.1/configure --disable-aix64 --disable-nls
Thread model: aix
gcc version 4.1.1

[root@www] /usr/local> make -v
GNU Make version 3.79.1, by Richard Stallman and Roland McGrath.
Built for powerpc-ibm-aix4.3.2.0
Copyright (C) 1988, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 2000
        Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.

Report bugs to .

[root@www] /usr/local> gzip --version
gzip 1.2.4 (18 Aug 93)
Compilation options:
DIRENT UTIME STDC_HEADERS HAVE_UNISTD_H

[root@www] /usr/local> tar --version
tar (GNU tar) 1.13

Copyright (C) 1988, 92,93,94,95,96,97,98, 1999 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Written by John Gilmore and Jay Fenlason.

[root@www] /usr/local> ls -l apache_1.3.36.tar.gz
-rw-r-----   1 root     system      2477854 Jul 12 15:04 apache_1.3.36.tar.gz




2. Apache 1.3.36 압축풀기


[root@www] /usr/local> gzip -dc apache_1.3.36.tar.gz | tar xvf -

또는 GNU tar는 다음과 같이 한꺼번에 gzip을 사용하지 않고 풀어도 된다.
[root@www] /usr/local> tar zxvf apache_1.3.36.tar.gz

[root@www] /usr/local/apache> ln -s apache_1.3.36 apache

Tip) apache는 나중에 다시 소스컴파일을 할수 있도록 위와같이 소스를 그대로 남겨놓는편이 좋다.




3. 컴파일 및 인스톨


[root@www] /usr/local> cd apache_1.3.36

[root@www] /usr/local/apache_1.3.36> ./configure --enable-module=so

Tip) --enable-module=so 은 DSO(Dynamic Shared Object) 모듈로 컴파일하는 옵션이다. PHP, Tomcat을 나중에 연동할때 이 옵션을 사용하게 된다. 
DOS 모듈로 컴파일하는 방법의 장점은 많다. 이 부분은 인터넷을 참고하기 바란다. --prefix=/usr/local/apache 를 보통 하는데, 이부분은 생략을 해도
된다. --prefix는 Apache을 인스톨하고자 하는 위치를 말하는데, 기본적으로 /usr/local/apache에 인스톨이 된다. 다른곳에 인스톨을 하고자 한다면
--prefix= 를 설정하기 바란다.

Configuring for Apache, Version 1.3.36
 + using installation path layout: Apache (config.layout)
Creating Makefile
Creating Configuration.apaci in src
Creating Makefile in src
 + configured for AIX 5.2 platform
 + setting C compiler to gcc
 + setting C pre-processor to gcc -E
 + using "tr [a-z] [A-Z]" to uppercase
 + checking for system header files
 + adding selected modules
 + using builtin Expat
 + using -lld for vendor DSO support
 + checking sizeof various data types
 + doing sanity check on compiler and options
Creating Makefile in src/support
Creating Makefile in src/regex
Creating Makefile in src/os/unix
Creating Makefile in src/ap
Creating Makefile in src/main
Creating Makefile in src/lib/expat-lite
Creating Makefile in src/modules/standard

[root@www] /usr/local/apache_1.3.36> make

[root@www] /usr/local/apache_1.3.36> make install

[root@www] /usr/local/apache_1.3.36> cd conf
[root@www] /usr/local/apache_1.3.36> vi httpd.conf
...
#ServerName www.example.com
ServerName www.jkkang.net
...
와 같이 ServerName을 준다.


[root@www] /usr/local/apache/bin> ./apachectl start
./apachectl start: httpd started

[root@www] /usr/local/apache/bin> ps -ef|grep httpd
  nobody 13372 17890   0 15:11:32      -  0:00 /usr/local/apache/bin/httpd 
  nobody 16686 17890   0 15:11:32      -  0:00 /usr/local/apache/bin/httpd 
  nobody 17542 17890   0 15:11:32      -  0:00 /usr/local/apache/bin/httpd 
    root 17890     1   0 15:11:32      -  0:00 /usr/local/apache/bin/httpd 
  nobody 18768 17890   0 15:11:32      -  0:00 /usr/local/apache/bin/httpd 
  nobody 19036 17890   0 15:11:32      -  0:00 /usr/local/apache/bin/httpd 




아~~~ 잠온다...
필자의 컴파일 문서가 Apache 1.3.x를 설치하는 분들께 많은 도움이 되었으면 합니다. 그리고, 문서에 오류가 있으면 저에게 멜로 알려주시면 고맙겠습니다.



Copyleft (c) 1996 - 2006, Kang Jul Ki. All rights were not reserved.
Powered by http://jkkang.net since 1996