环境准备:
# j" y1 s) b$ u7 y, iyum groupinstall "Development tools"6 I& _) o4 t9 V6 I) r
yum install libxml2-devel gd-devel libmcrypt-devel libcurl-devel openssl-devel4 M0 J9 j5 p- g
3 j m1 ~. L5 t0 w: F软件包:) E3 J4 Y b1 t6 ^3 G5 q( H" F
wget http://us3.php.net/get/php-5.6.9.tar.gz/from/cn2.php.net/mirror
! K3 V+ L- n1 Q: j+ ?tar -xvf php-5.6.9.tar.gz
# [+ [+ R6 t* Z$ u( @' Icd php-5.6.94 k9 x# f% D; k8 t' G
7 O( A# L% M2 I+ G4 d9 R
编译安装 php 5.6.9 的参数:& q$ g5 H0 T. c" @
: |! E1 R2 o1 {/ |1 [/ x. w, d[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
/ E5 j7 s& \ k
$ g( w9 Y( w( v' c6 a$ L" Smake
" F/ L; o# U$ V8 V3 Cmake install) `7 ]& \; S- _: p
--enable-maintainer-zts 此句意思有线程安全版本,开启后ZendGuardLoader不能使用!
0 i0 W; S6 A$ Z; a |