How to fix ClamAV errors in cPanel
What is ClamAV? :- Clam AntiVirus (ClamAV) is a free software, cross-platform and open-source antivirus software toolkit able to detect many types of malicious software, including viruses.
How do we use ClamAV in cPGuard :- We use ClamAV through their LibClamAV library integration. We use their functions carefully to cause very light CPU usage and load only necessary functions.
How do we install ClamAV :- We install ClamAV when you run the installer script if you have not installed the cPanel ClamAV plugin. But from cPanel v88, they have done some updates and it will conflict the cPanel ClamAV package with the one that we can install into the OS directly from EPEL or any other repo. So they force you to remove the ClamAV installation in OS before you install cPanel ClamAV packages with an error like below.
Error: cpanel-clamav conflicts with clamav-0.102.2-4.el7.x86_64
Error: cpanel-clamav conflicts with clamav-lib-0.102.2-4.el7.x86_64
Error: cpanel-clamav conflicts with clamav-update-0.102.2-4.el7.x86_64
Error: cpanel-clamav conflicts with clamav-filesystem-0.102.2-4.el7.noarch
How to fix this? :- Since they will force you to remove ClamAV before proceeding, there is no option left and you have to uninstall ClamAV from the OS ..cPGuard can still be fixed with that ( make sure that you have no other scripts on your server which needs ClamAV ). So after uninstalling ClamAV, of course cPGuard will break...but you can fix it by running the following command or cPGuard health check system will automatically fix it in the next check.
ln -s /usr/local/cpanel/3rdparty/lib64/libclamav.so.9 /lib64/libclamav.so.9
Still having issues? :- If you still face issues running cPGuard, please contact our support team and we will help you to fix it for you.