Page 1 of 1

Run xampp local but pull sites from network dive

PostPosted: 20. April 2010 14:44
by thors1982
Is it possible to run xampp Local but pull from network drive

I tried installing xampp on C:\xampp\

Then changing the DocumentRoot to F:\Web_Sites\ and its not working at all apache throws an error

Syntax error on line 188 of C:/xampp/apache/conf/httpd.conf:
DocumentRoot must be a directory


Is there a better way of doing this? I installed Xampp with directories not portable, but I thought I needed that to run services. (I have never used Xampp with services so not sure what that will change)

Re: Run xampp local but pull sites from network dive

PostPosted: 20. April 2010 15:03
by MoodyMammoth
Hi,

your mistake is that you wrote the path in windows style.
Try F:/web_sites and that should work.

Best Regards
Manfred

Re: Run xampp local but pull sites from network dive

PostPosted: 20. April 2010 15:19
by thors1982
I am afraid I am still getting the same problem. Is it because it is a network drive and not another partition?

Thanks for the help though

Re: Run xampp local but pull sites from network dive

PostPosted: 20. April 2010 15:34
by MoodyMammoth
Hi,

I checked that and you seemed to be right.
It doesn't work with network drives.

Best Regards
Manfred

Re: Run xampp local but pull sites from network dive

PostPosted: 20. April 2010 18:45
by Nobbie
MoodyMammoth wrote:It doesn't work with network drives.


It does, but you have to know what your doing:

a network drive letter is created AFTER you have logged in into your windows. But first of all the services (like Apache) are started - at this time THERE IS NO DRIVE LETTER F:

If you want to use drive letters, you have to start Apache AFTER you have logged in (you can start Apache manually for example). Or dont use driveletters, apply the UNC Path of the DocumentRoot instead (like "\\servername\pathname").

Re: Run xampp local but pull sites from network dive

PostPosted: 26. April 2010 03:04
by MC10
Would a service with a "Delayed Start" work?

Re: Run xampp local but pull sites from network dive

PostPosted: 26. April 2010 23:28
by BigWetDog
What version of Windows are you using?

You might try configuring the Apache service to be dependent on the Network Connections Service.