I've got Apache 1.3 installed on my home PC. I am able to access regular HTML pages but when I try to access a CGI script I get back
Internal Server Error. I know that in most cases that means a problem with Premature end of script headers problem. However, when I looked in the error log for Apached I saw this:
[Mon Feb 19 15:55:27 2001] [error] [client 127.0.0.1] couldn't spawn c
+hild process: c:/program files/apache group/apache/cgi-bin/test.pl
ok,ok...maybe Windows is the start of my problems. Regardless, I have to have this on my Windows partition so my girlfriend can use this Web-App.
The code for the test script is exactly the code from Ovid's CGI Course except for the she-bang line, for the sake of testing.
#!c:\Perl\bin -wT
use strict;
use CGI;
my $query = CGI->new();
print $query->header( "text/html" ),
$query->start_html(-title => "My First CGI Script",
-bgcolor => "#ffffcc" ),
$query->h1( "This is a pretty lame Web page" ),
$query->p( "Who is this Ovid guy, anyway?" ),
$query->end_html;
Any help would be greatly appreciated.
- kel -