环境准备:
3 B5 P0 \& A+ O7 M# ]4 O* H Eyum groupinstall "Development tools"
) M+ Y! e2 X& `9 S4 ]$ j* Syum install libxml2-devel gd-devel libmcrypt-devel libcurl-devel openssl-devel" \4 T, T$ B1 ]; a
2 f8 f1 x) {0 b
软件包:
4 u! ~: s6 `7 T$ Gwget http://us3.php.net/get/php-5.6.9.tar.gz/from/cn2.php.net/mirror
- P% U; I3 j& n% E" o8 \: k0 @tar -xvf php-5.6.9.tar.gz3 c' [2 O. C0 [; A# {
cd php-5.6.9, a& g( `% L2 C7 E( ]: _7 H
$ B# X" O, I5 F! j# N4 q* k6 _: \
编译安装 php 5.6.9 的参数:0 f$ g5 A; n9 t4 R( {% R1 m
g6 }1 C4 b6 F, X! F[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
+ m1 Y1 ~7 P+ C$ p- W8 ^
( S) L5 w1 L8 Wmake/ [. Y# ^5 w2 K/ X
make install* @9 c" d1 L# k' G% N( J) U7 Q
--enable-maintainer-zts 此句意思有线程安全版本,开启后ZendGuardLoader不能使用! u( N/ ~) M, m: s4 }
|