Page 1 of 1

move htdocs to mapped network drive

PostPosted: 19. August 2010 21:22
by mjs1138
Xampp for windows v. 1.7.2

I'm hoping to move the document root from C:\xampp\htdocs to a mapped network drive (H:\).

When I modify httpd.conf to have: DocumentRoot "H:/VLCDATA/htdocs" and <Directory "H:/VLCDATA/htdocs">
Apache will not start. I know I can move it to a different folder on the C:\ drive so it seems to me the only difference is that it's not "mapped".

Any help will be appreciated.

--- Mike

Re: move htdocs to mapped network drive

PostPosted: 19. August 2010 22:36
by JonB
what's in the Apache error log?

:?:

Re: move htdocs to mapped network drive

PostPosted: 20. August 2010 13:59
by mjs1138
The apache error log does not show any activity for the failed startup but the system event log shows:

The Apache2.2 service terminated with service-specific error 1 (0x1).

Re: move htdocs to mapped network drive

PostPosted: 20. August 2010 15:22
by JonB
2 things -

1st. - open a Command window at C:\xampp\apache\bin. Type httpd.exe -h (this will check your Apache configuration files for errors).

2nd. change the DocumentRoot back to the default and see if the error disappears.

Good Luck
:)

Re: move htdocs to mapped network drive

PostPosted: 23. August 2010 13:27
by mjs1138
1st. - open a Command window at C:\xampp\apache\bin. Type httpd.exe -h (this will check your Apache configuration files for errors).

This shows the help page as expected.

2nd. change the DocumentRoot back to the default and see if the error disappears.

When the DocumentRoot is set back to default or even to a different folder but on the same drive Apache starts ok.

Re: move htdocs to mapped network drive

PostPosted: 23. August 2010 15:36
by Altrea
Your Windows Apache service starts earlier than your Network drive is mapped. That causes this error.
You can try to start Xampp in your Autostart-Folder. Maybe this do the trick.
Otherwise you can write your own batch script which starts xampp with a delay or something like that.