This article provides a guide demonstrating how to install ClamAV plugin on cPanel WHM server.
What is ClamAV?
ClamAV is a free, open-source, cross-platform anti-malware toolkit developed by Cisco Talos to detect viruses, trojans, and other malicious threats.
How to Install ClamAV Plugin on cPanel WHM Server
To install ClamAV plugin on cPanel WHM server, follow the steps outlined below:
- Login as root via SSH.
- Run the following commands:
/scripts/update_local_rpm_versions --edit target_settings.clamav installed /scripts/check_cpanel_rpms --fix --targets=clamav - Configure ClamAV in WHM:
- Login to WHM.
- Navigate to WHM->Plugins->Configure ClamAV Scanner
- Configure Global Settings
- Configure ClamAV Scanner user configuration
- Setup ClamAV Scanner cron job:
EDITOR=nano crontab -e 0 6 * * * while read domain user; do /usr/local/cpanel/3rdparty/bin/clamscan -i -r /home/"$user" 2>&1; done </etc/trueuserdomains >>/root/infections.txt
That's it. ClamAV Scanner will run a systemwide scan against all users each day at 06:00 AM.
Conclusion
You now know how to install ClamAV plugin on cPanel WHM server.

👀 Choose SSD-powered VPS servers for increased speed, power, and security! Now 50% off- starting from only $3.19/mo.