常用PHP编译参数说明
--with-config-file-path=/etc\ #指定php.ini位置
--with-apxs2\ #整合apache,apxs功能是使用mod_so中的LoadModule指令,加载指定模块到apache,要求apache 要打开SO模块
--with-MySQL=/usr/local/mysql\ #mysql安装目录,对mysql的支持
--with-mysqli=/usr/local/mysql/bin/mysql_config\ #mysqli文件目录,优化支持
--with-iconv-dir=/usr/local\ #iconv函数,对字符集间的转换
--with-freetype-dir\ #打开对freetype字体库的支持
--with-jpeg-dir\ #打开对jpeg图片的支持
--with-png-dir\ #打开对png图片的支持
--with-zlib\ #打开zlib库的支持
--with-libxml-dir=/usr/local\ #打开libxml2库的支持
--with-curl\ #打开curl浏览工具的支持
--with-curlwrappers\ #运用curl工具打开url流
--with-mcrypt\ #算法
--with-gd\ #打开gd库的支持
--with-ldap\ #Include LDAP support
--with-ldap-sasl\ #LDAP: Include Cyrus SASL support
--with-xmlrpc\ #打开xml-rpc的C语言
--with-openssl\ #openssl的支持,加密传输时用到的
--with-mhash\ #算法
--enable-xml\ #打开xml的支持
--disable-rpath\
--enable-discard-path\
--enable-safe-mode\
--enable-bcmath\
--enable-shmop\
--enable-sysvsem\
--enable-inline-optimization\ #优化线程
--enable-mbregex\ #打开对mbregex的支持
--enable-fastcgi\
--enable-fpm\
--enable-force-cgi-redirect\
--enable-mbstring\ #多字节,字符串的支持
--enable-gd-native-ttf\ #支持TrueType字符串函数库
--enable-pcntl\ #freeTDS需要用到的,可能是链接mssql 才用到
--enable-sockets\ #打开sockets 支持
--enable-zip\ #打开对zip的支持
--enable-soap\ #Enable SOAP support
编译时带上ZEND参数,以免liconv报错
make ZEND_EXTRA_LIBS='-liconv'
