- Plesk 12.5 for Linux
How to upgrade PHP to PHP 5.5 on CentOS 5?
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.
Connect to the server over SSH.
Install epel repository:
# rpm -i http://archives.fedoraproject.org/pub/archive/epel/5/x86_64/epel-release-5-4.noarch.rpm
To upgrade PHP 5.5 from PHP 5.3, it is required to remove
psa-php53-configuratorpackage without dependencies:
# rpm -e --nodeps psa-php53-configurator
Then, perform the following steps:
# yum install yum-plugin-replace
# yum replace php53-common --replace-with=php55w-common
Choose 'Y' when the
'WARNING: Unable to resolve all..'is shown and make sure that no
psa packageswill be removed during the operation and click yes.
/etc/php.d/00-ioncube-loader.inichanging the path from 5.3 to 5.5 and make sure that no errors shown after executing
# 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
Execute the following command:
# /usr/local/psa/bin/php_handler --reread
Note: In case of an upgrade from another PHP version, it is not required to perform step 2, step 6. But it is required to check carefully on step 3 that no Plesk packages are going to be removed.