OK, newbie problem, and it's prolly something simple I've overlooked, but I can't seem to get cgi scripts to execute from the browser -- it always tries to download them. (ActivePerl 5.6.1.631, Apache 1.3.22, WinMe)

command line works fine; the script alias to cgi-bin is working since it finds the file to download it; if I deliberately muddle the shebang line I get a 500 error, so it seems apache is _trying_ to execute the script, and something is going wrong when it actually calls perl.exe.

I have tried it both with and without AddType and AddHandler (though I think I shouldn't need them since I'm working in the script-aliased cgi-bin?); I have tried using other directories (with AddType, AddHandler, and Options ExecCGI); I have tried the reg edit from this answer in the q&a section (which I think is really just for the MS-PWS, not apache?), all to no avail.

Any help will be most appreciated, I'm at wits end!

In reply to ActivePerl / Apache / WinMe config problem by Anonymous Monk

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.