[웹서버] apache 2.x 64bit 컴파일 시 발생 에러 해결

64bit OS에서 compile 설치시 유의사항

httpd2.2 configure 시에 아래와 같은 에러가 나면

configure: error: Cannot use an external APR-util with the bundled APR

configure 에 –with-included-apr  이 옵션을 집어넣고 설치디렉토리의 APR을 참조하도록 설정해줍니다.

$>./configure –prefix=/data/apache2 –with-included-apr

64비트 버전에서 아파치를 설치하기 전에 먼저 해 주어야 할 작업이 있다.

make 명령어로 컴파일 시 아래와 같은 에러 메시지를 내기 때문에 해주어야 하는 작업이다.

/usr/lib/libdb-4.3.so: could not read symbols: File in wrong format

/usr/lib/libexpat.so: could not read symbols: File in wrong format

에러의 원인은 64비트 환경에서 32비트용 소스를 가져다가 설치하기 때문이다. 컴파일 도구와 관련된 심볼릭 링크 파일을 찾지 못한다고 나오고 있다. 아래와 같이 해결한다.

# mv /usr/lib/libexpat.so /usr/lib/libexpat.so.bak

# ln -s /lib64/libexpat.so.0.5.0 /usr/lib/libexpat.so

# mv /usr/lib/libdb-4.3.so /usr/lib/libdb-4.3.so.bak

# ln -s /lib64/libdb-4.3.so /usr/lib/libdb-4.3.so

apache2 모듈 전부 DSO로 적재.

–enable-mods-shared=all 옵션을 주게 되면 기본 포함된 모듈들마저 몽땅 DSO로 적재됩니다

http://httpd.apache.org/docs/2.2/dso.html

apache SSL 사설 인증서 발급

개인키 생성

openssl genrsa -des3 -out wlo.key 1024

csr 키 생성

openssl req -new -key wlo.key -out wlo.csr

개인키에서 패스워드 삭제하기

openssl rsa -in wlo.key -out wlo.key.insecure

mv wlo.key server.key.secure

mv server.key.insecure server.key

CA 인증서 생성

openssl x509 -req -days 1280 -in wlo.csr -signkey wlo.key -out wlo.crt

process 관리.

apache 에서 프로세스가 너무 많이 생성되는경우

KeepAlive 설정부분을 확인해본다.

on 으로 해두면 1사람당 1개의 프로세스에 붙게되므로 문제가 됨..

KeepAlive Off

쉘에서는 이렇게 해서 httpd 프로세스 갯수를 셀수 있다.

$>ps -eaf | grep httpd | wc -l

서진우

슈퍼컴퓨팅 전문 기업 클루닉스/ 상무(기술이사)/ 정보시스템감리사/ 시스존 블로그 운영자

You may also like...

2 Responses

  1. 2022년 6월 21일

    3choleric

  2. 2023년 1월 26일

    2irregularity

페이스북/트위트/구글 계정으로 댓글 가능합니다.