For those of you frustrated on your aged PHP for Media Temple DV, they’ve recently released a step-by-step rpm install for PHP 5 on your server. While this worked in installing PHP without a hitch (I already upgraded to mysql 4+, but feel free too in these directions), I had an issue where PHP 5 could no longer find MySQL on my server. After initial anxiety, launching a phpinfo() test page yielded that the modules for PHP were pointed at:
/usr/lib/php4
Whoops – but easy fix. Log in as root, and open up /etc/php.ini – on line 428 (atleast for me) you’ll see:
extension_dir = /usr/lib/php4
Change that line to the new location of those PHP 5 modules, which is:
extension_dir = /usr/lib/php/modules
And viola, PHP 5 running nice and happy.