mod_log_rotate

mod_log_rotate is an automatic in-process rotation of transfer log.
Download

mod_log_rotate Ranking & Summary

Advertisement

  • Rating:
  • License:
  • The Apache License
  • Price:
  • FREE
  • Publisher Name:
  • Andy Armstrong
  • Publisher web site:
  • http://search.cpan.org/~andya/

mod_log_rotate Tags


mod_log_rotate Description

mod_log_rotate is an automatic in-process rotation of transfer log. mod_log_rotate is an automatic in-process rotation of transfer log. Replaces rotatelogs.If you host a lot of virtual servers on a single Apache box and use the supplied rotatelogs program to rotate the logs you’ll notice that your process table is cluttered up with an instance of rotatelogs for each virtual server.With mod_log_rotate the log rotation is handled by the server process so you save a bunch of processes and file descriptors.Installation:Install mod_log_rotate using apxs as follows: $ apxs -i -a -c mod_log_rotate.c Configure:Load and enable mod_log_rotate by adding two lines to your httpd.conf. For Apache 1.3 useLoadModule log_rotate_module libexec/mod_log_rotate.soRotateLogs On and for Apache 2 useLoadModule log_rotate_module modules/mod_log_rotate.soRotateLogs On The LoadModule line may have already been added if you used the apxs -a (activate) option when compiling the module.If you are using the Apache 1.3 version of the module you will also have to replace any CustomLog, TransferLog, LogFormat and CookieLog directives with the corresponding RotateXXX version. For exampleTransferLog logs/access_log would becomeRotateTransferLog logs/access_log You may need to review the permissions on your log directories. Normally Apache creates log files while it’s running as root and then becomes nobody (or whatever user you’re running it as) before it starts serving pages. In order to be able to create new log files during rotation the permissions on any log directories need to allow writes by the web server user.The remainder of the directives provided by mod_log_rotate control the interval and timing of log rotation. The configuration directives may be used globally or per virtual server. Requirements: · Apache 1.3, 2.x


mod_log_rotate Related Software