[Catalyst] apache, mod_fcgi & local::lib

cylontoaster cylontoaster at gmx.de
Tue Mar 13 16:22:03 GMT 2012


Hello,
I got stuck in deploying my first Catalyst-application on a SuSE-platform:-(
I've mod_fcgi (not fast_cgi),  FCGI.pm and I also use local::lib.

So, in my virtual-host-file I use this configuration:

<VirtualHost *:80>
     ServerName lxast05.abs.lrz.de
     ServerAlias www.lxast05.abs.lrz.de
     #TransferLog /var/log/apache2/access.log
     ErrorLog /var/log/apache2/error.log
     CustomLog /var/log/apache2/access.log combined

     # This should point at your myapp/root
     DocumentRoot /srv/www/web/DW/root
     Alias /static /srv/www/web/DW/root/static

<Location /static>
         SetHandler default-handler
</Location>

     Alias / /srv/www/web/DW/script/dw_fastcgi.pl/

<Location />
         Options ExecCGI
         Order allow,deny
         Allow from all
         AddHandler fcgid-script .pl
</Location>
</VirtualHost>


That my apache is able to find the local_lib I declared in 
'/etc/apache2/conf.d/mod_fcgid.conf'  the DefaultInitEnv variable:

DefaultInitEnv PERL5LIB /root/perl5/lib/perl5/

That's it ... after restarting the apache I get an error :

Can't locate Catalyst/ScriptRunner.pm in @INC (@INC contains: 
/root/perl5/lib/perl5/ /usr/lib/perl5/5.10.0/x86_64-linux-thread-multi 
/usr/lib/perl5/5.10.0 
/usr/lib/perl5/site_perl/5.10.0/x86_64-linux-thread-multi 
/usr/lib/perl5/site_perl/5.10.0 
/usr/lib/perl5/vendor_perl/5.10.0/x86_64-linux-thread-multi 
/usr/lib/perl5/vendor_perl/5.10.0 /usr/lib/perl5/vendor_perl .) at 
/srv/www/web/DW/script/dw_fastcgi.pl line 3.
BEGIN failed--compilation aborted at 
/srv/www/web/DW/script/dw_fastcgi.pl line 3.

... but I can clearly see that ScriptRunner exists in the 
local::lib-directory:


-r--r--r-- 1 root root 1542 2011-02-16 22:28 
/root/perl5/lib/perl5/Catalyst/ScriptRunner.pm

Anyone has an idea? Is this a bug?
Thanx for every hint to get Catalyst running ;-)





More information about the Catalyst mailing list