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?
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
should work.
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
in fact you just needed to replace php with php56u, this way you don't change anything in system