While updating the ClamAV database using the ‘freshclam’ command, you may receive the “can’t open or parse the config file freshclam.conf” message.
root@vps:~# freshclam ERROR: Please edit example config file /usr/local/etc/freshclam.conf ERROR: Can't open/parse the config file /usr/local/etc/freshclam.conf
The reason is, with the default installation, the ‘Example’ variable is set to On which makes the configuration file work as a example and not the real configuration file.
To fix the issue, edit the freshclam.conf file
# nano /usr/local/etc/freshclam.conf
and remove or comment the line that says ‘Example’.
Save the file and execute the freshclam command to update the ClamAV database.