How to Set Up a Virus Scanner in cPanel – ClamAV

August 9, 2023 / cPanel & WHM

In this article, we will cover the installation and configuration process for the ClamAV plugin within cPanel.

ClamAV, a widely used open-source antivirus scanner, enables cPanel users to conduct email scans and assess their home directories for potentially harmful files through this plugin.

Note: To install ClamAV, you’ll need root access to your VPS (Virtual Private Server) or dedicated server. Alternatively, you can reach out to our support team for assistance with installing the ClamAV antivirus plugin.

Follow the instructions below to understand how to set up a virus scanner in cPanel and conduct a site scan:

  1. Log into your WHM as the root user.
    WHM login
  2. In the upper-left search box, type “Plugins,” and subsequently, click on “Manage Plugins.”
    Manage Plugins
  3. Select the “Install ClamAV for cPanel” button.
     Install ClamAV for cPanel
    The installation procedure might require a substantial duration, possibly exceeding 10 minutes. Therefore, please exercise patience and refrain from closing the web browser until the process concludes. Upon completion, a message indicating the successful installation of “ClamAV for cPanel” will appear at the bottom of the screen.
  4. Log out of WHM, and Log back in as the root user.
  5. Type “clamAV” into the search box located in the upper-left corner, and click on “Configure ClamAV Scanner.”
    Configure ClamAV Scanner
  6. At this point, you can define the global scan permissions as per your preferences. If you wish to enable all cPanel users to scan their content, you can mark the checkboxes next to “Scan Entire Home Directory,” “Scan Mail,” “Scan Public FTP Space,” and “Scan Public Web Space,” then proceed to click “Save.”
    Scan Entire Home

Thus, you can scan websites for viruses using ClamAV.

However, you can also Scan your email and website for viruses without installing ClamAV.

Spread the love