Virtualmin currently provide PHP 5.1 (I’m using CentOS 5.5) and here’s how to upgrade its PHP version to 5.2. This command will activate Bleeding Edge Packages for CentOS/RHEL 5 on Virtualmin:
[root@server01 ~]# rpm -ivh http://software.virtualmin.com/bleed/centos/5/i386/virtualmin-bleed-release-1.0-1.rhel.noarch.rpm
After that, simply run following command to update PHP:
[root@server01 ~]# yum update php
And just answer “yes” when your system ask. Update process will just take a few seconds to complete.