CentOS 5.5 PHP upgrade to PHP 5.2.x (use yum)

CentOS 5.5 PHP upgrade to PHP 5.2.x (use yum) | 阿倫基’s free DNA

CentOS 5.5 PHP upgrade to PHP 5.2.x (use yum)
發表於 一月 11, 2011 由 Gigo

CentOS 5.5 以yum升級,php只有到PHP 5.1.6 版。
[root@cdc ~]# php -v
PHP 5.1.6 (cli) (built: Nov 29 2010 16:47:37)
Copyright (c) 1997-2006 The PHP Group
Zend Engine v2.1.0, Copyright (c) 1998-2006 Zend Technologies

採用[方法1]成功後
[root@cdc yum.repos.d]# php -v
PHP 5.2.16 (cli) (built: Dec 17 2010 14:09:03)
Copyright (c) 1997-2010 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2010 Zend Technologies

採用[方法2]成功後
[root@cdc etc]# php -v
PHP 5.2.17 (cli) (built: Jan 7 2011 08:49:48)
Copyright (c) 1997-2010 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2010 Zend Technologies

————————————————-

[方法1].

# rpm –import http://www.jasonlitka.com/media/RPM-GPG-KEY-jlitka
# vi /etc/yum.repos.d/CentOS-Base.repo 並將下面內容加到最後
[utterramblings]
name=Jason’s Utter Ramblings Repo
baseurl=http://www.jasonlitka.com/media/EL$releasever/$basearch/
enabled=1
gpgcheck=1
gpgkey=http://www.jasonlitka.com/media/RPM-GPG-KEY-jlitka

***執行下面指令之後,記得重新啟動 httpd
yum update php -y
yum install libmcrypt -y

[方法2]. ref: http://forum.parallels.com/showthread.php?t=81843
ref: http://www.atomicorp.com/wiki/index.php/PHP

Yep, wiki page is here: http://www.atomicorp.com/wiki/index.php/PHP

For the lazy

wget -q -O – http://www.atomicorp.com/installers/atomic |sh

and then

yum update

[方法3.]

http://thedrupalblog.com/upgrading-php-version-526-centos-yum

[方法4.] 可升級到 php 5.3.5
Installing PHP 5.2.x or 5.3.x on RedHat ES5, CentOS 5, etc

http://www.centric-it.com/2008/03/13/installing-php-52x-on-redhat-es5-centos-5-etc/

發表迴響

你的電子郵件位址並不會被公開。 必要欄位標記為 *

What is 8 + 7 ?
Please leave these two fields as-is:
IMPORTANT! To be able to proceed, you need to solve the following simple math (so we know that you are a human) :-)