ins-lft

 

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
/usr/bin/yum

2) Downloading and setting up plesk repository.

root@server~]# wget -q -O – http://www.atomicorp.com/installers/atomic.sh | 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

mysqlclient15-5.0.90-1.el5.art
php-mysql-5.3.10-5.el5.art
mysql-libs-5.5.21-3.el5.art
mysql-5.5.21-3.el5.art
mysql-server-5.5.21-3.el5.art
mysql-server-5.0.77-4.el5_4.2

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
php-mysql-5.3.10-5.el5.art
mysql-libs-5.5.21-3.el5.art
mysql-5.5.21-3.el5.art
mysql-server-5.5.21-3.el5.art

[root@server~]# rpm -qa | grep php
psa-php5-configurator-1.5.3-cos5.build95100504.12
php-common-5.3.10-5.el5.art
php-cli-5.3.10-5.el5.art
php-gd-5.3.10-5.el5.art
php-mysql-5.3.10-5.el5.art
php-mbstring-5.3.10-5.el5.art
php-pdo-5.3.10-5.el5.art
php-5.3.10-5.el5.art
php-imap-5.3.10-5.el5.art
php-xml-5.3.10-5.el5.art

 

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