leocharre has asked for the wisdom of the Perl Monks concerning the following question:
I have a question about the structure of a site on apache.
I put my cgi executables on cgi-bin Sometimes scripts need things like conf files or templates.. I've been letting users configure where needed files might be. For example, a generic login script expects by default to have a template file in
$ENV{DOCUMENT_ROOT}/.templates/login.html but it can be overridden. etc. The idea is that the scripts will by default expect things to be in predetermined places- kinda like unix that expects logs to be in /var/logs and conf to be in /etc/whatever - This is just proving tough on hosting accounts.Keeping track of scripts and where their files are expected to be is proving painful. Installation and update is proving painful.
I was considering having the script, conf files, templates, db whatever all in one directory under cgi-bin. Ala windows.. isn't it? - is that bad juju?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: cgi apps, is it bad juju to pile program and conf file, template, etc under one directory in cgi-bin?
by grep (Monsignor) on Oct 06, 2006 at 18:19 UTC | |
|
Re: cgi apps, is it bad juju to pile program and conf file, template, etc under one directory in cgi-bin?
by sgifford (Prior) on Oct 06, 2006 at 17:29 UTC | |
by friedo (Prior) on Oct 06, 2006 at 19:07 UTC | |
by bibliophile (Prior) on Oct 06, 2006 at 17:39 UTC | |
|
Re: Organization of CGI application files
by talexb (Chancellor) on Oct 06, 2006 at 20:25 UTC | |
|
Re: cgi apps, is it bad juju to pile program and conf file, template, etc under one directory in cgi-bin?
by bibliophile (Prior) on Oct 06, 2006 at 17:22 UTC |