Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 2 > Installation/Configuration

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 6th April 2008, 14:13
tom tom is offline
Senior Member
 
Join Date: Apr 2006
Posts: 492
Thanks: 8
Thanked 8 Times in 7 Posts
Default Server crashed by unlimited error.log size - how to set a limit?

The ISPConfig Server crashed including the two apache servers because there was no more swap space left. The left space a faulty script has filed by growing up the error.log in /var/www/webxy/log/error.log.

How could be set a limit to the size of all error.log to prevent the next crash caused by "disk full"?
Reply With Quote
Sponsored Links
  #2  
Old 6th April 2008, 17:39
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,769
Thanks: 840
Thanked 5,609 Times in 4,420 Posts
Default

Try to set a quota limit on for the owner of the error.log file, I guess its apache oor www-data ? This will prevent your server from crashing but not apache when the quota is reached.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #3  
Old 6th April 2008, 23:31
tom tom is offline
Senior Member
 
Join Date: Apr 2006
Posts: 492
Thanks: 8
Thanked 8 Times in 7 Posts
Default

The owner of the logfiles are the systemusers. With ISPConfig I've set a quota in ISP Web --> Basis --> Speicher MB to 60MB but if I check it the user has no limit. Why the ISPConfig setting has no effect?
Quote:
server01:/var/www/web10/log# quota -u web22_adm
Disk quotas for user web22_adm(uid 10021): none
Reply With Quote
  #4  
Old 7th April 2008, 19:11
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,747 Times in 2,578 Posts
Default

Is your log file > 2GB, and do you use a 32bit system? http://www.howtoforge.com/forums/sho...spconfig+32bit
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #5  
Old 7th April 2008, 21:39
tom tom is offline
Senior Member
 
Join Date: Apr 2006
Posts: 492
Thanks: 8
Thanked 8 Times in 7 Posts
Default

Quote:
Originally Posted by falko
Is your log file > 2GB, and do you use a 32bit system? http://www.howtoforge.com/forums/sho...spconfig+32bit
It's a 32bit system but I suppose in my case it does'nt belong to the thread you put a link because the logline is'nt > 2GB. The quota in ISPConfig does'nt has any effect. And therefore it a the ordenary error.log from a users account ca grow up unlimited. So again:

Why does the user account limit does'nt have any effect to quota?
Reply With Quote
  #6  
Old 8th April 2008, 11:22
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,747 Times in 2,578 Posts
Default

Did you set a logsize limit on the Options tab of that web site?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
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
Limit the size of email sent shawnbishop General 1 9th February 2008 19:30
cacti problem - graphs have huge gaps Chip Installation/Configuration 7 8th February 2008 00:24
Changing Email Attachment size limit grandpagenocide General 1 23rd September 2007 18:29
from http to https after installation? Mahir Installation/Configuration 25 7th December 2005 21:40
The Perfect Setup Suse 9.3 - Postfix problems new_bee05 HOWTO-Related Questions 20 25th November 2005 03:30


All times are GMT +2. The time now is 02:31.


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