View Single Post

  #1 (permalink)  
Old 06-09-2008
Álvaro G. Vicario
 
Posts: n/a
Default Effective log rotation in Windows

Is there any log rotation solution for Apache 2.2 that works under
Windows without a flaw?

The bundled rotatelogs.exe utility tends to collapse the computer with
idle/zombie processes. Some googling has showed me that I'm not the only
one and that also other solutions like cronolog suffer from the same issue.

I found an Ápache module at http://www.sitebuddy.com/mod_log_rotate but
there doesn't seem to be binaries for Apache version later than 2.2.3;
I've tried that one but it won't let Apache start. I'm currently using
2.2.8 and would like to have the possibility of upgrading when newer
versions come out.

So, what does people normally do? A *.bat script like this?

net stop Apache2.2
move *.log *.log.1
net start Apache2.2



--
-- http://alvaro.es - Álvaro G. Vicario - Burgos, Spain
-- Mi sitio sobre programación web: http://bits.demogracia.com
-- Mi web de humor al baño María: http://www.demogracia.com
--