环境准备:' l! A- P$ J8 v) R4 e
yum groupinstall "Development tools"
! [! P6 p, [8 h- v# gyum install libxml2-devel gd-devel libmcrypt-devel libcurl-devel openssl-devel0 |/ \; H, m7 U5 \( r l
6 X% b2 c F1 T+ A( P5 t9 j" Q软件包:
- O `9 [7 S0 t0 F$ [1 Xwget http://us3.php.net/get/php-5.6.9.tar.gz/from/cn2.php.net/mirror
& S0 X( p5 v, [4 M4 O! Dtar -xvf php-5.6.9.tar.gz5 ]+ [( C# ~, Z
cd php-5.6.95 Y: K: }" j0 v4 e
1 b1 V# K. W; n) P; |% R
编译安装 php 5.6.9 的参数:
; h2 [, c5 K' @( S9 P: @ N3 w0 g6 D* T& 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
4 v' }% ~, p9 n( u e" n4 N6 S9 c" f5 e ?4 Z: G U
make
* o5 Y" M7 |6 Jmake install# c0 U. U; O( d5 H% \+ j& R& _
--enable-maintainer-zts 此句意思有线程安全版本,开启后ZendGuardLoader不能使用!
/ \/ Q; |9 a) a8 Y' k; W |