环境准备:0 S/ v% P& n1 {. X) R
yum groupinstall "Development tools"( C+ s( m6 j/ o0 R* x) K
yum install libxml2-devel gd-devel libmcrypt-devel libcurl-devel openssl-devel
2 n( T% B: d( N& k! d3 n
6 ?3 m% P0 L4 N& O ]软件包:" C C* o. {2 j( j
wget http://us3.php.net/get/php-5.6.9.tar.gz/from/cn2.php.net/mirror
) Z( t+ x4 O7 ?( ztar -xvf php-5.6.9.tar.gz
+ \/ u8 b/ C$ pcd php-5.6.9$ m7 K, F! ?5 A# A$ {& g* S* U
3 C$ D. w9 _4 W! D. Y
编译安装 php 5.6.9 的参数:0 O- T9 Q2 J6 \; V8 T7 U
- ~8 P, y3 [1 H* _% L6 m[Bash shell] 纯文本查看 复制代码
./configure --prefix=/webserver/php-5.6.9 --with-config-file-path=/webserver/php-5.6.9/etc --with-mysql=mysqlnd --with-mysqli=mysqlnd --with-pdo-mysql=mysqlnd --with-zlib --with-curl --with-ldap --with-imap --with-kerberos --with-imap-ssl --with-gettext --with-gd --enable-gd-native-ttf --with-freetype-dir --with-jpeg-dir --with-png-dir --with-openssl --with-iconv=/usr/local --with-pcre-dir --with-mhash --with-mcrypt --with-xmlrpc --with-imap --enable-xml --enable-ftp --enable-mbstring --enable-soap --enable-sockets --enable-fpm --enable-zip --disable-debug --enable-calendar --enable-static --enable-inline-optimization --enable-wddx --enable-opcache --enable-bcmath --enable-shmop --enable-sysvsem --enable-mbregex --enable-pcntl --without-pear --enable-ctype
- y5 a. {% x N, c$ v4 i8 Y
5 M u. y( S0 Jmake
# c: ^0 k T& G3 i' T! ?make install$ I2 I: p2 R) X( I" }9 W& d) a
--enable-maintainer-zts 此句意思有线程安全版本,开启后ZendGuardLoader不能使用!6 b7 b5 U3 `4 h
|