PHP以編譯方式安裝,編譯參數(shù)詳解析!
./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
創(chuàng)新互聯(lián)建站專注于阿魯科爾沁企業(yè)網(wǎng)站建設(shè),成都響應(yīng)式網(wǎng)站建設(shè),商城網(wǎng)站建設(shè)。阿魯科爾沁網(wǎng)站建設(shè)公司,為阿魯科爾沁等地區(qū)提供建站服務(wù)。全流程按需制作網(wǎng)站,專業(yè)設(shè)計,全程項目跟蹤,創(chuàng)新互聯(lián)建站專業(yè)和態(tài)度為您提供的服務(wù)
#mysqli擴展技術(shù)不僅可以調(diào)用MySQL的存儲過程、處理MySQL事務(wù),而且還可以使訪問數(shù)據(jù)庫工作變得更加穩(wěn)定。
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擴展技術(shù)不僅可以調(diào)用MySQL的存儲過程、處理MySQL事務(wù),而且還可以使訪問數(shù)據(jù)庫工作變得更加穩(wěn)定。
--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 關(guān)閉iconv函數(shù),種字符集間的轉(zhuǎn)換
--with-libXML-dir 打開libxml2庫的支持
--with-XMLrpc 打開xml-rpc的c語言
--with-zlib-dir 打開zlib庫的支持
--with-gd 打開gd庫的支持
--enable-gd-native-ttf 支持TrueType字符串函數(shù)庫
--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 多字節(jié),字符串的支持
--enable-bcmath 打開圖片大小調(diào)整,用到zabbix監(jiān)控的時候用到了這個模塊
--enable-sockets 打開 sockets 支持
--enable-exif 圖片的元數(shù)據(jù)支持
--enable-magic-quotes 魔術(shù)引用的支持
--disable-rpath 關(guān)閉額外的運行庫文件
--disable-debug 關(guān)閉調(diào)試模式
--with-mime-magic=/usr/share/file/magic.mime 魔術(shù)頭文件位置
CGI方式安裝才用的參數(shù)
--enable-fpm
打上PHP-fpm 補丁后才有這個參數(shù),CGI方式安裝的啟動程序
--enable-fastCGI
支持fastcgi方式啟動PHP
--enable-force-CGI-redirect
重定向方式啟動PHP
--with-ncurses
支持ncurses 屏幕繪制以及基于文本終端的圖形互動功能的動態(tài)庫
--enable-pcntl freeTDS需要用到的,可能是鏈接mssql 才用到
mhash和mcrypt算法的擴展
--with-mcrypt 算法
--with-mhash 算法
以上函數(shù)庫需要安裝
--with-gmp 應(yīng)該是支持一種規(guī)范
--enable-inline-optimization 優(yōu)化線程
--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的多字節(jié)
--enable-mbregex
--enable-wddx
--enable-shmop
--enable-soap
網(wǎng)頁標(biāo)題:PHP以編譯方式安裝,編譯參數(shù)詳解析!
網(wǎng)頁路徑:http://www.xueling.net.cn/article/jghijd.html