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)