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/  .  [EMAIL PROTECTED]

_______________________________________________
List: Catalyst@lists.rawmode.org
Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.rawmode.org/
Dev site: http://dev.catalyst.perl.org/

Reply via email to