View Single Post
Old 5th January 2008, 13:02
djtremors djtremors is offline
Senior Member
Join Date: Apr 2006
Location: Sydney
Posts: 278
Thanks: 0
Thanked 13 Times in 11 Posts

Um, i just realised that there is a good chance that because freshclam switches to another user other than root, it has no permissions to access /var/log so you may either create the file and add 'admispconfig' as the file owner or change the path to another writeable path allowed by the 'admispconfig' user.

tested as below :
exec('/home/admispconfig/ispconfig/tools/clamav/bin/freshclam --log='.$conf['logfreshclam'].' 2>&1', $output, $retval);

Output I got.... which is what you probably have too...

root@ispc:~ # php clamavupdate.php
[0] => ERROR: Problem with internal logger (--log=/var/log/clamav-fresh-update.log).
[1] => ERROR: Can't open /var/log/clamav-fresh-update.log in append mode (check permissions!).

so basically do a :
touch /var/log/clamav-fresh-update.log
chown admispconfig /var/log/clamav-fresh-update.log

or change the path in the file....

give that a try.. damn coding.. always have to delete all and start again to make sure bugs/problems are found.....
__________________ for ISPConfig mods/hacks
Reply With Quote
Sponsored Links