Anti-virus and Moodle
Aware of the dangers present in permitting users to upload files, developers of Moodle decided to integrate anti-virus support into their platform. Being an Open Source platform they opted for open source solution, In this case it is ClamAV. ClamAV is released under GPL license (like Moodle) and is specifically designed for e-mail scanning on mail gateways/servers. Integration in Moodle with ClamAV is done in such way that every time a virus is detected administrator receives the notification through e-mail. Virus detection is integrated with file upload. Any part of Moodle that permits file upload will perform virus check if it is enabled and configured properly.
Next, we will show step by step instructions for setting up ClamAV on both Linux and Windows.
ClamAV on Linux
ClamAV was developed originally for UNIX and derivatives (like Linux), so Linux can be considered like native platform for this software. Unfortunately, CentOS 5 does not include packages for ClamAV...