Apache file names under Windows XP
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > Web Servers on Windows > Apache file names under Windows XP




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    Apache file names under Windows XP  
Richard


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
06-16-05 10: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?






[ Post a follow-up to this message ]



    Re: Apache file names under Windows XP  
Robin Strahan


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
06-16-05 10:50 PM

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





[ Post a follow-up to this message ]



    Re: Apache file names under Windows XP  
Kees Nuyt


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
06-16-05 10: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[_]





[ Post a follow-up to this message ]



    Re: Apache file names under Windows XP  
Richard


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
06-17-05 01:48 AM

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.






[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 01:54 AM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register