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

./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()函数(安全模式下始终禁用该函数,而不管如何设置)

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值