I understand that your ISP probably restricts the access you can have for CGI, probably for security reasons; lower end hosting packages tend to be like that. If you are able to afford it, I'd suggest looking into a package that gives you shell access, so you can run it from the command line.

If that is not an option for you, I'd suggest:

  1. you install perl on your PC. I assume you're running some version of Windows, in which case there are many different perl distributions available. I'm happy with and would recommend ActiveState Perl. You can then run the scripts on your PC to test with perl -wc your-script-name-here.pl from the command prompt, then upload it to the server. It obviously won't be the same thing as what they have on the server, but at least you don't have to keep asking to look at the logfile for trivial errors. (To get a command prompt, go to start->run->type cmd->click OK).

  2. Asking your hosting provider what perl modules they have available for you to use. One good one is Mail::Sendmail; a quick search on search.cpan.org also turns up others.

-- Burvil


In reply to Re: I'm getting a 500 Internal Server Error - how can I make this work? by bowei_99
in thread I'm getting a 500 Internal Server Error - how can I make this work? by linex

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.