Manual talk:$wgAntivirusSetup

ClamAV
If you can try to use "clamdscan" instead of "clamscan", as clamdscan is much faster than clamscan.

ClamAV on Windows(SOLVED)
A patch to the code was required. Incorporated into SVN starting at MediaWiki 1.16alpha R57706.

my website is http://festiva.bntbtc.com

I'm trying to setup ClamAVWin with Windows Server 2008 R2, I can get it to scan on the command line like so:

C:\Users\Administrator>"C:\Program Files (x86)\ClamWin\bin\clamscan.exe" --database=c:\avdb --no-summary c:\forefrontinstall.log c:\forefrontinstall.log: OK C:\Users\Administrator>

and heres my setup in localsettings.php:

$wgAntivirus = "ClamAV"; $wgAntivirusRequired = true; $wgAntivirusSetup = array(    #setup for clamav     'ClamAV' => array ( 'command' => "C:/Program Files (x86)/ClamWin/bin/clamscan.exe --database=C:\avdb --no-summary ", 'codemap'=> array (            "0"=>  AV_NO_VIRUS, #no virus             "1"=>  AV_VIRUS_FOUND, #virus found             "52"=> AV_SCAN_ABORTED, #unsupported file format (probably immune)             "*"=>  AV_SCAN_FAILED, #else scan failed         ), 'messagepattern'=> '/.*?:(.*)/sim', ),     #setup for f-prot     'f-prot' => array ( 'command' => "f-prot ", 'codemap'=> array (            "0"=> AV_NO_VIRUS, #no virus             "3"=> AV_VIRUS_FOUND, #virus found             "6"=> AV_VIRUS_FOUND, #virus found             "*"=> AV_SCAN_FAILED, #else scan failed         ), 'messagepattern'=> '/.*?Infection:(.*)$/m', ), );
 * 1) Setup clam antivirus

yet I contiunue to get errors!! it still says my files are infected, with a return code of 1:

Upload warning The file contains a virus! Details: 1 Retrieved from "http://festiva.bntbtc.com/wiki/Special:Upload"

Ideas?? Help?? Please!! I'm thinking maybe I need to add a variable on the end of the command string to specify the file, but I can't seem to figure it out --Pwgus 07:27, 13 October 2009 (UTC)

How do I Set Up the AntiVirus Protection?
The Manual: $wgAntivirusSetup and Manual:$wgAntivirus pages aren't easy to understand. I can find no information on the internet on setting up virus scanning other than those 2 pages. I managed to easily set up a wiki and changed several settings by adding and removing lines of code. I thought the AntiVirus setup would be the same procedure but I can't understand it.


 * Is virus checking enabled by default?
 * What virus checker does it use?
 * Does it protect against Spyware, Malware, etc as well?
 * How does the virus checker update its virus checking database?
 * What happens when it detects a virus?