apache with windows mapped drive
OS is windows xp, apache is apache 2.2.
on my windows xp, i have a mapped driver, path is \dev3, under dev3 i have a folder www\project.
now i have added following virtual host to my local apache conf file.
DocumentRoot "\\dev3\www\project" DirectoryIndex index.php <Directory "\\dev3\www\project"> AllowOverride All Allow from all Options +FollowSymLinks </Directory>
after restart the apache server, the apache gave me following warning: Warning: DocumentRoot [C:/dev3/www/project] does not exist.
my question is how can i make the apache to recognize my mapped drive
services can't just access mapped network drives that were mapped under your username. maybe you can set the apache service to run under your user account or somehow set up the local service account to access the mapped drive.
Check were you mapped the drive exactly. Windows does not now such a path like the one you're trying, so it's even a drive (C:, D:, E:, ...) or a folder on a Drive (D:\path\to\dev3\www...).
i have found a solution, if i run apache from command line, it worked. but not from service.
You could use the following command utility called junction from Mark Russinovich Sysinternals - www.sysinternals.com
junction c:\my_symlink "U:\networkpath\dir"
you could now set your DocumentRoot directive in as C:\my_symlink
restart Apache and that should work.
This however requires that you set have mapped the network drive correctly using net use command (perhaps with the peristence option)