环境准备:# z9 K5 [+ q4 Y" E1 X" |; R1 a( @
yum groupinstall "Development tools" z7 S2 N1 Q. p" X
yum install libxml2-devel gd-devel libmcrypt-devel libcurl-devel openssl-devel
( G# ?& {& a* l5 ~ O. b- m9 y. L1 M" Q- i/ L
软件包:6 Y4 F% O t& p
wget http://us3.php.net/get/php-5.6.9.tar.gz/from/cn2.php.net/mirror- j- C e6 m; T5 o
tar -xvf php-5.6.9.tar.gz& l F7 r3 a4 I3 f
cd php-5.6.9& y( ?" g/ q% e" u* B9 u* F
3 J: a$ J9 l/ s7 W5 D编译安装 php 5.6.9 的参数:- L9 R# V8 a! w3 _+ N; d
" p) K9 M( I9 z' K[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
% z, J7 |* L3 v) u! x9 y
" }0 x8 L6 q# }8 I1 q W, y. `: qmake, v# K: g; N: p2 I5 d
make install5 O: U% K) N" a2 H) T
--enable-maintainer-zts 此句意思有线程安全版本,开启后ZendGuardLoader不能使用!
2 X3 Y& U; ?& P! Q4 w$ A |