Installing ClamAV on a cPanel Server

Installing ClamAV on a cPanel Server
5 (100%) 2 votes

ClamAV is an popular open source anti-virus toolkit for *nix, and while many people don’t find much value in using antivirus software on Unix, it is very useful for email scanning. cPanel’s implementation allows end users to run scans on their home folders, public FTP folders, mail, and public_html.

It’s really hard to install ClamAV on cPanel – if you’re too lazy to click a couple buttons. Simply go to WHM > Manage Plugins and enable the ClamAV Connector, and you’re good to go.

After this is done, you can go to WHM > Configure ClamAV Scanner and set scanning options for the entire server or specific users:

You should now see a Virus Scanner option in cPanel. If you don’t, you may need to enable it in Feature Manager.

From here, cPanel users can run scans on any permitted items.

For administrators, here are a few quick commands that may be useful:

Update antivirus database:

freshclam

Scan a directory and print out infected files:

clamav -ri /home

Scan a directly and remove infected files and emails:

clamav -ri –remove /home

Don't be selfish, share!Tweet about this on TwitterShare on RedditShare on TumblrBuffer this pageDigg thisShare on FacebookFlattr the authorEmail this to someoneShare on Google+Pin on PinterestPrint this pageShare on LinkedInShare on StumbleUpon

9 Comments

  1. Pingback: Recommend cPanel / WHM plugin list

  2. Pingback: Top Free Cpanel Plugins. | Programming-Source

  3. Pingback: پلاگینهایی برای whm توصیه می کنید؟

  4. Shiv Singh Reply

    Your command is not working on server but i found sum command thats working.

    I am using to to scan with delete as below.

    /usr/local/cpanel/3rdparty/bin/clamscan /home/username/public_html/ -ir –remove=yes

  5. Pingback: The best cPanel / WHM plugin list – Hostuserver – Blog&Help

Leave a Reply

Your email address will not be published. Required fields are marked *

Log in