2. Apache (httpd) 설치
| ■ Tip (서버 LIMIT 늘리기) httpd-2.2.11/server/mpm/prefork/prefork.c 를 열어서 defined DEFAULT_SERVER_LIMIT 256 부분을 적절히 수정하세요 (예 256 -> 1024) httpd-2.2.11/server/mpm/worker/worker.c 를 열어서 defined DEFAULT_SERVER_LIMIT 16 부분을 적절히 수정하세요 (예 16 -> 64) 또는 ./configure 하기전에 export CFLAGS="${CFLAGS} -DHARD_SERVER_LIMIT=1024 -DEFAULT_SERVER_LIMIT=1024" 를 입력해주세요 ■ Configure [root@cubetree httpd-2.2.13]# ./configure --prefix=/home/Product/httpd-2.2.13 --with-mpm=worker --enable-mods-shared=all --enable-ssl 생 략 config.status: creating docs/conf/extra/httpd-vhosts.conf config.status: creating include/ap_config_layout.h config.status: creating support/apxs config.status: creating support/apachectl config.status: creating support/dbmmanage config.status: creating support/envvars-std config.status: creating support/log_server_status config.status: creating support/logresolve.pl config.status: creating support/phf_abuse_log.cgi config.status: creating support/split-logfile config.status: creating build/rules.mk config.status: creating build/pkg/pkginfo config.status: creating build/config_vars.sh config.status: creating include/ap_config_auto.h config.status: executing default commands [root@cubetree httpd-2.2.13]# ■ Make / Make install [root@cubetree httpd-2.2.13]# make [root@cubetree httpd-2.2.13]# make install (결과생략) [root@cubetree httpd-2.2.13]# cd /home/Product/httpd-2.2.13/ [root@cubetree httpd-2.2.13]# ls bin build cgi-bin conf error htdocs icons include lib logs man manual modules [root@cubetree httpd-2.2.13]# ■ Apache 경로 심볼릭 링크 생성 [root@cubetree /]# ln -s /home/Product/httpd-2.2.13 /usr/local/apache [root@cubetree /]# cd /usr/local/ [root@cubetree local]# ls apache bin etc games include lib lib64 libexec mysql sbin share src [root@cubetree local]# ls -al 합계 96 drwxr-xr-x 12 root root 4096 9월 27 23:58 . drwxr-xr-x 16 root root 4096 9월 25 15:18 .. lrwxrwxrwx 1 root root 26 9월 27 23:58 apache -> /home/Product/httpd-2.2.13 drwxr-xr-x 2 root root 4096 3월 12 2009 bin drwxr-xr-x 2 root root 4096 3월 12 2009 etc drwxr-xr-x 2 root root 4096 3월 12 2009 games drwxr-xr-x 2 root root 4096 3월 12 2009 include drwxr-xr-x 2 root root 4096 3월 12 2009 lib drwxr-xr-x 2 root root 4096 3월 12 2009 lib64 drwxr-xr-x 2 root root 4096 3월 12 2009 libexec lrwxrwxrwx 1 root root 26 9월 26 16:40 mysql -> /home/Product/mysql-4.0.27 drwxr-xr-x 2 root root 4096 3월 12 2009 sbin drwxr-xr-x 4 root root 4096 9월 25 15:15 share drwxr-xr-x 2 root root 4096 3월 12 2009 src [root@cubetree local]# ■ Apache profile 등록 [root@cubetree ~]# vi /root/.bash_profile PATH=$PATH:$HOME/bin:/usr/local/bin:/usr/local/mysql/bin:/usr/local/apache/bin 을 추가하고, shell 재시작 ■ Apache 부팅시 자동실행 등록 [root@cubetree /]# echo "--- /etc/rc.d/init.d/apachectl ---" >> /usr/local/apache/bin/apachectl [root@cubetree /]# echo "# chkconfig: - 92 92 " >> /usr/local/apache/bin/apachectl [root@cubetree /]# echo "# description: Apache Web Server Version : 2.2.13 " >> /usr/local/apache/bin/apachectl [root@cubetree /]# cp /usr/local/apache/bin/apachectl /etc/rc.d/init.d/ [root@cubetree /]# chkconfig --add apachectl [root@cubetree /]# chkconfig --level 3 apachectl on [root@cubetree /]# |
3. Apache 실행
| [root@cubetree ~]# apachectl start httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName [root@cubetree ~]# |

