APACHE2.4 설치기록 및 RPM 목록 (AIX 7.1)

AIX 7.1 환경에서 apache2.4.12 버전을 rpm 설치 성공한 버전을 정리하여 올립니다. 많은 삽질이 있었지만 아래 순서대로 설치성공 했습니다.

사용한 RPM 버전들이 7.1 이전버전들것을 쓰기때문에 다른 AIX 버전에서도 잘 될 것으로 예상됩니다 (해보진 않았어요. 더이상 클린한 서버가 없습니다. -_-)

사용한 RPM 첨부는 추후에…

0. 통신방식

HTTP: 88
HTTPS:8443 -> AJP:8109 (톰켓)

1.RPM설치

/app/apache>rpm -ivh gettext-0.10.40-8.aix5.2.ppc.rpm
gettext ##################################################
/app/apache>
/app/apache>rpm -ivh libiconv-1.14-2.aix5.1.ppc.rpm
libiconv ##################################################
/app/apache>
/app/apache>rpm -ivh bash-4.3-16.aix5.1.ppc.rpm
bash ##################################################
/app/apache>
/app/apache>rpm -ivh apr-1.5.1-1.aix5.2.ppc.rpm
apr ##################################################
/app/apache>
/app/apache>rpm -ivh expat-2.1.0-1.aix5.1.ppc.rpm
expat ##################################################
/app/apache>
/app/apache>rpm -ivh apr-util-1.5.4-1.aix5.1.ppc.rpm
apr-util ##################################################
/app/apache>
/app/apache>rpm -ivh openssl-1.0.1l-1.aix5.1.ppc.rpm
warning: /var/ssl/openssl.cnf saved as /var/ssl/openssl.cnf.rpmorig
openssl ##################################################
/app/apache>
/app/apache>rpm -ivh openldap-2.4.23-0.1.aix5.1.ppc.rpm
openldap ##################################################
/app/apache>
/app/apache>rpm -ivh apr-util-ldap-1.5.4-1.aix5.1.ppc.rpm
apr-util-ldap ##################################################
/app/apache>
/app/apache>rpm -ivh bzip2-1.0.2-4.aix5.1.ppc.rpm
bzip2 ##################################################
/app/apache>
/app/apache>rpm -ivh zlib-1.2.4-2.aix5.1.ppc.rpm
zlib ##################################################
/app/apache>
/app/apache>rpm -ivh info-5.0-2.aix6.1.ppc.rpm
warning: /opt/freeware/info/dir created as /opt/freeware/info/dir.rpmnew
info ##################################################
/app/apache>rpm -ivh readline-5.2-1.aix5.1.ppc.rpm
readline ##################################################
/app/apache>rpm -ivh libidn-1.29-1.aix5.1.ppc.rpm
libidn ##################################################
/app/apache>
/app/apache>rpm -ivh db4-4.7.25-2.aix5.1.ppc.rpm
db4 ##################################################
/app/apache>
/app/apache>rpm -ivh pcre-8.36-1.aix5.1.ppc.rpm
pcre ##################################################
/app/apache>
/app/apache/httpd2.4.12>rpm -ivh httpd-2.4.12-1.aix5.1.ppc.rpm
3004-686 그룹 “apache”이(가) 존재하지 않습니다.
3004-687 사용자 “apache”이(가) 존재하지 않습니다.
httpd ##################################################

2.아파치 기동테스트
– /opt/freeware/etc/httpd/conf/httpd.conf 에서 LISTEN 80 -> 88 로 변경 (선택)
– /opt/freeware/sbin/apachectl start
http://서버ip:88 로 접속테스트시 It Works 가 뜨면 정상구동된 것임

3.SSL, MOD_JK 설치
/app/apache>
/app/apache>rpm -ivh mod_ssl-2.4.12-1.aix5.1.ppc.rpm
mod_ssl ##################################################
Please restart your web server using: ‘/opt/freeware/sbin/apachectl restart’
/app/apache>rpm -ivh mod_jk-ap24-1.2.40-1.aix5.1.ppc.rpm
mod_jk-ap24 ##################################################
Please restart your web server using: ‘/opt/freeware/sbin/apachectl restart’
/app/apache>

4.SSL 인증서 복사
/opt/freeware/etc/httpd/conf>mkdir certs
/opt/freeware/etc/httpd/conf>cd certs
/opt/freeware/etc/httpd/conf/certs>cp SSL파일경로 ./

5.SSL 인증서 설정적용
경로 : /opt/freeware/etc/httpd/conf/extra/httpd-ssl.conf

httpd-ssl.conf 내용수정
Listen 8443
<VirtualHost *:8443>
ServerName 아파치 서버IP:8443

SSLCertificateFile 주석처리
SSLCertificateKeyFile 주석처리

SSLEngine on 밑에 아래 내용 추가
SSLCertificateFile “/opt/freeware/etc/httpd/conf/certs/cert.pem”
SSLCertificateKeyFile “/opt/freeware/etc/httpd/conf/certs/key.pem”
SSLCACertificateFile “/opt/freeware/etc/httpd/conf/certs/RootCA.crt”

JkMountFile conf/extra/uriworkermap.properties

6.MOD_JK 설정적용
JkMountFile conf/extra/uriworkermap.properties 주석해제

7.uriworkermap.properties 작성
/opt/freeware/etc/httpd/conf/extra/uriworkermap.properties
/*=balancer

8.workers.properties
worker.balancer.type=lb 밑에 아래 내용추가
worker.balancer.balance_workers=node1,node2
worker.balancer.sticky_session=true

worker.balancer.balance_workers=node1 주석처리
worker.node1.host=1번 WAS IP
worker.node1.port=8109

#worker.balancer.balance_workers=node2 주석처리
worker.node2.host=2번 WAS IP
worker.node2.port=8109

9. 기동시 트러블슈팅

[에러1]

/opt/freeware/sbin>./apachectl start
AH00526: Syntax error on line 79 of /opt/freeware/etc/httpd/conf/extra/httpd-ssl.conf:
SSLSessionCache: ‘shmcb’ session cache not supported (known names: ). Maybe you need to load the appropriate socache module (mod_socache_shmcb?).
/opt/freeware/sbin>

위 에러일때는 /opt/freeware/etc/conf/httpd.conf 에서 아래 줄 주석해제한다
LoadModule socache_shmcb_module /opt/freeware/lib/httpd/modules/mod_socache_shmcb.so

[에러2]

/opt/freeware/sbin>./apachectl start
AH00526: Syntax error on line 125 of /opt/freeware/etc/httpd/conf/extra/httpd-ssl.conf:
JkMountFile: Can’t find the mount file specified
/opt/freeware/sbin>

uriworkermap.properties 파일을 http/conf/extra 밑으로 이동

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s