[Server] Apache Configure 옵션
Apache 2.2.8 Option
==========================================================================================
OPTIM="-O3 -march=i686 -funroll-loops -fomit-frame-pointer" \
CFLAGS="-DDYNAMIC_MODULE_LIMIT=256" \
./configure \
--prefix=/home/dvlp \
--enable-so \
--enable-rewrite=shared \
--enable-expires=shared \
--enable-asis=shared \
--enable-auth_basic \
--enable-authn_file=shared \
--enable-authn_default=shared \
--enable-authz_groupfile=shared \
--enable-authz_user=shared \
--enable-authz_host \
--enable-authz_default=shared \
--enable-ssl=shared \
## 아래옵션은 선택사양
#--enable-echo=shared ## 디버깅시 필요
==========================================================================================
PHP
==========================================================================================
OPTIM="-O3 -march=i686" \
./configure \
--prefix=/home/dvlp \
--enable-track-vars \
--with-apxs2=/home/dvlp/bin/apxs \
--with-mysql \
--without-xml \
--without-pear
==========================================================================================
httpd.conf 에 아래 추가==========================================================================================
<IfModule php4_module>
AddType application/x-httpd-php .php .cgi .inc .html
AddType application/x-httpd-php-source .phps
</IfModule>
==========================================================================================
후속버젼
SERVER_ROOT="/install_path"
SERVER_DOC_ROOT="/install_path/www"
OPTIM="-O3 -march=i686 " ./configure \
--prefix=$SERVER_DOC_ROOT \
--libexecdir=$SERVER_ROOT/modules \
--exec-prefix=$SERVER_ROOT \
--includedir=/install_path/include \
--disable-cgi \
--enable-so \
--enable-info \
--enable-rewrite \
--enable-vhost-alias \
--enable-mods-shared=most
DSO 모듈을 빼려고 위와 같이 컴파일 하였으나 httpd.conf 상의 SERVER_ROOT 를 변경하니 SERVER_ROOT/modules 에서 찾음
결론은 저 옵션은 의미없다....
====== 기본 모듈 리스트 =======
core.c
mod_access.c
mod_auth.c
mod_include.c
mod_log_config.c
mod_env.c
mod_setenvif.c
prefork.c
http_core.c
mod_mime.c
mod_status.c
mod_autoindex.c
mod_asis.c
mod_info.c
mod_vhost_alias.c
mod_negotiation.c
mod_dir.c
mod_imap.c
mod_actions.c
mod_userdir.c
mod_alias.c
mod_rewrite.c
mod_so.c
주의사항
아래는 apache 2.2.* 버전 이상에서 configure 실행시 발생하는 이벤트이다.
========================================================================================================
checking for APR version 1.2.0 or later... yes
checking for APR-util version 1.2.0 or later... no
configure: error: APR-util version 1.2.0 or later is required</PRE>
========================================================================================================
시스템에 apr 과 apr-util 1.0 또는 1.1 이 설치되어 있기 때문에 apr 1.2 를 수동 설치하고 아래와 같은 옵션으로 configure 실행
아파치 소스로 이동 후 아래 실행
>$ cd srclib/apr ; ./configure ;make
>$ cd srclib/apr-util ; ./configure --with-apr=../apr ;make
아파치 소스 루트로 돌아와 아래 옵션 추가후 실행
>$ ./configure --with-apr=srclib/apr
--with-apr-util=srclib/apr-util
* apr 한글화 해주실분 없나요?? 굽신굽신. ㅜㅡ