Actions

Developer Area/Setting up ClamAV: Difference between revisions

From Mahara Wiki

< Developer Area
No edit summary
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
=== Install ClamAV ===
=== 1. Install ClamAV ===
To do this on Ubuntu, you can open a terminal and insert
To do this on Ubuntu, you can open a terminal and insert
  sudo apt-get install clamav
  sudo apt-get install clamav
Line 6: Line 6:
You may also build ClamAV from sources to benefit from better scanning performance.
You may also build ClamAV from sources to benefit from better scanning performance.


To update the signatures, you type  
If you need to update the signatures, you can type  
  sudo freshclam
  sudo freshclam
on a terminal session and press enter.
on a terminal session and press enter.


=== Enable ClamAV ===
=== 2. Enable ClamAV ===
In your Mahara you need to specify the path to your install ClamAV program in your config.php file, eg:
In your Mahara you need to specify the path to your install ClamAV program in your config.php file, eg:
  $cfg->pathtoclam = '/usr/bin/clamscan';
  $cfg->pathtoclam = '/usr/bin/clamscan';


Then you need to go to Administration -> Configure site -> Security settings and turn on the '''Virus Checking''' switch and saving
Then you need to go to Administration -> Configure site -> Security settings and turn on the '''Virus Checking''' switch and saving

Latest revision as of 14:00, 14 Mayıs 2018

1. Install ClamAV

To do this on Ubuntu, you can open a terminal and insert

sudo apt-get install clamav

and press enter.

You may also build ClamAV from sources to benefit from better scanning performance.

If you need to update the signatures, you can type

sudo freshclam

on a terminal session and press enter.

2. Enable ClamAV

In your Mahara you need to specify the path to your install ClamAV program in your config.php file, eg:

$cfg->pathtoclam = '/usr/bin/clamscan';

Then you need to go to Administration -> Configure site -> Security settings and turn on the Virus Checking switch and saving