php編譯參數註解--不明白許多參數的作用 慎用 –with-curlwrappers參數【轉載】

來源:互聯網
上載者:User

標籤:soa   ssl   nbsp   編碼   isa   pat   語言   nat   php   

在Linux下安裝PHP,原始碼方式安裝,總需要配置很多參數。這裡列出常用配置參數,並詳細用中文解釋說明了。給大家一些參考

編譯PHP的時候慎用 –with-curlwrappers參數

./configure


--prefix=/usr/local/PHP                                   php 安裝目錄 
--with-apxs2=/usr/local/apache/bin/apxs     表示使用apache2.0以上版本,apxs表示使用的apache1.0版本
--with-config-file-path=/usr/local/PHP/etc               指定php.ini位置
--with-MySQL=/usr/local/mysql                        mysql安裝目錄,對mysql的支援
--with-MySQLi=/usr/local/mysql/bin/mysql_config            mysqli檔案目錄,最佳化支援
--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                  開啟圖片大小調整,用到zabbix監控的時候用到了這個模組
--enable-sockets                  開啟 sockets 支援
--enable-exif                      圖片的中繼資料支援
--enable-magic-quotes               魔術引用的支援
--disable-rpath                     關閉額外的運行庫檔案
--disable-debug                  關閉偵錯模式
--with-mime-magic=/usr/share/file/magic.mime      魔術標頭檔位置

CGI方式安裝才用的參數
--enable-fpm                     打上PHP-fpm 補丁後才有這個參數,CGI方式安裝的啟動程式
--enable-fastCGI                  支援fastcgi方式啟動PHP
--enable-force-CGI-redirect             同上 ,協助裡沒有解釋
--with-ncurses                     支援ncurses 螢幕繪製以及基於文本終端的圖形互動功能的動態庫
--enable-pcntl                     freeTDS需要用到的,可能是連結mssql 才用到

mhash和mcrypt演算法的擴充
--with-mcrypt                     演算法
--with-mhash                     演算法

--with-gmp
--enable-inline-optimization
--with-openssl                     openssl的支援,加密傳輸時用到的
--enable-dbase
--with-pcre-dir=/usr/local/bin/pcre-config      perl的正則庫案安裝位置
--disable-dmalloc
--with-gdbm                     dba的gdbm支援
--enable-sigchild
--enable-sysvsem
--enable-sysvshm
--enable-zend-multibyte               支援zend的多位元組
--enable-mbregex
--enable-wddx
--enable-shmop
--enable-soap

php編譯參數註解--不明白許多參數的作用 慎用 –with-curlwrappers參數【轉載】

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在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.