I checked the permissions and the public has read permissions for the directory. I am running the webserver on my NT workstation and I have a network share mapped as e:. My workstation is not shared with anyone.
What else could I check?? -----Original Message----- From: Sabherwal, Balvinder (MBS) [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 15, 2002 12:50 PM To: [EMAIL PROTECTED] Subject: RE: [cgiapp] Re: Internal Error Here is the error. It tells me that directory I am trying to open, is not existing. I don't unserstand why?? I run this from the command line and it works perfectly. [Tue Jan 15 12:47:31 2002] [error] [client 10.90.74.122] Premature end of script headers: c:/program files/apache group/apache/cgi-bin/testapi.cgi [Tue Jan 15 12:47:31 2002] [error] [client 10.90.74.122] [Tue Jan 15 12:47:31 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 at testapi.pm line 30. -----Original Message----- From: Jesse Erlbaum [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 15, 2002 11:50 AM To: [EMAIL PROTECTED] Subject: RE: [cgiapp] Re: Internal Error Hi Balvinder -- > opendir(SMD,"$startloc") || die "Failed to open Sysmon DB"; This is the problem line of code. I suspect that the application does not have permission to access this directory. I suspect this because you can run it from the command line but not via the web server. Web servers usually run as un-privileged users for security reasons, while your command line will run with your user privileges. A script running from the command line but not via the web server is a common symptom of this problem. To test this theory, change your line of code as follows: opendir(SMD,"$startloc") || die "Failed to open Sysmon DB: $!"; The "$!" at the end will give the system error (e.g.: "File not found", "Bad permissions", etc.), which should tell you a bit more about what went wrong. Make this change and re-run the script. Post your error log to the list. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
