Free virus and malware scanner for cPanel

Are you looking for a virus and malware scanner for your VPS or dedicated server running cPanel?

cPanel comes with clamav a free virus scanner as a plugin, all you have to do is login to your WHM manager to install it with just a few clicks.

Login to WHM > scroll down to the “cPanel” section > click on “Manage Plugins” > select “install and keep updated ” for clamavconnector and cPanel will install the plugin for you and create the link  “Configure ClamAV Scanner” under Plugins section of WHM.

You can use this configuration screen to activate the virus scanner for all or selected users to perform manual scans.

Now to the best part, how to schedule a server wide scan?

First you’ll need to create a temp directory to use as a quarantine area, /tmp/virus for example

# mkdir /tmp/virus

Then add this cron job to crontab to schedule a weekly scan of your /home directory and send the results to your email address (admin@yourdomain.com)

#crontab -e

5 0 * * 0   nice -n 19 clamscan -i -r –move=/tmp/virus /home | mail admin@yourdomain.com -s “***** Server Name – Infected files *****”

Leave a Reply

Your email address will not be published.

Top