php編譯安裝參數詳解

來源:互聯網
上載者:User

標籤:

 

./configure --prefix=/usr/local/php --with-config-file-path=/usr/local/php/etc --with-mysql=/usr/local/mysql --with-mysqli=/usr/bin/mysql_config --with-iconv-dir=/usr/local --with-freetype-dir --with-jpeg-dir --with-png-dir --with-zlib --with-libxml-dir=/usr --enable-xml --disable-rpath --enable-discard-path --enable-safe-mode --enable-bcmath --enable-shmop --enable-sysvsem --enable-inline-optimization --with-curl --with-curlwrappers --enable-mbregex --enable-fastcgi --enable-fpm --enable-force-cgi-redirect --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 --with-zlib --enable-pdo --with-pdo-mysql --with-mysql#mysqli擴充技術不僅可以調用MySQL的預存程序、處理MySQL事務,而且還可以使訪問資料庫工作變得更加穩定。 make ZEND_EXTRA_LIBS=‘-liconv‘ make install 

--prefix=/usr/local/php

指定 php 安裝目錄 
 

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

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

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

--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        

重新導向方式啟動PHP

 

--with-ncurses                    

支援ncurses 螢幕繪製以及基於文本終端的圖形互動功能的動態庫

--enable-pcntl                     freeTDS需要用到的,可能是連結mssql 才用到
 

mhash和mcrypt演算法的擴充

--with-mcrypt                     演算法

--with-mhash                      演算法

以上函數庫需要安裝


 

--with-gmp  應該是支援一種規範

--enable-inline-optimization  最佳化線程

--with-openssl                     openssl的支援,加密傳輸時用到的

--enable-dbase                     建立DBA 作為共用模組

--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編譯安裝參數詳解

聯繫我們

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