环境准备:
7 R8 Q$ G2 j" _/ T/ E: Pyum groupinstall "Development tools"
" t- W5 }' [$ {' I+ Syum install libxml2-devel gd-devel libmcrypt-devel libcurl-devel openssl-devel
$ `# ?$ k% E8 i+ J$ f0 z/ Z5 K$ U, R5 u$ u( e4 P: W5 [! a
软件包:
0 i0 n/ p1 v( T+ \) w& iwget http://us3.php.net/get/php-5.6.9.tar.gz/from/cn2.php.net/mirror
$ T3 z' o$ r$ |3 Rtar -xvf php-5.6.9.tar.gz0 a, x8 D$ E B& e9 S
cd php-5.6.92 v7 ]' i: W c/ t
& e0 _8 f A! s$ a
编译安装 php 5.6.9 的参数: u" o3 V# Y/ M+ v7 d. [% L: U7 ?
% k2 K; m h+ h; S+ l) @[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
( M" j( F% c+ M& j3 v. j4 a; H8 m" f7 R0 E
make/ N4 ]0 z0 X# H/ z* Y
make install
* k& P3 r% j+ k n$ R--enable-maintainer-zts 此句意思有线程安全版本,开启后ZendGuardLoader不能使用!
: f8 k9 ^& H( [# @" e% q |