[root@tpdb worker]# pwd
/svc/spi/web/httpd-2.4.6/server/mpm/worker
[root@tpdb worker]# ll
합계 136
-rw-r--r--. 1 tempuser games 40 2009-11-03 23:36 Makefile.in
-rw-r--r--. 1 tempuser games 457 2009-04-23 14:17 config.m4
-rw-r--r--. 1 tempuser games 180 2011-11-30 19:21 config3.m4
-rw-r--r--. 1 tempuser games 13133 2011-01-28 04:34 fdqueue.c
-rw-r--r--. 1 tempuser games 2543 2011-01-28 04:34 fdqueue.h
-rw-r--r--. 1 tempuser games 1634 2012-01-31 21:02 mpm_default.h
-rw-r--r--. 1 tempuser games 3031 2011-12-05 09:08 pod.c
-rw-r--r--. 1 tempuser games 1810 2009-03-25 00:43 pod.h
-rw-r--r--. 1 tempuser games 90502 2013-05-12 19:38 worker.c
[root@tpdb worker]# vi worker.c
84 #ifndef DEFAULT_SERVER_LIMIT
85 #define DEFAULT_SERVER_LIMIT 16 <--수정할 것*(32,64,128 등)
86 #endif
그다음 configure실행, 그러나 실행하면 다음 APR에러가 발생할 것이다
먼저
-apache configure
[root@tpdb httpd-2.4.6]# ./configure --prefix=/svc/spi/web/apache --enable-so --enable-ssl --with-mpm=worker
checking for chosen layout... Apache
checking for working mkdir -p... yes
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
configure:
configure: Configuring Apache Portable Runtime library...
configure:
checking for APR... no
configure: error: APR not found. Please read the documentation.
- APR install
다음 명령어를 실행하여 apr 다운로드 실행
(혹시 파일이 없으면 버전이 없는 것이니 http://apr.apache.org/download.cgi 서 확인하고 파일명만 바꾸어주면 됨
다운로드 및 컴파일
[root@tpdb web]# wget http://mirror.apache-kr.org/apr/apr-1.5.0.tar.gz
[root@tpdb web]# tar zxvf apr-1.5.0.tar.gz
[root@tpdb web]# cd apr-1.5.0
[root@tpdb apr-1.5.0]# ./configure
여기서 gcc에러가 나면 별도 설치해야 함
설치해야 할게 많기 때문에 별도로 다른 페이지에 설명 예정
다음 링크 참조
http://stoplulker.blogspot.com/2014/02/linux-gcc.html
- 그리고 apr-util다운로드 후 컴파일 진행
[root@tpdb web]# wget http://mirror.apache-kr.org/apr/apr-util-1.5.3.tar.gz
[root@tpdb web]# tar zxvf apr-util-1.5.3.tar.gz
[root@tpdb spidb]# cd apr-util-1.5.3
[root@tpdb apr-util-1.5.3]# ./configure --with-apr=/usr/local/apr
[root@tpdb apr-util-1.5.3]# make; make install
- pcre 설치
다 진행되면 다시 apache configure시작
그러나 다시 할려면 pcre에러가 날 수도 있다
이럴경우 다음 설치
[root@SPIWEB spiweb]# rpm -ivh pcre-devel-7.8-6.el6.x86_64.rpm
--ssl 에러
이젠 다시 ssl에러가 날 수도 있을 것이다
일단 시간이 없으니 담에 하기로 하고 일단 옵션에 ssl을 생략한다
./configure --prefix=/svc/spi/web/apache --enable-so --with-mpm=worker
마지막으로 make;make install을 해준다
이제 ${APACHE_MOE}/bin/apachectl start를 하여 아파치를 실행시킨다
아마 실행시키면 다음과 같이 에러가 날텐데 이것은 httpd.conf파일을 열어 다음 ServerName을 localhost로 바꿔준다
AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1. Set the 'ServerName' directive globally to suppress this message
#ServerName www.example.com:80
ServerName localhost
|