./configure -h
在源代碼目錄中,該命令能夠查看全部編譯參數以及對應的英文解釋php
--prefix=/opt/php //指定 php 安裝目錄
--with-apxs2=/usr/local/apache/bin/apxs //整合Apache
--with-config-file-path=/opt/php/etc //指定php.ini位置
--with-config-file-scan-dir=/opt/php/etc/php.d //指定額外拓展配置歸放處文件夾
--enable-safe-mode //打開安全模式
--enable-ftp //打開ftp的支持
--enable-zip //打開對zip的支持
--with-bz2 //打開對bz2文件的支持
--with-jpeg-dir //打開對jpeg圖片的支持
--with-png-dir //打開對png圖片的支持
--with-freetype-dir //打開對freetype字體庫的支持
--without-iconv //關閉iconv函數,各類字符集間的轉換
--with-libXML-dir //打開libxml2庫的支持
--with-XMLrpc //打開xml-rpc的c語言
--with-zlib-dir //打開zlib庫的支持
--with-gd //打開gd庫的支持
--enable-gd-native-ttf //支持TrueType字符串函數庫
--with-curl //打開curl瀏覽工具的支持
--with-curlwrappers //運用curl工具打開url流
--with-ttf //打開freetype1.*的支持,能夠不加了
--with-xsl //打開XSLT 文件支持,擴展了libXML2庫 ,須要libxslt軟件
--with-gettext //打開gnu 的gettext 支持,編碼庫用到
--with-pear //打開pear命令的支持,PHP擴展用的
--enable-calendar //打開日曆擴展功能
--enable-mbstring //多字節,字符串的支持
--enable-bcmath //精度計算,解決蛋疼的數字運算精度問題
--enable-sockets //打開 sockets 支持
--enable-exif //圖片的元數據支持
--enable-magic-quotes //魔術引用的支持
--disable-rpath //關閉額外的運行庫文件
--disable-debug //關閉調試模式
--with-ldap-dir //輕量目錄訪問協議apache