Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 2 > General

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #11  
Old 29th December 2007, 15:04
Hawker Hawker is offline
Senior Member
 
Join Date: Feb 2007
Posts: 100
Thanks: 0
Thanked 9 Times in 9 Posts
Default

Falko,

I don't know if this will help or not...

I'm running 2.2.16 on an FC3 box and the log files are being kept to size.

I was never able to upgrade to 2.2.17 or 2.2.18 because of errors during the upgrade.

Last edited by Hawker; 29th December 2007 at 15:24.
Reply With Quote
Sponsored Links
  #12  
Old 3rd January 2008, 18:10
wpwood3 wpwood3 is offline
Senior Member
 
Join Date: Oct 2007
Location: Atlanta, GA USA
Posts: 197
Thanks: 21
Thanked 31 Times in 21 Posts
Default Just an observation...

It appears that my logfile in log/2007/12/ was deleted by the webalizer script when it created log/2008/01/. The old log file was well above 6GB at that time.

The new logfile in log/2008/01/ is already 200MB even though I have set the max size in ISPConfig to 5MB.

I found it interesting that the old logfile was indeed deleted. It almost seems like the webalizer script is unable to delete the logfile if the file is in use.
__________________
CentOS 5.4 64bit (the Perfect Setup)
ISPConfig 2.2.40
WP3 Photography
Reply With Quote
  #13  
Old 4th January 2008, 11:13
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 35,777
Thanks: 821
Thanked 5,332 Times in 4,184 Posts
Default

The webalizer script deletes all files except the current web.log file. I will see if I can add a additional switch to enable the deletion of all files if the site is over quota.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #14  
Old 4th January 2008, 17:01
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 35,777
Thanks: 821
Thanked 5,332 Times in 4,184 Posts
Default

My prior post wasnt correct.

I have tested this now in 2.2.18 and all log files were deleted correctly, even the current logfiles when it exceeds the quota.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #15  
Old 6th January 2008, 00:22
wpwood3 wpwood3 is offline
Senior Member
 
Join Date: Oct 2007
Location: Atlanta, GA USA
Posts: 197
Thanks: 21
Thanked 31 Times in 21 Posts
Default

Quote:
Originally Posted by till
My prior post wasnt correct.

I have tested this now in 2.2.18 and all log files were deleted correctly, even the current logfiles when it exceeds the quota.
Have you tested on CentOS 5.0 or 5.1?

I have 2 servers and both of them have the same problem with the logfile size.
__________________
CentOS 5.4 64bit (the Perfect Setup)
ISPConfig 2.2.40
WP3 Photography
Reply With Quote
  #16  
Old 6th January 2008, 13:36
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 35,777
Thanks: 821
Thanked 5,332 Times in 4,184 Posts
Default

The linux distribution makes no difference as the script is the same for all distributions. If you want to debug the function on your server, have a look in the script /root/ispconfig/scripts/lib/webalizer.php. You can start the script manually with the command:

/root/ispconfig/php/php -q /root/ispconfig/scripts/lib/webalizer.php
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #17  
Old 6th January 2008, 19:42
wpwood3 wpwood3 is offline
Senior Member
 
Join Date: Oct 2007
Location: Atlanta, GA USA
Posts: 197
Thanks: 21
Thanked 31 Times in 21 Posts
Question Log file still too large after manual run

Quote:
Originally Posted by till
If you want to debug the function on your server, have a look in the script /root/ispconfig/scripts/lib/webalizer.php. You can start the script manually with the command:
/root/ispconfig/php/php -q /root/ispconfig/scripts/lib/webalizer.php
On my system webalizer.php is in /root/ispconfig/scripts/shell/webalizer.php
Should I move it to lib?

I ran /root/ispconfig/php/php -q /root/ispconfig/scripts/shell/webalizer.php
and got the following results:
Code:
 
[root@centos5 shell]# /root/ispconfig/php/php -q /root/ispconfig/scripts/shell/webalizer.php
Warning: Truncating oversized referrer field
Warning: Truncating oversized referrer field
Warning: Truncating oversized referrer field
Warning: Truncating oversized request field
Warning: Truncating oversized request field
Warning: Truncating oversized request field
Warning: Truncating oversized request field
Warning: Truncating oversized request field
2826474 records (2826465 ignored) in 468.50 seconds, 6033/sec
[root@centos5 shell]#
Running webalizer did not change the log file /var/www/web2/log/2008/01/web.log . It is still 739MB which is way over the limit I set in ISPConfig.

Any other ideas?
__________________
CentOS 5.4 64bit (the Perfect Setup)
ISPConfig 2.2.40
WP3 Photography
Reply With Quote
  #18  
Old 7th January 2008, 08:25
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 35,777
Thanks: 821
Thanked 5,332 Times in 4,184 Posts
Default

Quote:
Should I move it to lib?
No, thats fine. I posted the wrong path.

Quote:
Running webalizer did not change the log file /var/www/web2/log/2008/01/web.log
The run above does not contained any errors. You will have to debug the script if you want to get more details why it fails on your server.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #19  
Old 8th January 2008, 18:07
wpwood3 wpwood3 is offline
Senior Member
 
Join Date: Oct 2007
Location: Atlanta, GA USA
Posts: 197
Thanks: 21
Thanked 31 Times in 21 Posts
Question What about php 5.1.6 ?

Quote:
Originally Posted by till
The linux distribution makes no difference as the script is the same for all distributions.
I recognize that but, CentOS 5 uses php 5.1.6. I know from experience that some of my php scripts that worked fine with FC3 and php 4.3.9 stopped working when I moved them to CentOS 5. Have you tested the webalizer.php script with php 5.1.6?

I did some debugging yesterday but have not found the answer yet.
__________________
CentOS 5.4 64bit (the Perfect Setup)
ISPConfig 2.2.40
WP3 Photography
Reply With Quote
  #20  
Old 9th January 2008, 09:36
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 35,777
Thanks: 821
Thanked 5,332 Times in 4,184 Posts
 
Default

The webalizer script uses the ispconfig php if you executed the command that I posted above and the ispconfig php should be the same on all ispconfig installations.

I created a extended webalizer.php with debugging code included. Please replace your webalizer.php with the webalizer.php file which is inside the attached .zip file. Then run it manually with the command mentioned above and post the output.
Attached Files
File Type: zip webalizer.zip (3.0 KB, 209 views)
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
Reply

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
SSL Issue - Unable to connect to any site Menzor Installation/Configuration 4 27th May 2007 04:03
iptables issue with xen perfect setup - debian alexnz HOWTO-Related Questions 3 25th November 2006 13:49
Postfix Issue thetekgeek Server Operation 18 25th October 2006 16:44
Mail issue with Postfix + Amavis + Spamassassin mhxy594 Server Operation 3 21st August 2006 06:50
Outlook 2003 issue with courier-pop3 RotHorseKid Installation/Configuration 6 7th December 2005 20:35


All times are GMT +2. The time now is 14:32.


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