apacheのビルドオプションを調べる

apachectl -V

こんなのが出る、 MPMがどのモードで動いているのか調べるにもこのコマンドを使う。(prefork, worker, event)

Server version: Apache/2.2.9 (Unix)
Server built:   Oct 13 2008 21:48:41
Server's Module Magic Number: 20051115:15
Server loaded:  APR 1.2.7, APR-Util 1.2.7
Compiled using: APR 1.2.7, APR-Util 1.2.7
Architecture:   32-bit
Server MPM:     Prefork
  threaded:     no
    forked:     yes (variable process count)
Server compiled with....
 -D APACHE_MPM_DIR="server/mpm/prefork"
 -D APR_HAS_SENDFILE
 -D APR_HAS_MMAP
 -D APR_HAVE_IPV6 (IPv4-mapped addresses enabled)
 -D APR_USE_SYSVSEM_SERIALIZE
 -D APR_USE_PTHREAD_SERIALIZE
 -D SINGLE_LISTEN_UNSERIALIZED_ACCEPT
 -D APR_HAS_OTHER_CHILD
 -D AP_HAVE_RELIABLE_PIPED_LOGS
 -D DYNAMIC_MODULE_LIMIT=128
 -D HTTPD_ROOT="/usr/local/apache2.2.9"
 -D SUEXEC_BIN="/usr/local/apache2.2.9/bin/suexec"
 -D DEFAULT_PIDLOG="logs/httpd.pid"
 -D DEFAULT_SCOREBOARD="logs/apache_runtime_status"
 -D DEFAULT_LOCKFILE="logs/accept.lock"
 -D DEFAULT_ERRORLOG="logs/error_log"
 -D AP_TYPES_CONFIG_FILE="conf/mime.types"
 -D SERVER_CONFIG_FILE="conf/httpd.conf"

ソースインストールのapacheの場合 configureで指定したオプションが以下で見れます

cat {apache_home}/build/config.nice
---
#! /bin/sh
#
# Created by configure

"./configure" \
"--enable-dav" \
"--enable-ssl" \
"--enable-rewrite" \
"--enable-alias" \
"--prefix=/usr/local/apache2.2.9" \
"--enable-maintainer-mode" \
"--enable-dav-fs" \
"--enable-dav-lock" \
"--enable-cgi" \
"--enable-cgid" \
"--enable-cache" \
"--enable-mem-cache" \
"--enable-proxy" \
"--enable-proxy-balancer" \
"--enable-so" \
"$@"
---