sorry for not using IRC ... not really used to it :-(

I followed your advices but it doesn't work yet.
My Apache-config:


<VirtualHost *:80>
    ServerName asd
    ServerAlias www.asd
    ErrorLog /var/log/apache2/error_log
    TransferLog /var/log/apache2/access_log

    # 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 .fcgi
</Location>
</VirtualHost>



no more 'DefaultInitEnv' and I created the shell-script:

#!/bin/sh
eval $(perl -I/root/perl5/lib/perl5 -Mlocal::lib=/root/perl5)
exec /srv/www/web/DW/script/dw_fastcgi.pl $*



Not really sure where I have to put this script???
I've tried it with:
/srv/www/web/DW/
/srv/www/web/DW/script
/srv/www/web/DW/root


... and my error-log says:

[Wed Mar 14 12:13:49 2012] [notice] Apache/2.2.12 (Linux/SUSE) mod_ssl/2.2.12 
OpenSSL/0.9.8j-fips configured -- resuming normal operations
[Wed Mar 14 12:13:55 2012] [error] [client 129.187.12.54] File does not exist: 
/srv/www/web/DW/script/dw_fastcgi.pl/DW


Thank you for your help :-D





On 13 Mar 2012, at 16:22, cylontoaster wrote:

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.

<snip>

        Order allow,deny
        Allow from all
        AddHandler fcgid-script .pl

If you change this to fcgid-script .fcgi

</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/


And skip this.

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:


And write a myapp.fcgi, like this:

#!/bin/sh
eval $(perl -I/home/foo/perl5/lib/perl5 -Mlocal::lib=/home/foo/perl5)
exec /home/foo/MyApp/script/myapp_fastcgi.pl $*


-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?

I think the DefaultInitEnv isn't working as expected somehow. I'd just work 
around this (as above) with a shell script.

Thanx for every hint to get Catalyst running ;-)

Hope this helps.

Please drop into IRC if you're still stuck?

Cheers
t0m


_______________________________________________
List: [email protected]
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/[email protected]/
Dev site: http://dev.catalyst.perl.org/


_______________________________________________
List: [email protected]
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/[email protected]/
Dev site: http://dev.catalyst.perl.org/

Reply via email to