This tutorial will illustrate how to resolve Yum issues with the Imunify360 “Hardened” PHP repository on CloudLinux.
Symptoms:
The system package management, yum or dnf, cannot update RPMs and inhibit cPanel upgrades when Imunify360 is installed with hardened PHP.
libdnf._error.Error: Failed to download metadata for repo 'imunify360-ea-php-hardened': Cannot download repomd.xml: Status code: 500 for https://repo.alt.cloudlinux.com/el/U1Mya3ZGUlhpMGZo_1XDDPPuI-Iwrd8sGxY0/ea-php/8/updates/x86_64/repodata/repomd.xml (IP: 203.0.113.2)
Description:
Imunify360’s hardened PHP is not necessary on a CloudLinux server, as CloudLinux already provides a hardened PHP version. If the Imunify360 hardened PHP repository is enabled, it should be disabled to avoid potential issues with yum or dnf.
Workaround:
- Turn off the PHP repo for Imunify360 Hardened.
- Using the yum package manager on CloudLinux, AlmaLinux, or Rocky Linux 7:
yum-config-manager –disable “imunify360-ea-php-hardened” - The dnf package manager on CloudLinux, AlmaLinux, or Rocky Linux 8+:
dnf config-manager –disable “imunify360-ea-php-hardened”
Yum problems with the Imunify360 “Hardened” PHP repository on CloudLinux can be fixed in this manner.