I'm assuming you're on a unix system.

Here's one way you can let a group of people "share" a single, common web directory:

Have each user create a "public_html" directory (chmod 755) inside their home directory for their personal web files. The files should be world readable (chmod 644).

Then inside the real webpage root directory, create a symbolic link to each of the user's public_html directories.
For example:

ln -s /home/john_doe/public_html /var/www/public_html/john_doe

Your perl script can now crawl the /var/www/public_html directory and build its index - just make sure that it knows how to follow symbolic links. If your using Apache, there's a special directive needed for symbolic links as well:

<Directory "/var/www/public_html"> Options FollowSymLinks </Directory>

(note that you may have more directives inside the "Directory" block, and the path to your web root may be different - but you get the idea).

Another alternative is to switch to a full Content Management System (CMS) - google for it, you'll find lots of choices.


In reply to Re: User rights and Perl by scorpio17
in thread User rights and Perl by Wobbel

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.