Upgrade PHP 5.1 to 5.2 in Centos

Step 1: Go to yum folder

[root@esjeruk server]# cd /etc/yum.repos.d/

Step 2: Add new repo

[root@esjeruk yum.repos.d]# vi C5.repo
[c5-testing]
name=CentOS-5 Testing
baseurl=http://dev.centos.org/centos/$releasever/testing/$basearch/
enabled=1
gpgcheck=1
gpgkey=http://dev.centos.org/centos/RPM-GPG-KEY-CentOS-testing
includepkgs=php*

Step 3 : UpgradeĀ 

[root@esjeruk server]# yum install httpd php php-mysql php-gd php-mbstring php-mcrypt mysql mysql-server

Step 4 : Check Version

[root@esjeruk server]# php -v
PHP 5.2.10 (cli) (built: Nov 13 2009 11:44:05)
Copyright (c) 1997-2009 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2009 Zend Technologies

Post to Twitter

This entry was posted in apache, centos, php, upgrade. Bookmark the permalink. Post a comment or leave a trackback: Trackback URL.

Post a Comment

Your email is never published nor shared. Required fields are marked *

*
*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>