0

When trying to install PHP 5.6 from the iUS repo, I get this error:

    --> Processing Conflict: php56u-common-5.6.5-1.ius.el6.x86_64 conflicts php-common < 5.6
    --> Finished Dependency Resolution
    Error: php56u-cli conflicts with php-cli-5.3.3-22.el6.x86_64
    Error: Package: php56u-cli-5.6.5-1.ius.el6.x86_64 (ius)
               Requires: libcrypto.so.10(libcrypto.so.10)(64bit)
    Error: Package: php56u-5.6.5-1.ius.el6.x86_64 (ius)
               Requires: libcrypto.so.10(OPENSSL_1.0.1)(64bit)
    Error: Package: php56u-cli-5.6.5-1.ius.el6.x86_64 (ius)
               Requires: libcrypto.so.10(OPENSSL_1.0.1)(64bit)
    Error: Package: php56u-common-5.6.5-1.ius.el6.x86_64 (ius)
               Requires: libssl.so.10(libssl.so.10)(64bit)
    Error: php56u-common conflicts with php-common-5.3.3-22.el6.x86_64
    Error: Package: php56u-5.6.5-1.ius.el6.x86_64 (ius)
               Requires: libcrypto.so.10(OPENSSL_1.0.1_EC)(64bit)
    Error: Package: php56u-cli-5.6.5-1.ius.el6.x86_64 (ius)
               Requires: libcrypto.so.10(OPENSSL_1.0.1_EC)(64bit)
    Error: Package: php56u-5.6.5-1.ius.el6.x86_64 (ius)
               Requires: libcrypto.so.10(libcrypto.so.10)(64bit)
    Error: Package: php56u-5.6.5-1.ius.el6.x86_64 (ius)
               Requires: libssl.so.10(libssl.so.10)(64bit)
    Error: Package: php56u-cli-5.6.5-1.ius.el6.x86_64 (ius)
               Requires: libssl.so.10(libssl.so.10)(64bit)
    Error: php56u conflicts with php-5.3.3-22.el6.x86_64
     You could try using --skip-broken to work around the problem
     You could try running: rpm -Va --nofiles --nodigest

It seems to be due to the fact i have openssl 1.0.0 installed, and need a later version - but I do not know how to install that. Can anyone help?

2 Answers2

1

You appear to have already PHP installed (version 5.3.3).
Those packages conflict, you cannot have both the IUS and base version installed.
If you want to use IUS, you should replace the old version as described here:
https://iuscommunity.org/pages/IUSClientUsageGuide.html#upgrading-stock-rhel-packages-to-ius-packages

Probably something like

yum replace php --replace-with php56u  

should work.

faker
  • 17,686
0

I know it's a bit late but this worth to answer(maybe save a little time for someone else)

you can use this command to installing on RHEL or CentOS

sudo yum --enablerepo remi,remi-php56 install php56u php56u-common php56u-mysqlnd php56u-cli php56u-pecl-mongo php56u-gd php56u-mbstring php56u-mcrypt php56u-xml -y

in fact you just needed to replace php with php56u, this way you don't change anything in system