Your apache server is trying to execute a perl script that is supposed to exist at this path on the host file system:
/var/www/cgi-bin/form.pl
You should be able to do a shell login on the host, and see if that file exists in that directory. If you find that it's not there, you need to place a copy of your perl script there. If it is there, it might be having trouble because of unsuitable permission settings on the file (or on the cgi-bin directory, though this seems unlikely).

UPDATE: (forgot to mention) I've never seen/used CentOS, but if it's anything like unix/linux, then your script has some problems:

#!/user/bin/perl require("cgi-lib.pl");
The first line should be #!/usr/bin/perl (no "e" in "usr"). Also, the "cgi-bin.pl" file must either be in that same /var/www/cgi-bin directory, or else in one of the directories that your /usr/bin/perl has in its defauilt value for @INC.

Also, you have your last two close tags in the wrong order: </body> should be above </html>.


In reply to Re: Internal Server Error apache/httpd by graff
in thread Internal Server Error apache/httpd by mwerner92

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.