Web Servers on Windows - Apache file names under Windows XP

This is Interesting: Free IT Magazines  
Home > Archive > Web Servers on Windows > June 2005 > Apache file names under Windows XP





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Apache file names under Windows XP
Richard

2005-06-16, 5:50 pm

The Apache manual says to always use forward slashes, even under
windows. When I change ServerRoot "C:\Program Files\TSW\Apache2" to
ServerRoot "C:/Program Files/TSW/Apache2", for example, the Apache
Server fails to start.

This confusion makes things very difficult to configure Apache.
Instead of one way to specify a directory, there are many possible
ways. Some ways cause the server to fail, some ways don't work (but
have no observable effect), and one way works as intended. In my
testing, the only way that seems to work most of the time is as
illustrated above, quoted with back slashes. But this way is contrary
to the manual.

In other posts, I see other people using forward slashes, so I suspect
that I am missing something.

Am I missing something, or is the manual wrong?

Robin Strahan

2005-06-16, 5:50 pm

i use back and forward slashes and it works. I always put quotes around
the path.
Kees Nuyt

2005-06-16, 5:50 pm

On 16 Jun 2005 06:18:00 -0700, "Richard" <rvw@earthlink.net>
wrote:

>The Apache manual says to always use forward slashes, even under
>windows. When I change ServerRoot "C:\Program Files\TSW\Apache2" to
>ServerRoot "C:/Program Files/TSW/Apache2", for example, the Apache
>Server fails to start.
>
>This confusion makes things very difficult to configure Apache.
>Instead of one way to specify a directory, there are many possible
>ways. Some ways cause the server to fail, some ways don't work (but
>have no observable effect), and one way works as intended. In my
>testing, the only way that seems to work most of the time is as
>illustrated above, quoted with back slashes. But this way is contrary
>to the manual.
>
>In other posts, I see other people using forward slashes, so I suspect
>that I am missing something.
>
>Am I missing something, or is the manual wrong?


I should have read this one before I followed up your other
thread ...

Anyway, I use forward slashes everywhere and that works
perfectly. I try to avoid spaces in pathnames though, they have
caused me quite some trouble in other programs, but I must
confess I never tried paths-with-spaces for Apache.

If the server fails to start there should be a messege in
error.log.
Does apache -t complain ?

http://httpd.apache.org/docs-2.0/programs/httpd.html


--
) Kees Nuyt
(
c[_]
Richard

2005-06-16, 8:48 pm

I can't tell why forward slashes consistently failed before. I tried
it again, and now it works.

As for the space in the pathnames, we can thank Microsoft for that. It
is waaay too late for me to do anything about that. There is no
practical way to change "Program Files" to "ProgramFiles", although I
could change the Apache conf files to use the 8.3 directory names.

Problem solved. Thanks all.

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com