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 -


In reply to CGI Problems by dsb

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.