如何查看Apache的configure编译参数

方法1

   history 查看你的历史记录

方法2

   利用apache的命令

[root@localhost httpd]# ./bin/httpd -l

Compiled in modules:

  core.c

  mod_authn_file.c

  mod_authn_default.c

  mod_authz_host.c

  mod_authz_groupfile.c

  mod_authz_user.c

  mod_authz_default.c

  mod_auth_basic.c

  mod_cache.c

  mod_disk_cache.c

  mod_mem_cache.c

  mod_include.c

  mod_filter.c

  mod_log_config.c

  mod_env.c

  mod_setenvif.c

  mod_ssl.c

  prefork.c

  http_core.c

  mod_mime.c

  mod_status.c

  mod_autoindex.c

  mod_asis.c

  mod_cgi.c

  mod_negotiation.c

  mod_dir.c

  mod_actions.c

  mod_userdir.c

  mod_alias.c

  mod_so.c

方法3

    如果上次安装后没有make clean的话,在config.nice中可以找到

[root@localhost build]# cat config.nice 

#! /bin/sh

#

# Created by configure


"./configure" \

"--prefix=/usr/local/httpd" \

"--enable-so" \

"--enable-deflate=shared" \

"--enable-rewrite=shared" \

"--enable-expires=shared" \

"--enable-cache" \

"--enable-disk-cache" \

"--enable-mem-cache" \

"--with-ssl=/usr/local/openssl" \

"--enable-ssl" \

"--enable-mods-shared=max" \

"$@"

方法4

    如果你装了php模块的话,用phpinfo看的最详细。