[CentOS] apache 2.4.1 소스 컴파일 설치

눈에 띄는 부분이 MPM 이 기존엔 prefork,worker 방식을 지원 했다면 이번 2.4.1 버전에서는 정식으로beos, leader, mpmt_os2, perchild, prefork, threadpool, worker 등의 이벤트 동작방식을 지원 하네요.


그리고 apr, apr-util을 한번만 컴파일 해놓으면 아파치 버전업 할때 다시 컴파일을 하지 않아도 되는군요.물론 아파치 재컴파일시 apr, apr-util의 prefix 위치를 지정 해 주어야 합니다...^^;;


아직 성능적으로는 테스트 중이라 뭐라 말씀 드릴수없으나 아파치구동시 httpd-vhosts.conf, httpd-default.conf, 등이 httpd.conf 파일내에 위치한 LoadModule 과 연동이 되어야 정상적으로 start 가 됩니다. 그리고 httpd-vhosts.conf 에서는 NameVirtualHost *:80 가 없어 졌네요....^^
 
우선 필요한 라이브러리를 먼저 설치 해주신후에 아래 설치 방법을 진행 해 주세요....^^
필요한 소스와 라이브러리 설치는 이전에 리포팅한 게시물을 참조 하시면 되겠습니다.


@ 아파치 설치전 apr 설치
# cd /usr/local/src
# wget http://archive.apache.org/dist/apr/apr-1.4.6.tar.gz
# wget http://archive.apache.org/dist/apr/apr-util-1.4.1.tar.gz
# tar zxvf apr-1.4.6.tar.gz
# cd /usr/local/src/apr-1.4.6
# ./configure --prefix=/usr/local/apr
# make;make install
# cd /usr/local/src
# tar zxvf apr-util-1.4.1.tar.gz
# cd /usr/local/src/apr-util-1.4.1
# ./configure --prefix=/usr/local/apr-util --with-apr=/usr/local/apr
# make;make install

@ 아파치 설치 2.4.1
# cd /usr/local/src
# wget ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-8.30.tar.gz
# tar zxvf pcre-8.30.tar.gz
# cd pcre-8.30
# make clean;./configure --prefix=/usr/local;make -j4;make instal
# cd /usr/local/src
# wget http://apache.ziply.com//httpd/httpd-2.4.1.tar.gz
# wget http://linux-files.com/httpd/httpd-2.4.1.tar.gz
# tar zxvf httpd-2.4.1.tar.gz
# cd httpd-2.4.1
# make clean
# vi server/mpm/prefork/prefork.c
@ #define DEFAULT_SERVER_LIMIT 256 ##ulimit -a max user processes 값을 넘지 않도록 256의 배수만큼 주정해준다. Ex) 32768
# ./configure --prefix=/usr/local/apache --enable-rule=SHARED_CORE --enable-so --enable-rewrite --enable-vhost-alias --enable-ssl --enable-proxy --enable-shared=max --enable-modules=shared --enable-mods-shared=all --with-apr=/usr/local/apr --with-apr-util=/usr/local/apr-util
# make; make install
# cp /usr/local/apache/bin/apachectl /etc/init.d/httpd
@ chkconfig를 이용해서 자동실행 등록해야 하지만 이전에 실행 스크립트 파일에 아래 내용 추가가 선행되어야 한다.
# vi /etc/init.d/httpd
-httpd 파일
#chkconfig: 2345 90 90
#description: init file for Apache server daemon
#processname: /usr/local/apache/bin/apachectl
#config: /usr/local/apache/conf/httpd.conf
#pidfile: /usr/local/apache/logs/httpd.pid
이를 추가한다.
# chkconfig --add httpd
# chkconfig --list | grep httpd


@ 아파치 설정

# vi /usr/local/apache/conf/httpd.conf

LoadModule vhost_alias_module modules/mod_vhost_alias.so <-- 주석제거
LoadModule userdir_module modules/mod_userdir.so <-- 주석제거
LoadModule slotmem_shm_module modules/mod_slotmem_shm.so <-- 주석제거

@ 접속이 안될경우 80포트 열어 주어야 한다.

#vi /etc/sysconfig/iptables
-A INPUT -m state --state NEW -m tcp -p tcp --dport 80 -j ACCEPT =>추가
# /etc/init.d/iptables restart 또는 service iptables restart
 
 
|

댓글 2개

마침 서버세팅을 해야되는데 감사합니다.!
나누미싸이트 가입시에 가입메일이 안오네요 흠 늦게 오는건가요??
댓글을 작성하시려면 로그인이 필요합니다.

프로그램

태그 필터 (최대 3개) 전체 개발자 소스 기타 mysql 팁자료실 javascript php linux flash 정규표현식 jquery node.js mobile 웹서버 os 프로그램 강좌 썸네일 이미지관련 도로명주소 그누보드5 기획자 견적서 계약서 기획서 마케팅 제안서 seo 통계 서식 통계자료 퍼블리셔 html css 반응형 웹접근성 퍼블리싱 표준화 반응형웹 홈페이지기초 부트스트랩 angularjs 포럼 스크린리더 센스리더 개발자톡 개발자팁 퍼블리셔톡 퍼블리셔팁 기획자톡 기획자팁 프로그램강좌 퍼블리싱강좌
+
제목 글쓴이 날짜 조회
13년 전 조회 1,266
13년 전 조회 2,189
13년 전 조회 1,384
13년 전 조회 5,734
13년 전 조회 1,374
13년 전 조회 1,777
13년 전 조회 1,344
13년 전 조회 1,398
13년 전 조회 1,529
13년 전 조회 2,306
13년 전 조회 2,163
13년 전 조회 1,886
13년 전 조회 2,055
13년 전 조회 4,325
13년 전 조회 1,356
13년 전 조회 2,262
13년 전 조회 2,064
13년 전 조회 1,220
13년 전 조회 1,350
13년 전 조회 1,245
13년 전 조회 9,063
13년 전 조회 1,452
13년 전 조회 2,272
13년 전 조회 2,002
13년 전 조회 1,331
13년 전 조회 1,084
13년 전 조회 4,400
13년 전 조회 1,132
13년 전 조회 1,280
13년 전 조회 2,363
13년 전 조회 1,836
13년 전 조회 1,902
13년 전 조회 1,597
13년 전 조회 1,573
13년 전 조회 1,325
13년 전 조회 1,854
13년 전 조회 1,485
13년 전 조회 2,314
13년 전 조회 1,651
13년 전 조회 3,410
13년 전 조회 1,194
13년 전 조회 2,850
13년 전 조회 3,228
13년 전 조회 4,996
13년 전 조회 1,547
13년 전 조회 1,764
13년 전 조회 1,967
13년 전 조회 1,788
13년 전 조회 1,895
13년 전 조회 3,460
13년 전 조회 1,878
13년 전 조회 1,631
13년 전 조회 1,734
13년 전 조회 1,756
13년 전 조회 1,459
13년 전 조회 2,323
13년 전 조회 2,678
13년 전 조회 2,004
13년 전 조회 1,579
13년 전 조회 1,590
13년 전 조회 1,438
13년 전 조회 2,251
13년 전 조회 3,200
13년 전 조회 1,945
13년 전 조회 2,231
13년 전 조회 1,710
13년 전 조회 1,753
13년 전 조회 1,951
13년 전 조회 1,488
13년 전 조회 1,463
13년 전 조회 1,493
13년 전 조회 1,823
13년 전 조회 1,856
13년 전 조회 1,639
13년 전 조회 1,382
13년 전 조회 1,650
13년 전 조회 1,618
13년 전 조회 1,536
13년 전 조회 1,665
13년 전 조회 1,553
13년 전 조회 1,866
13년 전 조회 1,620
13년 전 조회 1,768
13년 전 조회 2,272
13년 전 조회 1,217
13년 전 조회 3,544
13년 전 조회 1,254
13년 전 조회 1,447
13년 전 조회 1,197
13년 전 조회 1,600
13년 전 조회 1,525
13년 전 조회 1,819
13년 전 조회 1,304
13년 전 조회 2,420
13년 전 조회 2,043
13년 전 조회 1,616
13년 전 조회 7,299
13년 전 조회 1,214
13년 전 조회 1,582
13년 전 조회 1,364