Tom: Something like that occurred to me, too, but it doesn't seem to be the case. I use Metapad as a Notepad replacement, and when I checked default file format in its configuration, it is set to "DOS text (CR+LF)", not either of the Unicode options. I also tried saving it in Notepad with ANSI as you suggested, but that made no difference.What did make a difference was completely commenting out the changes I had made in the log files section. At that point, it made no difference what editor I used to save the file, it always worked.
That makes no sense! What the heck is going on here? At least my site is running, but I didn't get to implement the logging exclusions and rotation schedule that had been the point of the changes.
Mark -------- Original Message -------- Subject: Re: Syntax error on line 1 of http.conf: invalid command \xff\xfe# From: Tom Donovan <donovant@xxxxxxxxxxxxxxxx> To: users@xxxxxxxxxxxxxxxx Date: Sunday, September 09, 2007 07:58:43 AM
Mark A. Craig wrote:I have a rather bizarre httpd.conf error with Apache 2.2 on Windows 2000; I attempted to make some rather simple edits to the logfile portion of it, and now when I test, start,or restart the server I get the following error displayed in the console (DOS) window:Syntax error on line 1 of C:/Program Files/Apache Software Foundation/Apache2.2/conf/httpd.conf: Invalid command '\xff\xfe#', perhaps misspelled or defined by a module not included in the server configurationWhat the heck is going on? Not only did I not edit the first line, all it contains is the standard comment line that has been there all along.Mark CraigIt appears you may have used an editor which stores files in Unicode and introduced a byte-order-mark:http://en.wikipedia.org/wiki/Byte-order_markYou could try opening httpd.conf in Notepad and save it as ANSI to remove this problem.-tom- --------------------------------------------------------------------- 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
--------------------------------------------------------------------- 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