Apache runs in console but not as a service?

Posted by danspants on Server Fault See other posts from Server Fault or by danspants
Published on 2010-06-02T02:59:34Z Indexed on 2010/06/02 3:04 UTC
Read the original article Hit count: 298

Filed under:
|

I have an apache 2.2 server running Django. We have a network drive T: which we need constant access to within our Django app. When running Apache as a service, we cannot access this drive, as far as any django code is concerned the drive does not exist.

If I add...

<Directory "t:/">
       Options Indexes FollowSymLinks MultiViews
       AllowOverride None
       Order allow,deny
       allow from all
</Directory>

to the httpd.conf file the service no longer runs, but I can start apache as a console and it works fine, Django can find the network drive and all is well.

Why is there a difference between the console and the service? Should there be a difference? I have the service using my own log on so in theory it should have the same access as I do.

I'm keen to keep it running as a service as it's far less obtrusive when I'm working on the server (unless there's a way to hide the console?). Any help would be most appreciated.

© Server Fault or respective owner

Related posts about Windows

Related posts about apache