apache编译惯用参数
常用编译参数一览
/configure //配置源代码树
–prefix=/usr/local/apache2 //体系无关文件的顶级安装目录PREFIX ,也就Apache的安装目录。
–enable-module=so //打开 so 模块,so 模块是用来提 DSO 支持的 apache 核心模块
–enable-deflate=shared //支持网页压缩
–enable-expires=shared //支持 HTTP 控制
–enable-rewrite=shared //支持 URL 重写
–enable-cache //支持缓存
–enable-file-cache //支持文件缓存
–enable-mem-cache //支持记忆缓存
–enable-disk-cache //支持磁盘缓存
–enable-static-support //支持静态连接(默认为动态连接)
–enable-static-htpasswd //使用静态连接编译 htpasswd – 管理用于基本认证的用户文件
–enable-static-htdigest //使用静态连接编译 htdigest – 管理用于摘要认证的用户文件
–enable-static-rotatelogs //使用静态连接编译 rotatelogs – 滚动 Apache 日志的管道日志程序
–enable-static-logresolve //使用静态连接编译 logresolve – 解析 Apache 日志中的IP地址为主机名
–enable-static-htdbm //使用静态连接编译 htdbm – 操作 DBM 密码数据库
–enable-static-ab //使用静态连接编译 ab – Apache HTTP 服务器性能测试工具
–enable-static-checkgid //使用静态连接编译 checkgid
–disable-cgid //禁止用一个外部 CGI 守护进程执行CGI脚本
–disable-cgi //禁止编译 CGI 版本的 PHP
–disable-userdir //禁止用户从自己的主目录中提供页面
–with-mpm=worker // 让apache以worker方式运行
–enable-authn-dbm=shared // 对动态数据库进行操作。Rewrite时需要。
用于apr的configure脚本的选项:
可选特性
--enable-experimental-libtool
--disable-libtool-lock
--enable-debug
--enable-maintainer-mode
--enable-profile
--enable-pool-debug[=yes|no|verbose|verbose-alloc|lifetime|owner|all]
--enable-malloc-debug
--disable-lfs
--enable-nonportable-atomics
--enable-threads
--disable-threads
--disable-dso
--enable-other-child
--disable-ipv6
可选的额外程序包
--with-gnu-ld
--with-pic
--with-tags[=TAGS]
--with-installbuilddir=DIR
--without-libtool
--with-efence[=DIR]
--with-sendfile
--with-egd[=DIR]
--with-devrandom[=DEV]
用于apr-util的configure脚本的选项:
可选的额外程序包
--with-apr=PATH
--with-ldap-include=PATH
--with-ldap-lib=PATH
--with-ldap=library
--with-dbm=DBM
--with-gdbm=PATH
--with-ndbm=PATH
--with-berkeley-db=PATH
--with-pgsql=PATH
--with-mysql=PATH
--with-sqlite3=PATH
--with-sqlite2=PATH
--with-expat=PATH
--with-iconv=PATH