Search

Language:  
Search for:

Available article translations:

How to downgrade PHP 5.3 on CentOS 5.x/6.x

APPLIES TO:
  • Parallels Plesk 11.x for Linux
  • Parallels Plesk 10.x for Linux

Problem

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

Solution

On CentOS 5: PHP 5.3.x is provided by Parallels, 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 Parallels Plesk Panel 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"}')




1d151d16e47c6f92bbf62d50eb32c4a2 56797cefb1efc9130f7c48a7d1db0f0c c81e59b61af9dca603ba03b14aabe968 9f8baf78266b4e54525d1c6bf06305a5 824237ce663843af86f93897fbd8e2f8

FEEDBACK
Was this article helpful?
Tell us how we may improve it.
Yes No
 
 
 
 
 
 
Desktop Virtualization
- Parallels Desktop 9 for Mac
- Parallels Transporter
- Parallels Desktop Switch to Mac Edition
- Parallels Desktop for Mac Enterprise Edition
- Parallels Management-Mac for Microsoft SCCM
Server Virtualization
- Parallels Cloud Server
- Parallels Containers for Windows 6.0 Beta
- Parallels Virtuozzo Containers
Automation
- Parallels Automation
- Parallels Automation for Cloud Infrastructure
- Parallels Business Automation Standard
- Parallels Virtual Automation
- Parallels Plesk Panel Suite
- Web Presence Builder
- Parallels Plesk Automation
- Parallels Small Business Panel
- Value-added Services for Hosters
- Parallels Partner Storefront
Services & Resources
- Cloud Acceleration Services
- Professional Services
- Support Services
- Training & Certification