How to Install ClamAV Plugin on cPanel WHM Server

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:

  1. Login as root via SSH.
  2. Run the following commands:
    /scripts/update_local_rpm_versions --edit target_settings.clamav installed
    /scripts/check_cpanel_rpms --fix --targets=clamav
  3. Configure ClamAV in WHM:
    1. Login to WHM.
    2. Navigate to WHM->Plugins->Configure ClamAV Scanner
    3. Configure Global Settings
    4. Configure ClamAV Scanner user configuration
  4. 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.

Related:

  • clamav, cpanel, whm plugins
  • 0 Bu dökümanı faydalı bulan kullanıcılar:
Bu cevap yeterince yardımcı oldu mu?

İlgili diğer dökümanlar

Uninstall Pinguzo Client on Server

This article provides a quick and direct guide for uninstalling the Pinguzo server monitoring...

Disable Network Manager on CentOS 7

This article will provide the steps to disable Network Manager in CentOS 7. Network Manager is...

Disable Network Manager on CentOS 6

This article will provide the steps to disable Network Manager in CentOS 6. Network Manager is...

How to Find the IP of cPanel/WHM Server

This tutorial is designed to troubleshoot and diagnose issues with cPanel license errors. Find...

Uninstall WHMXtra on cPanel Server

This article provides a quick and direct guide for uninstalling the WHMXtra plugin from a...