• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

Issue Errors when trying to upgrade to php 7.1

Ramon T

New Pleskian
Hello, I have a dedicated server with the following configuration: Plesk Onyx Version 17.0.17 Update #12, Centos 7. I'm trying to upgrade from php 5.6.30 to php 7.1 I get a lot of dependencies error messages:

[root@ns525188 ~]# yum update php
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: mirror.its.dal.ca
* epel: mirror.cs.princeton.edu
* extras: mirror.its.dal.ca
* ius: ius.mirror.constant.com
* remi: repo1.ash.innoscale.net
* remi-php55: repo1.ash.innoscale.net
* remi-php56: repo1.ash.innoscale.net
* remi-php70: repo1.ash.innoscale.net
* remi-php71: repo1.ash.innoscale.net
* remi-safe: repo1.ash.innoscale.net
* updates: mirror.its.dal.ca
Resolving Dependencies
--> Running transaction check
---> Package php.x86_64 0:5.6.30-1.el7.remi will be updated
---> Package php.x86_64 0:7.1.1-2.el7.remi will be an update
--> Processing Dependency: php-common(x86-64) = 7.1.1-2.el7.remi for package: php-7.1.1-2.el7.remi.x86_64
--> Processing Dependency: php-cli(x86-64) = 7.1.1-2.el7.remi for package: php-7.1.1-2.el7.remi.x86_64
--> Running transaction check
---> Package php-cli.x86_64 0:5.6.30-1.el7.remi will be updated
---> Package php-cli.x86_64 0:7.1.1-2.el7.remi will be an update
---> Package php-common.x86_64 0:5.6.30-1.el7.remi will be updated
--> Processing Dependency: php(api) = 20131106-64 for package: php-pecl-jsonc-1.3.10-1.el7.remi.5.6.x86_64
--> Processing Dependency: php(api) = 20131106-64 for package: php-pecl-zip-1.13.5-1.el7.remi.5.6.x86_64
--> Processing Dependency: php(api) = 20131106-64 for package: php-pecl-apcu-4.0.11-2.el7.remi.5.6.x86_64
--> Processing Dependency: php(zend-abi) = 20131226-64 for package: php-pecl-jsonc-1.3.10-1.el7.remi.5.6.x86_64
--> Processing Dependency: php(zend-abi) = 20131226-64 for package: php-pecl-zip-1.13.5-1.el7.remi.5.6.x86_64
--> Processing Dependency: php(zend-abi) = 20131226-64 for package: php-pecl-apcu-4.0.11-2.el7.remi.5.6.x86_64
--> Processing Dependency: php-common(x86-64) = 5.6.30-1.el7.remi for package: php-imap-5.6.30-1.el7.remi.x86_64
--> Processing Dependency: php-common(x86-64) = 5.6.30-1.el7.remi for package: php-mbstring-5.6.30-1.el7.remi.x86_64
--> Processing Dependency: php-common(x86-64) = 5.6.30-1.el7.remi for package: php-xml-5.6.30-1.el7.remi.x86_64
--> Processing Dependency: php-common(x86-64) = 5.6.30-1.el7.remi for package: php-fpm-5.6.30-1.el7.remi.x86_64
--> Processing Dependency: php-common(x86-64) = 5.6.30-1.el7.remi for package: php-bcmath-5.6.30-1.el7.remi.x86_64
--> Processing Dependency: php-common(x86-64) = 5.6.30-1.el7.remi for package: php-tidy-5.6.30-1.el7.remi.x86_64
--> Processing Dependency: php-common(x86-64) = 5.6.30-1.el7.remi for package: php-gd-5.6.30-1.el7.remi.x86_64
--> Processing Dependency: php-common(x86-64) = 5.6.30-1.el7.remi for package: php-pdo-5.6.30-1.el7.remi.x86_64
--> Processing Dependency: php-common(x86-64) = 5.6.30-1.el7.remi for package: php-process-5.6.30-1.el7.remi.x86_64
---> Package php-common.x86_64 0:7.1.1-2.el7.remi will be an update
--> Running transaction check
---> Package php-bcmath.x86_64 0:5.6.30-1.el7.remi will be updated
---> Package php-bcmath.x86_64 0:7.1.1-2.el7.remi will be an update
---> Package php-fpm.x86_64 0:5.6.30-1.el7.remi will be updated
---> Package php-fpm.x86_64 0:7.1.1-2.el7.remi will be an update
---> Package php-gd.x86_64 0:5.6.30-1.el7.remi will be updated
---> Package php-gd.x86_64 0:7.1.1-2.el7.remi will be an update
---> Package php-imap.x86_64 0:5.6.30-1.el7.remi will be updated
---> Package php-imap.x86_64 0:7.1.1-2.el7.remi will be an update
---> Package php-json.x86_64 0:7.1.1-2.el7.remi will be obsoleting
---> Package php-mbstring.x86_64 0:5.6.30-1.el7.remi will be updated
---> Package php-mbstring.x86_64 0:7.1.1-2.el7.remi will be an update
---> Package php-pdo.x86_64 0:5.6.30-1.el7.remi will be updated
--> Processing Dependency: php-pdo(x86-64) = 5.6.30-1.el7.remi for package: php-mysqlnd-5.6.30-1.el7.remi.x86_64
---> Package php-pdo.x86_64 0:7.1.1-2.el7.remi will be an update
---> Package php-pecl-apcu.x86_64 0:4.0.11-2.el7.remi.5.6 will be updated
---> Package php-pecl-apcu.x86_64 0:5.1.8-1.el7.remi.7.1 will be an update
--> Processing Dependency: php-pecl-apcu-bc(x86-64) for package: php-pecl-apcu-5.1.8-1.el7.remi.7.1.x86_64
---> Package php-pecl-jsonc.x86_64 0:1.3.10-1.el7.remi.5.6 will be updated
---> Package php-pecl-jsonc.x86_64 0:1.3.10-1.el7.remi.5.6 will be obsoleted
---> Package php-pecl-jsonc.x86_64 0:1.3.10-2.el7.remi.5.6 will be an update
--> Processing Dependency: php(zend-abi) = 20131226-64 for package: php-pecl-jsonc-1.3.10-2.el7.remi.5.6.x86_64
Package php56u-common-5.6.29-1.ius.centos7.x86_64 is obsoleted by php-common-5.6.30-1.el7.remi.x86_64 which is already installed
--> Processing Dependency: php(api) = 20131106-64 for package: php-pecl-jsonc-1.3.10-2.el7.remi.5.6.x86_64
Package php56u-common-5.6.29-1.ius.centos7.x86_64 is obsoleted by php-common-5.6.30-1.el7.remi.x86_64 which is already installed
---> Package php-pecl-zip.x86_64 0:1.13.5-1.el7.remi.5.6 will be updated
---> Package php-pecl-zip.x86_64 0:1.13.5-2.el7.remi.7.1 will be an update
---> Package php-process.x86_64 0:5.6.30-1.el7.remi will be updated
---> Package php-process.x86_64 0:7.1.1-2.el7.remi will be an update
---> Package php-tidy.x86_64 0:5.6.30-1.el7.remi will be updated
---> Package php-tidy.x86_64 0:7.1.1-2.el7.remi will be an update
---> Package php-xml.x86_64 0:5.6.30-1.el7.remi will be updated
---> Package php-xml.x86_64 0:7.1.1-2.el7.remi will be an update
--> Running transaction check
---> Package php-mysqlnd.x86_64 0:5.6.30-1.el7.remi will be updated
--> Processing Dependency: php-mysql for package: psa-php5-configurator-1.7.0-cos7.build1700161026.16.x86_64
Package php-mysql-5.4.45-12.el7.remi.x86_64 is obsoleted by php-mysqlnd-5.6.30-1.el7.remi.x86_64 which is already installed
---> Package php-mysqlnd.x86_64 0:7.1.1-2.el7.remi will be an update
---> Package php-pecl-apcu-bc.x86_64 0:1.0.3-6.el7.remi.7.1 will be installed
---> Package php-pecl-jsonc.x86_64 0:1.3.10-2.el7.remi.5.6 will be an update
--> Processing Dependency: php(zend-abi) = 20131226-64 for package: php-pecl-jsonc-1.3.10-2.el7.remi.5.6.x86_64
Package php56u-common-5.6.29-1.ius.centos7.x86_64 is obsoleted by php-common-5.6.30-1.el7.remi.x86_64 which is already installed
--> Processing Dependency: php(api) = 20131106-64 for package: php-pecl-jsonc-1.3.10-2.el7.remi.5.6.x86_64
Package php56u-common-5.6.29-1.ius.centos7.x86_64 is obsoleted by php-common-5.6.30-1.el7.remi.x86_64 which is already installed
Removing php-pecl-jsonc.x86_64 0:1.3.10-2.el7.remi.5.6 - u due to obsoletes from php-json.x86_64 0:7.1.1-2.el7.remi - u
--> Restarting Dependency Resolution with new changes.
--> Running transaction check
---> Package php-mysqlnd.x86_64 0:5.6.30-1.el7.remi will be updated
--> Processing Dependency: php-mysql for package: psa-php5-configurator-1.7.0-cos7.build1700161026.16.x86_64
Package php-mysql-5.4.45-12.el7.remi.x86_64 is obsoleted by php-mysqlnd-5.6.30-1.el7.remi.x86_64 which is already installed
---> Package php-pecl-jsonc.x86_64 0:1.3.10-2.el7.remi.5.6 will be an update
--> Finished Dependency Resolution
Error: Package: php-pecl-jsonc-1.3.10-2.el7.remi.5.6.x86_64 (remi-php56)
Requires: php(api) = 20131106-64
Removing: php-common-5.6.30-1.el7.remi.x86_64 (@remi-php56)
php(api) = 20131106-64
Updated By: php-common-7.1.1-2.el7.remi.x86_64 (remi-php71)
php(api) = 20160303-64
Available: php-common-5.4.16-42.el7.x86_64 (base)
php(api) = 20100412-64
Available: php-common-5.4.45-11.el7.remi.x86_64 (remi)
php(api) = 20100412-64
Available: php-common-5.4.45-12.el7.remi.x86_64 (remi)
php(api) = 20100412-64
Available: php-common-5.5.38-5.el7.remi.x86_64 (remi-php55)
php(api) = 20121113-64
Available: php-common-5.5.38-6.el7.remi.x86_64 (remi-php55)
php(api) = 20121113-64
Available: php-common-5.6.29-1.el7.remi.x86_64 (remi-php56)
php(api) = 20131106-64
Available: php-common-7.0.14-1.el7.remi.x86_64 (remi-php70)
php(api) = 20151012-64
Available: php-common-7.0.15-1.el7.remi.x86_64 (remi-php70)
php(api) = 20151012-64
Available: php-common-7.1.0-1.el7.remi.x86_64 (remi-php71)
php(api) = 20160303-64
Available: php56u-common-5.6.29-1.ius.centos7.x86_64 (ius)
php(api) = 20131106-64
Available: php70u-common-7.0.14-3.ius.centos7.x86_64 (ius)
php(api) = 20151012-64
Available: php71u-common-7.1.0-3.ius.centos7.x86_64 (ius)
php(api) = 20160303-64


(And many more dependencies errors)

You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest


How can I solve this issue?

Thanks
 
Why are you using the PHP packages from the Remi repository instead of the ones profied by by Plesk? The great thing about the Plesk PHP packages is that they install to the /opt/plesk/php directory so you can enable multiple PHP versions and pick which PHP version you want at will.

My suggestion would be to remove the remi PHP packages and get the base PHP back to stock. Then install the PHP versions you want using the Plesk installer.
 
I tried to upgrade php first to the version 7 without the remi repository but it was not possible. I have php 7.1 enabled via the plesk interface for all my domains, but by the cli I still see the php version is the 5.6.30. I need to upgrade to php 7.1 (by the cli) because i'm trying to have Apcu in the server so I can use it within Wordpress plugin W3 total Cache. When I tried to install Apcu via the cli, it showed the message I need to have php 7 in order to install Apcu. Not sure if it's because Centos 7, I have Centos 6.8/onyx/php 5.6.30 in another server and I was able to install apcu there with no problem, but with Centos 7, php 7 looks like mandatory for Apcu to be installed.

Anyway how can I roll this back the: the remi PHP packages without hurting the Plesk Onyx installation and upgrade to php 7.1 by the cli?

Thanks
 
Back
Top