如何查看Apache的configure編譯參數:
方法1:
history 查看你的歷史記錄
方法2:
利用apache的命令
$ httpd -l
Compiled
in
modules:
core.c
mod_access.c
mod_log_config.c
mod_setenvif.c
mod_ssl.c
worker.c
http_core.c
mod_mime.c
mod_status.c
mod_asis.c
mod_cgid.c
mod_dir.c
mod_actions.c
mod_alias.c
mod_so.c
$
$ .
/httpd
-V
Server version: Apache
/2
.0.55
Server built: Jan 25 2006 11:50:49
Server's Module Magic Number: 20020903:9
Architecture: 32-bit
Server compiled with....
-D APACHE_MPM_DIR=
"server/mpm/worker"
-D APR_HAS_SENDFILE
-D APR_HAS_MMAP
-D APR_USE_FCNTL_SERIALIZE
-D APR_USE_PTHREAD_SERIALIZE
-D SINGLE_LISTEN_UNSERIALIZED_ACCEPT
-D APR_HAS_OTHER_CHILD
-D AP_HAVE_RELIABLE_PIPED_LOGS
-D HTTPD_ROOT=
"/usr/local/apache-2.0.55"
-D SUEXEC_<a href=
"https://www.baidu.com/s?wd=BIN&tn=44039180_cpr&fenlei=mv6quAkxTZn0IZRqIHckPjm4nH00T1YdmWuBnjnvuHmzuhfknH7-0AP8IA3qPjfsn1bkrjKxmLKz0ZNzUjdCIZwsrBtEXh9GuA7EQhF9pywdQhPEUiqkIyN1IA-EUBtkPHTdnjnzPjf4nHm4P1mvnjcs"
target=
"_blank"
class=
"baidu-highlight"
>BIN<
/a
>=
"/usr/local/apache-2.0.55/<a href="
https:
//www
.baidu.com
/s
?wd=bin&tn=44039180_cpr&fenlei=mv6quAkxTZn0IZRqIHckPjm4nH00T1YdmWuBnjnvuHmzuhfknH7-0AP8IA3qPjfsn1bkrjKxmLKz0ZNzUjdCIZwsrBtEXh9GuA7EQhF9pywdQhPEUiqkIyN1IA-EUBtkPHTdnjnzPjf4nHm4P1mvnjcs
" target="
_blank
" class="
baidu-highlight
">bin</a>/suexec"
-D DEFAULT_SCOREBOARD=
"logs/apache_runtime_status"
-D DEFAULT_ERRORLOG=
"logs/error_log"
-D AP_TYPES_CONFIG_FILE=
"conf/mime.types"
-D SERVER_CONFIG_FILE=
"conf/httpd.conf"
方法3:
如果上次安裝後沒有make clean的話,在config.nice中可以找到
[root@localhost]
# cat /usr/local/apache/build/config.nice
#! /<a href="https://www.baidu.com/s?wd=bin&tn=44039180_cpr&fenlei=mv6quAkxTZn0IZRqIHckPjm4nH00T1YdmWuBnjnvuHmzuhfknH7-0AP8IA3qPjfsn1bkrjKxmLKz0ZNzUjdCIZwsrBtEXh9GuA7EQhF9pywdQhPEUiqkIyN1IA-EUBtkPHTdnjnzPjf4nHm4P1mvnjcs" target="_blank" class="baidu-highlight">bin</a>/sh
#
# Created by configure
"./configure"
\
"--prefix=/usr/local/apache2"
\
"--with-mpm=worker"
\
"--enable-so"
\
"--enable-rewrite"
\
"--enable-vhost-alias"
\
"--enable-http"
\
"--enable-mime-magic"
\
"--enable-ssl"
\
"--enable-proxy"
\
"$@"
[root@localhost]
#
方法4:
如果你裝了php模塊的話,用phpinfo看的最詳細。
*