hi rom, i see you're new here, so try to read first if you want to be helped
Anyway, as i understand you, your module (script?) works, but when you put it in a cgi directory, using CGI you get a server error? unknown to us on this moment :).

Well, you probably need to set the rights to execute the script (aka on linux chmod 750 script.pl, and see if the proper user is the owner, and the group that apache runs on, can execute the script.

Look if you have sudo enabeled in apache, then the rights are even more strict.

Next, look at the output of your script, when you run it from the command-line, to see if there might be weird output of your script. (Do you create a proper html-header?) etc.etc., next when running on Windows, delete your os, install linux and practice. If all is ok, you might run on Windows again (if you still want it) ;-)....

Good luck

"We all agree on the necessity of compromise. We just can't agree on when it's necessary to compromise." - Larry Wall.

In reply to Re: Can't get cgi to work by jbrugger
in thread Can't get cgi to work by rom

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.