Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery

Comment on

( #3333=superdoc: print w/replies, xml ) Need Help??

I've managed/supported quite a few servers over the years (dating back to Netscape Server 2, and AOL's NaviServer), and for this sort of question, it's best not to assume anything about their server configuration.

The system may have all items ending in '.cgi' mapped to mod_cgi in apache, which allows them to place the file anywhere that the webserver can see it, provided it has the correct extension and permissions.

If they're using CGIwrap (which I suggest for multi-user systems with cgi access), then the cgi-bin directory should not be in public_html, as it may allow folks to read your scripts if you don't have the permissions set correctly. (and in this case, set correctly is not 0755, it's 0500).

I would assume that whatever server is either using virtual hosts, or is not multi-use, based on the URL that was given, but know that there are many, many different configurations for such things, and so not to guess the directories. (eg, MacOS X places CGIs in /Library/Webserver/CGI-Executables, even though it maps to http://host/cgi-bin/


So, my suggestion would be -- if you're using an ISP or hosting service -- contact them. They're the only ones who would know the configuration of their system. If you're hosting your own system, we'll need more information -- is it a default install? If so, what OS?

In reply to Re^2: where to place the .pl fro cgi script by jhourcle
in thread where to place the .pl fro cgi script by phemal

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, 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, 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.
  • Log In?

    What's my password?
    Create A New User
    and all is quiet...

    How do I use this? | Other CB clients
    Other Users?
    Others romping around the Monastery: (8)
    As of 2018-07-16 18:53 GMT
    Find Nodes?
      Voting Booth?
      It has been suggested to rename Perl 6 in order to boost its marketing potential. Which name would you prefer?

      Results (346 votes). Check out past polls.