Dear Monk,
Running CGI is more than just creating HTML. You (or you system administrator) have to configure the server it is running on to deal with CGI and in the case of Perl/CGI you need to have handlers in place to deal with handing Perl off to an interpreter.

If that is all equal and good you then need to ensure that the file permissions and ownership for the CGI script are set correctly depending on what environment you are running under. Windows, Unix and Linux play by different rules so you have to understand the environment you are running in.

My advice to you is to start on the Tutorials page and look especially under CGI Programming and really read those pages and understand them. It will pay off in the long run.

I'd also recommend you read and understand this page and some of the pages referenced in there and additionally this page and especially this page just to make your life here at the Monastery a lot easier.

When you ask question please give as much complete information about what you are experiencing as you can. Log files from servers (which Corion mentioned) are one of my personal favorite ways of finding out what has gone wrong. Using [code] tags for your code as the anonymous monk mentioned is also a must.

My intent is not to give you a hard time, but it is to help you understand how to properly get the most out of this community in terms of help and knowledge possible and hopefully in the future you can pay that forward by helping someone else out down the road.


Peter L. Berghold -- Unix Professional
Peter -at- Berghold -dot- Net; AOL IM redcowdawg Yahoo IM: blue_cowdawg

In reply to Re: Running CGI script by blue_cowdawg
in thread Running CGI script by anbutechie

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.