If you're experiencing an error caused by imunify360-ea-php-hardened, follow the steps below to fix it:
1. Check the status of Hardened PHP by running the command:
imunify360-agent features status hardened-php
If the output is:
{'message': 'Hardened-PHP is installed', 'status': 'installed'}
it means Hardened PHP is installed. In this case, you can remove it by running the command:
imunify360-agent features remove hardened-php
or, alternatively, remove the culprit repository with:
rm -rf /etc/yum.repos.d/imunify360-ea-php-hardened.repo
Alternatively, you can disable the repository with the following commands:
yum-config-manager --disable imunify360-ea-php-hardened
After disabling/removing the repository, run the following commands once:
yum clean all && yum makecache
Now re-check the status to ensure that the issue is resolved.
Finally, you can install Hardened PHP again by running the following command:
imunify360-agent features install hardened-php