[Catalyst] Template rendering error under mod_perl

Matt S Trout dbix-class at trout.me.uk
Fri Jun 29 17:19:57 GMT 2007


On Fri, Jun 29, 2007 at 11:49:33AM +0100, Richard Jones wrote:
> Kiki wrote:
> >Richard Jones wrote:
> >  
> >>Having developed my application sufficiently to see it working well so
> >>far, I though I should configure it to run under mod_perl. I have used
> >>the TTSite helper to generate the templates. The app runs fine using
> >>myapp_server.pl, but under mod_perl I get the following:
> >>
> >>Couldn't render template "file error - login.tt2: not found"
> >>
> >>    
> >Could be a permission issue, has the user the webserver runs under
> >access to that path / those files?
> >
> >
> >_______________________________________________
> >  
> The user/group permissions on root/src and root/lib and the files 
> therein are the same as for lib/MyApp.pm, so presumably that isn't the 
> issue? There is nothing obvious in the error_log, though Apache doesn't 
> seem to log file permission errors even under debug mode. 

Apache may load code while still root.

su to the user it runs at and try to cd into the MyApp dir and cat a template
file.

-- 
      Matt S Trout       Need help with your Catalyst or DBIx::Class project?
   Technical Director    Want a managed development or deployment platform?
 Shadowcat Systems Ltd.  Contact mst (at) shadowcatsystems.co.uk for a quote
http://chainsawblues.vox.com/             http://www.shadowcatsystems.co.uk/ 



More information about the Catalyst mailing list