环境准备:
6 N! O9 K, N% Byum groupinstall "Development tools"
1 g* O' v% j4 D7 o3 \& i7 k, Z3 k% `; vyum install libxml2-devel gd-devel libmcrypt-devel libcurl-devel openssl-devel8 d. [$ }) t/ W6 x
, f+ \" V' P [' F6 |
软件包:
# y& {0 p2 j4 Zwget http://us3.php.net/get/php-5.6.9.tar.gz/from/cn2.php.net/mirror
2 i" a8 {* p# Z2 e7 otar -xvf php-5.6.9.tar.gz$ ~: R$ s {( q: L% l3 N! k/ ^
cd php-5.6.9' W: _8 \" o! Y* Y
& G0 |2 m) }7 e) Q% j. [ p% j
编译安装 php 5.6.9 的参数:7 N0 O& D4 `" n
& S6 b3 J9 p' {
[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
$ o( }* Z. @& q# V$ ?, \% {
4 w! q* w% I" U. f c
make" _! ]! |4 F4 j/ {
make install5 R% p+ s7 g! l) N5 B
--enable-maintainer-zts 此句意思有线程安全版本,开启后ZendGuardLoader不能使用!
2 v9 Q# m" X8 \7 f2 K+ B |