php編譯參數選項 具體參數含義可以用./configure --help來查看

來源:互聯網
上載者:User

標籤:nbsp   zab   reg   zed   sha   white   模組   child   bsp   

php編譯參數選項 PHP_INSTALL_PATH=/data/web/phpMYSQL_INSTALL_PATH=/data/web/mysql./configure --prefix=${PHP_INSTALL_PATH} --with-config-file-path=${PHP_INSTALL_PATH}/etc --with-mysql=${MYSQL_INSTALL_PATH} --with-mysqli=${MYSQL_INSTALL_PATH}/bin/mysql_config --with-iconv-dir=/usr/local --with-freetype-dir --with-jpeg-dir --with-png-dir --with-zlib --with-libxml-dir=/usr/lib64 --enable-xml --disable-rpath --enable-bcmath --enable-shmop --enable-sysvsem --enable-inline-optimization --with-curl --with-curlwrappers --enable-mbregex --enable-fpm --enable-mbstring --with-mcrypt --with-gd --enable-gd-native-ttf --with-openssl --with-mhash --enable-pcntl --enable-sockets --with-ldap --with-ldap-sasl --with-xmlrpc --enable-zip --enable-soap --without-pear --enable-pdo --with-pdo-mysql --without-pear

 如果加的參數有不支援的,提示比如:configure: WARNING: unrecognized options: --enable-discard-path, --enable-safe-mode, --enable-fastcgi, --enable-force-cgi-redirect

說明上述這些參數廢棄了

 

具體參數含義可以用./configure --help來查看。

列表如下(部分參數未得到解釋):

# 指定 php 安裝目錄

--prefix=/usr/local/php 

# 指定php.ini位置

--with-config-file-path=/usr/local/php/etc 

 # mysql安裝目錄,對mysql的支援

--with-mysql=/usr/local/mysql

 mysqli擴充技術不僅可以調用MySQL的預存程序、處理MySQL事務,而且還可以使訪問資料庫工作變得更加穩定。

--with-mysqli=/usr/local/mysql/bin/mysql_config   

 整合 apache,apxs功能是使用mod_so中的LoadModule指令,載入指定模組到 apache,要求 apache 要開啟SO模組

--with-apxs2=/usr/local/apache/bin/apxs 

 # 選項指令 --with-iconv-dir 用於 PHP 編譯時間指定 iconv 在系統裡的路徑,否則會掃描預設路徑。

--with-iconv-dir=/usr/local 

 

--with-freetype-dir   開啟對freetype字型庫的支援 --with-jpeg-dir   開啟對jpeg圖片的支援 --with-png-dir   開啟對png圖片的支援 --with-zlib-dir   開啟zlib庫的支援,用於http壓縮傳輸--with-libxml-dir   開啟libxml2庫的支援--disable-rpath    關閉額外的運行庫檔案 --enable-bcmath    開啟圖片大小調整,用到zabbix監控的時候用到了這個模組--enable-shmop --enable-sysvsem  這樣就使得你的PHP系統可以處理相關的IPC函數了。--enable-inline-optimization  最佳化線程--with-curl    開啟curl瀏覽工具的支援 --with-curlwrappers    運用curl工具開啟url流 --enable-mbregex--enable-fpm 打上PHP-fpm 補丁後才有這個參數,CGI方式安裝的啟動程式--enable-mbstring    多位元組,字串的支援 --with-mcrypt                    mcrypt演算法擴充--with-mhash                     mhash演算法擴充--with-gd    開啟gd庫的支援 --enable-gd-native-ttf   支援TrueType字串函數庫--with-openssl      openssl的支援,加密傳輸https時用到的--enable-pcntl   freeTDS需要用到的,可能是連結mssql 才用到--enable-sockets     開啟 sockets 支援--with-xmlrpc    開啟xml-rpc的c語言 --enable-zip   開啟對zip的支援 --enable-ftp   開啟ftp的支援 

 

--with-bz2    開啟對bz2檔案的支援        --without-iconv   關閉iconv函數,字元集間的轉換 --with-ttf     開啟freetype1.*的支援,可以不加了 --with-xsl     開啟XSLT 檔案支援,擴充了libXML2庫 ,需要libxslt軟體 --with-gettext     開啟gnu 的gettext 支援,編碼庫用到 --with-pear    開啟pear命令的支援,PHP擴充用的 --enable-calendar    開啟日曆擴充功能--enable-exif    圖片的中繼資料支援 --enable-magic-quotes    魔術引用的支援 --disable-debug    關閉偵錯模式 --with-mime-magic=/usr/share/file/magic.mime      魔術標頭檔位置

 

CGI方式安裝才用的參數

--enable-fastCGI            支援fastcgi方式啟動PHP--enable-force-CGI-redirect        重新導向方式啟動PHP--with-ncurses         支援ncurses 螢幕繪製以及基於文本終端的圖形互動功能的動態庫--with-gmp  應該是支援一種規範--enable-dbase                     建立DBA 作為共用模組--with-pcre-dir=/usr/local/bin/pcre-config      perl的正則庫案安裝位置--disable-dmalloc--with-gdbm                     dba的gdbm支援--enable-sigchild--enable-sysvshm--enable-zend-multibyte         支援zend的多位元組--enable-wddx--enable-soap

 

php編譯參數選項 具體參數含義可以用./configure --help來查看

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.