Topic: issue upgrading remi's php 5.6 to 7.0 - Plesk 12.5 - CentOS 6.7

Hallo,

how can I upgrade remi's PHP 5.6 to PHP 7 on CentOS 6.7 with Plesk 12.5?

Current php version:

php -v
PHP 5.6.20 (cli) (built: Mar 31 2016 07:24:47) 
...
yum repolist enabled
...
base                        CentOS-6 - Base                                                       6.575
epel                        Extra Packages for Enterprise Linux 6 - x86_64                       12.217
extras                      CentOS-6 - Extras                                                        62
remi-php56                  Remi's PHP 5.6 RPM repository for Enterprise Linux 6 - x86_64           393
remi-safe                   Safe Remi's RPM repository for Enterprise Linux 6 - x86_64              632
updates                     CentOS-6 - Updates                                                    1.560

Disabling the PHP 5.6 repo:

yum-config-manager --disable remi-php56

Enabling the PHP 7 repo:

yum-config-manager --enable remi-php70
yum repolist enabled
...
base                        CentOS-6 - Base                                                       6.575
epel                        Extra Packages for Enterprise Linux 6 - x86_64                       12.217
extras                      CentOS-6 - Extras                                                        62
remi-php70                  Remi's PHP 7.0 RPM repository for Enterprise Linux 6 - x86_64           226
remi-safe                   Safe Remi's RPM repository for Enterprise Linux 6 - x86_64              632
updates                     CentOS-6 - Updates                                                    1.560

When running update getting this errors:

yum update
Loaded plugins: fastestmirror
Setting up Update Process
Loading mirror speeds from cached hostfile
epel/metalink                                                                   |  26 kB     00:00     
 * epel: mirror.imt-systems.com
 * remi-php70: rpms.remirepo.net
 * remi-safe: rpms.remirepo.net
base                                                                            | 3.7 kB     00:00     
extras                                                                          | 3.4 kB     00:00         
remi-php70                                                                      | 2.9 kB     00:00     
remi-safe                                                                       | 2.9 kB     00:00     
updates                                                                         | 3.4 kB     00:00     
Resolving Dependencies
--> Running transaction check
---> Package php.x86_64 0:5.6.20-1.el6.remi will be updated
---> Package php.x86_64 0:7.0.5-2.el6.remi will be an update
---> Package php-cli.x86_64 0:5.6.20-1.el6.remi will be updated
---> Package php-cli.x86_64 0:7.0.5-2.el6.remi will be an update
---> Package php-common.x86_64 0:5.6.20-1.el6.remi will be updated
---> Package php-common.x86_64 0:7.0.5-2.el6.remi will be an update
---> Package php-gd.x86_64 0:5.6.20-1.el6.remi will be updated
---> Package php-gd.x86_64 0:7.0.5-2.el6.remi will be an update
---> Package php-imap.x86_64 0:5.6.20-1.el6.remi will be updated
---> Package php-imap.x86_64 0:7.0.5-2.el6.remi will be an update
---> Package php-intl.x86_64 0:5.6.20-1.el6.remi will be updated
---> Package php-intl.x86_64 0:7.0.5-2.el6.remi will be an update
---> Package php-json.x86_64 0:7.0.5-2.el6.remi will be obsoleting
---> Package php-mbstring.x86_64 0:5.6.20-1.el6.remi will be updated
---> Package php-mbstring.x86_64 0:7.0.5-2.el6.remi will be an update
---> Package php-mcrypt.x86_64 0:5.6.20-1.el6.remi will be updated
---> Package php-mcrypt.x86_64 0:7.0.5-2.el6.remi will be an update
---> Package php-mysqlnd.x86_64 0:5.6.20-1.el6.remi will be updated
--> Processing Dependency: php-mysql for package: psa-php5-configurator-1.7.0-cos6.build1205150820.19.x86_64
Package php-mysql-5.3.3-46.el6_7.1.x86_64 is obsoleted by php-mysqlnd-5.6.20-1.el6.remi.x86_64 which is already installed
---> Package php-mysqlnd.x86_64 0:7.0.5-2.el6.remi will be an update
---> Package php-pdo.x86_64 0:5.6.20-1.el6.remi will be updated
---> Package php-pdo.x86_64 0:7.0.5-2.el6.remi will be an update
---> Package php-pecl-jsonc.x86_64 0:1.3.9-1.el6.remi.5.6 will be obsoleted
---> Package php-pecl-zip.x86_64 0:1.13.2-1.el6.remi.5.6 will be updated
---> Package php-pecl-zip.x86_64 0:1.13.2-1.el6.remi.7.0 will be an update
---> Package php-process.x86_64 0:5.6.20-1.el6.remi will be updated
---> Package php-process.x86_64 0:7.0.5-2.el6.remi will be an update
---> Package php-xml.x86_64 0:5.6.20-1.el6.remi will be updated
---> Package php-xml.x86_64 0:7.0.5-2.el6.remi will be an update
--> Finished Dependency Resolution
Error: Package: psa-php5-configurator-1.7.0-cos6.build1205150820.19.x86_64 (@PLESK_12_5_30-dist)
           Requires: php-mysql
           Removing: php-mysqlnd-5.6.20-1.el6.remi.x86_64 (@remi-php56)
               php-mysql = 5.6.20-1.el6.remi
           Updated By: php-mysqlnd-7.0.5-2.el6.remi.x86_64 (remi-php70)
               Not found
           Available: php-mysql-5.3.3-40.el6_6.x86_64 (base)
               php-mysql = 5.3.3-40.el6_6
           Available: php-mysql-5.3.3-46.el6_6.x86_64 (updates)
               php-mysql = 5.3.3-46.el6_6
           Available: php-mysql-5.3.3-46.el6_7.1.x86_64 (updates)
               php-mysql = 5.3.3-46.el6_7.1
           Available: php-pecl-mysql-1.0.0-0.8.20151007git294ce3b.el6.remi.7.0.x86_64 (remi-php70)
               php-mysql = 1:1.0.0
           Available: php-pecl-mysql-1.0.0-0.9.20151007git294ce3b.el6.remi.7.0.x86_64 (remi-php70)
               php-mysql = 1:1.0.0
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest

How could this be resolved?

Re: issue upgrading remi's php 5.6 to 7.0 - Plesk 12.5 - CentOS 6.7

The mysql extension have be dropped from php 7.0, so there is not reason for a php-mysql package.

BTW the extension is provided by the php-pecl-mysql package, yum found it, I don't understand why it doesn't select it...

Notice: I have abolutely no idea if Plesk will work with PHP 7, you should probably ask them.

IIRC, Plesk use ioencube-loader ? (which is not compatible with PHP 7)

Laptop:  Fedora 38 + rpmfusion + remi (SCL only)
x86_64 builder: Fedora 39 + rpmfusion + remi-test
aarch64 builder: RHEL 9 with EPEL
Hosting Server: CentOS 8 Stream with EPEL, rpmfusion, remi

Re: issue upgrading remi's php 5.6 to 7.0 - Plesk 12.5 - CentOS 6.7

Can you try to workaround yum limitation with its shell ?

# yum shell
> install php-pecl-mysql
> update
> run
Laptop:  Fedora 38 + rpmfusion + remi (SCL only)
x86_64 builder: Fedora 39 + rpmfusion + remi-test
aarch64 builder: RHEL 9 with EPEL
Hosting Server: CentOS 8 Stream with EPEL, rpmfusion, remi

Re: issue upgrading remi's php 5.6 to 7.0 - Plesk 12.5 - CentOS 6.7

Thank you for the prompt answer.

As for the workaround:

No package php-pecel-mysql available.

Your mentioning about possible plesk and php 7 incompatibility made me decided to stay on php 5.6 for the moment on this server.


Thank you.

Kind regards,
Greg

Re: issue upgrading remi's php 5.6 to 7.0 - Plesk 12.5 - CentOS 6.7

> No package php-pecel-mysql available.

Obvious typo wink

> Your mentioning about possible plesk and php 7 incompatibility made me decided to stay on php 5.6 for the moment on this server.

Ok

Closing.

Laptop:  Fedora 38 + rpmfusion + remi (SCL only)
x86_64 builder: Fedora 39 + rpmfusion + remi-test
aarch64 builder: RHEL 9 with EPEL
Hosting Server: CentOS 8 Stream with EPEL, rpmfusion, remi

Re: issue upgrading remi's php 5.6 to 7.0 - Plesk 12.5 - CentOS 6.7

Received by mail

> just want to let you know that your workaround trick did the work
> Installing the php-pecl-mysql prior updating solved indeed the issue.
> BTW: as far as I can tell by now, Plesk works fine and seem not use the ioencube-loader
> Thank you!

Thanks for the feedback.

Laptop:  Fedora 38 + rpmfusion + remi (SCL only)
x86_64 builder: Fedora 39 + rpmfusion + remi-test
aarch64 builder: RHEL 9 with EPEL
Hosting Server: CentOS 8 Stream with EPEL, rpmfusion, remi