环境准备:- t L" W4 Q. m- `
yum groupinstall "Development tools"
) F0 o6 R8 j7 }/ @& V+ {4 v7 Q* Eyum install libxml2-devel gd-devel libmcrypt-devel libcurl-devel openssl-devel( ~4 f2 s1 C* W' _
. W8 a& |9 R B2 C( l1 Q" D" J
软件包:
/ _2 I0 u# @ n" k) Dwget http://us3.php.net/get/php-5.6.9.tar.gz/from/cn2.php.net/mirror8 J {/ U6 c6 p3 ], e7 P e
tar -xvf php-5.6.9.tar.gz
* M6 `8 D, [- J4 pcd php-5.6.96 D0 c6 m& n+ G6 q- N& m2 `
; h1 V L- [4 T- P
编译安装 php 5.6.9 的参数: t8 I7 }4 u+ g
. ^, }3 ]% S0 w/ l2 L1 {[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
( q7 F6 o+ H6 ]) S+ Z0 h4 p- }6 K% v
make# W8 e$ P& x# |9 W$ k/ ^5 O/ l
make install
+ m/ }+ A7 b! v U--enable-maintainer-zts 此句意思有线程安全版本,开启后ZendGuardLoader不能使用!
4 ?! P0 x7 G$ { d2 J |