I'm a Linux newbie but I need to upgrade PHP on CentOS 4.5 to the latest version -- or at least 5.2.2 or better. What's the easiest way to do that? The latest available via yum seems to be 5.1.6 and I can't find anything on the Web that seems to work.
There is a repository on yum called c5 testing i think. It has PHP 5.2.6 A note though, not all modules in PHP are in this testing repo, and some you have to update yourself.
So this is not something I would recommend on a live server. I did this on a dev server and had some problems.
yum --enablerepo=c5-testing install php
I think this works, i have the commands at work but you can google some info regarding the c5 testing repo and PHP.
If al else fails, you can always compile from source. I've done it before on CentOS and it actually works quite smoothly.