PdV 0 Report post 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 Share this post Link to post Share on other sites
PdV 0 Report post 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 Share this post Link to post Share on other sites
Ric 0 Report post 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 Share this post Link to post Share on other sites
PdV 0 Report post 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 Share this post Link to post Share on other sites