Question

Upgrade php version 5.4.5 to php version 5.6

Hi all, Please help me: I updated but have some problem :

[root@Tokithemes ~]# yum install -y php56w php56w-opcache php56w-xml php56w-mcrypt php56w-gd php56w-devel php56w-mysql php56w-intl php56w-mbstring Loaded plugins: fastestmirror Setting up Install Process Loading mirror speeds from cached hostfile epel/metalink | 13 kB 00:00

  • base: mirror.es.its.nyu.edu
  • epel: mirrors.mit.edu
  • extras: mirror.cc.columbia.edu
  • remi: remi.check-update.co.uk
  • updates: mirror.symnds.com
  • webtatic: us-east.repo.webtatic.com base | 3.7 kB 00:00 epel | 4.3 kB 00:00 epel/primary_db | 5.7 MB 00:00 extras | 3.4 kB 00:00 mariadb | 2.9 kB 00:00 nginx | 2.9 kB 00:00 remi | 2.9 kB 00:00 updates | 3.4 kB 00:00 webtatic | 3.6 kB 00:00 Resolving Dependencies –> Running transaction check —> Package php56w.x86_64 0:5.6.14-2.w6 will be installed –> Processing Dependency: php56w-common(x86-64) = 5.6.14-2.w6 for package: php56w-5.6.14-2.w6.x86_64 –> Processing Dependency: php56w-cli(x86-64) = 5.6.14-2.w6 for package: php56w-5.6.14-2.w6.x86_64 –> Processing Dependency: php56w-cli = 5.6.14-2.w6 for package: php56w-5.6.14-2.w6.x86_64 –> Processing Dependency: httpd-mmn = 20051115 for package: php56w-5.6.14-2.w6.x86_64 –> Processing Dependency: httpd for package: php56w-5.6.14-2.w6.x86_64 —> Package php56w-devel.x86_64 0:5.6.14-2.w6 will be installed –> Processing Dependency: pcre-devel(x86-64) for package: php56w-devel-5.6.14-2.w6.x86_64 –> Processing Dependency: automake for package: php56w-devel-5.6.14-2.w6.x86_64 –> Processing Dependency: autoconf for package: php56w-devel-5.6.14-2.w6.x86_64 —> Package php56w-gd.x86_64 0:5.6.14-2.w6 will be installed —> Package php56w-intl.x86_64 0:5.6.14-2.w6 will be installed –> Processing Dependency: libicuuc.so.42()(64bit) for package: php56w-intl-5.6.14-2.w6.x86_64 –> Processing Dependency: libicuio.so.42()(64bit) for package: php56w-intl-5.6.14-2.w6.x86_64 –> Processing Dependency: libicui18n.so.42()(64bit) for package: php56w-intl-5.6.14-2.w6.x86_64 –> Processing Dependency: libicudata.so.42()(64bit) for package: php56w-intl-5.6.14-2.w6.x86_64 —> Package php56w-mbstring.x86_64 0:5.6.14-2.w6 will be installed —> Package php56w-mcrypt.x86_64 0:5.6.14-2.w6 will be installed —> Package php56w-mysql.x86_64 0:5.6.14-2.w6 will be installed –> Processing Dependency: php56w-pdo(x86-64) for package: php56w-mysql-5.6.14-2.w6.x86_64 —> Package php56w-opcache.x86_64 0:5.6.14-2.w6 will be installed —> Package php56w-xml.x86_64 0:5.6.14-2.w6 will be installed –> Running transaction check —> Package autoconf.noarch 0:2.63-5.1.el6 will be installed —> Package automake.noarch 0:1.11.1-4.el6 will be installed —> Package httpd.x86_64 0:2.2.15-47.el6.centos will be installed –> Processing Dependency: httpd-tools = 2.2.15-47.el6.centos for package: httpd-2.2.15-47.el6.centos.x86_64 –> Processing Dependency: apr-util-ldap for package: httpd-2.2.15-47.el6.centos.x86_64 –> Processing Dependency: /etc/mime.types for package: httpd-2.2.15-47.el6.centos.x86_64 –> Processing Dependency: libaprutil-1.so.0()(64bit) for package: httpd-2.2.15-47.el6.centos.x86_64 –> Processing Dependency: libapr-1.so.0()(64bit) for package: httpd-2.2.15-47.el6.centos.x86_64 —> Package libicu.x86_64 0:4.2.1-12.el6 will be installed —> Package pcre-devel.x86_64 0:7.8-7.el6 will be installed –> Processing Dependency: pcre = 7.8-7.el6 for package: pcre-devel-7.8-7.el6.x86_64 —> Package php56w-cli.x86_64 0:5.6.14-2.w6 will be installed —> Package php56w-common.x86_64 0:5.6.14-2.w6 will be installed —> Package php56w-pdo.x86_64 0:5.6.14-2.w6 will be installed –> Running transaction check —> Package apr.x86_64 0:1.3.9-5.el6_2 will be installed —> Package apr-util.x86_64 0:1.3.9-3.el6_0.1 will be installed —> Package apr-util-ldap.x86_64 0:1.3.9-3.el6_0.1 will be installed —> Package httpd-tools.x86_64 0:2.2.15-47.el6.centos will be installed —> Package mailcap.noarch 0:2.1.31-2.el6 will be installed —> Package pcre.x86_64 0:7.8-6.el6 will be updated —> Package pcre.x86_64 0:7.8-7.el6 will be an update –> Finished Dependency Resolution

Dependencies Resolved

================================================================================ Package Arch Version Repository Size

Installing: php56w x86_64 5.6.14-2.w6 webtatic 2.7 M php56w-devel x86_64 5.6.14-2.w6 webtatic 2.6 M php56w-gd x86_64 5.6.14-2.w6 webtatic 143 k php56w-intl x86_64 5.6.14-2.w6 webtatic 177 k php56w-mbstring x86_64 5.6.14-2.w6 webtatic 942 k php56w-mcrypt x86_64 5.6.14-2.w6 webtatic 24 k php56w-mysql x86_64 5.6.14-2.w6 webtatic 109 k php56w-opcache x86_64 5.6.14-2.w6 webtatic 99 k php56w-xml x86_64 5.6.14-2.w6 webtatic 146 k Installing for dependencies: apr x86_64 1.3.9-5.el6_2 base 123 k apr-util x86_64 1.3.9-3.el6_0.1 base 87 k apr-util-ldap x86_64 1.3.9-3.el6_0.1 base 15 k autoconf noarch 2.63-5.1.el6 base 781 k automake noarch 1.11.1-4.el6 base 550 k httpd x86_64 2.2.15-47.el6.centos updates 830 k httpd-tools x86_64 2.2.15-47.el6.centos updates 77 k libicu x86_64 4.2.1-12.el6 base 4.9 M mailcap noarch 2.1.31-2.el6 base 27 k pcre-devel x86_64 7.8-7.el6 base 320 k php56w-cli x86_64 5.6.14-2.w6 webtatic 2.6 M php56w-common x86_64 5.6.14-2.w6 webtatic 1.2 M php56w-pdo x86_64 5.6.14-2.w6 webtatic 93 k Updating for dependencies: pcre x86_64 7.8-7.el6 base 196 k

Transaction Summary

Install 22 Package(s) Upgrade 1 Package(s)

Total size: 19 M Downloading Packages: Running rpm_check_debug Running Transaction Test

Transaction Check Error: file /usr/lib64/php-zts/modules/json.so from install of php56w-common-5.6.14-2.w6.x86_64 conflicts with file from package php-pecl-jsonc-1.3.7-1.el6.remi.5.6.x86_64 file /usr/lib64/php/modules/json.so from install of php56w-common-5.6.14-2.w6.x86_64 conflicts with file from package php-pecl-jsonc-1.3.7-1.el6.remi.5.6.x86_64 file /usr/lib64/php-zts/modules/zip.so from install of php56w-common-5.6.14-2.w6.x86_64 conflicts with file from package php-pecl-zip-1.12.5-1.el6.remi.5.6.x86_64 file /usr/lib64/php/modules/zip.so from install of php56w-common-5.6.14-2.w6.x86_64 conflicts with file from package php-pecl-zip-1.12.5-1.el6.remi.5.6.x86_64 file /etc/php.ini from install of php56w-common-5.6.14-2.w6.x86_64 conflicts with file from package php-common-5.6.10-1.el6.remi.x86_64 file /usr/lib64/php-zts/modules/bz2.so from install of php56w-common-5.6.14-2.w6.x86_64 conflicts with file from package php-common-5.6.10-1.el6.remi.x86_64 file /usr/lib64/php/modules/bz2.so from install of php56w-common-5.6.14-2.w6.x86_64 conflicts with file from package php-common-5.6.10-1.el6.remi.x86_64 file /usr/lib64/php-zts/modules/calendar.so from install of php56w-common-5.6.14-2.w6.x86_64 conflicts with file from package php-common-5.6.10-1.el6.remi.x86_64 file /usr/lib64/php/modules/calendar.so from install of php56w-common-5.6.14-2.w6.x86_64 conflicts with file from package php-common-5.6.10-1.el6.remi.x86_64 file /usr/lib64/php-zts/modules/ctype.so from install of php56w-common-5.6.14-2.w6.x86_64 conflicts with file from package php-common-5.6.10-1.el6.remi.x86_64 file /usr/lib64/php/modules/ctype.so from install of php56w-common-5.6.14-2.w6.x86_64 conflicts with file from package php-common-5.6.10-1.el6.remi.x86_64 file /usr/lib64/php-zts/modules/curl.so from install of php56w-common-5.6.14-2.w6.x86_64 conflicts with file from package php-common-5.6.10-1.el6.remi.x86_64 file /usr/lib64/php/modules/curl.so from install of php56w-common-5.6.14-2.w6.x86_64 conflicts with file from package php-common-5.6.10-1.el6.remi.x86_64 file /usr/lib64/php-zts/modules/exif.so from install of php56w-common-5.6.14-2.w6.x86_64 conflicts with file from package php-common-5.6.10-1.el6.remi.x86_64 file /usr/lib64/php/modules/exif.so from install of php56w-common-5.6.14-2.w6.x86_64 conflicts with file from package php-common-5.6.10-1.el6.remi.x86_64 file /usr/lib64/php-zts/modules/fileinfo.so from install of php56w-common-5.6.14-2.w6.x86_64 conflicts with file from package php-common-5.6.10-1.el6.remi.x86_64 file /usr/lib64/php/modules/fileinfo.so from install of php56w-common-5.6.14-2.w6.x86_64 conflicts with file from package php-common-5.6.10-1.el6.remi.x86_64 file /usr/lib64/php-zts/modules/ftp.so from install of php56w-common-5.6.14-2.w6.x86_64 conflicts with file from package php-common-5.6.10-1.el6.remi.x86_64 file /usr/lib64/php/modules/ftp.so from install of php56w-common-5.6.14-2.w6.x86_64 conflicts with file from package php-common-5.6.10-1.el6.remi.x86_64 file /usr/lib64/php-zts/modules/gettext.so from install of php56w-common-5.6.14-2.w6.x86_64 conflicts with file from package php-common-5.6.10-1.el6.remi.x86_64 file /usr/lib64/php/modules/gettext.so from install of php56w-common-5.6.14-2.w6.x86_64 conflicts with file from package php-common-5.6.10-1.el6.remi.x86_64 file /usr/lib64/php-zts/modules/iconv.so from install of php56w-common-5.6.14-2.w6.x86_64 conflicts with file from package php-common-5.6.10-1.el6.remi.x86_64 file /usr/lib64/php/modules/iconv.so from install of php56w-common-5.6.14-2.w6.x86_64 conflicts with file from package php-common-5.6.10-1.el6.remi.x86_64 file /usr/lib64/php-zts/modules/phar.so from install of php56w-common-5.6.14-2.w6.x86_64 conflicts with file from package php-common-5.6.10-1.el6.remi.x86_64 file /usr/lib64/php/modules/phar.so from install of php56w-common-5.6.14-2.w6.x86_64 conflicts with file from package php-common-5.6.10-1.el6.remi.x86_64 file /usr/lib64/php-zts/modules/sockets.so from install of php56w-common-5.6.14-2.w6.x86_64 conflicts with file from package php-common-5.6.10-1.el6.remi.x86_64 file /usr/lib64/php/modules/sockets.so from install of php56w-common-5.6.14-2.w6.x86_64 conflicts with file from package php-common-5.6.10-1.el6.remi.x86_64 file /usr/lib64/php-zts/modules/tokenizer.so from install of php56w-common-5.6.14-2.w6.x86_64 conflicts with file from package php-common-5.6.10-1.el6.remi.x86_64 file /usr/lib64/php/modules/tokenizer.so from install of php56w-common-5.6.14-2.w6.x86_64 conflicts with file from package php-common-5.6.10-1.el6.remi.x86_64 file /usr/lib64/php-zts/modules/pdo.so from install of php56w-pdo-5.6.14-2.w6.x86_64 conflicts with file from package php-pdo-5.6.10-1.el6.remi.x86_64 file /usr/lib64/php/modules/pdo.so from install of php56w-pdo-5.6.14-2.w6.x86_64 conflicts with file from package php-pdo-5.6.10-1.el6.remi.x86_64 file /usr/lib64/php-zts/modules/pdo_sqlite.so from install of php56w-pdo-5.6.14-2.w6.x86_64 conflicts with file from package php-pdo-5.6.10-1.el6.remi.x86_64 file /usr/lib64/php/modules/pdo_sqlite.so from install of php56w-pdo-5.6.14-2.w6.x86_64 conflicts with file from package php-pdo-5.6.10-1.el6.remi.x86_64 file /usr/lib64/php-zts/modules/sqlite3.so from install of php56w-pdo-5.6.14-2.w6.x86_64 conflicts with file from package php-pdo-5.6.10-1.el6.remi.x86_64 file /usr/lib64/php/modules/sqlite3.so from install of php56w-pdo-5.6.14-2.w6.x86_64 conflicts with file from package php-pdo-5.6.10-1.el6.remi.x86_64 file /usr/lib64/php-zts/modules/mcrypt.so from install of php56w-mcrypt-5.6.14-2.w6.x86_64 conflicts with file from package php-mcrypt-5.6.10-1.el6.remi.x86_64 file /usr/lib64/php/modules/mcrypt.so from install of php56w-mcrypt-5.6.14-2.w6.x86_64 conflicts with file from package php-mcrypt-5.6.10-1.el6.remi.x86_64 file /usr/lib64/php-zts/modules/simplexml.so from install of php56w-common-5.6.14-2.w6.x86_64 conflicts with file from package php-xml-5.6.10-1.el6.remi.x86_64 file /usr/lib64/php/modules/simplexml.so from install of php56w-common-5.6.14-2.w6.x86_64 conflicts with file from package php-xml-5.6.10-1.el6.remi.x86_64 file /usr/lib64/php-zts/modules/xml.so from install of php56w-common-5.6.14-2.w6.x86_64 conflicts with file from package php-xml-5.6.10-1.el6.remi.x86_64 file /usr/lib64/php/modules/xml.so from install of php56w-common-5.6.14-2.w6.x86_64 conflicts with file from package php-xml-5.6.10-1.el6.remi.x86_64 file /usr/lib64/php-zts/modules/dom.so from install of php56w-xml-5.6.14-2.w6.x86_64 conflicts with file from package php-xml-5.6.10-1.el6.remi.x86_64 file /usr/lib64/php/modules/dom.so from install of php56w-xml-5.6.14-2.w6.x86_64 conflicts with file from package php-xml-5.6.10-1.el6.remi.x86_64 file /usr/lib64/php-zts/modules/wddx.so from install of php56w-xml-5.6.14-2.w6.x86_64 conflicts with file from package php-xml-5.6.10-1.el6.remi.x86_64 file /usr/lib64/php/modules/wddx.so from install of php56w-xml-5.6.14-2.w6.x86_64 conflicts with file from package php-xml-5.6.10-1.el6.remi.x86_64 file /usr/lib64/php-zts/modules/xmlreader.so from install of php56w-xml-5.6.14-2.w6.x86_64 conflicts with file from package php-xml-5.6.10-1.el6.remi.x86_64 file /usr/lib64/php/modules/xmlreader.so from install of php56w-xml-5.6.14-2.w6.x86_64 conflicts with file from package php-xml-5.6.10-1.el6.remi.x86_64 file /usr/lib64/php-zts/modules/xmlwriter.so from install of php56w-xml-5.6.14-2.w6.x86_64 conflicts with file from package php-xml-5.6.10-1.el6.remi.x86_64 file /usr/lib64/php/modules/xmlwriter.so from install of php56w-xml-5.6.14-2.w6.x86_64 conflicts with file from package php-xml-5.6.10-1.el6.remi.x86_64 file /usr/lib64/php-zts/modules/xsl.so from install of php56w-xml-5.6.14-2.w6.x86_64 conflicts with file from package php-xml-5.6.10-1.el6.remi.x86_64 file /usr/lib64/php/modules/xsl.so from install of php56w-xml-5.6.14-2.w6.x86_64 conflicts with file from package php-xml-5.6.10-1.el6.remi.x86_64 file /usr/lib64/php-zts/modules/gd.so from install of php56w-gd-5.6.14-2.w6.x86_64 conflicts with file from package php-gd-5.6.10-1.el6.remi.x86_64 file /usr/lib64/php/modules/gd.so from install of php56w-gd-5.6.14-2.w6.x86_64 conflicts with file from package php-gd-5.6.10-1.el6.remi.x86_64 file /usr/lib64/php-zts/modules/mysql.so from install of php56w-mysql-5.6.14-2.w6.x86_64 conflicts with file from package php-mysqlnd-5.6.10-1.el6.remi.x86_64 file /usr/lib64/php/modules/mysql.so from install of php56w-mysql-5.6.14-2.w6.x86_64 conflicts with file from package php-mysqlnd-5.6.10-1.el6.remi.x86_64 file /usr/lib64/php-zts/modules/mysqli.so from install of php56w-mysql-5.6.14-2.w6.x86_64 conflicts with file from package php-mysqlnd-5.6.10-1.el6.remi.x86_64 file /usr/lib64/php/modules/mysqli.so from install of php56w-mysql-5.6.14-2.w6.x86_64 conflicts with file from package php-mysqlnd-5.6.10-1.el6.remi.x86_64 file /usr/lib64/php-zts/modules/pdo_mysql.so from install of php56w-mysql-5.6.14-2.w6.x86_64 conflicts with file from package php-mysqlnd-5.6.10-1.el6.remi.x86_64 file /usr/lib64/php/modules/pdo_mysql.so from install of php56w-mysql-5.6.14-2.w6.x86_64 conflicts with file from package php-mysqlnd-5.6.10-1.el6.remi.x86_64 file /usr/lib64/php-zts/modules/mbstring.so from install of php56w-mbstring-5.6.14-2.w6.x86_64 conflicts with file from package php-mbstring-5.6.10-1.el6.remi.x86_64 file /usr/lib64/php/modules/mbstring.so from install of php56w-mbstring-5.6.14-2.w6.x86_64 conflicts with file from package php-mbstring-5.6.10-1.el6.remi.x86_64 file /usr/lib64/php-zts/modules/opcache.so from install of php56w-opcache-5.6.14-2.w6.x86_64 conflicts with file from package php-opcache-5.6.10-1.el6.remi.x86_64 file /usr/lib64/php/modules/opcache.so from install of php56w-opcache-5.6.14-2.w6.x86_64 conflicts with file from package php-opcache-5.6.10-1.el6.remi.x86_64

Error Summary


Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

Here is a Solution for Centos 7

Install Repos for PHP 5.6.x rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm rpm -Uvh https://mirror.webtatic.com/yum/el7/webtatic-release.rpm

Check PHP list Packages yum list installed php

Remove all PHP Packages $ sudo yum remove php php-cli php-common php-gd php-ldap php-mysql php-odbc php-pdo php-pear php-pecl-apc php-pecl-memcache php-pgsql php-soap php-xml php-xmlrpc -y

Restart Apache $ sudo service httpd restart

Install PHP 5.6.x sudo yum install php56w php56w-opcache -y

Install PHP 5.6.x Packages sudo yum install php56w-mcrypt php56w-odbc php56w-pdo php56w-pgsql php56w-soap php56w-xml php56w-gd php56w-mbstring -y

Install MySQL Modules sudo yum install php56w-mysqlnd

Check PHP Version $ php --version

PHP 5.6.21 (cli) (built: May 1 2016 11:06:02) Copyright © 1997-2016 The PHP Group Zend Engine v2.6.0, Copyright © 1998-2016 Zend Technologies with Zend OPcache v7.0.6-dev, Copyright © 1999-2016, by Zend Technologies

Best Regards!