Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 2 > Tips/Tricks/Mods

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #15  
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
 

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
High Availability Samba cluster - DRBD + Heartbeat djalex Server Operation 58 25th May 2007 19:38
HotSaNIC domino Tips/Tricks/Mods 23 6th November 2006 05:19
Spamassissin ClamAV with ISPConfig update?? Mounir Installation/Configuration 2 2nd August 2006 23:23
Apache2 and DNS Made Easy browngb Server Operation 4 28th July 2006 14:23
How to update clamAV in ISPConfing? tom Installation/Configuration 3 22nd April 2006 16:31


All times are GMT +2. The time now is 04:15.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.