To upgrade PHP and MySQL On Plesk running Linux Server Please follow these steps


1) Make sure you have yum installed on server.

root@server~]# which yum

2) Downloading and setting up plesk repository.

root@server~]# wget -q -O – | sh

3) Replace php.ini with latest php.ini

root@server~]# mv /etc/php.ini.rpmnew /etc/php.ini

4) Replacing old php.conf with new php.conf it it is present.

root@server~]# mv /etc/httpd/conf.d/php.conf.rpmnew /etc/httpd/conf.d/php.conf

5) Upgrade php to Latest Available Version

root@server~]# yum update php

6) Restart http service

root@server~]# /etc/init.d/httpd restart

7) Checking latest updated php version.

root@server~]# php -v

8)Upgrade mysql to latest.

root@server~]#yum update mysql

Note :: If MySQL is not getting started check and comment if the entry “skip-bdb” is present in my.cnf then mysql should get started.

9) Checking latest updated mysql version

root@server~]# mysql -V

IMP ::  Also please verify the rpm for mysql and php on the server they should be only latest version and not the older one

To check the installed rpm for mysql

[root@server~]# rpm -qa | grep mysql

As we can see from the above command that the older version of mysql rpm is still present on the server so you can remove it

[root@server~]# rpm -e mysql-server-5.0.77-4.el5_4.2 –nodeps

[root@server~]# rpm -qa | grep php

And the final output should be

[root@server~]# rpm -qa | grep php

[root@server~]# rpm -qa | grep php


And that’s it.. You are done with Up-gradations ;)