在細(xì)部選項上,除了上述的安裝簡述外,也可以在編譯時加入其它的選項。
阿帕契模組
語法: --with-apache=dir
說明: 用本選項可以讓 php 以阿帕契的模組方式使用,dir 的字串可以是
/usr/local/apache 或其它安裝阿帕契的目錄
范例: --with-apache=/var/lib/apache
fhttpd 伺服器模組
語法: --with-fhttpd=dir
說明: 若使用 fttpd 伺服器,可以使用本指令編譯 php。用模組的方式配合 fttpd 伺
服器,可以有較好的效能。
adabas d 資料庫
語法: --with-adabas=dir
說明: 資料庫系統(tǒng)為 adabas d 資料庫時需要加本選項。關(guān)于 adabas d 資料庫的細(xì)
節(jié),可以參考 http://www.adabas.com。
范例: --with-adabas=/usr/local/adabasd
dbase 資料表
語法: --with-dbase
說明: 只要加本選項,不用其它的參數(shù)或函式庫,php 就會讓系統(tǒng)有存取 dbase 資料
表的功能。
filepro 資料庫
語法: --with-filepro
說明: 不用指定資料庫路徑及其它函式庫等,可以讀取 filepro 資料庫 (唯讀)。
msql 資料庫
語法: --with-msql=dir
說明: 提供存取 msql 資料庫。更多的細(xì)節(jié)請參考 msql 的網(wǎng)站
http://www.hughes.com.au。
范例: --with-msql=/usr/local/hughes
mysql 資料庫
語法: --with-mysql=dir
說明: 提供存取 mysql 資料庫。更多的細(xì)節(jié)請參考 mysql 的網(wǎng)站
http://www.tcx.se。
范例: --with-mysql=/usr/local/mysql
iodbc 資料庫裝置
語法: --with-iodbc=dir
說明: 提供 odbc 資料庫裝置,用來存取后端資料庫。更多的細(xì)節(jié)請參考 iodbc 的網(wǎng)
站 http://www.iodbc.org。
范例: --with-iodbc=/usr/local/iodbc
openlink odbc 資料庫裝置
語法: --with-openlink=dir
說明: 使用 openlink odbc 資料庫裝置,用來存取后端資料庫。更多的細(xì)節(jié)請參考
openlink odbc 的網(wǎng)站 http://www.openlinksw.com。
范例: --with-openlink=/usr/local/openlink
oracle 資料庫
語法: --with-oracle=dir
說明: 使用 oracle 資料庫。oracle 的版本要在 7.3 版以上。您也可以在 php 程式
中使用環(huán)境變數(shù) oracle_home 來指定 oracle 的路徑。更多有關(guān) oracle 的資訊請參
考 oracle 的網(wǎng)站 http://www.oracle.com。
范例: --with-oracle=/export/app/oracle/product/7.3.2
postgresql 資料庫
語法: --with-pgsql=dir
說明: 使用 postgresql 資料庫。更多有關(guān) postgresql 的資訊請參考 postgresql 的
網(wǎng)站 http://www.postgresql.org 或臺灣的 mirror 站
http://postgresql.ccit.edu.tw。
范例: --with-pgsql=/usr/local/pgsql
solid 資料庫
語法: --with-solid=dir
說明: 使用 solid 資料庫。更多有關(guān) solid 的資訊請參考 solid 的網(wǎng)站
http://www.solidtech.com。
范例: --with-solid=/usr/local/solid
sybase 資料庫
語法: --with-sybase=dir
說明: 使用 sybase 資料庫。更多有關(guān) sybase 的資訊請參考 sybase 的網(wǎng)站
http://www.sybase.com。
范例: --with-sybase=/home/sybase
sybase-ct 資料庫
語法: --with-sybase-ct=dir
說明: 使用 sybase-ct 資料庫。
范例: --with-sybase-ct=/home/sybase
velocis 資料庫
語法: --with-velocis=dir
說明: 使用 velocis 資料庫。有關(guān) velocis 資料庫的進(jìn)一步資料請參考 raima 公司
的網(wǎng)站 http://www.raima.com。
范例: --with-velocis=/usr/local/velocis
自訂 odbc 資料庫驅(qū)動程式
語法: --with-custom-odbc=dir
說明: 使用自訂的 odbc 函式庫。當(dāng)然,在使用本方式時要指定 custom_odbc_libs 及
cflags 變數(shù)。例如在 qnx 機(jī)器上使用 sybase sql anywhere 時可能要設(shè)定系統(tǒng)環(huán)境
變數(shù) cflags=-dodbc_qnx、ldflags=-lunix 及
custom_odbc_libs="-ldblib -lodbc",并要在 php 設(shè)定加
--with-custom-odbc=/usr/lib/sqlany50
范例: --with-custom-odbc=/usr/local/odbc
不使用 odbc 資料庫驅(qū)動程式
語法: --disable-unified-odbc
說明: 使用本選項將使所有的 odbc 資料庫驅(qū)動程式不作用。本選項不用指定路徑,而
受本選項影響的選項
有 --with-iodbc、--with-solid、--with-adabas、--with-velocis
及 --with-custom-odbc。
ldap 目錄協(xié)定
語法: --with-ldap=dir
說明: 若要使用目錄協(xié)定 (lightweight directory access protocol, ldap) 則必須
要打開本選項。有關(guān) ldap 的細(xì)節(jié),可以參考 rfc 文件的 rfc1777 及 rfc1778。
范例: --with-ldap=/usr/local/ldap.
mcrypt 編碼函式庫
語法: --with-mcrypt=dir
說明: 當(dāng)安裝了 mcrypt 函式庫后,可在編譯 php 時加入本選項,讓程式可以使用編
解碼功能。
范例: --with-mcrypt=/usr/local/include
sys v 信號
語法: --enable-sysvsem
說明: 要使用 sysv 的信號 (semaphores) 機(jī)制,則要打開本選項。
xml 支援
語法: --with-xml
說明: 打開本選項可以支援 james clark’s 寫的 xml 剖析程式庫。
維護(hù)模式
語法: --enable-maintainer-mode
說明: 本選項一般不會打開,除非是 php 開發(fā)人員比較有用。
常規(guī)表示程式庫
語法: --with-system-regex
說明: 若您需要額外的常規(guī)表示功能,可以加入本選項。
php 設(shè)定檔
語法: --with-config-file-path=dir
說明: 用來指定 php3.ini 或 php4.ini 的路徑,供 php 初始化時使用。
范例: --with-config-file-path=/usr/local/lib
php 執(zhí)行路徑
語法: --with-exec-dir=dir
說明: 有時為了系統(tǒng)的安全性考量,會指定 php 程式一定要在哪個目錄執(zhí)行。
范例: --with-exec-dir=/usr/local/bin
除錯模式
語法: --enable-debug
說明: 本選項一般不會使用,除非在開發(fā) php 程式時比較有用。它可以顯示額外的錯
誤訊息。
安全模式
語法: --enable-safe-mode
說明: 內(nèi)定值是打開的,可以對系統(tǒng)安全提供比較多的保護(hù)。
變數(shù)追蹤
語法: --enable-track-vars
說明: 讓 php 能 追蹤 http_get_vars、http_post_vars 及 http_cookie_vars 三個
變數(shù),一般是打開的。
自動加引入字元
語法: --enable-magic-quotes
說明: 可讓程式在執(zhí)行時自動加入反斜線的引入字元。
開啟除錯器
語法: --enable-debugger
說明: 打開內(nèi)建的 php 除錯器。目前本功能還在實驗階段,尚未成熟。
取消路徑 (discard path)
新聞熱點
疑難解答