PHP编译参数configure配置详解
./configure -h
在源代码名目中,该命令可以查看所有编译参数乃至对应的英文说明
编译参数-说明
--prefix=/opt/php //指定 php 安置名目
--with-apxs2=/usr/local/apache/bin/apxs //整合Apache
--with-config-file-path=/opt/php/etc //指定php.ini位置
--with-config-file-scan-dir=/opt/php/etc/php.d //指定额外拓展配置归放处文件夹
--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 //精度运算,解决蛋疼的数字运算精度问题
--enable-sockets //翻开 sockets 支撑
--enable-exif //图片的元数据支撑
--enable-magic-quotes //魔术援用的支撑
--disable-rpath //关闭额外的运转库文件
--disable-debug //关闭调试模式
--with-ldap-dir //轻量名目拜访和谈
更多PHP相关知识,请拜访PHP教程!
以上就是PHP编译参数configure配置详解的具体内容,更多请关注百分百源码网其它相关文章!