Search

Language:  
Search for:

Available article translations:

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

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

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.

Resolution

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"}')
    

Search words:

downgrade php

php53-cli dependency

アプリケーションアップデート




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

FEEDBACK
Was this article helpful?
Tell us how we may improve it.
Yes No
 
 
 
 
 
 
Server Virtualization
- Odin Cloud Server
- Odin Containers for Windows 6.0
- Odin Virtuozzo Containers
Automation
- Odin Automation
- Odin Automation for Cloud Infrastructure
- Odin Business Automation Standard
- Odin Virtual Automation
- Odin Plesk Panel Suite
- Web Presence Builder
- Odin Plesk Automation
- Odin Small Business Panel
- Value-added Services for Hosters
- Odin Partner Storefront
Services & Resources
- Cloud Acceleration Services
- Professional Services
- Support Services
- Training & Certification