|
发表于 2011-3-5 20:21:03
|
显示全部楼层
升级php到 5.2.14
1. 添加源
rpm --import http://repo.webtatic.com/yum/RPM-GPG-KEY-webtatic-andy
wget -P /etc/yum.repos.d/ http://repo.webtatic.com/yum/webtatic.repo
yum --enablerepo=webtatic list php
2.更新
yum --enablerepo=webtatic --exclude=php*5.3* list php
yum --enablerepo=webtatic --exclude=php*5.3* update -y php
3.检测:
[root@bn131 ~]# php -v
PHP Warning: PHP Startup: mcrypt: Unable to initialize module
Module compiled with module API=20050922, debug=0, thread-safety=0
PHP compiled with module API=20060613, debug=0, thread-safety=0
These options need to match
in Unknown on line 0
PHP Warning: PHP Startup: mhash: Unable to initialize module
Module compiled with module API=20050922, debug=0, thread-safety=0
PHP compiled with module API=20060613, debug=0, thread-safety=0
These options need to match
in Unknown on line 0
PHP 5.2.14 (cli) (built: Aug 7 2010 10:28:27)
Copyright (c) 1997-2010 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2010 Zend Technologies
with Zend Extension Manager v1.2.2, Copyright (c) 2003-2007, by Zend Technologies
with Zend Optimizer v3.3.3, Copyright (c) 1998-2007, by Zend Technologies
[root@bn131 ~]#
版本更新成功,但php组件有两个不能兼容,卸载掉:
yum -y remove php-mhash
yum -y remove php-mcrypt
[root@bn131 ~]# php -v
PHP 5.2.14 (cli) (built: Aug 7 2010 10:28:27)
Copyright (c) 1997-2010 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2010 Zend Technologies
with Zend Extension Manager v1.2.2, Copyright (c) 2003-2007, by Zend Technologies
with Zend Optimizer v3.3.3, Copyright (c) 1998-2007, by Zend Technologies
[root@bn131 ~]# |
|