[Dancer-users] Apache with Plack deployment woes seem to be back
Russell Jenkins
russell.jenkins at strategicdata.com.au
Sun Sep 12 06:56:47 CEST 2010
On 12/09/10 2:41 PM, P Kishor wrote:
> Per 1.1811 deployment docs, if running from Apache with Plack, the
> following should do the trick
>
> <Location />
> SetHandler perl-script
> PerlHandler Plack::Handler::Apache2
> PerlSetVar psgi_app /Sites/app/app.pl
> </Location>
>
> When I try to run with the above, I get the following error in my Apache logs
>
> [Sat Sep 11 20:37:56 2010] [error] [client 127.0.0.1] Error while
> loading /Users/punkish/Sites/app/app.pl: unable to load application
> app : Can't locate app.pm in @INC (@INC contains: lib
> /usr/local/apache2/bin/lib
> /usr/local/lib/perl5/site_perl/5.12.1/darwin-2level
> /usr/local/lib/perl5/site_perl/5.12.1
> /usr/local/lib/perl5/5.12.1/darwin-2level /usr/local/lib/perl5/5.12.1
> /usr/local/lib/perl5/site_perl . /usr/local/apache2) at (eval 57) line
> 2.\nBEGIN failed--compilation aborted at (eval 57) line 2.\n
>
> My app directory looks like so
Look to me like your apps lib directory is not included in the @INC
paths that mod_perl is using.
See
http://perl.apache.org/docs/2.0/user/confi/config.html#Adjusting_C__INC_
for ways to adjust mod_perl's @INC path.
Hope that helps,
Russell.
--
Russell Jenkins
Strategic Data.
http://www.strategicdata.com.au/
More information about the Dancer-users
mailing list