CentOS 4 – Upgrade PHP, MySQL to 5
There are tons of reasons to upgrade, and that’s out of scope here.
I’m running 4.7 x64, and I want to upgrade. After googling around, found out that I have to upgrade by grabbing packages from the centosplus repo.
Consider reading http://wiki.centos.org/AdditionalResources/Repositories/CentOSPlus/CentOSWebStack?action=show&redirect=Repositories%2FCentOSPlus%2FCentOSWebStack.
At first try, php-pear won’t let me pass the Yum transaction check, and after googling for a long time. I gave up. Screw php-pear, I rpm removed it with –nodeps.
Then Yum would go through, but soon met lots of MySQL related file conflicts. Again, after googling, remove MySQL i386 version if you have it.
After that, just run a yum update php mysql (must enable centosplus repo) 

