[cgiapp] mod_perl/fast_cgi No such runmode

John cgiapp at moe.co.uk
Wed Jan 12 12:00:46 EST 2011



Hi All,

I've been using CGI::Application with a number of modules and it
has been working fine in plain CGI mode.  I want the pages loading
a bit faster, so, have been looking at both FastCGI and mod_perl.

Some of the main modules I'm using are:

  CGI::Application::Plugin::AutoRunmode
  CGI::Application::Plugin::Authentication
  CGI::Application::Plugin::Session
  CGI::Application::Plugin::DBH
  CGI::Application::Plugin::DBIx::Class ':all';
  CGI::Application::Plugin::TT

I have tried both FastCGI and mod_perl and both display the same 
problem.  Simple scripts that basically output a template via TT 
work fine, however, when I try to authenticate and login I start
getting the error:

  No such run mode 'login_okay'

It appears that I now have a logged in session, but, getting the
"No such run mode" error.

I read an old post here:
  http://www.mail-archive.com/cgiapp@lists.openlib.org/msg07094.html

Does this sound like an AutoRunmode problem which RunmodeDeclare
might solve?

I wondered also if it could be a namespace issue?  I originally had
it running under Apache::Registry, but, changed to:

        <Location /cp>
                SetHandler      perl-script
                PerlHandler     "sub { Module::CP->new()->run(); return OK; }"
        </Location>

Any suggestions greatly appreciated.

Thanks.
John



More information about the cgiapp mailing list