[Catalyst] Can not start my apache with catalyst app under mod_perl

Peter Karman peter at peknet.com
Tue Apr 3 22:58:49 GMT 2007



Paul Rudolf Seebacher scribbled on 4/3/07 3:57 PM:
> Hi, i want to run my catalyst application under mod_perl. So I made a
> Virtual Host:
> 
> <VirtualHost *>
>         DocumentRoot /var/srv/sugo
>         ServerName sugo.*********************
> 
>         PerlSwitches -I/var/srv/sugo/lib/
>         PerlModule sugo
>         <Location />
>                 SetHandler          modperl
>                 PerlResponseHandler sugo
>         </Location>
> 
> </VirtualHost>
> 
> Put when I restart Apache, I get this error message in my error.log:
> 
> [Tue Apr 03 22:51:01 2007] [error] Can't locate sugo.pm in @INC (@INC
> contains: /usr/lib/perl5/Apache2 /etc/perl /usr/local/lib/perl/5.8.4
> /usr/local/share/perl/5.8.4 /usr/lib/perl5 /usr/share/perl5
> /usr/lib/perl/5.8 /usr/share/perl/5.8 /usr/local/lib/site_perl .
> /etc/apache2) at (eval 3) line 3.\n
> [Tue Apr 03 22:51:01 2007] [error] Can't load Perl module sugo for
> server sugo.seepaul.dyndns.org:0, exiting...
> 
> How can I say Perl where to seek for this script?

though the mod_perl docs claim that PerlSwitches can be inside a vhost, I had a 
similar experience the other day that was solved by putting that -I/path outside 
the vhost directive.


-- 
Peter Karman  .  http://peknet.com/  .  peter at peknet.com



More information about the Catalyst mailing list