Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: ModPerl: ModPerl

lookup of 'WPort::Startup::ChildInitHandler::handler' failed

 

 

ModPerl modperl RSS feed   Index | Next | Previous | View Threaded


Mail-MichaelW at web

Oct 25, 2009, 1:29 PM

Post #1 of 1 (115 views)
Permalink
lookup of 'WPort::Startup::ChildInitHandler::handler' failed

Hi, does anyone know why I get this error message in my apache log?

I am using the following setup:

File: /var/www/htdocs/wport/Startup.pm

package WPort::Startup;
[...]
my $server = Apache2::ServerUtil->server;
my $conf = <<EOC;

PerlChildInitHandler WPort::Startup::ChildInitHandler

Alias /wport $app_path
<Location /wport>
SetHandler perl-script
Order Deny,Allow
Deny from all
Allow from .home
PerlResponseHandler WPort::Startup::Dispatch
Options -Indexes
AddDefaultCharset utf-8
</Location>
EOC
$server->add_config([split("\n", $conf)]);

# this is inside of Startup.pm...
package WPort::Startup::ChildInitHandler;
use strict;
use warnings;
use WPort;
use Apache2::Const -compile => qw(OK);

sub handler {
my $r = shift;
my $config = WPort->config();
$config->loglevel('debug');
my $logger = WPort->logger();
$logger->add_message({type => 'debug', message => "process $$ is born to serve"});
return Apache2::Const::OK;
}

[...]

1;

My Apache vhosts.conf includes the following:

PerlOptions +Parent
PerlSwitches -I/var/www/htdocs/wport
PerlConfigRequire "Startup.pm"

The PerlResponseHandler works as expected, sites are delivered properly.
The ChildInitHandler definitely does not work...

Thanks for your help :-)

Michael

______________________________________________________
GRATIS für alle WEB.DE-Nutzer: Die maxdome Movie-FLAT!
Jetzt freischalten unter http://movieflat.web.de

ModPerl modperl RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact lists@gossamer-threads.com
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.