CLAMAV ERROR: Can’t open/parse the config file

After installation OR while updating ClamAV Antivirus (using command /usr/local/bin/freshclam -v) it gives following Error

[root@server ~]# /usr/local/bin/freshclam -v -l /var/log/clam-update.log
ERROR: Please edit the example config file /usr/local/etc/freshclam.conf
ERROR: Can't open/parse the config file /usr/local/etc/freshclam.conf
[root@server ~]#


This error shows that the ClamAV configuration file still the default one which is bundled with the the installation Sources. To fix this error open /usr/local/etc/freshclam.conf and search and change

FROM:
# Comment or remove the line below.
Example

TO:
# Comment or remove the line below.
#Example


Now try to update ClamAV

[root@server ~]# /usr/local/bin/freshclam -v -l /var/log/clam-update.log
Current working dir is /usr/local/share/clamav
Max retries == 3
ClamAV update process started at Fri Oct  9 11:29:18 2009
Using IPv6 aware code
Querying current.cvd.clamav.net
TTL: 748
Software version from DNS: 0.95.2
main.cvd version from DNS: 51
main.cvd is up to date (version: 51, sigs: 545035, f-level: 42, builder: sven)
daily.cvd version from DNS: 9876
daily.cvd is up to date (version: 9876, sigs: 83897, f-level: 43, builder: ccordes)
[root@server ~]#

/usr/local/bin/freshclam -v -l /var/log/clam-update.log

About: Mike

Milind Koyande loves to work on new technologies specially virtualization and troubleshoot server problems. I’m an avid photographer and love to spend my free time close to nature, trying to capture its glory on my camera.


3 thoughts on “CLAMAV ERROR: Can’t open/parse the config file”

This site uses Akismet to reduce spam. Learn how your comment data is processed.