ClamAV is a powerful open-source antivirus engine designed to detect and remove malicious files from your server. With WHM, you can easily install and configure ClamAV to protect your websites and email accounts.
How to Install ClamAV in WHM
To install ClamAV on your WHM server, follow these steps:
1. Access WHM Plugins
- Log into WHM as the root user.
- Go to cPanel > Manage Plugins.
- Find clamavconnector and check the box to enable it.
- Click Save at the bottom of the page.
2. Update the Antivirus Database
Once installed, update ClamAV’s virus definitions to ensure it detects the latest threats. Run the following command:
freshclam
How to Scan for Malware with ClamAV
Scan a Directory for Infected Files
To scan a specific directory and display infected files, use:
clamscan -ri /home
Scan and Automatically Remove Infected Files
If you want ClamAV to delete malware-infected files and emails automatically, run:
clamscan -ri --remove /home
Enhance Security with Linux Malware Detect (Maldet)
For additional security, you can also use Linux Malware Detect (Maldet) alongside ClamAV. Check out our step-by-step guide here:
How to Install Linux Malware Detect
Need Assistance?
If you need help setting up ClamAV or Maldet, UnderHost’s 24/7 support team is available to assist you. Contact us via @CustomerPanel for expert guidance.