You are here

INSTALL.txt in ClamAV 7

Same filename and directory in other branches
  1. 6 INSTALL.txt
Requirements
------------

1. The module does not provide an anti-virus scanner; it integrates with
   ClamAV (http://www.clamav.net), which is a free open-source anti-virus
   scanner.
2. Download/install ClamAV:
  - [Debian / Ubuntu]: apt-get install clamav
  - [redhat / CentOS]:
    1. Enable the EPEL repo (https://fedoraproject.org/wiki/EPEL)
    2. yum install clamav
    3. yum install clamd

Installation
------------

1. Enable the module
2. Go to the ClamAV configuration page (admin/settings/clamav) and set
   the path to the ClamAV "clamscan" binary.  On most systems this will be:
   /usr/bin/clamscan

Configuration
-------------

By default only STREAM_WRAPPERS_LOCAL schemes are scannable, but this default
behaviour can be overridden; either in the admin UI, or with a variable.

For example, putting this in settings.php

$conf['clamav_overridden_schemes'] = array(
  'public',
  'external',
);

...would override the default for the public:// and external:// schemes.

Overriding a local scheme will stop it from being scannable, and a remote
scheme will become scannable if it is overridden.

See: https://api.drupal.org/api/drupal/includes!stream_wrappers.inc/7

Acknowledgements
----------------

- File Framework's "antivirus" module, from which this was forked.
- james_andres (maintainer)
- manarth (maintainer)

File

INSTALL.txt
View source
  1. Requirements
  2. ------------
  3. 1. The module does not provide an anti-virus scanner; it integrates with
  4. ClamAV (http://www.clamav.net), which is a free open-source anti-virus
  5. scanner.
  6. 2. Download/install ClamAV:
  7. - [Debian / Ubuntu]: apt-get install clamav
  8. - [redhat / CentOS]:
  9. 1. Enable the EPEL repo (https://fedoraproject.org/wiki/EPEL)
  10. 2. yum install clamav
  11. 3. yum install clamd
  12. Installation
  13. ------------
  14. 1. Enable the module
  15. 2. Go to the ClamAV configuration page (admin/settings/clamav) and set
  16. the path to the ClamAV "clamscan" binary. On most systems this will be:
  17. /usr/bin/clamscan
  18. Configuration
  19. -------------
  20. By default only STREAM_WRAPPERS_LOCAL schemes are scannable, but this default
  21. behaviour can be overridden; either in the admin UI, or with a variable.
  22. For example, putting this in settings.php
  23. $conf['clamav_overridden_schemes'] = array(
  24. 'public',
  25. 'external',
  26. );
  27. ...would override the default for the public:// and external:// schemes.
  28. Overriding a local scheme will stop it from being scannable, and a remote
  29. scheme will become scannable if it is overridden.
  30. See: https://api.drupal.org/api/drupal/includes!stream_wrappers.inc/7
  31. Acknowledgements
  32. ----------------
  33. - File Framework's "antivirus" module, from which this was forked.
  34. - james_andres (maintainer)
  35. - manarth (maintainer)