Apache's config lets you specify where a cgi can execute but since you're on shared hosting, you are not likely to be able to change use of a cgi-bin dir inside public_html.

You can, however, in most1 shared hosting setups using Linux and Apache, access the directory ABOVE public_html, via ftp or ssh, and put your /lib there. I suggest you do it that way, IF (and only "if") you really need to install (non-core) modules which the host has not already provided or which you've created yourself. Your answer, elsewhere, does not yet clarify whether you are talking about self-built, core, or other modules.

In any case, you really need to to keep executables out of reach of naughty fingers in locations which make them less accessible to the naughty fingers of FP... and of those who might wish your site or clients ill. (On the same general theme, you would be well served to RTFM re .htaccess which comes up frequently here; see, for example, Web Application Development and CountZero 's response.

Re your comment that "I think this is a problem with FP, not Perl", I think I'd be more inclined to view this as a problem with some misconceptions or blindspots on your part about directory structures, server configuration, and perl.

Since, as you provide details you're getting more useful responses here, press on!

1 Qualify this and -- where unclear -- much of the rest of my remarks with the phrase "in my experience" or "to the best of my knowledge" unless a statement is accompanied by a cite of a standard reference.


In reply to Re^5: MS Frontpage, _vti_cnf directories and perllibs by ww
in thread MS Frontpage, _vti_cnf directories and perllibs by skazat

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.