PdV Posted October 31, 2008 Report Share Posted October 31, 2008 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" combinedandCustomLog "|bin/rotatelogs.exe logs/access.%Y.%m.%d 86400" combinedandCustomLog "|rotatelogs logs/access.%Y.%m.%d 86400" combinedandCustomLog "|rotatelogs.exe logs/access.%Y.%m.%d 86400" combinedas 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. Quote Link to comment Share on other sites More sharing options...
PdV Posted October 31, 2008 Author Report Share Posted October 31, 2008 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. Quote Link to comment Share on other sites More sharing options...
Ric Posted October 31, 2008 Report Share Posted October 31, 2008 Try this: CustomLog "|/usr/local/apache2/bin/rotatelogs.exe /usr/local/apache2/logs/access.%Y.%m.%d 86400" combined All the bestRic Quote Link to comment Share on other sites More sharing options...
PdV Posted October 31, 2008 Author Report Share Posted October 31, 2008 Try this: CustomLog "|/usr/local/apache2/bin/rotatelogs.exe /usr/local/apache2/logs/access.%Y.%m.%d 86400" combined All the bestRicPerfect! It's easy when you know how! Thanks Ric. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.