环境准备:) u) {! Y, I) B6 S
yum groupinstall "Development tools"! W; w6 q. \) i; r
yum install libxml2-devel gd-devel libmcrypt-devel libcurl-devel openssl-devel2 h7 |# h z8 N% z
( q0 x# p0 T8 }# ~3 H2 h软件包:
5 {% G" s# J% [- \* j, i# J0 u! Twget http://us3.php.net/get/php-5.6.9.tar.gz/from/cn2.php.net/mirror3 S3 e5 E4 h, ^4 k5 q
tar -xvf php-5.6.9.tar.gz3 c4 D6 l7 F" U( h
cd php-5.6.9* j! V$ _# {$ e3 C
) i4 g$ w2 u6 q6 R9 I编译安装 php 5.6.9 的参数:
( P" }+ I2 _4 t! i4 B
0 s; p0 \& n$ P2 H/ {2 _" A6 E/ J" z[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
% P) q$ P2 G" H# T9 \
# O1 R$ \! c; h+ Xmake
( A; H5 F7 L8 Dmake install* H2 G/ `1 n; d2 s i
--enable-maintainer-zts 此句意思有线程安全版本,开启后ZendGuardLoader不能使用!# J; n* Z, i( ~. J2 Y& ^
|