move htdocs to mapped network drive

Problems with the Windows version of XAMPP, questions, comments, and anything related.

move htdocs to mapped network drive

Postby mjs1138 » 19. August 2010 21:22

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
mjs1138
 
Posts: 3
Joined: 19. August 2010 21:12

Re: move htdocs to mapped network drive

Postby JonB » 19. August 2010 22:36

what's in the Apache error log?

:?:
User avatar
JonB
AF Moderator
 
Posts: 3210
Joined: 12. April 2010 16:41
Location: Land of the Blazing Sun
XAMPP Version: 1.8.3-2
Operating System: Windows XP/7 - Fedora 15 1.7.7

Re: move htdocs to mapped network drive

Postby mjs1138 » 20. August 2010 13:59

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).
mjs1138
 
Posts: 3
Joined: 19. August 2010 21:12

Re: move htdocs to mapped network drive

Postby JonB » 20. August 2010 15:22

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
:)
User avatar
JonB
AF Moderator
 
Posts: 3210
Joined: 12. April 2010 16:41
Location: Land of the Blazing Sun
XAMPP Version: 1.8.3-2
Operating System: Windows XP/7 - Fedora 15 1.7.7

Re: move htdocs to mapped network drive

Postby mjs1138 » 23. August 2010 13:27

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.
mjs1138
 
Posts: 3
Joined: 19. August 2010 21:12

Re: move htdocs to mapped network drive

Postby Altrea » 23. August 2010 15:36

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.
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!

It's like porn for programmers 8)
User avatar
Altrea
AF Moderator
 
Posts: 6946
Joined: 17. August 2009 13:05
XAMPP Version: 5.5.19
Operating System: Windows 10 Pro x64


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 79 guests