View Full Version : Apache log problem
XarK
25th January 2008, 16:49
Hi,
Im hosting big website, in this case log file is quite big. When reach 2048Mb is stopped. Can't get bigger than 2048Mb.
Any solutions??
unclecameron
26th January 2008, 02:45
You should probably look into logrotate, that will make smaller ones that will be much easier to handle :) In the meantime, if something is hung up and just quits, copy your huge file to a backup file and create an empty new one with the same name, then make sure the permissions are correct and restart apache and it should be fine.
till
26th January 2008, 10:54
Im hosting big website, in this case log file is quite big. When reach 2048Mb is stopped. Can't get bigger than 2048Mb.
The problem is that the logfiles are processed by a PHP script and php is nota ble to handle files larger the 2 GB. There is a patch for php to handle larger files, we tried it but it broke other things.
The only workaround that I see is to delete the logfile when it becomes too large, this should normally not affect the satts created by webalizer.
XarK
26th January 2008, 21:15
The only workaround that I see is to delete the logfile when it becomes too large, this should normally not affect the satts created by webalizer.
You were right. I deleted old log file and works fine. So... i need only to create crontab entry to delete this file every week :)
Thanks.
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.