• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1250
  • Last Modified:

Using rotatelogs.exe functon with Apache 2.0 On Windows 2K3

The file location of rotatelogs.exe has spaces in it and so does the log file, how do I enclose it in the command

"|C:\Program Files.....

Also, what's the proper command to have the log file reset every 24 hours

0
eroute
Asked:
eroute
  • 2
1 Solution
 
caterham_wwwCommented:
Try to use a MS-DOS path, e.g.

CustomLog "| D:\Progra~1\Apache~1\Apache\bin\rotatelogs.exe .....
or relative to the ServerRoot
CustomLog "|bin/rotatelogs.exe .....

>Also, what's the proper command to have the log file reset at 12AM

use the command 12M
CustomLog "|...rotatelogs.exe ....logfile 12M" common
0
 
erouteAuthor Commented:
I'm only getting the word common line by line in the log files...
0
 
erouteAuthor Commented:
Nevermind, I got it, thanks.
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now