logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: Need help: Log rotation
Author
mclarry804



Joined: 23 Sep 2013
Posts: 2
Location: Montreal, Canada

PostPosted: Mon 23 Sep '13 21:22    Post subject: Need help: Log rotation Reply with quote

Hi,

I am an Apache newbie and I am trying to set up log rotation on my Apache Server on Windows 2008 using the rotatelogs.exe executable. I believe I am having issues because my directory path has spaces.

From my understanding, a full path is needed for the ErrorLog but not for the CustomLog

Please help:

ErrorLog "|\"C:/Program Files (x86)/Apache Software Foundation/Apache2/bin/rotatelogs.exe\" \"C:/Program Files (x86)/Apache Software Foundation/Apache2/logs/Error/Error_%Y-%M-%D.log\" 86400"

CustomLog "|bin/rotatelogs.exe logs/Access/Access_%Y-%M-%D.log 86400" common

The error that I get is:
C:\Program Files (x86)\Apache Software Foundation\Apache2.2\bin>httpd.exe -k start
The system cannot find the path specified.

Thanks for your help
Back to top
jraute



Joined: 13 Sep 2013
Posts: 188
Location: Rheinland, Germany

PostPosted: Tue 24 Sep '13 12:43    Post subject: Reply with quote

Your CustomLog entry looks ok.
As far as i know there is no need of using a full path.
So i would think the ErrorLog entry is the problematic one - try to configure it the same way your CustomLog looks like.

Greets
Back to top
mclarry804



Joined: 23 Sep 2013
Posts: 2
Location: Montreal, Canada

PostPosted: Tue 24 Sep '13 15:45    Post subject: Reply with quote

Thanks for your reply. I did suspect the ErrorLog. I read somewhere that ErrorLog requires a full path whereas CustomLog does not.

If I write the ErrorLog the same way as the CustomLog, I get the same error:

C:\Program Files (x86)\Apache Software Foundation\Apache2.2\bin>httpd.exe -k start
The system cannot find the path specified.
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7373
Location: Germany, Next to Hamburg

PostPosted: Tue 24 Sep '13 18:08    Post subject: Reply with quote

in doubt use the old 8.3 path system like Progra~1 or so
Back to top
jraute



Joined: 13 Sep 2013
Posts: 188
Location: Rheinland, Germany

PostPosted: Wed 25 Sep '13 19:14    Post subject: Reply with quote

I've checked my log-rotation entries (both with relative pathes), they look nearly the same your CustomLog looks like and they are fully functioning. Wink

One thing is slightly different: there is a space between the pipe (|) and the path in my definition. Maybe something you can try.

Besides this it can be an alternative to change the apache-directory for example to c:\apache... to solve all the path-problems.

Jraute
Back to top


Reply to topic   Topic: Need help: Log rotation View previous topic :: View next topic
Post new topic   Forum Index -> Apache