Error Details
The error appears when you try to run easyapache or try to install PHP 7.4 on Cloudlinux 7.9, it puts you on the following error:
Error: Package: 1:ea-php74-php-cli-7.4.15-1.el7.cloudlinux.x86_64 (cl-ea4) Requires: ea-openssl11 = 1:1.1.1h Installed: 1:ea-openssl11-1.1.1i-1.el7.cloudlinux.x86_64 (@cl-ea4) ea-openssl11 = 1:1.1.1i-1.el7.cloudlinux Available: 1:ea-openssl11-1.1.1d-1.el7.cloudlinux.x86_64 (cl-ea4) ea-openssl11 = 1:1.1.1d-1.el7.cloudlinux Available: 1:ea-openssl11-1.1.1f-1.el7.cloudlinux.x86_64 (cl-ea4) ea-openssl11 = 1:1.1.1f-1.el7.cloudlinux Available: 1:ea-openssl11-1.1.1g-1.el7.cloudlinux.x86_64 (cl-ea4) ea-openssl11 = 1:1.1.1g-1.el7.cloudlinux Available: 1:ea-openssl11-1.1.1h-1.el7.cloudlinux.x86_64 (cl-ea4) ea-openssl11 = 1:1.1.1h-1.el7.cloudlinux
Error Fix:
It is trying to look into a sub-sub version of openssl, which is 1h for PHP 7.4, but 1i is installed by default which is not an exact match with 1h, hence the error is appearing. To fix the problem, you can not just run yum update on openssl and fix this as you technically already have the latest version. To work with this, you need to first uninstall the ea-openssl rpm and install the require version. You may do this in the following way:
[root@stack4 yum.repos.d]# rpm -qa|grep ea-openssl ea-openssl11-devel-1.1.1i-1.el7.cloudlinux.x86_64 ea-openssl-1.0.2u-1.el7.cloudlinux.x86_64 ea-openssl11-1.1.1i-1.el7.cloudlinux.x86_64 [root@stack4 yum.repos.d]# yum install ea-openssl11-1.1.1h-1.el7.cloudlinux.x86_64 Loaded plugins: fastestmirror, rhnplugin, universal-hooks This system is receiving updates from CLN. Loading mirror speeds from cached hostfile * cpanel-plugins: 185.125.185.32 * cloudlinux-x86_64-server-7: xmlrpc.cln.cloudlinux.com Package matching 1:ea-openssl11-1.1.1h-1.el7.cloudlinux.x86_64 already installed. Checking for update. Nothing to do
Fix it with the following:
[root@stack4 yum.repos.d]# rpm -e --nodeps ea-openssl11-1.1.1i-1.el7.cloudlinux.x86_64 [root@stack4 yum.repos.d]# yum install ea-openssl11-1.1.1h-1.el7.cloudlinux.x86_64
Remember to use rpm uninstaller instead of yum remove, as yum also removes the dependencies, but with rpm you can skip the dependency uninstallation and patch it the above way.