Mark A. Craig wrote:
Nope, I excluded that as a possible cause pretty quickly. I don't know why, but it's something about the actual inclusion of the piped commands to rotatelogs that actually causes the false error about nonexistent Unicode characters. If I uncomment them, I get the error... if I comment them out, I don't.Now you know why I'm asking for help with this. What exactly about my syntax (see previous post with sample) is so broken that it could cause such a non sequitur error?Mark -------- Original Message -------- Subject: Re: Apache 2.2, rotatelogs.exe, and Windows From: Vincent Bray <noodlet@xxxxxxxxx> To: users@xxxxxxxxxxxxxxxx Date: Saturday, September 15, 2007 08:47:21 AMOn 14/09/2007, Mark A. Craig <mark.a.craig@xxxxxxxxx> wrote:I want to use rotatelogs.exe to archive my logs with Apache 2.2 running in Windows 2000. WHen I try to configure it the server fails to startand bitches about Unicode characters on line 1 of httpd.conf that aren'tactually there. I've read the docs repeatedly, but it's not entirely explicit about how to implement it, esp. under Windows.Sounds like a BOM issue. Try either saving the config file with a non-unicode encoding, or otherwise disable BOMs in your editor. Apache is not able to deal with byte order marks in config files as far as i know.---------------------------------------------------------------------The official User-To-User support forum of the Apache HTTP Server Project.See <URL:http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx " from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx
Mark,I am unsure of what would be causing your Unicode issues, sorry. That being said.. i've heard/read that there are issues with rotatelogs on W32 platforms. I have successfully used rotatelogs on my old XP box after alot of hassle. What I found for me was that I had to use the full path like so:
ErrorLog "|G:/mydir/apache2/bin/rotatelogs.exe G:/mydir/apache2/logs/my-error_log(%m-%d-%Y_%H-%M-%S).log 86400"
Which in this example rotated the logs once a week. Also shown is the format you were looking for, i believe. This was used in a virtualhost. The only problem I noticed was that you may find many rotatelogs processes running. With three or four vh (rotated error and custom logs for each) I had about 20 rotatelogs processes in the task manager.
Norm --------------------------------------------------------------------- The official User-To-User support forum of the Apache HTTP Server Project. See <URL:http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx " from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx