Question
I am having an issue on my Windows TWiki 4.2, where the TWiki can't see or access any files on a mapped network drive. I am trying to write a custom plugin, which tries to read from a file stored on the network folder, but it can't. If I copy the same file over to somewhere on the local C:\ it works fine. It also had trouble reading an external perl module on the network drive, but was able to read it fine from somewhere on the local C: drive. Let me know if I can provide any other information to help debug this issue.
Environment
--
VivekThaker - 26 Feb 2008
Answer
If you answer a question - or someone answered one of your questions - please remember to edit the page and set the status to answered. The status selector is below the edit box.
This could be a windows file permissions issue. Are you sure that the local user that the web server is running as has permission to access the files on the mapped drive?
I don't remember windows that well - but isn't the mapping only for your logged in interactive user, and non-existant for any service (such as IIS or apache)?
I guess trying the UNC path might tell you more.
--
SvenDowideit - 26 Feb 2008
Thanks Sven. Your answer helped quite a bit and I'm almost there in terms of fixing the issue. You are correct, the mapping is only for the logged on interactive user. The UNC path does work. My problem is that I want to interface our TWiki to our existing perl scripts and modules which use the specific drive mapping. It would be great if I could just get Apache to recognize the drive mapping. I have already tried to make the Apache service 'Log on as' the interactive user which has the mapping, but that hasn't helped. Let me know if you have any other ideas. Appreciate your insight. Thanks.
--
VivekThaker - 27 Feb 2008
I think you
could use the "net use" command to create the map, but
it isn't recommended
.
Alternatively, you could write a Perl script to change your perl scripts from using mapped drive references to UNC names
--
SeanCMorgan - 27 Feb 2008
Seems to be answered. Please feel free to re-open if needed.
--
PeterThoeny - 03 Apr 2008