Author |
|
mclarry804
Joined: 23 Sep 2013 Posts: 2 Location: Montreal, Canada
|
Posted: Mon 23 Sep '13 21:22 Post subject: Need help: Log rotation |
|
|
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
|
Posted: Tue 24 Sep '13 12:43 Post subject: |
|
|
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
|
Posted: Tue 24 Sep '13 15:45 Post subject: |
|
|
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
|
Posted: Tue 24 Sep '13 18:08 Post subject: |
|
|
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
|
Posted: Wed 25 Sep '13 19:14 Post subject: |
|
|
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.
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 |
|