View Single Post
  #22  
Old 5th January 2008, 14:25
davy davy is offline
Member
 
Join Date: Aug 2007
Posts: 43
Thanks: 4
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by djtremors
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.phpArray(*** [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.logchown admispconfig /var/log/clamav-fresh-update.logor 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.....
Error again:[root@dns1 ~]# php ./clamavupdate.phpPHP Warning:* fopen(/root/ispc.updates/clamav/clamav.tar.gz): failed to open stream: No such file or directory in /root/clamavupdate.php on line 243PHP Warning:* fwrite(): supplied argument is not a valid stream resource in /root/clamavupdate.php on line 246PHP Warning:* fwrite(): supplied argument is not a valid stream resource in /root/clamavupdate.php on line 246PHP Warning:* fclose(): supplied argument is not a valid stream resource in /root/clamavupdate.php on line 252PHP Notice:* Undefined variable: download_ok in /root/clamavupdate.php on line 253
clamav-fresh-update.log:

--------------------------------------
ClamAV update process started at Sat Jan 5 21:13:01 2008
SECURITY WARNING: NO SUPPORT FOR DIGITAL SIGNATURES
See the FAQ at http://www.clamav.net/support/faq for an explanation.
WARNING: Your ClamAV installation is OUTDATED!
WARNING: Local version: 0.91.2 Recommended version: 0.92
DON'T PANIC! Read http://www.clamav.net/support/faq
main.inc is up to date (version: 45, sigs: 169676, f-level: 21, builder: sven)
Downloading daily-5374.cdiff [100%]
daily.inc updated (version: 5374, sigs: 17353, f-level: 21, builder: ccordes)
Database updated (187029 signatures) from database.clamav.net (IP: 218.189.210.14)
2008/01/05 21:13:02 : Freshclam is reporting ClamAV is outdated, attempting to download new version.
2008/01/05 21:13:02 : ClamAV website release check reports version : 0.92
2008/01/05 21:13:49 : ClamAV-updater check already done within the last week, ignored.
--------------------------------------
ClamAV update process started at Sat Jan 5 21:13:49 2008
SECURITY WARNING: NO SUPPORT FOR DIGITAL SIGNATURES
See the FAQ at http://www.clamav.net/support/faq for an explanation.
WARNING: Your ClamAV installation is OUTDATED!
WARNING: Local version: 0.91.2 Recommended version: 0.92
DON'T PANIC! Read http://www.clamav.net/support/faq
main.inc is up to date (version: 45, sigs: 169676, f-level: 21, builder: sven)
daily.inc is up to date (version: 5374, sigs: 17353, f-level: 21, builder: ccordes)
2008/01/05 21:13:49 : Freshclam is reporting ClamAV is outdated, attempting to download new version.
2008/01/05 21:13:49 : ClamAV website release check reports version : 0.92
2008/01/05 21:16:32 : Mirror download problems Could not fetch updated clamav from any of the mirrors.

Thanks.
Reply With Quote