Re: Page can not be displayed...
From: Peter Wyzl (wyzelli_at_yahoo.com)
Date: 12/19/04
- Next message: KKramsch: "Re: Finding out if another copy of a CGI Perl scripts is running?"
- Previous message: JayEs: "Re: Page can not be displayed..."
- In reply to: Piet L.: "Page can not be displayed..."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Sun, 19 Dec 2004 00:54:08 GMT
"Piet L." <PietLaroy@hotmail.com> wrote in message
news:c47f81f6.0412180326.185c4e9b@posting.google.com...
: Piet L. wrote:
:
: >> Hey,
: >> I'm working with IIS (Windows 2000).
: >> I've create a virtual directory usr-cgi met link naar e:\cgi
: >> It works all well when I run simple scripts, but with the following
: script
: >> I get a "Page can not be displayed" error.
:
: >> I know the script is working, because when I try it in DOS
: >> e:\cgi\finaal> perl orders.cgi
: >>
: >> I get the right output
: >>
: >> Problem is the http://localhost/usr-cgi/finaal/orders.cgi
:
: >Most web server software will direct STDOUT from CGI scripts to a log
: >file somewhere. I've hardly ever used IIS but I think I'd remeber if
: it
: >were an exception. Have you tried looking for such a log.
:
: Yes I deed, the only thing I've learned is that the file ib20 was
: created/changed at the moment I tried the link.
: It is in c:\winnt\temp
:
: That's all I know
With any files you access using Perl in an IIS CGI environment, you should
specify the full path (on IIS something like d:/inetpub/wwwroot/etc) because
often the current directory is not what you think it it. In this case the
Perl process appears to be running with a current directory of c:\winnt\temp
where it can create the file, but IIS cannot read it.
For security reasons you don't want your web-server to be able to read
within your systemroot tree, so you will need to be specific with your data
locations.
Generally a readable/writeable directory outside the actual web-site itself,
so the Perl processes can read it, but you cannot specify it by url.
-- Wyzelli
- Next message: KKramsch: "Re: Finding out if another copy of a CGI Perl scripts is running?"
- Previous message: JayEs: "Re: Page can not be displayed..."
- In reply to: Piet L.: "Page can not be displayed..."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|