Where X: is a mapped network drive (for example, after doing "net use X: \\192.168.1.5\SharedFolder" on the command line), then Apache does NOT work
What would be the UNC path for X:\ or \\192.168.1.5\SomeShare\ ?
i.e. my machine (the one that runs Apache) has full write access to that X: drive (or to that share, it's the same).
Wiedmann wrote:"\\192.168.1.5\SomeShare" is the UNC path.
You machine (SYSTEM account) can't have access to this share. Maybe your user have full write access.
(also tried with forward slashes, same result)
Is there another way of getting Apache to report exactly what or why it's failing?
I assume the SYSTEM account (or whichever account is running Apache) needs access too.
But how do I go about that?
Wiedmann wrote:Every Windows service is logging it's problems into the Windows event log.
Event Log wrote:Event Type: Error
Event Source: Service Control Manager
Event Category: None
Event ID: 7024
Time: 8:29:09 AM
The Apache2.2 service terminated with service-specific error 1 (0x1).
For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.
You can't (ok that's not really true...) give the SYSTEM account such privileges. You must run Apache with a (normal user) account which have privileges. (--> edit the service properties.)
Ah ok, unfortunately that doesn't tell me much more:
Wiedmann wrote:Ah ok, unfortunately that doesn't tell me much more:
There are more then one log, you can view with the windows event viewer.
I noticed the Apache events are logged not only under Applications, but also under System. But the (rather uninformative) logged error is the same in both.
The Apache service named reported the following error:
>>> DocumentRoot must be a directory .
why does it think that X:\WebRoot is not a directory?
Wiedmann wrote:(BTW: Why did you use "X:\WebRoot", even if I advice you to use UNC paths?)
A service doesn't know anything about maped network drives from your user.
how do I get a mapped or subst'ed drive available to the SYSTEM user?
(considering that the UNC path for a network share doesn't seem to work)
Users browsing this forum: No registered users and 57 guests