Symptoms
When Imunify360 is installed with hardened PHP, the system package manager, yum or dnf, cannot update RPMs and prevents cPanel updates.
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 hardened PHP is not used on a CloudLinux server because CloudLinux already provides hardened PHP. If the Imunify360 hardened PHP repository is enabled, it must be disabled to prevent issues using yum or dnf.
Workaround
Disable Imunify360 Hardened PHP repo.
On CloudLinux, AlmaLinux, or Rocky Linux 7 using the yum package manager:
yum-config-manager --disable "imunify360-ea-php-hardened"
On CloudLinux, AlmaLinux, or Rocky Linux 8+ using the dnf package manager:
dnf config-manager --disable "imunify360-ea-php-hardened"