Knowledgebase

How to use the virus scanner in cPanel  Print this Article

To run a virus scan, follow these steps:

1. In the Advanced section of the cPanel home screen, click Virus Scanner.

2. Under Start a New Scan, select which directory you want to scan:

  • Scan Mail: This option scans the mail directory in your account, looking for viruses in incoming and outgoing e-mail messages.

You should run this scan if one of your recipients reports receiving a virus from you.


  • Scan Entire Home Directory: This option scans all of the files in your account.
  • Scan Public Web Space: This option scans the public_html directory in your account, looking for infected web site files.


You should run this scan frequently to check if any of your web site files are infected with known viruses.

  • Scan Public FTP Space: This option scans the public_ftp directory in your account, looking for infected files.


You only need to run this scan if you share files using FTP.

3. Click Scan Now.

If there are a lot of files in the directory, the scan may take some time to complete.

4. If the virus scan finds any infected files, you can specify what to do with the files:
  • Disinfect: When this option is selected, the virus scanner removes harmful content from the file.
  • Quarantine: When this option is selected, the virus scanner moves the file to the quarantine directory. The quarantine directory is located at/home/USERNAME/quarantine_clamavconnector, where USERNAME represents your account username.
  • Destroy: When this option is selected, the virus scanner deletes the infected file.
  • Ignore: When this option is selected, the virus scanner leaves the infected file unchanged.

To complete the virus scan process, click Process Cleanup.

Was this answer helpful?

Related Articles

How to configure custom Apache handlers in cPanel
This article describes how to use cPanel to configure custom Apache handlers for your web site....
How to configure cron jobs in cPanel
What is a cron job? A cron job is simply a task that you schedule to run automatically at...
How to create custom error pages in cPanel
Whenever visitors to your web site experience an error, they see an error page. This article...
How to monitor the visitors, bandwidth, and resource usage in cPanel
Monitoring the traffic, bandwidth and the visitors of your site is essential for developing a...
How to use the log programs of cPanel
In this tutorial we will learn how to use the Log programs provided in cPanel which you can use...