php编译参数

mod_php:

./configure --prefix=/opt/app/php --with-apxs2=/opt/app/apache-bbs/bin/apxs --enable-sockets --disable-debug --with-gd --without-iconv --enable-mbstring --enable-gd-native-ttf --with-mysql --with-config-file-path=/etc

 

cgi:

./configure  --prefix=/opt/app/php-cgi --enable-fastcgi  --enable-discard-path --enable-force-cgi-redirect --enable-sockets --disable-debug --with-gd --without-iconv --enable-mbstring --enable-gd-native-ttf --with-mysql  --with-config-file-path=/etc/php-cgi

 

其他人的:

./configure --prefix=/usr/local/php --with-mysql=/usr/local/mysql --with-gd=/usr --enable-calendar --with-zlib --with-bz2 --with-curl --with-mysqli=/usr/local/mysql/bin/mysql_config --enable-mbstring --with-openssl --enable-zend-multibyte --with-gettext --enable-exif --with-png-dir=/usr --with-jpeg-dir=/usr --with-libxml-dir=/usr --enable-gd-native-ttf --enable-dom --with-freetype-dir=/usr --with-iconv-dir=/usr --enable-fastcgi

 

./configure --prefix=/usr/local/webserver/php --with-config-file-path=/usr/local/webserver/php/etc --with-mysql=/usr/local/webserver/mysql --with-mysqli=/usr/local/webserver/mysql/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

 

 

./configure \

--prefix=/usr/local/php \

--enable-fastcgi \

--enable-force-cgi-redirect \

--enable-fpm \

--with-mysql \

--with-mysql-sock \

--with-zlib \

--with-gd \

--enable-gd-native-ttf \

--with-jpeg-dir=/usr \

--with-png-dir=/usr \

--with-freetype-dir=/usr \

--with-libxml-dir=/usr \

--enable-session \

--enable-soap \

--enable-dom \

--enable-sockets \

--enable-mbstring \

--enable-zip \

--with-mcrypt \

--with-curl --disable-debug --enable-pic --disable-rpath \

--enable-inline-optimization --with-xml \

--enable-sysvsem --enable-sysvshm --enable-pcntl --enable-mbregex \

--enable-xslt --enable-memcache --with-pcre-regex

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值