Update PHP from 5.4 to 5.6

Hello.

I’m attempting to update my PHP from 5.4 to 5.6, but having some issues.

Using CentOS 7 and InterWorx v5.1.29.

This is the error I get when trying to do: yum --enablerepo=remi-php56,remi update php*

Loaded plugins: fastestmirrorLoading mirror speeds from cached hostfile
 * base: centos.mirror.ate.info
 * centosplus: centos.quelquesmots.fr
 * epel: mirror.1000mbps.com
 * extras: centos.crazyfrogs.org
 * fasttrack: centos.mirror.ate.info
 * remi: nl.mirror.babylon.network
 * remi-php56: nl.mirror.babylon.network
 * remi-safe: nl.mirror.babylon.network
 * updates: centos.quelquesmots.fr
Resolving Dependencies
--> Running transaction check
---> Package php.x86_64 0:5.4.45-11.el7.remi will be updated
---> Package php.x86_64 0:5.6.25-1.el6.remi will be an update
--> Processing Dependency: httpd-mmn = 20051115 for package: php-5.6.25-1.el6.remi.x86_64
---> Package php-bcmath.x86_64 0:5.4.45-11.el7.remi will be updated
---> Package php-bcmath.x86_64 0:5.6.25-1.el6.remi will be an update
---> Package php-cli.x86_64 0:5.4.45-11.el7.remi will be updated
---> Package php-cli.x86_64 0:5.6.25-1.el6.remi will be an update
---> Package php-common.x86_64 0:5.4.45-11.el7.remi will be updated
--> Processing Dependency: php-pecl-zip(x86-64) for package: php-common-5.6.25-1.el6.remi.x86_64
---> Package php-common.x86_64 0:5.6.25-1.el6.remi will be an update
--> Processing Dependency: php-pecl-jsonc(x86-64) for package: php-common-5.6.25-1.el6.remi.x86_64
---> Package php-dba.x86_64 0:5.4.45-11.el7.remi will be updated
---> Package php-dba.x86_64 0:5.6.25-1.el6.remi will be an update
--> Processing Dependency: libtokyocabinet.so.8()(64bit) for package: php-dba-5.6.25-1.el6.remi.x86_64
--> Processing Dependency: libgdbm.so.2()(64bit) for package: php-dba-5.6.25-1.el6.remi.x86_64
--> Processing Dependency: libdb-4.7.so()(64bit) for package: php-dba-5.6.25-1.el6.remi.x86_64
---> Package php-devel.x86_64 0:5.4.45-11.el7.remi will be updated
---> Package php-devel.x86_64 0:5.6.25-1.el6.remi will be an update
--> Processing Dependency: php-pecl-jsonc-devel(x86-64) for package: php-devel-5.6.25-1.el6.remi.x86_64
---> Package php-embedded.x86_64 0:5.4.45-11.el7.remi will be updated
---> Package php-embedded.x86_64 0:5.6.25-1.el6.remi will be an update
---> Package php-enchant.x86_64 0:5.4.45-11.el7.remi will be updated
---> Package php-enchant.x86_64 0:5.6.25-1.el6.remi will be an update
---> Package php-fpm.x86_64 0:5.4.45-11.el7.remi will be updated
---> Package php-fpm.x86_64 0:5.6.25-1.el6.remi will be an update
---> Package php-gd.x86_64 0:5.4.45-11.el7.remi will be updated
---> Package php-gd.x86_64 0:5.6.25-1.el6.remi will be an update
--> Processing Dependency: gd-last(x86-64) >= 2.1.1 for package: php-gd-5.6.25-1.el6.remi.x86_64
--> Processing Dependency: libpng12.so.0()(64bit) for package: php-gd-5.6.25-1.el6.remi.x86_64
--> Processing Dependency: libgd.so.3()(64bit) for package: php-gd-5.6.25-1.el6.remi.x86_64
---> Package php-intl.x86_64 0:5.4.45-11.el7.remi will be updated
---> Package php-intl.x86_64 0:5.6.25-1.el6.remi will be an update
---> Package php-ldap.x86_64 0:5.4.45-11.el7.remi will be updated
---> Package php-ldap.x86_64 0:5.6.25-1.el6.remi will be an update
--> Processing Dependency: libsasl2.so.2()(64bit) for package: php-ldap-5.6.25-1.el6.remi.x86_64
---> Package php-mbstring.x86_64 0:5.4.45-11.el7.remi will be updated
---> Package php-mbstring.x86_64 0:5.6.25-1.el6.remi will be an update
---> Package php-mcrypt.x86_64 0:5.4.45-11.el7.remi will be updated
---> Package php-mcrypt.x86_64 0:5.6.25-1.el6.remi will be an update
---> Package php-mysql.x86_64 0:5.4.45-11.el7.remi will be obsoleted
---> Package php-mysqlnd.x86_64 0:5.6.25-1.el6.remi will be obsoleting
---> Package php-odbc.x86_64 0:5.4.45-11.el7.remi will be updated
---> Package php-odbc.x86_64 0:5.6.25-1.el6.remi will be an update
---> Package php-pdo.x86_64 0:5.4.45-11.el7.remi will be updated
---> Package php-pdo.x86_64 0:5.6.25-1.el6.remi will be an update
---> Package php-pgsql.x86_64 0:5.4.45-11.el7.remi will be updated
---> Package php-pgsql.x86_64 0:5.6.25-1.el6.remi will be an update
---> Package php-process.x86_64 0:5.4.45-11.el7.remi will be updated
---> Package php-process.x86_64 0:5.6.25-1.el6.remi will be an update
---> Package php-pspell.x86_64 0:5.4.45-11.el7.remi will be updated
---> Package php-pspell.x86_64 0:5.6.25-1.el6.remi will be an update
---> Package php-recode.x86_64 0:5.4.45-11.el7.remi will be updated
---> Package php-recode.x86_64 0:5.6.25-1.el6.remi will be an update
---> Package php-snmp.x86_64 0:5.4.45-11.el7.remi will be updated
---> Package php-snmp.x86_64 0:5.6.25-1.el6.remi will be an update
--> Processing Dependency: libnetsnmp.so.20()(64bit) for package: php-snmp-5.6.25-1.el6.remi.x86_64
---> Package php-soap.x86_64 0:5.4.45-11.el7.remi will be updated
---> Package php-soap.x86_64 0:5.6.25-1.el6.remi will be an update
---> Package php-xml.x86_64 0:5.4.45-11.el7.remi will be updated
---> Package php-xml.x86_64 0:5.6.25-1.el6.remi will be an update
---> Package php-xmlrpc.x86_64 0:5.4.45-11.el7.remi will be updated
---> Package php-xmlrpc.x86_64 0:5.6.25-1.el6.remi will be an update
--> Running transaction check
---> Package compat-db47.x86_64 0:4.7.25-28.el7 will be installed
--> Processing Dependency: compat-db-headers = 4.7.25-28.el7 for package: compat-db47-4.7.25-28.el7.x86_64
---> Package gd-last.x86_64 0:2.2.3-1.el7.remi will be installed
--> Processing Dependency: libwebp.so.4()(64bit) for package: gd-last-2.2.3-1.el7.remi.x86_64
---> Package libpng12.x86_64 0:1.2.50-7.el7_2 will be installed
---> Package php.x86_64 0:5.6.25-1.el6.remi will be an update
--> Processing Dependency: httpd-mmn = 20051115 for package: php-5.6.25-1.el6.remi.x86_64
---> Package php-dba.x86_64 0:5.6.25-1.el6.remi will be an update
--> Processing Dependency: libtokyocabinet.so.8()(64bit) for package: php-dba-5.6.25-1.el6.remi.x86_64
--> Processing Dependency: libgdbm.so.2()(64bit) for package: php-dba-5.6.25-1.el6.remi.x86_64
---> Package php-ldap.x86_64 0:5.6.25-1.el6.remi will be an update
--> Processing Dependency: libsasl2.so.2()(64bit) for package: php-ldap-5.6.25-1.el6.remi.x86_64
---> Package php-pecl-jsonc.x86_64 0:1.3.10-1.el7.remi.5.4 will be installed
--> Processing Dependency: php(zend-abi) = 20100525-64 for package: php-pecl-jsonc-1.3.10-1.el7.remi.5.4.x86_64
--> Processing Dependency: php(api) = 20100412-64 for package: php-pecl-jsonc-1.3.10-1.el7.remi.5.4.x86_64
---> Package php-pecl-jsonc-devel.x86_64 0:1.3.10-1.el7.remi.5.4 will be installed
---> Package php-pecl-zip.x86_64 0:1.13.4-1.el6.remi.5.6 will be installed
--> Processing Dependency: libzip.so.4()(64bit) for package: php-pecl-zip-1.13.4-1.el6.remi.5.6.x86_64
---> Package php-snmp.x86_64 0:5.6.25-1.el6.remi will be an update
--> Processing Dependency: libnetsnmp.so.20()(64bit) for package: php-snmp-5.6.25-1.el6.remi.x86_64
--> Running transaction check
---> Package compat-db-headers.noarch 0:4.7.25-28.el7 will be installed
---> Package libwebp.x86_64 0:0.3.0-3.el7 will be installed
---> Package libzip-last.x86_64 0:1.1.3-1.el7.remi will be installed
---> Package php.x86_64 0:5.6.25-1.el6.remi will be an update
--> Processing Dependency: httpd-mmn = 20051115 for package: php-5.6.25-1.el6.remi.x86_64
---> Package php-dba.x86_64 0:5.6.25-1.el6.remi will be an update
--> Processing Dependency: libtokyocabinet.so.8()(64bit) for package: php-dba-5.6.25-1.el6.remi.x86_64
--> Processing Dependency: libgdbm.so.2()(64bit) for package: php-dba-5.6.25-1.el6.remi.x86_64
---> Package php-ldap.x86_64 0:5.6.25-1.el6.remi will be an update
--> Processing Dependency: libsasl2.so.2()(64bit) for package: php-ldap-5.6.25-1.el6.remi.x86_64
---> Package php-pecl-jsonc.x86_64 0:1.3.10-1.el7.remi.5.4 will be installed
--> Processing Dependency: php(zend-abi) = 20100525-64 for package: php-pecl-jsonc-1.3.10-1.el7.remi.5.4.x86_64
--> Processing Dependency: php(api) = 20100412-64 for package: php-pecl-jsonc-1.3.10-1.el7.remi.5.4.x86_64
---> Package php-snmp.x86_64 0:5.6.25-1.el6.remi will be an update
--> Processing Dependency: libnetsnmp.so.20()(64bit) for package: php-snmp-5.6.25-1.el6.remi.x86_64
--> Finished Dependency Resolution
Error: Package: php-dba-5.6.25-1.el6.remi.x86_64 (remi-php56)
           Requires: libtokyocabinet.so.8()(64bit)
Error: Package: php-dba-5.6.25-1.el6.remi.x86_64 (remi-php56)
           Requires: libgdbm.so.2()(64bit)
Error: Package: php-pecl-jsonc-1.3.10-1.el7.remi.5.4.x86_64 (remi)
           Requires: php(zend-abi) = 20100525-64
           Removing: php-common-5.4.45-11.el7.remi.x86_64 (@remi)
               php(zend-abi) = 20100525-64
           Updated By: php-common-5.6.25-1.el6.remi.x86_64 (remi-php56)
               php(zend-abi) = 20131226-64
           Available: php-common-5.4.16-36.el7_1.x86_64 (base)
               php(zend-abi) = 20100525-64
           Available: php-common-5.4.16-36.1.el7_2.1.x86_64 (updates)
               php(zend-abi) = 20100525-64
           Available: php-common-5.4.16-36.3.el7_2.x86_64 (updates)
               php(zend-abi) = 20100525-64
           Available: php-common-5.4.45-10.el7.remi.x86_64 (remi)
               php(zend-abi) = 20100525-64
           Available: php-common-5.6.24-1.el6.remi.x86_64 (remi-php56)
               php(zend-abi) = 20131226-64
Error: Package: php-ldap-5.6.25-1.el6.remi.x86_64 (remi-php56)
           Requires: libsasl2.so.2()(64bit)
Error: Package: php-5.6.25-1.el6.remi.x86_64 (remi-php56)
           Requires: httpd-mmn = 20051115
           Installed: httpd-2.4.10-104.rhe7x.iworx.x86_64 (@interworx-release)
               httpd-mmn = 20120211
               httpd-mmn = 20120211x8664
               httpd-mmn = 20120211-x86-64
           Available: httpd-2.4.6-40.el7.centos.x86_64 (base)
               httpd-mmn = 20120211x8664
               httpd-mmn = 20120211-x86-64
               httpd-mmn = 20120211
           Available: httpd-2.4.6-40.el7.centos.1.x86_64 (updates)
               httpd-mmn = 20120211x8664
               httpd-mmn = 20120211-x86-64
               httpd-mmn = 20120211
           Available: httpd-2.4.6-40.el7.centos.4.x86_64 (updates)
               httpd-mmn = 20120211x8664
               httpd-mmn = 20120211-x86-64
               httpd-mmn = 20120211
           Available: httpd-2.4.10-100.rhe7x.iworx.x86_64 (interworx-release)
               httpd-mmn = 20120211x8664
               httpd-mmn = 20120211-x86-64
               httpd-mmn = 20120211
Error: Package: php-pecl-jsonc-1.3.10-1.el7.remi.5.4.x86_64 (remi)
           Requires: php(api) = 20100412-64
           Removing: php-common-5.4.45-11.el7.remi.x86_64 (@remi)
               php(api) = 20100412-64
           Updated By: php-common-5.6.25-1.el6.remi.x86_64 (remi-php56)
               php(api) = 20131106-64
           Available: php-common-5.4.16-36.el7_1.x86_64 (base)
               php(api) = 20100412-64
           Available: php-common-5.4.16-36.1.el7_2.1.x86_64 (updates)
               php(api) = 20100412-64
           Available: php-common-5.4.16-36.3.el7_2.x86_64 (updates)
               php(api) = 20100412-64
           Available: php-common-5.4.45-10.el7.remi.x86_64 (remi)
               php(api) = 20100412-64
           Available: php-common-5.6.24-1.el6.remi.x86_64 (remi-php56)
               php(api) = 20131106-64
Error: Package: php-snmp-5.6.25-1.el6.remi.x86_64 (remi-php56)
           Requires: libnetsnmp.so.20()(64bit)
 You could try using --skip-broken to work around the problem



Hi Powereclipse
Welcome to IW forums
I do not use centos 7 currently, we have test servers on centos 7 though but not uopgraded PHP
Have you enabled epel repo
Licensecart method for installing as follows (Kudos to Mike)
add the remi repo:
wget https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
wget http://rpms.famillecollet.com/enterprise/remi-release-7.rpm
rpm -Uvh remi-release-7*.rpm epel-release-latest-7.noarch.rpm
Next we need to edit the remi repo:
nano -w /etc/yum.repos.d/remi.repo and find: “[remi-php56]” and change enabled=0 to enabled=1.
Finally we need to upgrade PHP from 5.4 to 5.6 because 5.4 is End Of Life and not supported:
yum --enablerepo=remi upgrade php-mysql php-deve php-gd php-pecl-memcache php-pspell php-snmp php-xmlrpc php-xml php-mcrypt php-imap php-mailparse -y
Most people need ionCube so we can do that with this:
wget -N -4 https://licensecart.com/iworx/improved-ioncube.sh;chmod 777 ./improved-ioncube.sh;./improved-ioncube.sh auto
Source: https://licensecart.com/plugin/support_manager/knowledgebase/view/32/licensecart-s-way-to-install-interworx/
Follow us: @Licensecart on Twitter | Licensecart on Facebook or Google+
I hope that helps
Many thanks
John

Hello.
Thanks.
I did what you told me to do, and here’s the output:

http://hastebin.com/upikegoxoy.coffee

Hi powereclipse

Looks like you need to clean your yum repos, update zend, http-mmn and lib

Also, mike instructions has an misspelling where it shows php-deve, this should be php-devel (I’ll let mike know)

I hope that helps

Many thanks

John

[QUOTE=d2d4j;29037]Hi powereclipse

Looks like you need to clean your yum repos, update zend, http-mmn and lib

Also, mike instructions has an misspelling where it shows php-deve, this should be php-devel (I’ll let mike know)

I hope that helps

Many thanks

John[/QUOTE]

Hi.
Problem is, I don’t know how to clean my yum repos, update zend, http-mmn and lib…

Hi Powereclispe
Many thanks, and I have just tried to update a test server running minial centos 7, with latest IW RL installed and it worked lovely
TO clean your repos, you SSH and run sudo yum clean all
was your server a clean minimal install
can you try again using the follow, as I noted you still did not correct the misspelling
yum --enablerepo=remi upgrade php-mysql php-devel php-gd php-pecl-memcache php-pspell php-snmp php-xmlrpc php-xml php-mcrypt php-imap php-mailparse -y
wget -N -4 https://licensecart.com/iworx/improved-ioncube.sh;chmod 777 ./improved-ioncube.sh
Many thanks
John
Installed:
php-mysqlnd.x86_64 0:5.6.25-1.el7.remi
Dependency Installed:
gd-last.x86_64 0:2.2.3-1.el7.remi
libwebp.x86_64 0:0.3.0-3.el7
libzip-last.x86_64 0:1.1.3-1.el7.remi
php-pecl-jsonc.x86_64 0:1.3.10-1.el7.remi.5.6
php-pecl-jsonc-devel.x86_64 0:1.3.10-1.el7.remi.5.6
php-pecl-zip.x86_64 0:1.13.4-1.el7.remi.5.6
Updated:
php-devel.x86_64 0:5.6.25-1.el7.remi php-gd.x86_64 0:5.6.25-1.el7.remi
php-xml.x86_64 0:5.6.25-1.el7.remi php-xmlrpc.x86_64 0:5.6.25-1.el7.remi
Dependency Updated:
php.x86_64 0:5.6.25-1.el7.remi php-cli.x86_64 0:5.6.25-1.el7.remi
php-common.x86_64 0:5.6.25-1.el7.remi php-mbstring.x86_64 0:5.6.25-1.el7.remi
php-pdo.x86_64 0:5.6.25-1.el7.remi php-process.x86_64 0:5.6.25-1.el7.remi
Replaced:
php-mysql.x86_64 0:5.4.16-36.3.el7_2
Complete!
php -v
PHP 5.6.25 (cli) (built: Aug 31 2016 19:17:57)
Copyright © 1997-2016 The PHP Group
Zend Engine v2.6.0, Copyright © 1998-2016 Zend Technologies

[QUOTE=d2d4j;29039]Hi Powereclispe
Many thanks, and I have just tried to update a test server running minial centos 7, with latest IW RL installed and it worked lovely
TO clean your repos, you SSH and run sudo yum clean all
was your server a clean minimal install
can you try again using the follow, as I noted you still did not correct the misspelling
yum --enablerepo=remi upgrade php-mysql php-devel php-gd php-pecl-memcache php-pspell php-snmp php-xmlrpc php-xml php-mcrypt php-imap php-mailparse -y
wget -N -4 https://licensecart.com/iworx/improved-ioncube.sh;chmod 777 ./improved-ioncube.sh
Many thanks
John
Installed:
php-mysqlnd.x86_64 0:5.6.25-1.el7.remi
Dependency Installed:
gd-last.x86_64 0:2.2.3-1.el7.remi
libwebp.x86_64 0:0.3.0-3.el7
libzip-last.x86_64 0:1.1.3-1.el7.remi
php-pecl-jsonc.x86_64 0:1.3.10-1.el7.remi.5.6
php-pecl-jsonc-devel.x86_64 0:1.3.10-1.el7.remi.5.6
php-pecl-zip.x86_64 0:1.13.4-1.el7.remi.5.6
Updated:
php-devel.x86_64 0:5.6.25-1.el7.remi php-gd.x86_64 0:5.6.25-1.el7.remi
php-xml.x86_64 0:5.6.25-1.el7.remi php-xmlrpc.x86_64 0:5.6.25-1.el7.remi
Dependency Updated:
php.x86_64 0:5.6.25-1.el7.remi php-cli.x86_64 0:5.6.25-1.el7.remi
php-common.x86_64 0:5.6.25-1.el7.remi php-mbstring.x86_64 0:5.6.25-1.el7.remi
php-pdo.x86_64 0:5.6.25-1.el7.remi php-process.x86_64 0:5.6.25-1.el7.remi
Replaced:
php-mysql.x86_64 0:5.4.16-36.3.el7_2
Complete!
php -v
PHP 5.6.25 (cli) (built: Aug 31 2016 19:17:57)
Copyright © 1997-2016 The PHP Group
Zend Engine v2.6.0, Copyright © 1998-2016 Zend Technologies[/QUOTE]

This is done, same errors:

http://hastebin.com/ubujeziwet.coffee

Hi powereclipse

Do you mind me asking how epel 6.8 has been listed

Is your server an upgrade to centos 7 from centos 6.8

Many thanks

John

[QUOTE=d2d4j;29041]Hi powereclipse

Do you mind me asking how epel 6.8 has been listed

Is your server an upgrade to centos 7 from centos 6.8

Many thanks

John[/QUOTE]

Actually, I have no idea how it got there…

And no, it’s a clean CentOS 7 Install.

I removed the epel 6.8 - Still the same issues, except the epel 6.8 issue.

http://hastebin.com/ivacitufef.coffee

Hi Powereclipse
Hm, could you please post ypur result for the following
ssh into server
as root or sudo rpm -qa | grep php
I suspect you have EL6 packages installed when they should be EL7
Updated By: php-common-5.6.25-1.el6.remi.x86_64 (remi-php56)
php(zend-abi) = 20131226-64
Many thanks
John

[QUOTE=d2d4j;29043]Hi Powereclipse
Hm, could you please post ypur result for the following
ssh into server
as root or sudo rpm -qa | grep php
I suspect you have EL6 packages installed when they should be EL7
Updated By: php-common-5.6.25-1.el6.remi.x86_64 (remi-php56)
php(zend-abi) = 20131226-64
Many thanks
John[/QUOTE]

Here you go, John:

php-mbstring-5.4.45-11.el7.remi.x86_64php-mcrypt-5.4.45-11.el7.remi.x86_64
suphp-0.7.2-102.iworx.x86_64
php-common-5.4.45-11.el7.remi.x86_64
php-devel-5.4.45-11.el7.remi.x86_64
php-gd-5.4.45-11.el7.remi.x86_64
php-process-5.4.45-11.el7.remi.x86_64
php-recode-5.4.45-11.el7.remi.x86_64
php-iworx-5.6.25-1.rhe7x.iworx.x86_64
php-xmlrpc-5.4.45-11.el7.remi.x86_64
php-dba-5.4.45-11.el7.remi.x86_64
php-snmp-5.4.45-11.el7.remi.x86_64
php-bcmath-5.4.45-11.el7.remi.x86_64
php-pdo-5.4.45-11.el7.remi.x86_64
php-5.4.45-11.el7.remi.x86_64
php-pgsql-5.4.45-11.el7.remi.x86_64
php-odbc-5.4.45-11.el7.remi.x86_64
php-pspell-5.4.45-11.el7.remi.x86_64
php-xml-5.4.45-11.el7.remi.x86_64
php-embedded-5.4.45-11.el7.remi.x86_64
php-soap-5.4.45-11.el7.remi.x86_64
php-intl-5.4.45-11.el7.remi.x86_64
php-enchant-5.4.45-11.el7.remi.x86_64
interworx-phpmyadmin-3.5.4-1218.iworx.noarch
php-ioncube-loader-5.1.2-1.el7.remi.5.4.x86_64
suphp-iworx-0.7.1-108.rhe7x.iworx.x86_64
php-cli-5.4.45-11.el7.remi.x86_64
php-mysql-5.4.45-11.el7.remi.x86_64
php-fpm-5.4.45-11.el7.remi.x86_64
php-ldap-5.4.45-11.el7.remi.x86_64



Hi powereclipse

Hm, that’s strange as your snapshot you posted in hastebin clearly show using EL6 as I posted

It’s a moot point, but you have not enabled remi EL6 have you

I’ll have to start up our test server when I’m back to check that to see if it matches

You could try update with exclude to show what is the cause of the fail

Many thanks

John

Hi Powereclispe
I have checked our test server, and run some yum installs, removes and all works fine, and below is our grep php
I think you could upgrade by removing the conflicting packages from php, and installing them back, BUT you do so at your own risk and I could not be certain on your server it would work. It did on my test server.
If you do want to try, and I stress it is at your own risk, so make all backups you need too before trying, here is what I did
Make all backups you need
Log into nodeworx, server settinds, updates and ensure remi is disabled for EL6 (all repos) and double check you do not Epel EL6 repo enabled
SSH into server
complete as root user or use sudo
yum clean all
rpm -qa | grep php
php -v
yum remove php-dba
yum remove php-ioncube-loader
yum remove php-ldap
yum remove php-snmp
yum remove php-pecl-jsonc
yum install php-pecl-jsonc
yum --enablerepo=remi install php-mysql php-devel php-gd php-pecl-memcache php-pspell php-snmp php-xmlrpc php-xml php-mcrypt php-imap php-mailparse -y
yum install php-dba
yum install php-ioncube-loader
yum install php-ldap
rpm -qa | grep php
php -v
Please take a snapshot of the packages which yum remove php-pecl-jsonc will remove, and add these packages back in by yum install <package>
so on my test server, here is what yum remove php-pecl-jsonc will remove:
Removing:
php-pecl-jsonc x86_64 1.3.10-1.el7.remi.5.6 @remi-php56 184 k
Removing for dependencies:
php-cli x86_64 5.6.25-1.el7.remi @remi-php56 13 M
php-common x86_64 5.6.25-1.el7.remi @remi-php56 7.9 M
php-devel x86_64 5.6.25-1.el7.remi @remi-php56 8.1 M
php-gd x86_64 5.6.25-1.el7.remi @remi-php56 240 k
php-imap x86_64 5.6.25-1.el7.remi @remi-php56 207 k
php-ioncube-loader x86_64 5.1.2-1.el7.remi.5.6 @remi-php56 3.0 M
php-mbstring x86_64 5.6.25-1.el7.remi @remi-php56 2.7 M
php-mcrypt x86_64 5.6.25-1.el7.remi @remi-php56 97 k
php-mysqlnd x86_64 5.6.25-1.el7.remi @remi-php56 1.0 M
php-pdo x86_64 5.6.25-1.el7.remi @remi-php56 393 k
php-pear noarch 1:1.10.1-6.el7.remi @remi 2.1 M
php-pecl-jsonc-devel x86_64 1.3.10-1.el7.remi.5.6 @remi-php56 123 k
php-pecl-mailparse x86_64 2.1.6-7.el7.remi.5.6 @remi-php56 165 k
php-pecl-memcache x86_64 3.0.8-4.el7.remi.5.6 @remi-php56 349 k
php-pecl-zip x86_64 1.13.4-1.el7.remi.5.6 @remi-php56 178 k
php-process x86_64 5.6.25-1.el7.remi @remi-php56 187 k
php-pspell x86_64 5.6.25-1.el7.remi @remi-php56 47 k
php-snmp x86_64 5.6.25-1.el7.remi @remi-php56 118 k
php-xml x86_64 5.6.25-1.el7.remi @remi-php56 878 k
php-xmlrpc x86_64 5.6.25-1.el7.remi @remi-php56 165 k
Transaction Summary

Remove 1 Package (+20 Dependent packages)
Installed size: 41 M
Is this ok [y/N]:
so you would need to make sure these have been added back into your server
If you need to, you may need to restart apache
I am still unclear why your post shows EL6, unless you manually updated outside of yum, or used an EL6 rpm, which is why I will warn again, do this at your own risk. I accept no responcibility or liability for any issues the above may cause and/or loss of data etc… It is at your own risk
I hope that helps
Many thanks
John

Maybe this will help.

I detailed my process of updating this here: http://forums.interworx.com/threads/8437-Interworx-5-1-x-CentOS-6-7-How-to-upgrade-PHP-5-5-5-6