环境准备:% Y$ z9 ?; V0 J; V6 e; u* Q# Y5 J
yum groupinstall "Development tools"
8 B# S3 j1 }% v* Eyum install libxml2-devel gd-devel libmcrypt-devel libcurl-devel openssl-devel
: B4 R$ C2 Y* [( b, p# a" r+ u8 A4 @9 ]2 ^; R9 p3 T
软件包:, P1 f1 q7 {( m
wget http://us3.php.net/get/php-5.6.9.tar.gz/from/cn2.php.net/mirror
0 A7 z! g5 i ctar -xvf php-5.6.9.tar.gz+ o7 B) V/ q( R: ~* M
cd php-5.6.9
8 m0 Q/ n% M7 V: p& A& c4 ^4 e6 A3 q* f8 S, k" g% _% {: @
编译安装 php 5.6.9 的参数:
) S( W- \9 U5 {6 }# D; a; y. A; W9 Z% s# f# A
[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
@- p5 S' k, ]
i" e( ^, e! d5 N& Vmake
3 P1 _* P. ~, a+ L T( o) K7 ymake install% p" h8 c3 k6 c3 X' N5 Q6 m9 _! W
--enable-maintainer-zts 此句意思有线程安全版本,开启后ZendGuardLoader不能使用!
. t! y# n; m3 ^0 e2 h2 L8 K |