您的位置:首页 > 编程语言 > PHP开发

php编译选项(有关注释只整理了这么多)

2010-06-14 16:50 316 查看
./configure --prefix=/usr/local/php
--with-apxs2=/usr/local/apache2/bin/apxs
--with-config-file-path=/usr/local/php/etc
--with-mysql=/usr/local/mysql

--enable-fastcgi
--enable-force-cgi-redirect

--with-zlib
--with-gd
--with-ttf
--with-png
--with-gmp
--with-xml #支持xml解析程序库
--with-jpeg-dir
--with-freetype-dir
--with-expat-dir=/usr #为了系统的安全考虑,会指定php程序一定要在哪个目
录执行
--with-mysql=/usr/local/mysql --with-charset=utf-8
--with-config-file-path=/usr/local/lib #指定php.ini路径,供php初始化用
--disable-debug --disable-posix --disable-rpath --disable-debug
--disable-dmalloc

--enable-safe-mode #安全模式
--enable-magic-quotes
--enable-bcmath #打开高精度函数。必须要安装本函数库,选项方有效
--enable-dio
--enable-gd-native-ttf
--enable-sysvsem #使用sysv的信号机制,要打开本选项
--enable-sysvshm
--enable-wddx
--enable-versioning
--enable-pic
--enable-inline-optimization
--enable-memory-limit
--enable-mbstring
--enable-mbregex
--enable-mbstr-enc-trans
--enable-ftp
--enable-track-vars=yes #让php能追踪HTTP_GET_VARS、HTTP_POST_VARS 及
HTTP_COOKIE_VARS 三个变量,一般是打开的。
--enable-gd-native-ttf
--enable-dl #允许dl()函数(安全模式下始终禁用该函数,而不管如何设置)
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: