Topic: Upgrade from PHP 5.3 to 5.4 problem

Hi Remi! I was wondering if you could help me my issue during update of PHP 5.3 to 5.4

I am doing everything as said in this tutorial:
http://www.servermom.org/upgrade-php-53 … ntos/1534/
I chose version 5.4 as mentioned in point 4.a

I run `yum update -u` and run into errors. Here is the output of `rpm -qa php\* | sort`

php-5.3.3-27.el6.2.x86_64
php54-php-common-5.4.40-1.el6.remi.x86_64
php54-php-mbstring-5.4.40-1.el6.remi.x86_64
php54-runtime-2.1-1.el6.remi.x86_64
php-cli-5.3.3-27.el6.2.x86_64
php-common-5.3.3-27.el6.2.x86_64
php-gd-5.3.3-27.el6.2.x86_64
php-imap-5.3.3-27.el6.2.x86_64
php-intl-5.3.3-27.el6.2.x86_64
php-mbstring-5.3.3-27.el6.2.x86_64
php-mcrypt-5.3.3-1.el6.x86_64
phpMyAdmin-ovh-4.1.14.6-6.el6.noarch
php-mysql-5.3.3-27.el6.2.x86_64
php-pdo-5.3.3-27.el6.2.x86_64
php-pear-1.9.4-4.el6.noarch
php-pear-Auth-SASL-1.0.6-1.el6.noarch
php-pear-DB-1.7.13-3.el6.noarch
php-pear-Mail-Mime-1.8.4-1.el6.noarch
php-pear-Mail-mimeDecode-1.5.5-1.el6.noarch
php-pear-MDB2-2.5.0-0.9.b5.el6.noarch
php-pear-MDB2-Driver-mysql-1.5.0-0.8.b4.el6.noarch
php-pear-Net-SMTP-1.6.1-1.el6.noarch
php-pear-Net-Socket-1.0.10-1.el6.noarch
php-pecl-apc-3.1.9-2.el6.x86_64
php-soap-5.3.3-27.el6.2.x86_64
php-xml-5.3.3-27.el6.2.x86_64

And here is the full yum output:

Loaded plugins: fastestmirror, priorities
Setting up Update Process
Loading mirror speeds from cached hostfile
 * base: mirrors.ircam.fr
 * extras: mirrors.ircam.fr
 * remi: rpms.famillecollet.com
 * rpmforge: apt.sw.be
 * updates: mirrors.ircam.fr
2749 packages excluded due to repository priority protections
Resolving Dependencies
--> Running transaction check
---> Package mysql.x86_64 0:5.1.73-3.el6 will be updated
---> Package mysql.x86_64 0:5.5.43-1.el6.remi will be an update
---> Package mysql-libs.x86_64 0:5.1.73-3.el6 will be updated
--> Processing Dependency: libmysqlclient.so.16()(64bit) for package: 1:dovecot-mysql-2.0.9-8.el6_6.4.x86_64
--> Processing Dependency: libmysqlclient.so.16()(64bit) for package: 2:postfix-2.6.6-6.el6.x86_64
--> Processing Dependency: libmysqlclient.so.16()(64bit) for package: perl-DBD-MySQL-4.013-3.el6.x86_64
--> Processing Dependency: libmysqlclient.so.16(libmysqlclient_16)(64bit) for package: 1:dovecot-mysql-2.0.9-8.el6_6.4.x86_64
--> Processing Dependency: libmysqlclient.so.16(libmysqlclient_16)(64bit) for package: 2:postfix-2.6.6-6.el6.x86_64
--> Processing Dependency: libmysqlclient.so.16(libmysqlclient_16)(64bit) for package: perl-DBD-MySQL-4.013-3.el6.x86_64
--> Processing Dependency: libmysqlclient_r.so.16()(64bit) for package: collectd-mysql-4.10.9-1.el6.x86_64
--> Processing Dependency: libmysqlclient_r.so.16(libmysqlclient_16)(64bit) for package: collectd-mysql-4.10.9-1.el6.x86_64
---> Package mysql-libs.x86_64 0:5.5.43-1.el6.remi will be an update
---> Package mysql-server.x86_64 0:5.1.73-3.el6 will be updated
---> Package mysql-server.x86_64 0:5.5.43-1.el6.remi will be an update
--> Processing Dependency: libaio.so.1(LIBAIO_0.4)(64bit) for package: mysql-server-5.5.43-1.el6.remi.x86_64
--> Processing Dependency: libaio.so.1(LIBAIO_0.1)(64bit) for package: mysql-server-5.5.43-1.el6.remi.x86_64
--> Processing Dependency: libaio.so.1()(64bit) for package: mysql-server-5.5.43-1.el6.remi.x86_64
---> Package php.x86_64 0:5.3.3-27.el6.2 will be updated
---> Package php.x86_64 0:5.4.40-1.el6.remi will be an update
---> Package php-cli.x86_64 0:5.3.3-27.el6.2 will be updated
---> Package php-cli.x86_64 0:5.4.40-1.el6.remi will be an update
---> Package php-common.x86_64 0:5.3.3-27.el6.2 will be updated
--> Processing Dependency: php(api) = 20090626 for package: php-pecl-apc-3.1.9-2.el6.x86_64
--> Processing Dependency: php(zend-abi) = 20090626 for package: php-pecl-apc-3.1.9-2.el6.x86_64
---> Package php-common.x86_64 0:5.4.40-1.el6.remi will be an update
---> Package php-gd.x86_64 0:5.3.3-27.el6.2 will be updated
---> Package php-gd.x86_64 0:5.4.40-1.el6.remi will be an update
--> Processing Dependency: libt1.so.5()(64bit) for package: php-gd-5.4.40-1.el6.remi.x86_64
---> Package php-imap.x86_64 0:5.3.3-27.el6.2 will be updated
---> Package php-imap.x86_64 0:5.4.40-1.el6.remi will be an update
---> Package php-intl.x86_64 0:5.3.3-27.el6.2 will be updated
---> Package php-intl.x86_64 0:5.4.40-1.el6.remi will be an update
--> Processing Dependency: libicuuc.so.50()(64bit) for package: php-intl-5.4.40-1.el6.remi.x86_64
--> Processing Dependency: libicuio.so.50()(64bit) for package: php-intl-5.4.40-1.el6.remi.x86_64
--> Processing Dependency: libicui18n.so.50()(64bit) for package: php-intl-5.4.40-1.el6.remi.x86_64
--> Processing Dependency: libicudata.so.50()(64bit) for package: php-intl-5.4.40-1.el6.remi.x86_64
---> Package php-mbstring.x86_64 0:5.3.3-27.el6.2 will be updated
---> Package php-mbstring.x86_64 0:5.4.40-1.el6.remi will be an update
---> Package php-mcrypt.x86_64 0:5.3.3-1.el6 will be updated
---> Package php-mcrypt.x86_64 0:5.4.40-1.el6.remi will be an update
--> Processing Dependency: libltdl.so.7()(64bit) for package: php-mcrypt-5.4.40-1.el6.remi.x86_64
---> Package php-mysql.x86_64 0:5.3.3-27.el6.2 will be updated
---> Package php-mysql.x86_64 0:5.4.40-1.el6.remi will be an update
---> Package php-pdo.x86_64 0:5.3.3-27.el6.2 will be updated
---> Package php-pdo.x86_64 0:5.4.40-1.el6.remi will be an update
---> Package php-soap.x86_64 0:5.3.3-27.el6.2 will be updated
---> Package php-soap.x86_64 0:5.4.40-1.el6.remi will be an update
---> Package php-xml.x86_64 0:5.3.3-27.el6.2 will be updated
---> Package php-xml.x86_64 0:5.4.40-1.el6.remi will be an update
--> Running transaction check
---> Package compat-mysql51.x86_64 0:5.1.54-1.el6.remi will be installed
---> Package libaio.x86_64 0:0.3.107-10.el6 will be installed
---> Package libicu-last.x86_64 0:50.1.2-11.el6.remi will be installed
---> Package libtool-ltdl.x86_64 0:2.2.6-15.5.el6 will be installed
---> Package php-common.x86_64 0:5.3.3-27.el6.2 will be updated
--> Processing Dependency: php(api) = 20090626 for package: php-pecl-apc-3.1.9-2.el6.x86_64
--> Processing Dependency: php(zend-abi) = 20090626 for package: php-pecl-apc-3.1.9-2.el6.x86_64
---> Package t1lib.x86_64 0:5.1.2-6.el6_2.1 will be installed
--> Finished Dependency Resolution
Error: Package: php-pecl-apc-3.1.9-2.el6.x86_64 (@base)
           Requires: php(api) = 20090626
           Removing: php-common-5.3.3-27.el6.2.x86_64 (@LocalRepo)
               php(api) = 20090626
           Updated By: php-common-5.4.40-1.el6.remi.x86_64 (remi)
               php(api) = 20100412-x86-64
           Available: php-common-5.4.39-1.el6.remi.x86_64 (remi)
               php(api) = 20100412-x86-64
Error: Package: php-pecl-apc-3.1.9-2.el6.x86_64 (@base)
           Requires: php(zend-abi) = 20090626
           Removing: php-common-5.3.3-27.el6.2.x86_64 (@LocalRepo)
               php(zend-abi) = 20090626
           Updated By: php-common-5.4.40-1.el6.remi.x86_64 (remi)
               php(zend-abi) = 20100525-x86-64
           Available: php-common-5.4.39-1.el6.remi.x86_64 (remi)
               php(zend-abi) = 20100525-x86-64
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest

Thanks in advance!
Remy

Re: Upgrade from PHP 5.3 to 5.4 problem

The only issue is with php-pecl-apc, dead and unmaintained
Remove it.

Use php-pecl-zendopcache (opcode cache) or php-pecl-apcu (user data cache) instead.

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: Upgrade from PHP 5.3 to 5.4 problem

In fact, this is strange, as php-pecl-apc is available in the repo. Should be pulled.

> 2749 packages excluded due to repository priority protections
Probably an explanation.


Notice: I still recommend to drop it.

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: Upgrade from PHP 5.3 to 5.4 problem

I passed this issue to my admin buddy. He dropped it and it helped. Thanks!

Re: Upgrade from PHP 5.3 to 5.4 problem

smile

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