hi,
how can I increase log size for a specified vsite?
I need this cause my stats script sometimes don't find log file cause it has grown too much.
thanx in advance
Chicken
08-12-2001, 01:41 PM
I believe what is happening is that the log file is growing too large, reaching the limit, and then being rotated out before the stats script has a chace to read it. The logs are rotated based on two rules: One being time (certain time every day), the other being size (up to 2 MB I think). Your stats script however, reads the logs based on time only (once a day). Logs get too big, rotate out, nothing to read.
I wasn't too successful in modifying the stats script myself (I did what was posted here, but it didn't seem to solve the problem).
What you have to do (and this has been posted on the forums), is modify when and how the stats script reads the logs. Right now, it is most likely set to run (in cron.daily) once a day, take that out and instead, add a line to run the script when the logs rotate (this will change the rules of the script to match the rules of the server to some degree).
Again, this was posted in this forum, and I suggest you search for info, and try this first. Your stats script is webalizer possibly?
stats script is web log.
I've set cron script to run at 5:30 AM. I've read that log file is 10% of virtualsite assigned space. So if the site is 20 mb log file will be max 2 mb. An easy way could be increase that value but have to say goodbye to defined plans..
could be a solution give a name to the cron script with a previously letter of logrotate (ie a-weblog)?