upsforum

Well-Known Member
Jul 27, 2005
473
0
166
every day I receive this message:

subject: Anacron job 'cron.daily' on serverX

/etc/cron.daily/freshclam:

ERROR: Can't create temporary directory /var/lib/clamav/clamav-91a7b521b4bc912800ebb0707ca94d41.tmp
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,908
2,218
463
Hello :)

Have you installed a third-party instance of ClamAV through your system package manager or via source instead of through the "Manage Plugins" option in Web Host Manager?

Thank you.
 

upsforum

Well-Known Member
Jul 27, 2005
473
0
166
I reinstaller with WHM option but I get this error:

[email protected] [~]# /etc/cron.daily/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).
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,908
2,218
463
Did you first remove any manual installation of ClamAV (installed either through source or RPM)? Check to see the file ownership of "/var/log/clamav/freshclam.log":

Code:
ls -al /var/log/clamav/freshclam.log
I've seen cases where it's owned by "clam" instead of "clamav" after an unsupported ClamAV installation.

Thank you.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,908
2,218
463
You can update the ownership to "clamav" via:

Code:
chown clamav.clamav /var/log/clamav/freshclam.log
Thank you.