View blogs | Login

Step-by-step guide to Install ClamAV & Integrate with Xeams

What is ClamAV?

ClamAV includes a number of utilities: a command-line scanner, automatic database updater and a scalable multi-threaded daemon, running on an anti-virus engine. ClamAV includes a multi-threaded scanning daemon, command line utilities for on demand file scanning and automatic signature updates which makes it powerful.

Step 1 - ClamAV Installation

You will Download ClamAV from their website by clicking here (http://www.clamav.net/download.html). Recommended, but not required, is to install ClamAV in the same drive / disk as your Xeams.


NOTE: When installing ClamAV you will need to be a root user.


  • Please update the repository for packages by typing:


    apt-get update


    This will update your Linux OS to the latest version (including any security updates)


  • To install ClamAV and clamav-freshclam automatically type:


    apt-get install clamav clamav-daemon


Step 2 - Updating ClamAV Definition

Let us update the ClamAV virus definition data by typing:


freshclam


Step 3 - Starting ClamAV

After updating the ClamAV virus definition database, you will need to start ClamAV by typing in:


/etc/init.d/clamav-daemon start


Step 4 - Testing

In your Xeams Web Interface:

  1. Log in as admin

  2. Click on Server Configuration

  3. Scroll down and click on Clam-AV Integration

  4. Enter in the Host name/IP address (ex. localhost or 192.168.1.16)

  5. Enter TCP/IP port number: 3310

  6. Save the configurations

  7. Click on Test


Step 5 - Troubleshooting

If ClamAV is not recognized by Xeams then I recommend to rerun the configuration of clamav-daemon by typing the following command:


dpkg-reconfigure clamav-daemon


When reconfiguring the clamav-daemon, set IP to any.

Then try testing it in Xeams by following the step outlined in Step 4 - Testing section.


Step 6 (Optional - Only if needed) - Configuration

To configure ClamAV Conf file open the following file using either vim or nano followed by:


vim /etc/clamav/clamd.conf

OR

nano /etc/clamav/clamd.conf


At the end of the file add the following parameters:


TCPSocket 3310

TCPAddr localhost


Change localhost to the IP where ClamAV has been installed (ex. TCPAddr 192.168.1.16).




Created on: May 31, 2017
Last updated on: Oct 12, 2024

LEAVE A COMMENT

Your email address will not be published.