Operating System CentOS7 not available, so I chose CenOS/RHEL 6 but this only applies to CentOS 7
When running the post install wizard, it mentions that ClamAV can not be enabled because Vistualmin doesn't know how to enabled it. Later, when trying to save features under 'Features and Plugins' the following error occurs (this happens the first time settings are changed on the screen even when 'Virus Filtering' is not checked, and subsequently if I try to enable 'Virus Filtering'
Failed to save enabled features : The ClamAV program clamscan does not appear to be working properly :
ERROR: Can't write to temporary directory
----------- SCAN SUMMARY -----------
Known viruses: 3517560
Engine version: 0.98.4
Scanned directories: 0
Scanned files: 0
Infected files: 0
Data scanned: 0.00 MB
Data read: 0.00 MB (ratio 0.00:1)
Time: 8.147 sec (0 m 8 s)
. Either change the program on the spam and virus scanners page, or disable this feature.
Comments
Submitted by andreychek on Mon, 09/08/2014 - 09:33 Comment #1
Howdy -- can you paste in the contents of the clamav.conf file? I'd like to see what it's trying to use as the temp directory. Thanks!
Submitted by wheeler on Mon, 09/08/2014 - 10:23 Comment #2
Hello, there doesn't appear to be a clamav.conf file - perhaps that is the problem?
Where should it be?
EDIT: no clamd.conf either, except the sample file in the documenation, which suggests the default temp directory is /var/tmp/
/var/tmp/ exists on the server and is 777'd
Submitted by wheeler on Mon, 09/08/2014 - 11:06 Comment #3
Clamscan does appear to work:
[root@**** ~]# touch test
[root@**** ~]# clamscan -v test
test: Empty file
----------- SCAN SUMMARY -----------
Known viruses: 3517560
Engine version: 0.98.4
Scanned directories: 0
Scanned files: 0
Infected files: 0
Data scanned: 0.00 MB
Data read: 0.00 MB (ratio 0.00:1)
Time: 8.253 sec (0 m 8 s)