You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by "Sabherwal, Balvinder (MBS)" <Ba...@mortgagefamily.com> on 2002/01/21 19:03:41 UTC

Access problem on NT

Guru's

I am running Apache on NT m/c. I have a cgi/perl script that needs to open
up a network directory path for reading files under that directory. The code
that dose that is as below

opendir(SMD, \\mbs-csrvr-vs5\it\it support services\db
architecture\sybase\sysmon-webdb) || die "Failed to open Sysmon DB: $!,
error in $startloc";
my @apps;
@apps = grep {$_ !~ m/^\.{1,2}$/} readdir(SMD);
closedir(SMD);

the script is working fine in the debug mode and is able to read the
directory contents as that runs under my login id in the debug mode. When
the same script is called from a web page, it fails and gives me an error as
below

[Fri Jan 18 17:19:41 2002] [error] [client 10.90.228.35] Premature end of
script headers: c:/program files/apache group/apache/cgi-bin/testapi.cgi
[Fri Jan 18 17:19:41 2002] [error] [client 10.90.228.35] [Fri Jan 18
17:19:41 2002] c:\PROGRA~1\APACHE~1\apache\cgi-bin\testapi.cgi: Error
executing run mode 'mode1'.  Eval of code '$self->showapps' resulted in
error: Failed to open Sysmon DB: No such file or directory, error in
\\mbs-csrvr-vs5\it\it support services\db architecture\sybase\sysmon-webdb
at testapi.pm line 25.

I feel that this could be due to the permissions problem on that directory.
Is there anyway I can configure apache to access that directory login id for
the requester of the web page or any other way so it can read the directory
when called from the web page??

Thanks
Bal.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org