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

转载于:https://www.cnblogs.com/meetrice/p/3545440.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值