對configure參數的說明
配置幫助表:
-h, --help | 顯示幫助信息 | display this help and exit |
--help=short | 用short參數將只顯示正在運行的當前腳本的選項,而不能列出適用於Apache配置腳本所運行的外部配置腳本的選項 | display options specific to this package |
--help=recursive | 使用recursive參數將顯示所有程序包的簡短描述 | display the short help of all the included packages |
-V, --version | 顯示版本 | display version information and exit |
-q, --quiet, --silent | 不顯示checking……信息 | do not print`checking...' messages |
--cache-file=FILE | 在指定文件中存儲測試結果 |
cache test results in FILE [disabled] |
-C, --config-cache |
在文件config.cache中存儲測試結果 | alias for `--cache file=config.cache' |
-n, --no-create | configure腳本運行結束後不輸出結果文件,常用於正式編譯前的測試。 | do not create output files |
--srcdir=DIR | 源文件庫所在目錄 | find the sources in DIR [configure dir or `..'] |
安裝目錄:
--prefix=PREFIX | 體系無關文件的頂級安裝目錄PREFIX ,也就Apache的安裝目錄 | install architecture-independent files in PREFIX [/usr/local/apache2] |
--exec-prefix=EPREFIX | 體系相關文件的頂級安裝目錄EPREFIX ,把體系相關的文件安裝到不同的位置可以方便地在不同主機之間共享體系相關的文件 | install architecture-dependent files in EPREFIX [PREFIX] |
默認情況下,make install 將會把所有文件分別安裝到/usr/local/apache2/bin , /usr/local/apache2/lib 目錄下。可以用 --prefix 指定一個不同於/usr/local/apache2的安裝前綴,比如:--prefix=$HOME
。
By default, `make install' will install all the files in
`/usr/local/apache2/bin', `/usr/local/apache2/lib' etc. You can specify
an installation prefix other than `/usr/local/apache2' using `--prefix',
for instance `--prefix=$HOME'.
詳細安裝目錄設置:
默認安裝目錄參考config.layout,其中RHEL的默認目錄設置如下:
prefix: /usr
exec_prefix: ${prefix}
bindir: ${prefix}/bin
sbindir: ${prefix}/sbin
libdir: ${prefix}/lib
libexecdir: ${prefix}/lib/apache
mandir: ${prefix}/man
sysconfdir: /etc/httpd/conf
datadir: /var/www
installbuilddir: ${datadir}/build
errordir: ${datadir}/error
iconsdir: ${datadir}/icons
htdocsdir: ${datadir}/html
manualdir: ${datadir}/manual
cgidir: ${datadir}/cgi-bin
includedir: ${prefix}/include/apache
localstatedir: /var
runtimedir: ${localstatedir}/run
logfiledir: ${localstatedir}/log/httpd
proxycachedir: ${localstatedir}/cache/httpd
自設定詳細安裝目錄
--bindir=DIR | 用戶可執行目錄DIR。用於存放對網站管理員很有幫助的htpasswd, dbmmanage之類的支持程序 | user executables [EPREFIX/bin] |
--sbindir=DIR | 系統管理員可執行目錄DIR ,用於存放運行HTTP服務器所必須的httpd, apachectl, suexec之類的服務程序 | system admin executables [EPREFIX/sbin] |
--libexecdir=DIR | 程序可執行目錄DIR ,也就是動態加載模塊目錄 | program executables [EPREFIX/libexec] |
--sysconfdir=DIR | 只讀的單一機器數據目錄DIR ,用於存放httpd.conf和mime.types之類的服務器配置文件 | read-only single-machine data [PREFIX/etc] |
--sharedstatedir=DIR | 可改寫的體系無關數據目錄DIR | modifiable architecture-independent data [PREFIX/com] |
--localstatedir=DIR | 可改寫的單一機器數據目錄DIR | modifiable single-machine data [PREFIX/var] |
--libdir=DIR | 對象代碼庫目錄DIR | object code libraries [EPREFIX/lib] |
--includedir=DIR | Apache的C頭文件目錄DIR | C header files [PREFIX/include] |
--oldincludedir=DIR | 非gcc的C頭文件目錄DIR | C header files for non-gcc [/usr/include] |
--datarootdir=DIR | Web服務器只讀的體系無關數據根目錄 | read-only arch.-independent data root [PREFIX/share] |
--datadir=DIR | Web服務器只讀的體系無關數據目錄DIR | read-only architecture-independent data [DATAROOTDIR] |
--infodir=DIR | 信息文檔目錄DIR | info documentation [DATAROOTDIR/info] |
--localedir=DIR | 地區相關數據DIR | locale-dependent data [DATAROOTDIR/locale] |
--mandir=DIR | 手冊文檔目錄DIR | man documentation [DATAROOTDIR/man] |
--docdir=DIR | 手冊目錄 | documentation root [DATAROOTDIR/doc/PACKAGE] |
--htmldir=DIR | HTML格式幫助文檔目錄 | html documentation [DOCDIR] |
--dvidir=DIR | dvi格式幫助文檔目錄 | dvi documentation [DOCDIR] |
--pdfdir=DIR | pdf格式幫助文檔目錄 | pdf documentation [DOCDIR] |
--psdir=DIR | ps格式幫助文檔目錄 | ps documentation [DOCDIR] |
交叉編譯選項:
這些選項用於交叉編譯在其他平臺上運行的Apache HTTP服務器。在同一平臺上編譯和運行Apache HTTP服務器通常不需要使用這些選項,腳本會自動檢測並設置。
--build=BUILD | 指定編譯工具所在系統的系統類型BUILD | configure for building on BUILD [guessed] |
--host=HOST | 指定Apache HTTP服務器將要進行交叉編譯時運行的目標系統類型HOST | cross-compile to build programs to run on HOST [BUILD] |
--target=TARGET | 指定交叉編譯所產生的目標代碼類型 | configure for building compilers for TARGET [HOST] |
特徵選項:
--disable-option-checking | 忽略無法識別的enable或with選項 | ignore unrecognized --enable/--with options |
--disable-FEATURE | 不使用任何軟件特性 | do not include FEATURE (same as --enable-FEATURE=no) |
--enable-FEATURE[=ARG] | 使用軟件特性 | include FEATURE [ARG=yes] |
--enable-layout=LAYOUT | 預定義的安裝路徑佈局。選項使用config.layout文件中的配置。只使用"--enable-layout", 而不指定LAYOUT, 相當於"--enable-layout=Apache" | |
--enable-v4-mapped | 使用相同的套接字同時處理IPv4和IPv6的連接,也就是啓用地址映射。在FreeBSD、NetBSD、OpenBSD以外的平臺上是默認值。 | Allow IPv6 sockets to handle IPv4 connections |
--enable-exception-hook | 允許在子進程崩潰以後啓用一個鉤子來運行異常處理程序。 | Enable fatal exception hook |
--enable-maintainer-mode | 使用所有警告和調試符號編譯源代碼,請勿用於正式服務器,它會影響性能。 | Turn on debugging and compile time warnings |
--enable-pie |
編譯http作爲一個獨立的可執行文件。 | Build httpd as a Position Independent Executable |
--enable-modules=MODULE-LIST | 啓用的模塊,用空格分別列出,或使用all,most列出所有或常用的模塊。 | Space-separated list of modules to enable | "all" | "most" |
--enable-mods-shared=MODULE-LIST | 啓用的共享DSO模塊,用空格分別列出,或使用all,most列出所有或常用的共享DOS模塊。(注1) | Space-separated list of shared modules to enable | "all" | "most" |
--disable-authn-file | 禁用基於文件的驗證控制 | file-based authentication control |
--enable-authn-dbm | 啓用基於DBM的驗證機制 | DBM-based authentication control |
--enable-authn-anon |
啓用匿名的驗證機制 | anonymous user authentication control |
--enable-authn-dbd | 啓用基於SQL的驗證機制 | SQL-based authentication control |
--disable-authn-default | 禁止默認的驗證機制方式backstopper | authentication backstopper |
--enable-authn-alias | 啓用別名驗證 | auth provider alias |
--disable-authz-host | 禁用基於主機的授權機制 | host-based authorization control |
--disable-authz-groupfile | 禁用組授權機制 | 'require group' authorization control |
--disable-authz-user | 禁用用戶授權機制 | 'require user' authorization control |
--enable-authz-dbm | 基於DBM數據庫的授權機制 | DBM-based authorization control |
--enable-authz-owner | 基於文件所有者的授權機制 | 'require file-owner' authorization control |
--enable-authnz-ldap | 啓用基於LDAP的的授權方式 | LDAP based authentication |
--disable-authz-default | 禁用默認的backstopper授權方式 | authorization control backstopper |
--disable-auth-basic | 禁用基本驗證 | basic authentication |
--enable-auth-digest | 啓用RFC2617摘要式身份驗證 | RFC2617 Digest authentication |
--enable-isapi | 啓用ISAPI擴展支持(注2) | isapi extension support |
--enable-file-cache | 啓用文件緩存 | File cache |
--enable-cache | 啓用動態文件緩存 | dynamic file caching |
--enable-disk-cache | 啓用磁盤緩存模塊 |
disk caching module |
--enable-mem-cache | 啓用內存緩存模塊 | memory caching module |
--enable-dbd | 啓用apache的DBD框架 | Apache DBD Framework |
--enable-bucketeer | 水桶操作過濾器 | buckets manipulation filter |
--enable-dumpio | I/O轉儲過濾器 | I/O dump filter |
--enable-echo | 啓用回顯服務 | ECHO server |
--enable-example | 實例和演示模塊 | example and demo module |
--enable-case-filter | 啓用大寫轉換過濾器 | example uppercase conversion filter |
--enable-case-filter-in | 啓用大寫轉換輸入過濾器 | example uppercase conversion input filter |
--enable-ext-filter | 擴展過濾模塊 | external filter module |
--disable-include | 禁用服務器端嵌入(SSI) | Server Side Includes |
--disable-filter | 禁用智能過濾 | Smart Filtering |
--enable-substitute | 答覆的內容重寫式過濾 | response content rewrite-like filtering |
--disable-charset-lite | 禁用字符集轉換 | character set translation |
--enable-charset-lite | 啓用字符集轉換 | character set translation |
--enable-deflate | 壓縮轉換編碼支持 | Deflate transfer encoding support |
--enable-ldap | 啓用LDAP的高速緩存和連接池服務 | LDAP caching and connection pooling services |
--disable-log-config | 禁用日誌配置 | logging configuration |
--enable-log-forensic | 啓用forensic日誌記錄 | forensic logging |
--enable-logio | 輸入和輸出記錄 | input and output logging |
--disable-env | 禁用環境變量,清除設置環境變量 | clearing/setting of ENV vars |
--enable-mime-magic | 自動確定MIME類型 | automagically determining MIME type |
--enable-cern-meta | 啓用CERN類型元文件 | CERN-type meta files |
--enable-expires | 頭部有效期控制 | Expires header control |
--enable-headers | HTTP頭控制HTTP | header control |
--enable-ident | RFC 1413身份檢查 | RFC 1413 identity check |
--enable-usertrack | 用戶session跟蹤 | user-session tracking |
--enable-unique-id | 啓用每個請求唯一的ID | per-request unique ids |
--disable-setenvif | 基於頭部的環境變量 | basing ENV vars on headers |
--disable-version | 通過配置文件中決定http版本 | determining httpd version in config files |
--enable-proxy apache | 代理模塊 | Apache proxy module |
--enable-proxy-connect apache | 代理連接模塊 | Apache proxy CONNECT module |
--enable-proxy-ftp | apache代理ftp模塊 | Apache proxy FTP module |
--enable-proxy-http | apache代理http模塊 | Apache proxy HTTP module |
--enable-proxy-ajp | apache代理ajp模塊 | Apache proxy AJP module |
--enable-proxy-balancer | apache代理balancer模塊 | Apache proxy BALANCER module |
--enable-ssl | 啓用ssl支持 | SSL/TLS support (mod_ssl) |
--enable-distcache | 在mod_ssl模塊中啓用Distcache。磁盤緩存(Distcache)用於分佈式的會話緩存。主要用在 SSL/TLS 服務器。它可以被 Apache 使用。大多數的臺式機應該關閉它。 | Select distcache support in mod_ssl |
--enable-optional-hook-export | 啓用可選鉤子輸出者示例 | example optional hook exporter |
--enable-optional-hook-import | 啓用可選鉤子輸入者示例 | example optional hook importer |
--enable-optional-fn-import | 啓用可選函數輸入者示例 | example optional function importer |
--enable-optional-fn-export | 啓用可選函數輸出者示例 | example optional function exporter |
--enable-static-support | 爲所支持的二進制文件建立一個靜態鏈接的版本 | Build a statically linked version of the support binaries |
--enable-static-htpasswd | 建立靜態版本的htpasswd | Build a statically linked version of htpasswd |
--enable-static-htdigest | 建立htdigest的靜態版本 | Build a statically linked version of htdigest |
--enable-static-rotatelogs | 建立rotatelogs的靜態版本 | Build a statically linked version of rotatelogs |
--enable-static-logresolve | 建立logresolve的靜態版本 | Build a statically linked version of logresolve |
--enable-static-htdbm | 建立htdbm的靜態版本 | Build a statically linked version of htdbm |
--enable-static-ab | 建立ab的靜態版本 | Build a statically linked version of ab |
--enable-static-checkgid | 建立checkgid的靜態版本 | Build a statically linked version of checkgid |
--enable-static-htcacheclean | 建立htcacheclean的靜態版本 | Build a statically linked version of htcacheclean |
--enable-static-httxt2dbm | 建立httxt2dbm的靜態版本 | Build a statically linked version of httxt2dbm |
--enable-http | 啓用http協議處理 | HTTP protocol handling |
--disable-mime | 禁用映射文件擴展名到mime類型 | mapping of file-extension to MIME |
--enable-dav | 啓用webdav協議處理 | WebDAV protocol handling |
--disable-status | 禁用進程或線程的監控 | process/thread monitoring |
--disable-autoindex | 禁用目錄列表 | directory listing |
--disable-asis | 禁用as-is文件類型 | as-is filetypes |
--enable-info | 啓用服務器信息 | server information |
--enable-suexec | 啓用suexec,爲產生的進程設置uid和gid | set uid and gid for spawned processes |
--disable-cgid | 禁用CGID | CGI scripts |
--enable-cgi | 啓用CGI | CGI scripts |
--disable-cgi | 禁用CGI | CGI scripts |
--enable-cgid | 啓用CGID | CGI scripts |
--enable-dav-fs | 啓用DAV文件系統提供者 | DAV provider for the filesystem |
--enable-dav-lock | 啓用DAV提供者的一般鎖定 | DAV provider for generic locking |
--enable-vhost-alias | 啓用大規模的虛擬主機模塊 | mass virtual hosting module |
--disable-negotiation | 禁用內容協商 | content negotiation |
--disable-dir | 禁用目錄請求處理 | directory request handling |
--enable-imagemap | 啓用服務器端圖片映射圖 |
server-side imagemaps |
--disable-actions | 禁用請求上的行爲觸發器 | Action triggering on requests |
--enable-speling | 啓用常見的URL拼寫錯誤糾正 | correct common URL misspellings |
--disable-userdir | 禁用特定用戶目錄的請求的映射 |
mapping of requests to user-specific directories |
--disable-alias | 禁用不同文件系統部分的請求的映射 | mapping of requests to different filesystem parts |
--enable-rewrite | 基本的URL操縱規則,即啓用URL重寫規則 | rule based URL manipulation |
--enable-so | 啓用DSO性能 | DSO capability |
注:
1、模塊列表:
基本(B)模塊默認包含,必須明確禁用;擴展(E)/實驗(X)模塊默認不包含,必須明確啓用
模塊名稱 | 狀態 | 簡要描述 |
mod_actions | (B) | 基於媒體類型或請求方法,爲執行CGI腳本而提供 |
mod_alias | (B) | 提供從文件系統的不同部分到文檔樹的映射和URL重定向 |
mod_asis | (B) | 發送自己包含HTTP頭內容的文件 |
mod_auth_basic | (B) | 使用基本認證 |
mod_authn_default | (B) | 在未正確配置認證模塊的情況下簡單拒絕一切認證信息 |
mod_authn_file | (B) | 使用純文本文件爲認證提供支持 |
mod_authz_default | (B) | 在未正確配置授權支持模塊的情況下簡單拒絕一切授權請求 |
mod_authz_groupfile | (B) | 使用純文本文件爲組提供授權支持 |
mod_authz_host | (B) | 供基於主機名、IP地址、請求特徵的訪問控制 |
mod_authz_user | (B) | 基於每個用戶提供授權支持 |
mod_autoindex | (B) | 自動對目錄中的內容生成列表,類似於"ls"或"dir"命令 |
mod_cgi | (B) | 在非線程型MPM(prefork)上提供對CGI腳本執行的支持 |
mod_cgid | (B) | 在線程型MPM(worker)上用一個外部CGI守護進程執行CGI腳本 |
mod_dir | (B) | 指定目錄索引文件以及爲目錄提供"尾斜槓"重定向 |
mod_env | (B) | 允許Apache修改或清除傳送到CGI腳本和SSI頁面的環境變量 |
mod_filter | (B) | 根據上下文實際情況對輸出過濾器進行動態配置 |
mod_imagemap | (B) | 處理服務器端圖像映射 |
mod_include | (B) | 實現服務端包含文檔(SSI)處理 |
mod_isapi | (B) | 僅限於在Windows平臺上實現ISAPI擴展 |
mod_log_config | (B) | 允許記錄日誌和定製日誌文件格式 |
mod_mime | (B) | 根據文件擴展名決定應答的行爲(處理器/過濾器)和內容(MIME類型/語言/字符集/編碼) |
mod_negotiation | (B) | 提供內容協商支持 |
mod_nw_ssl | (B) | 僅限於在NetWare平臺上實現SSL加密支持 |
mod_setenvif | (B) | 根據客戶端請求頭字段設置環境變量 |
mod_status | (B) | 生成描述服務器狀態的Web頁面 |
mod_userdir | (B) | 允許用戶從自己的主目錄中提供頁面(使用"/~username") |
mod_auth_digest | (X) | 使用MD5摘要認證(更安全,但是隻有最新的瀏覽器才支持) |
mod_authn_alias | (E) | 基於實際認證支持者創建擴展的認證支持者,併爲它起一個別名以便於引用 |
mod_authn_anon | (E) | 提供匿名用戶認證支持 |
mod_authn_dbd | (E) | 使用SQL數據庫爲認證提供支持 |
mod_authn_dbm | (E) | 使用DBM數據庫爲認證提供支持 |
mod_authnz_ldap | (E) | 允許使用一個LDAP目錄存儲用戶名和密碼數據庫來執行基本認證和授權 |
mod_authz_dbm | (E) | 使用DBM數據庫文件爲組提供授權支持 |
mod_authz_owner | (E) | 基於文件的所有者進行授權 |
mod_cache | (E) | 基於URI鍵的內容動態緩衝(內存或磁盤) |
mod_cern_meta | (E) | 允許Apache使用CERN httpd元文件,從而可以在發送文件時對頭進行修改 |
mod_charset_lite | (X) | 允許對頁面進行字符集轉換 |
mod_dav | (E) | 允許Apache提供DAV協議支持 |
mod_dav_fs | (E) | 爲mod_dav訪問服務器上的文件系統提供支持 |
mod_dav_lock | (E) | 爲mod_dav鎖定服務器上的文件提供支持 |
mod_dbd | (E) | 管理SQL數據庫連接,爲需要數據庫功能的模塊提供支持 |
mod_deflate | (E) | 壓縮發送給客戶端的內容 |
mod_disk_cache | (E) | 基於磁盤的緩衝管理器 |
mod_dumpio | (E) | 將所有I/O操作轉儲到錯誤日誌中 |
mod_echo | (X) | 一個很簡單的協議演示模塊 |
mod_example | (X) | 一個很簡單的Apache模塊API演示模塊 |
mod_expires | (E) | 允許通過配置文件控制HTTP的"Expires:"和"Cache-Control:"頭內容 |
mod_ext_filter | (E) | 使用外部程序作爲過濾器 |
mod_file_cache | (X) | 提供文件描述符緩存支持,從而提高Apache性能 |
mod_headers | (E) | 允許通過配置文件控制任意的HTTP請求和應答頭信息 |
mod_ident | (E) | 實現RFC1413規定的ident查找 |
mod_info | (E) | 生成Apache配置情況的Web頁面 |
mod_ldap | (E) | 爲其它LDAP模塊提供LDAP連接池和結果緩衝服務 |
mod_log_forensic | (E) | 實現"對比日誌",即在請求被處理之前和處理完成之後進行兩次記錄 |
mod_logio | (E) | 對每個請求的輸入/輸出字節數以及HTTP頭進行日誌記錄 |
mod_mem_cache | (E) | 基於內存的緩衝管理器 |
mod_mime_magic | (E) | 通過讀取部分文件內容自動猜測文件的MIME類型 |
mod_proxy | (E) | 提供HTTP/1.1的代理/網關功能支持 |
mod_proxy_ajp | (E) | mod_proxy的擴展,提供Apache JServ Protocol支持 |
mod_proxy_balancer | (E) | mod_proxy的擴展,提供負載平衡支持 |
mod_proxy_connect | (E) | mod_proxy的擴展,提供對處理HTTP CONNECT方法的支持 |
mod_proxy_ftp | (E) | mod_proxy的FTP支持模塊 |
mod_proxy_http | (E) | mod_proxy的HTTP支持模塊 |
mod_rewrite | (E) | 一個基於一定規則的實時重寫URL請求的引擎 |
mod_so | (E) | 允許運行時加載DSO模塊 |
mod_speling | (E) | 自動糾正URL中的拼寫錯誤 |
mod_ssl | (E) | 使用安全套接字層(SSL)和傳輸層安全(TLS)協議實現高強度加密傳輸 |
mod_suexec | (E) | 使用與調用web服務器的用戶不同的用戶身份來運行CGI和SSI程序 |
mod_unique_id | (E) | 爲每個請求生成唯一的標識以便跟蹤 |
mod_usertrack | (E) | 使用Session跟蹤用戶(會發送很多Cookie),以記錄用戶的點擊流 |
mod_version | (E) | 提供基於版本的配置段支持 |
mod_vhost_alias | (E) | 提供大批量虛擬主機的動態配置支持 |
2、Apache HTTP服務器是一個模塊化的軟件,管理員可以通過選擇服務器中包含的模塊進行功能增減。模塊可以在編譯時被靜態包含進httpd二進制文件,也可以編譯成獨立於httpd二進制文件的動態共享對象(DSO)。DSO模塊可以與服務器一起編譯,也可以用Apache擴展工具(apxs)單獨編譯。
3、ISAPI 服務器擴展是可以被 HTTP 服務器加載和調用的 DLL。Internet 服務器擴展也稱爲 Internet 服務器應用程序 (ISA),用於增強符合 Internet 服務器 API (ISAPI) 的服務器的功能。ISA 通過瀏覽器應用程序調用,並且將相似的功能提供給通用網關接口 (CGI) 應用程序。
可選包選項:
--with-PACKAGE[=ARG] | 包含包的語法 | use PACKAGE [ARG=yes] |
--without-PACKAGE | 不使用該包語法 | do not use PACKAGE (same as --with-PACKAGE=no) |
--with-included-apr | 捆綁拷貝apr/apr-util信息 | Use bundled copies of APR/APR-Util |
--with-apr=PATH | apr的安裝目錄 | prefix for installed APR or the full path to |
--with-apr-util=PATH | apu的安裝目錄 | prefix for installed APU or the full path to apu-config |
--with-pcre=PATH | 使用擴展的PCRE正則表達式庫 | Use external PCRE library |
--with-port=PORT | 監聽端口 | Port on which to listen (default is 80) |
--with-sslport=SSLPORT | ssl的監聽端口 | Port on which to securelisten (default is 443) |
--with-z=DIR | zlib的庫文件位置 | use a specific zlib library |
--with-sslc=DIR | RSA SSL-C SSL/TLS軟件包目錄 | RSA SSL-C SSL/TLS toolkit |
--with-ssl=DIR | openssl包的位置。 | OpenSSL SSL/TLS toolkit |
--with-mpm=MPM | 選擇apache所使用的處理模塊。(注1) | Choose the process model for
Apache to use. MPM={beos|event|worker|prefork|mpmt_os2} |
--with-module=module-type:module-file | 添加第三方模塊。(注2) | Enable module-file in the modules/<module-type>directory. |
--with-program-name | 指定可執行程序的名字[默認爲:httpd],若使用此選項則默認配置文件的名字將同時變成"NAME.conf"。 | alternate executable name |
--with-suexec-bin | suexec二進制文件目錄[默認--sbindir] | Path to suexec binary |
--with-suexec-calle | 允許調用suexec的用戶,改用戶必須和運行httpd子進程的用戶相同 | User allowed to call SuExec |
--with-suexec-userdir | 用戶主目錄下允許suexec對其中的文件具有執行權限的子目錄,僅在將suexec和用戶網站目錄(由mod_userdir提供支持)一起使用的情況下才需要設置此選項[public_html] | User subdirectory |
--with-suexec-docroot | 允許suexec對其中的文件具有執行權限的根目錄[--datadir/htdocs] | SuExec root directory |
--with-suexec-uidmin | 允許執行suexec的最小UID[100] | Minimal allowed UID |
--with-suexec-gidmin | 允許執行suexec的最小GID[100] | Minimal allowed GID |
--with-suexec-logfile |
suexec日誌文件名[默認文件名爲:suexec_log ,位於--logfiledir目錄下] | Set the logfile |
--with-suexec-safepath | 對suexec"安全"的PATH環境變量的值[/usr/local/bin:/usr/bin:/bin] | Set the safepath |
--with-suexec-umask | suexec進程的umask[取決於系統的設定] | umask for suexec'd process |
注:1、MPM是你想要使用的多路處理模塊的名字。如果你不使用這個選項,那麼將會使用對應於各平臺的默認MPM。
2、module-file是模塊的源代碼文件名,該文件必須位於Apahe源代碼目錄樹的"modules/module-type"目錄下,如果configure沒有在那裏找到module-file ,則將它看作一個絕對路徑名並嘗試將其複製到"modules/module-type"目錄中,如果"modules/module-type"目錄不存在,configure將新建一個"modules/module-type"目錄並在其中放置一個標準的Makefile.in文件。這種方法有兩個明顯的缺陷:模塊的源代碼必須是單一文件;模塊只能靜態連接進核心,而不能作爲DSO模塊。所以一般並不使用此方法,而是使用apxs(Apache擴展工具)來添加第三方模塊支持。
編譯器選項:
CC | 指定的C編譯器 | C compiler command |
CFLAGS | C編譯器的FLAGS | C compiler flags |
LDFLAGS | 連接器flags,比如使用"-L-Llibdir"指定一個非標準的庫文件目錄libdir | linker flags, e.g. -L<lib dir> if you have libraries in a nonstandard directory <lib dir> |
LIBS | 設定線程模型 | libraries to pass to the linker, e.g. -l<library> |
CPPFLAGS | C/C++預處理程序flags,比如使用"-Iincludedir"指定一個非標準的頭文件目錄includedir | C/C++/Objective C preprocessor flags, e.g. -I<include dir> if you have headers in a nonstandard directory <include dir> |
CPP | C預處理程序 | C preprocessor |
4、編譯安裝
./configure --prefix=/usr/local/apache --enable-authn-dbm --enable-authz-dbm --enable-ssl --enable-vhost-alias --enable-rewrite --enable-so --enable-charset-lite --enable-deflate --with-z --with-ssl --with-mpm=prefork
make
make install