Error upgrading PHP 5.3 to PHP 5.4 in Centos 6.8

Issues related to applications and software problems
Post Reply
aegersz
Posts: 86
Joined: 2016/04/04 07:42:58

Error upgrading PHP 5.3 to PHP 5.4 in Centos 6.8

Post by aegersz » 2017/06/12 11:56:42

Can you please help me sort out this error ? i have searched but to no avail apart from maybe removing all of 5.3 first (lots of modules so i am hoping that there is a better way). here is the issue:

[root@dev ~]# yum upgrade
Loaded plugins: auto-update-debuginfo, fastestmirror, priorities, security
Setting up Upgrade Process
Loading mirror speeds from cached hostfile
* base: mirror.nsw.coloau.com.au
* epel: mirror.nsw.coloau.com.au
* epel-debuginfo: mirror.nsw.coloau.com.au
* extras: mirror.nsw.coloau.com.au
* remi: mirror.upb.edu.co
* remi-safe: mirror.upb.edu.co
* updates: mirror.nsw.coloau.com.au
* webtatic: uk.repo.webtatic.com
* webtatic-debuginfo: uk.repo.webtatic.com
1367 packages excluded due to repository priority protections
Resolving Dependencies
--> Running transaction check
---> Package mysql.i686 0:5.1.73-8.el6_8 will be updated
---> Package mysql.i686 0:5.5.56-1.el6.remi will be an update
---> Package mysql-libs.i686 0:5.1.73-8.el6_8 will be updated
--> Processing Dependency: libmysqlclient.so.16 for package: 2:postfix-2.6.6-8.el6.i686
--> Processing Dependency: libmysqlclient.so.16 for package: perl-DBD-MySQL-4.013-3.el6.i686
--> Processing Dependency: libmysqlclient.so.16(libmysqlclient_16) for package: 2:postfix-2.6.6-8.el6.i686
--> Processing Dependency: libmysqlclient.so.16(libmysqlclient_16) for package: perl-DBD-MySQL-4.013-3.el6.i686
---> Package mysql-libs.i686 0:5.5.56-1.el6.remi will be an update
---> Package mysql-server.i686 0:5.1.73-8.el6_8 will be updated
---> Package mysql-server.i686 0:5.5.56-1.el6.remi will be an update
---> Package php.i686 0:5.3.3-49.el6 will be updated
---> Package php.i686 0:5.4.45-13.el6.remi will be an update
---> Package php-bcmath.i686 0:5.3.3-49.el6 will be updated
---> Package php-bcmath.i686 0:5.4.45-13.el6.remi will be an update
---> Package php-cli.i686 0:5.3.3-49.el6 will be updated
---> Package php-cli.i686 0:5.4.45-13.el6.remi will be an update
---> Package php-common.i686 0:5.3.3-49.el6 will be updated
--> Processing Dependency: php(api) = 20090626 for package: php-mcrypt-5.3.3-5.el6.i686
--> Processing Dependency: php(zend-abi) = 20090626 for package: php-mcrypt-5.3.3-5.el6.i686
---> Package php-common.i686 0:5.4.45-13.el6.remi will be an update
---> Package php-gd.i686 0:5.3.3-49.el6 will be updated
---> Package php-gd.i686 0:5.4.45-13.el6.remi will be an update
--> Processing Dependency: libt1.so.5 for package: php-gd-5.4.45-13.el6.remi.i686
---> Package php-mbstring.i686 0:5.3.3-49.el6 will be updated
---> Package php-mbstring.i686 0:5.4.45-13.el6.remi will be an update
---> Package php-mysql.i686 0:5.3.3-49.el6 will be updated
---> Package php-mysql.i686 0:5.4.45-13.el6.remi will be an update
---> Package php-pdo.i686 0:5.3.3-49.el6 will be updated
---> Package php-pdo.i686 0:5.4.45-13.el6.remi will be an update
---> Package php-pear.noarch 1:1.9.4-5.el6 will be updated
---> Package php-pear.noarch 1:1.10.4-2.el6.remi will be an update
---> Package php-process.i686 0:5.3.3-49.el6 will be updated
---> Package php-process.i686 0:5.4.45-13.el6.remi will be an update
---> Package php-tidy.i686 0:5.3.3-49.el6 will be updated
---> Package php-tidy.i686 0:5.4.45-13.el6.remi will be an update
---> Package php-xml.i686 0:5.3.3-49.el6 will be updated
---> Package php-xml.i686 0:5.4.45-13.el6.remi will be an update
--> Running transaction check
---> Package compat-mysql51.i686 0:5.1.73-1.el6.remi will be installed
---> Package php-common.i686 0:5.3.3-49.el6 will be updated
--> Processing Dependency: php(api) = 20090626 for package: php-mcrypt-5.3.3-5.el6.i686
--> Processing Dependency: php(zend-abi) = 20090626 for package: php-mcrypt-5.3.3-5.el6.i686
---> Package t1lib.i686 0:5.1.2-6.el6_2.1 will be installed
--> Finished Dependency Resolution
Error: Package: php-mcrypt-5.3.3-5.el6.i686 (@epel)
Requires: php(zend-abi) = 20090626

Removing: php-common-5.3.3-49.el6.i686 (@base)
php(zend-abi) = 20090626
Updated By: php-common-5.4.45-13.el6.remi.i686 (remi)
php(zend-abi) = 20100525-x86-32
Available: php-common-5.4.45-12.el6.remi.i686 (remi)
php(zend-abi) = 20100525-x86-32
Available: php55w-common-5.5.38-1.w6.i386 (webtatic)
php(zend-abi) = 20121212-32
Available: php56w-common-5.6.30-1.w6.i386 (webtatic)
php(zend-abi) = 20131226-32
Available: php70w-common-7.0.15-1.w6.i386 (webtatic)
php(zend-abi) = 20151012-32
Available: php70w-common-7.0.16-1.w6.i386 (webtatic)
php(zend-abi) = 20151012-32
Available: php70w-common-7.0.17-1.w6.i386 (webtatic)
php(zend-abi) = 20151012-32
Available: php70w-common-7.0.18-1.w6.i386 (webtatic)
php(zend-abi) = 20151012-32
Available: php70w-common-7.0.19-1.w6.i386 (webtatic)
php(zend-abi) = 20151012-32
Available: php71w-common-7.1.1-1.w6.i386 (webtatic)
php(zend-abi) = 20160303-32
Available: php71w-common-7.1.2-1.w6.i386 (webtatic)
php(zend-abi) = 20160303-32
Available: php71w-common-7.1.3-1.w6.i386 (webtatic)
php(zend-abi) = 20160303-32
Available: php71w-common-7.1.4-1.w6.i386 (webtatic)
php(zend-abi) = 20160303-32
Available: php71w-common-7.1.5-1.w6.i386 (webtatic)
php(zend-abi) = 20160303-32
Error: Package: php-mcrypt-5.3.3-5.el6.i686 (@epel)
Requires: php(api) = 20090626
Removing: php-common-5.3.3-49.el6.i686 (@base)
php(api) = 20090626
Updated By: php-common-5.4.45-13.el6.remi.i686 (remi)
php(api) = 20100412-x86-32
Available: php-common-5.4.45-12.el6.remi.i686 (remi)
php(api) = 20100412-x86-32
Available: php55w-common-5.5.38-1.w6.i386 (webtatic)
php(api) = 20121113-32
Available: php56w-common-5.6.30-1.w6.i386 (webtatic)
php(api) = 20131106-32
Available: php70w-common-7.0.15-1.w6.i386 (webtatic)
php(api) = 20151012-32
Available: php70w-common-7.0.16-1.w6.i386 (webtatic)
php(api) = 20151012-32
Available: php70w-common-7.0.17-1.w6.i386 (webtatic)
php(api) = 20151012-32
Available: php70w-common-7.0.18-1.w6.i386 (webtatic)
php(api) = 20151012-32
Available: php70w-common-7.0.19-1.w6.i386 (webtatic)
php(api) = 20151012-32
Available: php71w-common-7.1.1-1.w6.i386 (webtatic)
php(api) = 20160303-32
Available: php71w-common-7.1.2-1.w6.i386 (webtatic)
php(api) = 20160303-32
Available: php71w-common-7.1.3-1.w6.i386 (webtatic)
php(api) = 20160303-32
Available: php71w-common-7.1.4-1.w6.i386 (webtatic)
php(api) = 20160303-32
Available: php71w-common-7.1.5-1.w6.i386 (webtatic)
php(api) = 20160303-32
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest

User avatar
remirepo
Posts: 447
Joined: 2014/09/21 09:07:12
Location: France
Contact:

Re: Error upgrading PHP 5.3 to PHP 5.4 in Centos 6.8

Post by remirepo » 2017/06/12 12:08:57

1/ PHP 5.4 is now EOL

See : http://php.net/supported-versions.php

So, despite my repo still provides it (with some security fix backported) I heartily recommend to use a maintained version (5.6+)

1/ disable webtatic

2/ you can disable "remi" and only enable "php-php54" if you only want PHP and nothing else

=> https://rpms.remirepo.net/wizard/

3/ disable yum priority plugin which protect packages installed from base

or configure higher priority for "remi" or "remi-php54" repository.
Remi's Repository - Forum - Blog

aegersz
Posts: 86
Joined: 2016/04/04 07:42:58

Re: Error upgrading PHP 5.3 to PHP 5.4 in Centos 6.8

Post by aegersz » 2017/06/12 12:33:02

thank you for offering to help. I did all that and i may well upgrade to a higher version (have tried) but still get the same error:

(and if you could please explain what this error is actually saying as i don't really understand what the root of the problem is ... thank you, i would be grateful

... and do i really need to remove all of 5.3 first ?
)

[root@dev yum.repos.d]# yum upgrade php*
Loaded plugins: auto-update-debuginfo, fastestmirror, priorities, security
Setting up Upgrade Process
Loading mirror speeds from cached hostfile
* base: mirror.nsw.coloau.com.au
* epel: mirror.nsw.coloau.com.au
* epel-debuginfo: mirror.nsw.coloau.com.au
* extras: mirror.nsw.coloau.com.au
* remi-php54: remi.schlundtech.de
* remi-safe: remi.schlundtech.de
* updates: mirror.nsw.coloau.com.au
remi-php54 | 2.9 kB 00:00
223 packages excluded due to repository priority protections
Resolving Dependencies
--> Running transaction check
---> Package php.i686 0:5.3.3-49.el6 will be updated
---> Package php.i686 0:5.4.45-13.el6.remi will be an update
---> Package php-bcmath.i686 0:5.3.3-49.el6 will be updated
---> Package php-bcmath.i686 0:5.4.45-13.el6.remi will be an update
---> Package php-cli.i686 0:5.3.3-49.el6 will be updated
---> Package php-cli.i686 0:5.4.45-13.el6.remi will be an update
---> Package php-common.i686 0:5.3.3-49.el6 will be updated
--> Processing Dependency: php(api) = 20090626 for package: php-mcrypt-5.3.3-5.el6.i686
--> Processing Dependency: php(zend-abi) = 20090626 for package: php-mcrypt-5.3.3-5.el6.i686
---> Package php-common.i686 0:5.4.45-13.el6.remi will be an update
---> Package php-gd.i686 0:5.3.3-49.el6 will be updated
---> Package php-gd.i686 0:5.4.45-13.el6.remi will be an update
--> Processing Dependency: libt1.so.5 for package: php-gd-5.4.45-13.el6.remi.i686
---> Package php-mbstring.i686 0:5.3.3-49.el6 will be updated
---> Package php-mbstring.i686 0:5.4.45-13.el6.remi will be an update
---> Package php-mysql.i686 0:5.3.3-49.el6 will be updated
---> Package php-mysql.i686 0:5.4.45-13.el6.remi will be an update
--> Processing Dependency: libmysqlclient.so.18(libmysqlclient_18) for package: php-mysql-5.4.45-13.el6.remi.i686
--> Processing Dependency: libmysqlclient.so.18(libmysqlclient_16) for package: php-mysql-5.4.45-13.el6.remi.i686
--> Processing Dependency: libmysqlclient.so.18 for package: php-mysql-5.4.45-13.el6.remi.i686
---> Package php-pdo.i686 0:5.3.3-49.el6 will be updated
---> Package php-pdo.i686 0:5.4.45-13.el6.remi will be an update
---> Package php-pear.noarch 1:1.9.4-5.el6 will be updated
---> Package php-pear.noarch 1:1.10.4-2.el6.remi will be an update
---> Package php-process.i686 0:5.3.3-49.el6 will be updated
---> Package php-process.i686 0:5.4.45-13.el6.remi will be an update
---> Package php-tidy.i686 0:5.3.3-49.el6 will be updated
---> Package php-tidy.i686 0:5.4.45-13.el6.remi will be an update
---> Package php-xml.i686 0:5.3.3-49.el6 will be updated
---> Package php-xml.i686 0:5.4.45-13.el6.remi will be an update
--> Running transaction check
---> Package compat-mysql55.i686 0:5.5.55-1.el6.remi will be installed
---> Package php-common.i686 0:5.3.3-49.el6 will be updated
--> Processing Dependency: php(api) = 20090626 for package: php-mcrypt-5.3.3-5.el6.i686
--> Processing Dependency: php(zend-abi) = 20090626 for package: php-mcrypt-5.3.3-5.el6.i686
---> Package t1lib.i686 0:5.1.2-6.el6_2.1 will be installed
--> Finished Dependency Resolution
Error: Package: php-mcrypt-5.3.3-5.el6.i686 (@epel)
Requires: php(api) = 20090626
Removing: php-common-5.3.3-49.el6.i686 (@base)
php(api) = 20090626
Updated By: php-common-5.4.45-13.el6.remi.i686 (remi-php54)
php(api) = 20100412-x86-32
Available: php-common-5.4.45-12.el6.remi.i686 (remi-php54)
php(api) = 20100412-x86-32
Error: Package: php-mcrypt-5.3.3-5.el6.i686 (@epel)
Requires: php(zend-abi) = 20090626
Removing: php-common-5.3.3-49.el6.i686 (@base)
php(zend-abi) = 20090626
Updated By: php-common-5.4.45-13.el6.remi.i686 (remi-php54)
php(zend-abi) = 20100525-x86-32
Available: php-common-5.4.45-12.el6.remi.i686 (remi-php54)
php(zend-abi) = 20100525-x86-32
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
Last edited by aegersz on 2017/06/12 12:42:34, edited 2 times in total.

aegersz
Posts: 86
Joined: 2016/04/04 07:42:58

Re: Error upgrading PHP 5.3 to PHP 5.4 in Centos 6.8

Post by aegersz » 2017/06/12 12:48:55

I worked it out - i misunderstood the priority and set it higher instead of lower (in number, not order). silly me.

all good now, thanks remirepo !

I went to PHP 5.6 as advised.

Post Reply