[Lvlug] Letting users run CGI scripts
hanumizzle at gmail.com
Thu Dec 7 11:44:49 EST 2006
On 12/6/06, Caleb Shay <caleb at webninja.com> wrote:
> On 12/6/06, Faber Fedor <faber at linuxnj.com> wrote:
> > On 12/5/06, Caleb Shay <caleb at webninja.com> wrote:
> > > <snip cgi nightmare />
> > >
> > > The RIGHT way to do this is mildly complex, but gives you per-user
> > > cgi-bin directories.
> > I don't remember it being this complex back when I did it during the
> > Stone Age, but I've got it working now with your modified
> > configuration. Thanks.
> You can do it more simply by allowing CGIs anywhere, but that's a
> dangerous habit to get into.
My friend's server is set up like that. Fortunately, I'm not running
any Ruby scripts there, and neither is he.
I'm no expert on web server configuration, but I should like to add
that you would do well to use the CGI module, which offers a lot of
useful abstraction (if you *must* use Perl).
Also worth consideration is HTML::Template. It's a bugger to write
anything in the vein of CGI without some kind of HTML templating
library. The most awesome templating library I've used to date,
however, is markaby (Ruby). The template is actually written *IN*
ruby, using some interesting OOP tricks.
More information about the Lvlug