brett -
Joined: 08 Jul 2006 Posts: 1 Location: Minneapolis, MN
|
Posted: Sat Jul 08, 2006 11:30 pm Post subject: cgi-bin scripts not running |
|
|
After checking and re-checking the forums, help files, and Web, I think I need to finally ask for direction.
I'm trying to run a simple hello.cgi, and I keep encountering the same error.
My cgi log indicates:
Child process creation failed - OS error 267 (appears as 500 error in the IE browser)
I've checked my:
environment path: C:\Perl\Bin\perl.exe
CGI/ISAPI interpreter: C:\Perl\Bin\perl.exe (also associated with pl and cgi)
abyss.conf file: execgipaths is set to /cgi-bin
scripts are enabled, index files are set to index.pl and index.cgi
I've even deselected the "Resolve interpreter using the #! Line"
Here's my code (I've tried about 10 variations on this theme from diff sites):
==================
#!C:\perl\bin\perl.exe
# previous line added to support Apache 1/2
# please adjust to your own Perl path!
use strict;
use CGI;
my $page = new CGI;
my $msg = "Hello from ActivePerl CGI!";
# print header and start the markup output
print $page->header( "text/html" ),$page->start_html( $msg );
print $page->h2($msg);
print $page->end_html;
# end code
===================
If I move the cgi file into my htdocs directory, it renders correctly. http://localhost/hello.cgi, but as soon as I put it in the cgi-bin folder it's nto accessible and I get the error e.g. http://localhost/cgi-bin/hello.cgi
Is this a Windows XP Pro problem? An Abyss WS setup issue? I'm stumped.
Any help is appreciated.
Thanks |
|