Where CGI files can be kept is something which can be configured in the server. If the person who runs the server says they need to be in cgi-bin then trust them, even if they're wrong storing .pl scripts in odd directories can cause some really quite strange things to happen at times.

There's no limit on HTML files permissions. How were you setting the permission, and did they change afterwards? Not sure if an administrator can somehow stop users setting various file permissions on a security basis, it's been too long since I really hit Unix administration at all.

One thing to be aware of.. publically writable files are often seen as a security hole. Possibly a better way to do this would be to have a file created by whichever user the script runs as (Generally 'apache' or 'nobody') and have a symlink to this in your HTML directory.

Good luck with CGI, by the way. It's tricky at first but well worth persevering with.


In reply to Re: New to CGI, but having problems by Molt
in thread New to CGI, but having problems by mzfp

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.