Apache log problem

Discussion in 'Installation/Configuration' started by XarK, Jan 25, 2008.

  1. XarK

    XarK New Member

    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??
     
  2. unclecameron

    unclecameron New Member

    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.
     
  3. till

    till Super Moderator Staff Member ISPConfig Developer

    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.
     
  4. XarK

    XarK New Member

    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.
     

Share This Page