Skip to main content

Problem:

  • Product Name: Borland AppServer
  • Product Version: 6.x
  • Product Component: httpd server (Apache)
  • Platform/OS Version:; Unix, Linux

How to use rotatelogs of Apache web server?

Resolution:

Apache2 has a log utility called rotatelogs (Can be located at $BES/bin/apache2/rotatelogs) for this purpose.

You can see the usage by simply type the command as;

$ cd /home/BDP/bin/apache2
$ ./rotatelogs

Typical setting is, for example,

TransferLog "|/home/BDP/bin/apache2/rotatelogs /some/where/access_log 5M"

will creates access log files per 5MB in /some/where .

Note that /some/where SHOULD be an absolute path and already exists.

Please put the line just below the line

CustomLog logs/access_log common

in httpd.conf.

Prior to execute, rotatelogs should be able to refer libssl.so and libcrypto.so, one needs to make sure these shared libs are in the linked path for that particular platform.

Author: Naoki Kawasumi

Old KB# 15201

#Apache
#BorlandAppServer
#VisiBroker
#httpd
#Security