[Catalyst] confused about file locations when running under apache/mod_perl

Daniel McBrearty danielmcbrearty at gmail.com
Sun Feb 25 19:40:24 GMT 2007


I have my complete apache/mod_perl install built under a single
directory (/usr/local/apache2) and I normally stop/start apache from
there using ./bin/apachectl start etc

My app runs fine on the machine using the test server. I have various
static files under Engoi/root, and templates are in Engoi/templates -
Engoi/engoi.yaml tells TT where they are.

(I also keep debug off normally, I set an env variable to turn it on,
so I often start the test server with

export ENGOI_DEBUG=1; ./script/engoi_server.pl -r

... )

So now I try to run it under apache2/mod_perl (which I know runs fine
as my old site has used it for more than a year).

The problem I get is that the templates directory is not seen. I have
tried (as a temp thing while I work out what is happening) to symlink
them into /usr/local/apache2, that doesn't help. (I also can't seem to
set the env variable to turn on debug for the server process, which I
can't currently figure out ... )

So my question is : when I start/stop apache, where will it look for
the config file? and when it finds it, if there are relative paths to
other stuff like templates, where does it expect them to be relative
to? I expected that answer to be "where you issue the command to start
the server from", but that seems not to be the case.

In the end I *might* migrate to fastcgi, so what would the answer be
to this in that case? I guess, wherever you start the fastcgi server
process from?

cheers

Daniel


-- 
Daniel McBrearty
email : danielmcbrearty at gmail.com
www.engoi.com : the multi - language vocab trainer
BTW : 0873928131



More information about the Catalyst mailing list