Control Web Panel
WebPanel => Postfix => Topic started by: markz on September 17, 2015, 07:44:09 PM
-
Hello to all,
I try to update Clamd database by running "freshclam". But I got the following error, any hint how to fix this?
[root@host log]# freshclam
ERROR: Can't open /var/log/clamav/freshclam.log in append mode (check permissions!).
ERROR: Problem with internal logger (UpdateLogFile = /var/log/clamav/freshclam.log).
-
Hi.
Try to create the /var/log/clamav/freshclam.log and change owner to it.
-
Check what version of clam and clamd you are using , version 0.98.4 works better than 0.98.7 in regard to log file owner
-
chown clamav:clamav /var/log/clamav/freshclam.log
touch /var/run/clamav/clamd.sock
chown clamav:clamav /var/run/clamav/clamd.sock
Then run the update.
freshclam
-
The weird thing that I noticed on the old CWP version & the new CWP version is that the user & usergroup of the folders i.e. /var/log/clamav & /var/lib/clamav are different; the old one using "clamav" while the new one using "clam". Why??
Please refer to this post as well regarding the same issue reported lately.
http://forum.centos-webpanel.com/centos-6-problems/clamav-update-problem/
-
new version has newer clamAV from different repository so there are probably changes in the paths and username.