Jump to content
View in the app

A better way to browse. Learn more.

The Uniform Server Community

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Rotatelogs - cant' seem to get it working

Featured Replies

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.

  • Author

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.

Try this:

 

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

 

All the best

Ric

  • Author

Try this:

 

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

 

All the best

Ric

Perfect! :D

 

It's easy when you know how!

 

Thanks Ric.

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...

Account

Navigation

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.