How to upgrade PHP to PHP 5.5 on CentOS 5

Created:

2016-11-16 12:39:36 UTC

Modified:

2017-08-08 13:23:02 UTC

0

Was this article helpful?


Have more questions?

Submit a request

How to upgrade PHP to PHP 5.5 on CentOS 5

Applicable to:

  • Plesk 12.5 for Linux

Resolution

PHP upgrade to 5.5 on CentOS 5 is possible, however, not original packages will be used.

It is possible to install only php55w packages, that may cause issues during Plesk upgrade.

  1. Install epel repository:

    # rpm -i http://dl.fedoraproject.org/pub/epel/5/x86_64/epel-release-5-4.noarch.rpm
  2. To upgrade PHP 5.5 from PHP 5.3, it is required to remove psa-php53-configurator package without dependencies:

    # rpm -e --nodeps psa-php53-configurator
  3. Then, perform the following steps:

    # yum install yum-plugin-replace
    # yum replace php53-common --replace-with=php55w-common
  4. Choose 'Y' when the 'WARNING: Unable to resolve all..' is shown and make sure that no psa packages will be removed during the operation and click yes.

  5. Edit /etc/php.d/00-ioncube-loader.ini changing path from 5.3 to 5.5 and make sure that no errors shown after executing php -v

  6. Install psa-php5-configurator package:

    # rpm -ivh --nodeps http://autoinstall.plesk.com/PSA_12.5.30/dist-rpm-CentOS-5-x86_64/opt/php5/psa-php5-configurator-1.7.0-cos5.build1205150820.19.x86_64.rpm
  7. Execute /usr/local/psa/bin/php_handler --reread

Note: In case of upgrade from other PHP version, it is not required to perform step 2, step 6. But it is required to check carefully on the step 3 that no Plesk packages are going to be removed.

Have more questions? Submit a request
Please sign in to leave a comment.