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

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);
print_r($output);
status_check($output);
#------------

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

root@ispc:~ # php clamavupdate.php
Array
(
[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.....
__________________
www.emperor-it.com for ISPConfig mods/hacks
Reply With Quote
Sponsored Links