Hello,
Here are the instructions on how to get PHP and MySQL upgraded to versions 5 on your VPS with CentOS 4.
1. Backup your VPS via VZPP (accessed via
https://your.vps.ip:4643 with the same login details for Plesk administration)
2. Login to the server as root via ssh
3. Install yum using the following commands:
rpm -ihv --nodeps http://mirror.centos.org/centos-4/4/os/i386/CentOS/RPMS/python-urlgrabber-2.9.8-2.noarch.rpm
rpm -ihv --nodeps http://mirror.centos.org/centos-4/4/os/i386/CentOS/RPMS/python-elementtree-1.2.6-5.el4.centos.i386.rpm
rpm -ihv --nodeps http://mirror.centos.org/centos-4/4/os/i386/CentOS/RPMS/sqlite-3.3.6-2.i386.rpm
rpm -ivh --nodeps http://mirror.centos.org/centos-4/4/os/i386/CentOS/RPMS/python-sqlite-1.1.7-1.2.1.i386.rpm
rpm -ihv --nodeps http://mirror.centos.org/centos-4/4/os/i386/CentOS/RPMS/yum-2.4.3-4.el4.centos.noarch.rpm
4. Then add Atomic repository that contains PHP for Linux Plesk servers and update PHP and MySQL:
rpm -ivh http://www.atomicorp.com/channels/atomic/centos/4/i386/RPMS/atomic-release-1.0-10.el4.art.noarch.rpm
rpm --nodeps -e php-domxml
yum update php*
yum update mysql*
yum install php-xml
mv /etc/php.ini /etc/php.ini.bak (our backup)
mv /etc/php.ini.rpmnew /etc/php.ini
5. Restart Apache and MySQL to pickup the changes:
service mysqld restart
service httpd restart
6. Remove yum if you are done with software installations as using "yum upgrade" or installing other packages *MAY* break the VPS:
rpm -e `rpm -aq | grep yum`
I hope this helps. Please update this post, if you have any further questions, corrections or suggestions.