Guest_imported
New member
- Jan 1, 1970
- 0
Hi, guys!
I'm trying to execute script with .cgi extension and keep getting this error message:
Failed to execute script: Win32 error code = 87.
Could anyone tell me what are possible reasons that cause this error.
I just started with CGI and this .cgi script is just a try to get well-known output "Hello" on a web page.
I'm running Win2K Advanced Server w/IIS 5.0, I have Perl installed, I added MIME type application/x-httpd-cgi , directory, which my files are in has Script and Execute Permissions. Here are the files, which I cannot execute:
hello1.shtm
---------------------
<HTML>
<HEAD>
<META NAME="GENERATOR" Content="Microsoft Visual Studio 6.0">
<TITLE></TITLE>
</HEAD>
<BODY>
<P> </P>
<!-- #exec cgi="scripts/hello1.cgi"-->
</BODY>
</HTML>
Hello1.cgi
-----------------------
#! d:/perl/bin/perl
print "Content-type: text/html \n\n";
print "Hello, anybody!"
If I save hello1.shtm just as .htm file, it doesn't give any output. If I try to execute .cgi file directly - not calling it from another file - I get an "Internal Server Error".
Maybe I just coded it wrong, if one could call that 'coding'? So, any help on this will be highly appreciated.
Thank you.
I'm trying to execute script with .cgi extension and keep getting this error message:
Failed to execute script: Win32 error code = 87.
Could anyone tell me what are possible reasons that cause this error.
I just started with CGI and this .cgi script is just a try to get well-known output "Hello" on a web page.
I'm running Win2K Advanced Server w/IIS 5.0, I have Perl installed, I added MIME type application/x-httpd-cgi , directory, which my files are in has Script and Execute Permissions. Here are the files, which I cannot execute:
hello1.shtm
---------------------
<HTML>
<HEAD>
<META NAME="GENERATOR" Content="Microsoft Visual Studio 6.0">
<TITLE></TITLE>
</HEAD>
<BODY>
<P> </P>
<!-- #exec cgi="scripts/hello1.cgi"-->
</BODY>
</HTML>
Hello1.cgi
-----------------------
#! d:/perl/bin/perl
print "Content-type: text/html \n\n";
print "Hello, anybody!"
If I save hello1.shtm just as .htm file, it doesn't give any output. If I try to execute .cgi file directly - not calling it from another file - I get an "Internal Server Error".
Maybe I just coded it wrong, if one could call that 'coding'? So, any help on this will be highly appreciated.
Thank you.