Apache 1.3.x ÄÄÆÄÀÏ ¸Þ´º¾ó (Ver 1.0)


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

Last Updated in September 22, 2003
Written by Kang Jul Ki



   º» ¹®¼­´Â AIX 5.1¿¡¼­ Apache 1.3.x ¹öÀüÀ» ÄÄÆÄÀÏÇÏ´Â ¹æ¹ýÀ» ¼Ò°³ÇÏ´Â ¹®¼­ÀÌ´Ù.

S/WVersionºñ°í
IBM AIX5.1ML #3 or higher
Apache1.3.28
GNU gcc3.3.1or higher
GNU make3.803.75 or higher
GNU tar1.13or higher


   À§¿¡¼­ higher¶õ ¸»Àº ±× À̻󿡼­µµ ÄÄÆÄÀÏÀÌ µÉ¼ö ÀÖÀ½À» ÀǹÌÇÑ´Ù. ¿·¿¡ ÀÖ´Â ¹öÀüÀº ÇÊÀÚ°¡ Å×½ºÆ®ÇÑ È¯°æÀ» ÀǹÌÇÑ´Ù. °¢°¢ÀÇ µð·ºÅ丮¹× °æ·Î´Â ÇÊÀÚÀÇ °æ¿ì¸¦ ¿¹·Î µéÀº °ÍÀ̹ǷΠÀڽŵéÀÇ È¯°æ¿¡ ¸ÂÃ߾ ¾à°£¾¿ º¯°æÇÒ ¼öµµ ÀÖ´Ù.



1. Apache 1.3.28 ÄÄÆÄÀÏ È¯°æ


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

www:/usr/local> more ~/.profile
PATH=/usr/local/bin:/usr/bin:/etc:/usr/sbin:/usr/ucb:$HOME/bin:/usr/bin/X11:/sbin:/usr/java131/bin:/usr/vac/bin:/usr/vac
pp/bin:.

www:/usr/local> gcc -v
Reading specs from /usr/local/lib/gcc-lib/powerpc-ibm-aix5.1.0.0/3.3.1/specs
Configured with: ../gcc-3.3.1/configure --disable-nls
Thread model: aix
gcc version 3.3.1

www:/usr/local> make -v
GNU Make 3.80
Copyright (C) 2002  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.

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

www:/usr/local> tar --version
tar (GNU tar) 1.13.25
Copyright ?2001 Free Software Foundation, Inc.
This program comes with NO WARRANTY, to the extent permitted by law.
You may redistribute it under the terms of the GNU General Public License;
see the file named COPYING for details.
Written by John Gilmore and Jay Fenlason.

www:/usr/local> ls -l apache_1.3.28.tar.gz
-rw-r-----   1 root     system      2388111 Aug 10 16:01 apache_1.3.28.tar.gz




2. Apache 1.3.28 ¾ÐÃàÇ®±â


www:/usr/local> gzip -dc apache_1.3.28.tar.gz | tar xvf -

¶Ç´Â GNU tar´Â ´ÙÀ½°ú °°ÀÌ ÇѲ¨¹ø¿¡ gzipÀ» »ç¿ëÇÏÁö ¾Ê°í Ç®¾îµµ µÈ´Ù.
www:/usr/local> tar zxvf apache_1.3.28.tar.gz

www:/usr/local> mv apache_1.3.28 apache
www:/usr/local> cd apache

Tip) apache´Â ³ªÁß¿¡ ´Ù½Ã ¼Ò½ºÄÄÆÄÀÏÀ» ÇÒ¼ö ÀÖµµ·Ï À§¿Í°°ÀÌ ¼Ò½º¸¦ ±×´ë·Î ³²°Ü³õ´ÂÆíÀÌ ÁÁ´Ù.




3. ÄÄÆÄÀÏ ¹× ÀνºÅç


www:/usr/local/apache> ./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= ¸¦ ¼³Á¤Çϱ⠹ٶõ´Ù.

www:/usr/local/apache> make
...
gcc  -DAIX=510 -U__STR__ -DAIX_BIND_PROCESSOR -DUSE_HSREGEX -DUSE_EXPAT -I./lib/expat-lite `./apaci` -lm -lpthread  -Wl,
-bE:./support/httpd.exp \
      -o httpd buildmark.o modules.o modules/standard/libstandard.a main/libmain.a ./os/unix/libos.a ap/libap.a regex/li
bregex.a lib/expat-lite/libexpat.a  -lld -lm
main/libmain.a(http_main.o)(.pr+0x658):http_main.c: undefined reference to `.pthread_mutex_unlock'
main/libmain.a(http_main.o)(.pr+0x98c):http_main.c: undefined reference to `.pthread_mutexattr_init'
main/libmain.a(http_main.o)(.pr+0x9cc):http_main.c: undefined reference to `.pthread_mutexattr_setpshared'
main/libmain.a(http_main.o)(.pr+0xa10):http_main.c: undefined reference to `.pthread_mutex_init'
main/libmain.a(http_main.o)(.pr+0xb44):http_main.c: undefined reference to `.pthread_mutex_lock'
main/libmain.a(http_main.o)(.pr+0xbf8):http_main.c: undefined reference to `.pthread_mutex_unlock'
collect2: ld returned 1 exit status
make[2]: *** [target_static] Error 1
make[2]: Leaving directory `/usr/local/1/apache/src'
make[1]: *** [build-std] Error 2
make[1]: Leaving directory `/usr/local/1/apache'
make: *** [build] Error 2

¿Í °°ÀÌ ÄÄÆÄÀÏÀÌ Àß µÇ´Ù°¡ .pthread_mutex °ü·Ã Link ¿¡·¯¸¦ »Ñ¸®°í httpd ½ÇÇàÆÄÀÏÀ» ¸¸µå´Â ÃÖÁ¾´Ü°è¿¡¼­ Áß´ÜÀÌ µÇ¾ú´Ù. ÇÊÀÚ°¡ ¸¸µé¾ú´ø
AIX 4.3.3 & gcc-2.95.3¿¡¼­´Â ÀÌ·± ÀÏÀÌ ¾ø¾ú´Âµ¥, AIX 5.1 & gcc-3.3.1·Î Çß´õ´Ï ÀÌ·± ¹®Á¦°¡ ¹ß»ýÀ» Çß´Ù. ¾Æ¸¶µµ Apache °³¹ßÀÚ ±×·ì·ì¿¡¼­
AIX 5.1 & gcc-3.3.1·Î Å×½ºÆ®¸¦ Çغ¸Áö ¾ÊÀºµí ½Í´Ù. ÀÌ·±°æ¿ì´Â Link ¿¡·¯°¡ ¹ß»ýÇÑ ÀÌÀ¯¸¦ ã¾ÆºÁ¾ß ÇÑ´Ù. ÇÊÀÚÀÇ °æ¿ìµµ ¸î½Ã°£À» °í¹ÎÀ» Çß´Â
µ¥, °á±¹Àº ¿øÀÎÀ» ã¾Ò´Ù. Unix C/C++ ÇÁ·Î±×·¡¹Ö °æÇèÀÌ ÀÖ´Â »ç¿ëÀÚ¶ó¸é Makefile À» ºÐ¼®Çغ¸¸é ½±°Ô ãÀ»¼ö ÀÖÀ»°ÍÀÌ´Ù. ¹æ¹ýÀº ´ÙÀ½°ú °°´Ù.

www:/usr/local/apache> vi src/Makefile
À» ¿­¾î¼­ 55¹ø° ¶óÀÎÀÇ ´ÙÀ½À» ¹Ù²Û´Ù.

LIBS1=  -lld -lm
À» 
LIBS1=  -lld -lm -lpthread
À¸·Î ¹Ù²Ù°í ´Ù½Ã ÄÄÆÄÀÏÀ» ÇÑ´Ù. -lpthreadÀÇ Àǹ̴ C/C++ ÇÁ·Î±×·¡¹Ö°æÇèÀÌ ÀִºÐÀ̶ó¸é ¾Ë°ÚÁö¸¸, ÄÄÆÄÀÏÀÌ ³¡³ª°í ½ÇÇàÆÄÀÏÀ» ¸¸µå´Â ´Ü°èÀÎ
Link ´Ü°è¿¡¼­ UnixÀÇ ¶óÀ̺귯¸®ÀÎ libpthread.a ÆÄÀÏ¿¡¼­ °ü·Ã¸ðµâÀ» Âü°íÇ϶ó´Â ¶æÀÌ´Ù.

www:/usr/local/apache> make
www:/usr/local/apache> make install
www:/usr/local/apache> ./bin/apachectl start
www:/usr/local/apache> ps -ef|grep httpd
    root 30442     1   0 12:23:58      -  0:00 /usr/local/apache/bin/httpd
  nobody 38366 30442   0 12:25:30      -  0:00 /usr/local/apache/bin/httpd
  nobody 38458 30442   0 12:25:30      -  0:00 /usr/local/apache/bin/httpd
  nobody 40856 30442   0 23:17:59      -  0:00 /usr/local/apache/bin/httpd
  nobody 41300 30442   0 12:25:30      -  0:00 /usr/local/apache/bin/httpd
  nobody 41544 30442   0 12:25:30      -  0:00 /usr/local/apache/bin/httpd
  nobody 42620 30442   0 12:25:30      -  0:00 /usr/local/apache/bin/httpd




¾Æ~~~ Àá¿Â´Ù...
ÇÊÀÚÀÇ ÄÄÆÄÀÏ ¹®¼­°¡ Apache 1.3.x¸¦ ¼³Ä¡ÇÏ´Â ºÐµé²² ¸¹Àº µµ¿òÀÌ µÇ¾úÀ¸¸é ÇÕ´Ï´Ù. ±×¸®°í, ¹®¼­¿¡ ¿À·ù°¡ ÀÖÀ¸¸é Àú¿¡°Ô ¸á·Î ¾Ë·ÁÁÖ½Ã¸é °í¸¿°Ú½À´Ï´Ù.



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