升级wdcp中apache的php到5.3.29

下载php5.3.29
http://cn2.php.net/get/php-5.3.29.tar.bz2/from/this/mirror

编译
'./configure' '--prefix=/www/wdlinux/apache_php-5.3.29' '--with-config-file-path=/www/wdlinux/apache_php-5.3.29/etc' '--with-mysql=/www/wdlinux/mysql/include/mysql' '--with-iconv' '--with-freetype-dir' '--with-jpeg-dir' '--with-png-dir' '--with-zlib' '--with-libxml-dir=/usr' '--enable-xml' '--disable-rpath' '--enable-inline-optimization' '--with-curl' '--enable-mbregex' '--enable-mbstring' '--with-mcrypt=/usr' '--with-gd' '--enable-gd-native-ttf' '--with-openssl' '--with-mhash' '--enable-ftp' '--with-apxs2=/www/wdlinux/apache/bin/apxs' '--enable-zip' '--with-pdo-mysql' '--with-mysqli' '--enable-exif' '--enable-calendar' '--enable-shared'

make && make install

拷贝配置文件
cp php.ini-production /www/wdlinux/apache_php-5.3.29/etc/php.ini

修改配置文件
extension_dir = "/www/wdlinux/apache_php-5.3.29/lib/php/extensions/"

open_basedir = /www/web/:/tmp/

zend_extension=/www/wdlinux/apache_php-5.3.29/lib/php/Zend/ZendGuardLoader.so
zend_loader.enable=1
zend_loader.disable_licensing=0
zend_loader.obfuscation_level_support=3

重新链接php路径
ln -s  /www/wdlinux/apache_php-5.3.29 apache_php

下载zend Guard
php5.3
http://downloads.zend.com/guard/5.5.0/ZendGuardLoader-php-5.3-linux-glibc23-x86_64.tar.gz
http://downloads.zend.com/guard/5.5.0/ZendGuardLoader-php-5.3-linux-glibc23-i386.tar.gz

注:
/www/wdlinux/httpd-2.2.22/modules/libphp5.so文件在编译前进行备份,php编译时会覆盖此文件