Sunday, March 25, 2007

Installing ClamAV (Clam Antivirus) in linux (CentOS) - Part 2

If you get the virus database older than 7 days warning. Update the database using.
[root@localhost ~]# freshclam
ERROR: Please edit the example config file /etc/freshclam.conf.
WARNING: You must specify at least one database mirror.


In order to make freshclam work we have to edit the freshclam.conf. Uncomment everything in the freshclam.conf file except

"UpdateLogFile /var/log/clamav/freshclam.log"

Also Add this before MaxAttempts 5 line in

/etc/freshclam.conf
DatabaseMirror database.clamav.net


Now freshclam should work if this is 1st time you ran freshclam it will take a while to finish
[root@localhost ~]# freshclam
To ensure that the virus database is current and updated. You can put the freshclam in cron if you like but i like to update it manually so i do not add it in the crontab.

No comments: