[jifty-devel] jifty trunk apache2/mod_perl2 ubuntu feisty, no luck

Matthew Lenz matthew at nocturnal.org
Sat Jul 14 18:58:57 EDT 2007


I saw that the last release or so added the modperl2 handler and that it
was tested using ubuntu feisty which is what i'm using as well.  from a
default install of apache2 and modperl2 packages I did a:
$ a2dissite default
created a new site 'myapp' with the modified contents of the virual host
example in the jifty::script::modperl2 pod

<VirtualHost *:80>
    DocumentRoot /home/mlenz/MyApp
    SetHandler perl-script
    PerlHandler Jifty::Script::ModPerl2
</VirtualHost>

$ a2ensite myapp
$ /etc/init.d/apache2 force-reload

and I get an error about:

ERROR - Can't locate MyApp/Action/Login.pm in @INC (@INC
contains: /etc/perl /usr/local/lib/perl/5.8.8 /usr/local/share/perl/5.8.8
/usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.8 /usr/share/perl/5.8
/usr/local/lib/site_perl . /etc/apache2)
at /usr/local/share/perl/5.8.8/Jifty/Web.pm line 530

FATAL - view class error: Can't call method "form_field" on an undefined
value at /usr/local/share/perl/5.8.8/Jifty/View/Declare/Helpers.pm line
259.

The same app works fine with a bin/jifty server.  I assume that error
has to do with the app requiring login to use the app (dispatcher).
i've tried changing perms to www-data:www-data on the code etc but still
no luck.

-Matt



More information about the jifty-devel mailing list