CentOS5下升级php至php5.3

2011年7月13日 | 标签:

执行如下指令即可
yum install yum-priorities -y
rpm -Uvh http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-4.noarch.rpm
rpm -Uvh http://dl.iuscommunity.org/pub/ius/stable/Redhat/5/i386/ius-release-1.0-6.ius.el5.noarch.rpm
yum remove php php-*
yum clean all
yum install -y php53 php53-mysql php53-gd php53-mbstring php53-mcrypt

再执行php -v进行验证
php -v
PHP 5.3.3 (cli) (built: Mar 30 2011 13:51:41)
Copyright (c) 1997-2010 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies

目前还没有任何评论.