Old Server CentOS 5 PHP 5.2.14
New Server RHEL 6 PHP 5.2.14
Thus far, I've been compiling PHP 5.2.14 from source which has worked fine but now I'm realizing installing php-devel from rpm will ask to upgrade PHP. What's the best way to move to this new RHEL6 server but maintaining the PHP 5.2.14 version along with the extensions? I know I can't use the default RPM repo.
it's MUCH easier for yourself if you'd stick with RPMs instead of compiling from source as going forward you'll need less of your own time to maintan it. RHEL6 comes w/ PHP 5.3.x yet RHEL5 is 5.2.x., but if you really want to go that route, you'd need to recompile everything again since you're moving up some of major libraries and just by coping files over most likely won't work.