admin 发表于 2015-5-22 15:22:42

php5.6.9编译安装手迹

环境准备:
yum groupinstall "Development tools"
yum install libxml2-devel gd-devel libmcrypt-devel libcurl-devel openssl-devel

软件包:
wget http://us3.php.net/get/php-5.6.9.tar.gz/from/cn2.php.net/mirror
tar -xvf php-5.6.9.tar.gz
cd php-5.6.9

编译安装 php 5.6.9 的参数:


./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


make
make install
--enable-maintainer-zts此句意思有线程安全版本,开启后ZendGuardLoader不能使用!
页: [1]
查看完整版本: php5.6.9编译安装手迹