• Article for your preferred language does not exist. Below is international version of the article.

Article ID: 115733, created on Mar 15, 2013, last review on Apr 9, 2015

  • Applies to:
  • Plesk 11.5 for Linux
  • Plesk 10.4 for Linux/Unix
  • Plesk Automation 11.1


Some PHP applications running on websites are not compatible with PHP 5.3 and it may be necessary to downgrade PHP on the server.


On CentOS 5: PHP 5.3.x is provided by Odin, while PHP 5.1.x is available from the OS vendor's repositories.

The steps to downgrade are as follows:

  1. Since PHP 5.3 packages have the name "php53" or "php53-mysql," they cannot be replaced by the vendor's PHP packages and should be removed, ignoring dependencies:

    rpm -qa | grep php53 | xargs rpm -e --nodeps
  2. Install PHP from the vendor's repositories:

    yum install php php-pdo php-gd php-imap php-mbstring php-mysql php-xml php-cli
  3. Download the Plesk psa-php5-configurator package appropriate for your Plesk version and server CPU architecture:

  4. Install the Plesk PHP configurator package:

    rpm -Uhv psa-php5-configurator-1.6.2-cos5.build110120608.16.x86_64.rpm

On CentOS 6: CentOS 6 shipped with PHP 5.3 from the beginning and there are no earlier versions available in the OS vendor's repositories. A third-party software repository can be used. For example, PHP 5.2.17 is available from the Atomic repository. However, to downgrade PHP and keep it, automatic Plesk updates should be disabled. Micro-Updates should be installed as recommended in KB #9294.

Steps to downgrade PHP on CentOS 6:

  1. Add Atomic repository:

    wget -qq -O - http://www.atomicorp.com/installers/atomic | /bin/bash
  2. Downgrade all PHP packages:

    yum downgrade $(rpm -qa --qf "%{NAME}\n" | grep -v ioncube | grep ^php | awk '{print $1"-5.2.17"}')

dd0611b6086474193d9bf78e2b293040 56797cefb1efc9130f7c48a7d1db0f0c a914db3fdc7a53ddcfd1b2db8f5a1b9c 29d1e90fd304f01e6420fbe60f66f838 0a53c5a9ca65a74d37ef5c5eaeb55d7f e8756e9388aeca36710ac39e739b2b37 01bc4c8cf5b7f01f815a7ada004154a2 c1ecc6010feff26cb42d1d14a7881dd6 caea8340e2d186a540518d08602aa065 e0aff7830fa22f92062ee4db78133079 0efe2234e2ce513f2186f26c68447702

Email subscription for changes to this article
Save as PDF