I’m almost crazy thinking about how to update my current PHP 5.1 on CentOS 5 64bit. My phpMyAdmin won’t work on PHP 5.1 and everytime i try to update via yum command, it always says that PHP already installed and no update repo. The yum command that i use to update php is
#yum update php
But, finally i figure out that PHP 5.2 must be manually install and update through repo update. As long as you’re using the standard PHP packages on your CentOS server you won’t need to do anything extra. If you’re using extra PHP packages that aren’t part of the standard CentOS repositories (like php-mcrypt) you’ll have to remove them or find updated versions of them.
Add the development repositories
First thing we need to do is add the development repositories to yum. When we add the development repository we’re going to configure it so it only pulls PHP packages. To start we’ll need create a new yum repository configuration file (use your favorite editor)
# /etc/yum.repos.d/CentOS-Testing.repo
Copy/paste the following into this file:
# CentOS-Testing:
# !!!! CAUTION !!!!
# This repository is a proving grounds for packages on their way to CentOSPlus and CentOS Extras.
# They may or may not replace core CentOS packages, and are not guaranteed to function properly.
# These packages build and install, but are waiting for feedback from testers as to
# functionality and stability. Packages in this repository will come and go during the
# development period, so it should not be left enabled or used on production systems without due
# consideration.
[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*
Make sure to remove any spaces at the start of each line, then save and close the file and you’re done.
Update PHP packages
Before updating your PHP packages you’ll want to get a list of what you currently have installed. To get a list of current PHP packages run the following:
# rpm -qa |grep php
Now you can use yum to update the PHP packages on your system:
# yum update
You should be shown a list of packages that are going to be updated. Compare it to the list of PHP packages on your system. Note any packages that are not in the list. You’ll need to remove these packages or find updates for them because they won’t work after you update to PHP 5.2.x. If that is acceptable type “y” to continue and let yum update the packages.
Once yum has completed restart Apache:
# service httpd restart
Now you have PHP 5.2 installed on your CentOS 5 64bit and of course my phpMyAdmin now working!









confused
any video tutorial pls?
thanks
ga ada fer
pelan2 aja bacanya, tar juga ngerti
Hi,
this seems to be copied from http://wiki.centos.org/HowTos/PHP_5.1_To_5.2
That is OK, but this is 32bit version HowTo.
Is this really working with 64bit CentOS and are you sure, that installed packages are compiled on 64bit version?
I don’t like end with 32bit packages on 64bit OS.
Yep, working for me
i use cent0s 5.7 (64bit) but but do not c?p nh?t php5.1 ?? php5.2
find help: http://wiki.centos.org/HowTos/PHP_5.1_To_5.2