Jump to content
The Uniform Server Community

Rotatelogs - cant' seem to get it working


PdV
 Share

Recommended Posts

Hi gang,

 

I'm trying to get rotatelogs working so that I don't have to shut down the server in order to change the log files, but not having any success.

 

I've tried the following:

CustomLog "|bin/rotatelogs logs/access.%Y.%m.%d 86400" combined

and

CustomLog "|bin/rotatelogs.exe logs/access.%Y.%m.%d 86400" combined

and

CustomLog "|rotatelogs logs/access.%Y.%m.%d 86400" combined

and

CustomLog "|rotatelogs.exe logs/access.%Y.%m.%d 86400" combined

as well as various logfile names, but nothing: the server refuses to start unless I comment this out and reinstate the previous CustomLog definition.

 

Does anyone here know what I'm doing wrong?

 

I'm using Apollo on Vista Home Premium.

 

Many thanks,

Paul.

Link to comment
Share on other sites

Well, I've been playing around with it, and I can get rotatelogs working if I use the line:

CustomLog "|w:/usr/local/apache2/bin/rotatelogs.exe w:/usr/local/apache2/logs/access.%Y.%m.%d 86400" combined

 

i.e. specify the explicit path. But this isn't really in-keeping with the spirit of Uniform Server, and I'd like to remove the explicit paths.

 

Can someone tell me what I need to do to do this please? The Apache documentation seems to indicate that my original format should have worked, but it doesn't.

 

Regards,

Paul.

Link to comment
Share on other sites

Try this:

 

CustomLog "|/usr/local/apache2/bin/rotatelogs.exe /usr/local/apache2/logs/access.%Y.%m.%d 86400" combined

 

All the best

Ric

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...