AIX 5.3, APACHE2.2 ¼³Ä¡, TOMCAT7 ¿¬µ¿
AIX ¼¹ö¿¡¼ ½Å±Ô ¼ºñ½º¸¦ Á¦°øÇϱâ À§ÇØ ±âÁ¸ À¥¼¹ö¿¡ ¾ÆÆÄÄ¡¸¦ ¼³Ä¡ÇؾßÇÒ ÀÏ ÀÌ »ý°å´Ù.
ÃßÈÄ ´©±º°¡¿¡°Ô µµ¿òÀÌ µÇ±æ ¹Ù¶ó¸ç Á¤¸®¸¦ ÇÔ.
—————————–¾ÆÆÄÄ¡ ¼³Ä¡ ½ÃÀÛ————————————-
ÂüÁ¶»çÀÌÆ® : http://killmewild.blog.me/30135030451
À§ »çÀÌÆ® ºÐ²² Å« µµ¿òÀ» ¹Þ¾Ò½À´Ï´Ù. AIX ÂÊ¿¡¼ µµ¿òÀ» ¸¹ÀÌ ¹ÞÀ»¼ö ÀÖ½À´Ï´Ù.
1. ¾ÆÆÄÄ¡ RPM »çÀÌÆ®¿¡¼ ÇÊ¿äÇÑ ÆÄÀÏ ´Ù¿î·Îµå
http://gnome.bullfreeware.com/aixtoolbox/RPMS/ppc/apache/
httpd-2.2.9-1.aix5.3.ppc.rpm
httpd-devel-2.2.9-1.aix5.3.ppc.rpm
httpd-manual-2.2.9-1.aix5.3.ppc.rpm
httpd-2.2.9-1.aix5.3.ppc.rpm ¸¸ ¼³Ä¡ÇßÀ»¶§´Â ¾Æ·¡¿Í °°Àº ¿À·ù ¹ß»ý
rpm -Uhv httpd-2.2.9-1.aix5.3.ppc.rpm
hostname:/app/apache22] rpm -Uhv httpd-2.2.9-1.aix5.3.ppc.rpm
file /usr/bin/apr-1-config from install of httpd-2.2.9-1 conflicts with file from package apr-devel-1.4.6-1
È졦httpd-devel-2.2.9-1.aix5.3.ppc.rpm ¸ÕÀú ¼³Ä¡Çغ»´Ù
hostname:/app/apache22] rpm -Uhv httpd-devel-2.2.9-1.aix5.3.ppc.rpm
httpd-devel ##################################################
hostname:/app/apache22]
apr-devel-1.4.6-2.aix5.3.ppc.rpm ¿ä³à¼®À» ´Ù¿î¹Þ¾Æ ¼³Ä¡Çغ¸°í Çغ¸ÀÚ
hostname:/app/apache22] rpm -Uhv apr-devel-1.4.6-2.aix5.3.ppc.rpm
apr-devel ##################################################
cannot remove /opt/freeware/lib/apr-1/build – directory not empty
cannot remove /opt/freeware/lib/apr-1 – directory not empty
hostname:/app/apache22]
±×·¡µµ ¾ÈµÊ¡¦
¸Õ°¡ °è¼Ó ½ÃµµÇßÀ¸³ª ¸ðÁ¶¸® ¾ÈµÇ¼¡¦¡¦¡¦.¸Õ°¡ °É¸®Àû °Å¸®´Â°É »èÁ¦Çغ¸±â·Î ÇÔ.
°³¹ß¼¹ö´Ï±ñ ¹Ï°í¡¦
hostname:/app/apache22] rpm -Uhv httpd-2.2.9-1.aix5.3.ppc.rpm
file /usr/bin/apr-1-config from install of httpd-2.2.9-1 conflicts with file from package apr-devel-1.4.6-2
hostname:/app/apache22]
hostname:/app/apache22] rpm -e apr-devel-1.4.6-2
hostname:/app/apache22] rpm -e apr-1.4.6-2
error: removing these packages would break dependencies:
apr >= 1.4.5 is needed by apr-util-1.5.1-1
apr = 1.4.6 is needed by apr-devel-1.4.6-2
libapr-1.so is needed by apr-util-1.5.1-1
hostname:/app/apache22] rpm -e apr-1.4.6-2
error: removing these packages would break dependencies:
apr >= 1.4.5 is needed by apr-util-1.5.1-1
libapr-1.so is needed by apr-util-1.5.1-1
hostname:/app/apache22] rpm -e apr-util-1.5.1-1
error: removing these packages would break dependencies:
apr-util = 1.5.1-1 is needed by apr-util-odbc-1.5.1-1
hostname:/app/apache22] rpm -e apr-util-odbc-1.5.1-1
hostname:/app/apache22] rpm -e apr-util-1.5.1-1
hostname:/app/apache22] rpm -e apr-1.4.6-2
»èÁ¦¼ø¼
apr-util-odbc-1.5.1-1
apr-util-1.5.1-1
apr-1.4.6-2
hostname:/app/apache22] rpm -Uhv httpd-2.2.9-1.aix5.3.ppc.rpm
httpd ##################################################
hostname:/app/apache22]
¿À¿¹!!!
°É¸®Àû °Å¸®´Â ³à¼®µéÀ» ¸ðÁ¶¸® »èÁ¦ÇÏ´Ï ¼³Ä¡°¡ ÀߵȴÙ. ¹®Á¦°¡ ¾øÀ»±î?;;
[hostname:/app/apache22]rpm -q httpd-manual
httpd-manual-2.2.9-1
[hostname:/app/apache22]
[hostname:/app/apache22]
[hostname:/app/apache22]rpm -q httpd-devel
httpd-devel-2.2.9-1
[hostname:/app/apache22]
[hostname:/app/apache22]
[hostname:/app/apache22]rpm -q httpd
httpd-2.2.9-1
[hostname:/app/apache22]
±â»Ý¿¡ °¡µæÂ÷¼ ¾ÆÆÄÄ¡ ±âµ¿¿¡ µé¾î°£´Ù.
[hostname:/home/webadm]cd /usr/bin
[hostname:/usr/bin]./httpd
httpd: bad group name daemon
[hostname:/usr/bin]
[hostname:/opt/freeware/apache/bin]./apachectl start
httpd: bad group name daemon
[hostname:/opt/freeware/apache/bin]
À½¡¦
httpd.conf ÆÄÀÏÀ» ¿¾î ¾Æ·¡Ã³·³ ¼öÁ¤
Listen localhost:2012
#User daemon
#Group daemon
User nobody
Group nobody
[hostname:/opt/freeware/apache/bin]./apachectl start
httpd: Could not reliably determine the server¡¯s fully qualified domain name, using ¼¹öIP for Server
Name
(13)Permission denied: httpd: could not open error log file /opt/freeware/apache/logs/error_log.
Unable to open logs
[hostname:/opt/freeware/apache/bin]
·Î±×ÆÄÀÏ °æ·Î¸¦ ¹Ù²ÙÀÚ
#ErrorLog ¡°logs/error_log¡±
ErrorLog ¡°/app/apache22/logs/error_log¡±
[hostname:/opt/freeware/apache/bin]./apachectl start
httpd: Could not reliably determine the server¡¯s fully qualified domain name, using ¼¹öIP for Server
Name
[hostname:/opt/freeware/apache/bin]
À½ ÀÌ°Ç ¹»±î³ª..
¾Æ·¡Ã³·³ httpd.conf ¿¡ ³Ö¾îÁÖ´Ï ÇØ°áµÊ
ServerName ¼¹öIP:2012
[Thu Oct 16 15:26:29 2014] [error] (13)Permission denied: could not open transfer log file /opt/freeware/apache/logs/access_log.
Unable to open logs
À½¡¦
¾Æ·¡Ã³·³ ÇÏ¿© ÇØ°á
#CustomLog ¡°logs/access_log¡± common
CustomLog ¡°/app/apache22logs/access_log¡± common
[Thu Oct 16 15:29:14 2014] [error] (13)Permission denied: could not create /opt/
freeware/apache/logs/httpd.pid
[Thu Oct 16 15:29:14 2014] [error] httpd: could not log pid to file /opt/freewar
e/apache/logs/httpd.pid
¾Æ·¡Ã³·³ ½Ãµµ
#ServerRoot ¡°/opt/freeware/apache¡±
ServerRoot ¡°/app/apache22¡±
±×·¯³ª ¾Æ·¡Ã³·³ ¿¡·¯ÅÍÁü
httpd: Syntax error on line 55 of /opt/freeware/apache/conf/httpd.conf: Cannot load /app/apache22/modules/mod_
authn_file.so into server: Could not load module /app/apache22/modules/mod_authn_file.so.\nSystem error: No su
ch file or directory
°Á Æ÷±âÇÏ°í ServerRoot ¿øº¹ÈÄ root ·Î ±¸µ¿ÇÏ´Ï ¼º°ø!!!
—————————–¾ÆÆÄÄ¡ ¼³Ä¡ ³¡————————————-
—————————–ÅèÄÏ ¿¬µ¿ ½ÃÀÛ————————————-
Âü°í»çÀÌÆ® : http://arcsit.tistory.com/entry/AIX-AIX61-%EA%B8%B0%EB%B0%98%EC%9D%98-Apache-tomcat-jk2
mod_jk ¿Í ÀÚÄ«¸£Å¸ Ä¿³ØÅÍ´Â ¹«½¼Â÷ÀÌÀϱî..
´Ù¸¥ »çÀÌÆ®¿¡¼´Â mod_jk·Î ¿¬µ¿Ç϶ó´Âµ¥ ¸ÕÁö Àß ¸ð¸£°Ú´Ù.
¾ÆÆÄÄ¡ »çÀÌÆ®¿¡¼ mod_jk2 ÆÄÀÏÀ» ¹ÞÀÚ
gzip -d jakarta-tomcat-connectors-jk2-src-current.tar.gz
tar -xvf jakarta-tomcat-connectors-jk2-src-current.tar
cd jakarta-tomcat-connectors-jk2-2.0.4-src
cd jk
cd native2
./configure –with-apxs=/usr/local/apache/httpd-2.2.9/bin/apxs
Àß µÇ´Â µí ÇÏ´Ù°¡ ¸·ÆÇ¿¡ ¾Æ·¡¿Í °°Àº ¿¡·¯°¡ ?s
configure: error: Invalid location for apxs: ¡®/usr/local/apache/httpd-2.2.9/bin/apxs¡¯
apxs ¶õ ÆÄÀÏÀ» ã´Â°É·Î º¸¾Æ ¾îµò°¡¿¡ ÀÖÀ»°Í °°¾Æ ½ÇÁ¦ ¾ÆÆÄÄ¡ ¼³Ä¡À§Ä¡¿¡ °¡º¸´Ï ÀÖÀ½. ±×·¡¼ ¾Æ·¡Ã³·³ Àç½Ãµµ
./configure –with-apxs=/opt/freeware/apache/bin/apxs
´Ù½Ã ¿¡·¯
configure: error: Do not use –with-apxs but –with-apxs2
¾Æ·¡Ã³·³ Àç½Ãµµ
./configure –with-apxs2=/opt/freeware/apache/bin/apxs
»õ·Î¿î ¿¡·¯
configure: error: jk2 and apache compilers must be the same
Æ÷±â ±¸¹öÀüÀÇ jk·Î Çغ¸ÀÚ
jakarta-tomcat-connectors-current-src.tar.gz
cd jakarta-tomcat-connectors-1.2.14.1-src/jk/native
./configure –with-apxs=/opt/freeware/apache/bin/apxs
¾Ñ µÈµíÇÏ´Ù
config.status: executing depfiles commands
±×·¸Å¸¸é make °úÁ¤ ¤¡¤¡
make && make install
Making all in common
/opt/freeware/apache/build/libtool –silent –mode=compile gcc -I/opt/freeware/apache/include -g -O2 –
g -qHALT=E -DHAVE_APR -I/opt/freeware/apache/include -I/opt/freeware/apache/include -g -O2 -U__STR__ -D_THREA
D_SAFE -D_USE_IRS -D_LARGEFILE64_SOURCE -I /include -I /include/ -c ./jk_ajp12_worker.c -o ./jk_ajp12_worker.l
o
/opt/freeware/apache/build/libtool: line 390: /usr/linux/bin/sed: No such file or directory
/opt/freeware/apache/build/libtool: line 789: /usr/linux/bin/sed: No such file or directory
*** Warning: inferring the mode of operation is deprecated.
*** Future versions of Libtool will require –mode=MODE be specified.
/opt/freeware/apache/build/libtool: line 1100: /usr/linux/bin/sed: No such file or directory
/opt/freeware/apache/build/libtool: line 1100: /usr/linux/bin/sed: No such file or directory
/opt/freeware/apache/build/libtool: line 1100: /usr/linux/bin/sed: No such file or directory
/opt/freeware/apache/build/libtool: line 1100: /usr/linux/bin/sed: No such file or directory
/opt/freeware/apache/build/libtool: line 1100: /usr/linux/bin/sed: No such file or directory
/opt/freeware/apache/build/libtool: line 1100: /usr/linux/bin/sed: No such file or directory
/opt/freeware/apache/build/libtool: line 1100: /usr/linux/bin/sed: No such file or directory
/opt/freeware/apache/build/libtool: line 1100: /usr/linux/bin/sed: No such file or directory
/opt/freeware/apache/build/libtool: line 1100: /usr/linux/bin/sed: No such file or directory
/opt/freeware/apache/build/libtool: line 1100: /usr/linux/bin/sed: No such file or directory
/opt/freeware/apache/build/libtool: line 1100: /usr/linux/bin/sed: No such file or directory
/opt/freeware/apache/build/libtool: line 1100: /usr/linux/bin/sed: No such file or directory
/opt/freeware/apache/build/libtool: line 1100: /usr/linux/bin/sed: No such file or directory
/opt/freeware/apache/build/libtool: line 1100: /usr/linux/bin/sed: No such file or directory
/opt/freeware/apache/build/libtool: line 1100: /usr/linux/bin/sed: No such file or directory
/opt/freeware/apache/build/libtool: line 1100: /usr/linux/bin/sed: No such file or directory
/opt/freeware/apache/build/libtool: line 1100: /usr/linux/bin/sed: No such file or directory
/opt/freeware/apache/build/libtool: line 1100: /usr/linux/bin/sed: No such file or directory
/opt/freeware/apache/build/libtool: line 1100: /usr/linux/bin/sed: No such file or directory
/opt/freeware/apache/build/libtool: line 1100: /usr/linux/bin/sed: No such file or directory
/opt/freeware/apache/build/libtool: line 1153: /usr/linux/bin/sed: No such file or directory
: compile: cannot determine name of library object from `¡¯
make: The error code from the last command is 1.
Stop.
make: The error code from the last command is 1.
Stop.
Á¦±æ libtool ÀÌ·±°Ô ÇÊ¿äÇÑ°¡ º¸´Ù
´Ù½Ã °Ë»ö ¤¡¤¡
http://gnome.bullfreeware.com/aixtoolbox/RPMS/ppc/libtool/libtool-2.2.6b-3.aix5.3.ppc.rpm
ÆÄÀÏ ¾÷·Îµå ÈÄ rpm ¼³Ä¡
ÇÏÁö¸¸ ÀÌ¹Ì ¼³Ä¡°¡ µÇÀÖÀ½
¿¡·¯·Î±×¸¦ º¸´Ï Á»´õ ÃֽŹöÀüÀ» ±ò¶ó, ÇØ´ç µð·ºÀÌ ¾ø´Ù À̼Ҹ®À¦
aix 5.3¿ë ÃֽŹöÀüÀÌ ÀÌ¹Ì ±ò¸°°Í °°Àºµ¥¡¦±×·³ µð·ºÅ丮¸¦ ¸¸µé¾îº¼±î..
ÇØ´ç µð·ºÀ» °¡º¸´Ï ´Ùµé ¸µÅ©°¡ °É·ÈÀ» »ÓÀÌ´Ù. sed¶õ ÆÐÅ°Áö°¡ ÇÊ¿äÇÑ°Í °°¾Æ °Ë»öÇغ¸´Ï sed¶õ ÆÐÅ°Áö°¡ ÀÖ´Ù.
http://www.bullfreeware.com/affichage.php?id=1270
sed-4.2.1-3.aix5.3.ppc.rpm
hostname:/app/apache22] rpm -Uhv sed-4.2.1-3.aix5.3.ppc.rpm
sed ##################################################
hostname:/app/apache22]
¿ÀÄÉ mod_jk make ½Ã¿¡ ¹ß»ýÇß´ø À§Ä¡¿¡ sed °¡ »ý¼ºµÇ¾úÀ½
hostname:/usr/linux/bin] ls -al -rt
total 8
lrwxrwxrwx 1 root system 26 Jul 5 2007 zcat@ -> /usr/opt/freeware/bin/zcat*
lrwxrwxrwx 1 root system 27 Jul 5 2007 patch@ -> /usr/opt/freeware/bin/patch*
lrwxrwxrwx 1 root system 30 May 18 2009 make@ -> ../../../opt/freeware/bin/make*
lrwxrwxrwx 1 root system 26 Jun 7 2012 cpp@ -> ../../opt/freeware/bin/cpp*
lrwxrwxrwx 1 root system 28 Jun 7 2012 m4@ -> ../../../opt/freeware/bin/m4*
lrwxrwxrwx 1 root system 31 Jun 19 2013 iconv@ -> ../../../opt/freeware/bin/iconv*
lrwxrwxrwx 1 root system 32 Jun 19 2013 ssleay@ -> ../../../opt/freeware/bin/ssleay*
lrwxrwxrwx 1 root system 33 Jun 19 2013 openssl@ -> ../../../opt/freeware/bin/openssl*
lrwxrwxrwx 1 root system 34 Jun 19 2013 c_rehash@ -> ../../../opt/freeware/bin/c_rehash*
drwxr-xr-x 6 root system 256 Jun 19 2013 ../
lrwxrwxrwx 1 root system 29 Oct 16 17:31 sed@ -> ../../../opt/freeware/bin/sed*
drwxr-xr-x 2 root system 4096 Oct 16 17:31 ./
´Ù½Ã make ¤¡¤¡
Making all in common
/opt/freeware/apache/build/libtool –silent –mode=compile gcc -I/opt/freeware/apache/include -g -O2 –
g -qHALT=E -DHAVE_APR -I/opt/freeware/apache/include -I/opt/freeware/apache/include -g -O2 -U__STR__ -D_THREA
D_SAFE -D_USE_IRS -D_LARGEFILE64_SOURCE -I /include -I /include/ -c ./jk_ajp12_worker.c -o ./jk_ajp12_worker.l
o
libtool: compile: unable to infer tagged configuration
libtool: compile: specify a tag with `–tag¡¯
make: The error code from the last command is 1.
Stop.
make: The error code from the last command is 1.
Stop.
ÀÌ°Ç ¹¹³Ä¡¦
jakarta-tomcat-connectors-1.2.14.1-src/jk/native/Makefile ÆÄÀÏÀ» ¿¾î ¾Æ·¡¿Í °°ÀÌ ¼öÁ¤
as-is
LIBTOOL = /opt/freeware/apache/build/libtool –silent
to-be
LIBTOOL = /opt/freeware/apache/build/libtool –silent –tag=CXX
ÀüÇô º¯È°¡ ¾ø´Ù.
./configure –with-apxs=/opt/freeware/apache/bin/apxs
configure: creating libtool
appending configuration tag ¡°CXX¡± to libtool
checking for ld used by g++¡¦ /usr/bin/ld
Æ÷±â
´Ù¸¥ »çÀÌÆ®¿¡¼ ã¾Æ¼ Çغ»´Ù
»çÀÌÆ® : http://andang72.blogspot.kr/2012/07/aix-6-apache-tomcat.html
tomcat-connectors-1.2.40-src.tar.gz À» ¹Þ¾Æ¼ ¼³Ä¡
./configure –with-apxs=/opt/freeware/apache/bin/apxs
µÈ´Ù¡¦ ¤Ð¤Ð
/opt/freeware/apache/conf/httpd.conf ÆÄÀÏ¿¡ ¾Æ·¡ ³»¿ë Ãß°¡
LoadModule jk_module modules/mod_jk.so
<IfModule jk_module>
JkWorkersFile conf/workers.properties
JkLogFile logs/mod_jk.log
JkLogLevel info
JkMountFile conf/uriworkermap.properties
</IfModule>
µ¿ÀÏÇÑ µð·ºÅ丮¿¡ workers.properties »ý¼º ÈÄ ¾Æ·¡¿Í °°ÀÌ ³»¿ë ±âÀç
worker.list=worker1
worker.worker1.port=8009
worker.worker1.host=localhost
worker.worker1.type=ajp13
worker.worker1.lbfactor=1
¿ª½Ã µ¿ÀÏÇÑ µð·ºÅ丮¿¡ uriworkermap.properties ÆÄÀÏ »ý¼º ÈÄ ¾Æ·¡¿Í °°ÀÌ ³»¿ë ±âÀç
/*.do=worker1
/*.jsp=worker1
/*.html=worker1
/*.png=worker1
/*=worker1
ÀÌ ¼³Á¤µéÀº ¿äû¹ÞÀº ÁÖ¼Ò¸¦ µÞ´Ü ÅèÄÏ¿¡°Ô Àü´ÞÇÒ ³à¼®µéÀ» ¼¼ÆÃÇÏ´Â Á¤º¸·Î º¸ÀδÙ.
ºê¶ó¿ìÁ®¿¡¼ ¼¹öIP:Æ÷Æ® ·Î Ä¡´Ï ¾ÆÆÄÄ¡¿¡¼ It work¡¯s ¶õ ȸéÀÌ ¶á´Ù!!
´Ù½Ã ¼¹öIP:Æ÷Æ®/index.jsp ¸¦ Ä¡´Ï ÅèÄÏÀÇ ±âº» ȸéÀÌ À߶á´Ù!! ¤Ð¤Ð
¼º°ø~~
—————————–ÅèÄÏ ¿¬µ¿ ³¡—————————————-
À§¿¡´Â RPMÀ¸·Î ¼³Ä¡¸¦ Çߴµ¥ °á°úÀûÀ¸·Î´Â ¾ÆÆÄÄ¡ÀÇ ¼Ò½ºÄڵ带 °¡Áö°í AIX¿¡ Æ÷ÆÃÇÏ¿© ¼³Ä¡ÇÏ´Â °ÍÀÌ °¡Àå ÁÁ¾Æº¸ÀδÙ
Àß Á¤¸®°¡ µÇÀÖ´Â »çÀÌÆ®
http://andang72.blogspot.kr/2012/07/aix-6-apache-tomcat.html