php5.3升级脚本

在lanmp/wdcp/wdOS的当前版本中,默认的php都是用到5.2.17的版本
如需要升级到php5.3的,可使用如下脚本升级
(注:此升级无安全漏洞等原因,只为某些追求高版本或应用需求需要高版本,对于无这个必要的同学,可不用升级)

wget http://down.wdlinux.cn/in/php_up53.sh
sh php_up53.sh

看到"php update is OK"提示
表示,顺利完成

如有错误或不行,将问题反馈上来
备注:
该升级只是升级PHP的版本,相应的zend,eaccelerator没有升级
且zend opt从php5.3开始已不再支持,也就是说有用到zend opt的,就不要升级了,否则只会瞎折腾
不过可以使用Zend Guard Loader
安装
wget http://down.wdlinux.cn/in/ZendGL_ins.sh
sh ZendGL_ins.sh

eaccelerator也只要最新的0.9.6.1版本
安装
wget http://down.wdlinux.cn/in/eac0961_ins.sh
sh eac0961_ins.sh

 

 

解决阿里云安装PHP5.3上遇到: virtual memory exhausted: Cannot allocate memory

修改php_up53.sh

make clean
./configure --prefix=/www/wdlinux/apache_php-${Ver} --with-config-file-path=/www/wdlinux/apache_php-${Ver}/etc --with-mysql=/www/wdlinux/mysql --with-iconv=/usr --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 --enable-sockets --enable-zip --with-apxs2=/www/wdlinux/apache/bin/apxs --disable-fileinfo

posted @ 2014-02-12 10:06  meetrice  阅读(277)  评论(0编辑  收藏  举报