Article ID: 119803, created on Jan 24, 2014, last review on Jun 17, 2016

  • Applies to:
  • Plesk Automation 11.5
  • Plesk 11.5 for Linux


PHP was upgraded on the server though nobody explicitly launched the PHP update. Websites are not adopted to a new version and fail to load.

Third party repositories like 'atomic' or 'remi' are installed on the server:

[root@root ~]# find /etc/yum.repos.d/ -name '*.repo'|grep -v CentOS


A lot of rpm packages depend on PHP, so any modification to PHP-dependent packages can lead to PHP upgrade since a newer version is available in the custom repository.

For example, this might happen in case if you execute yum for 'mysql' packages.


Though Plesk Panel itself supports third party repositories, you should be careful installing a newer PHP versions from them, because there are a lot of differencies in PHP 5.x and 5.4, which may affect the operation of the websites that use PHP.

In order to roll bacl PHP from base repository and prevent it from upgrade, pelase use the following instructions.

  1. Roll back PHP packages:

    [root@server ~]# rpm -qa --qf "%{name} \n"|grep php|grep -v psa
    [root@server ~]# rpm -qa --qf "%{name} \n"|grep php|grep -v psa > php_packages
    [root@server ~]# rpm -qa --qf "%{name} \n"|grep php|grep -v psa |while read p;do rpm -e --nodeps $p;done
    warning: /etc/php.ini saved as /etc/php.ini.rpmsave
  2. Prohibit PHP and MySQL updates in the custom repositories configuration:

    find /etc/yum.repos.d/ -name '*.repo'|grep -v CentOS|while read repo;do sed -i '/gpgcheck*/ a\exclude=php* mysql*'  $repo;done
  3. Install all the PHP packages from basic repository:

    [root@server ~]# packages=(`cat php_packages`)
    [root@server ~]# yum install `echo ${packages[@]}`
  4. Roll back the original configuration file:

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

If you want to install a custom PHP version on your server, please use the following article:

118378 - How to enable multiple PHP Versions in Parallels Plesk 11.5 and Plesk Automation 11.5 on Linux

Search Words

sites down after PHP upgrade

select multiple php version

PHP upgrade

unable to login on horde webmail

I need to upgrade to release 4 of 11.5 but need to know what forced upgrades will happen and how to leave our legacy server as old PHP

Switch php package

Switch php package

sites down

a914db3fdc7a53ddcfd1b2db8f5a1b9c 56797cefb1efc9130f7c48a7d1db0f0c 01bc4c8cf5b7f01f815a7ada004154a2 29d1e90fd304f01e6420fbe60f66f838 0a53c5a9ca65a74d37ef5c5eaeb55d7f 33a70544d00d562bbc5b17762c4ed2b3 caea8340e2d186a540518d08602aa065 e0aff7830fa22f92062ee4db78133079

Email subscription for changes to this article
Save as PDF