Debugging web applications is something which can be learned. And, not unlike debugging COBOL, it must be learned for a successful debugging experience. I'd say it is easier to learn than debugging COBOL mainframe applications because the documents are readily available.

A status code 500 is sent to a web client to indicate an error which is not the client's fault. You need to check the server's log files for details. I could wade through your article to the text script not found or unable to stat and after this message a well configured Apache should write the file path (not the URL!) where it looked for your CGI program.

So, most likely, either the file doesn't exist, or it isn't readable and executable by the web server's user id, or Perl is not installed as /usr/bin/perl. But we can't tell. If the error message doesn't contain the path, ask to your hoster to improve the error logging (the LogLevel directive in Apache).


In reply to Re: Why CGI is hard debug by haj
in thread Why CGI is hard debug by blackjackstory.com

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.