Re: Quiet Internal Server Errors

Torsten Förtsch <[email protected]>
Newsgroups gmane.comp.apache.mod-perl
Message-ID <[email protected]>
On Wednesday, 04 April 2012 10:42:47 Josh Narins wrote:
> PerlModule Phase::PostConfig
> PerlPostConfigHandler Phase::PostConfig::handler
> 
> and putting in the very simple:
> 
> use Apache2::Const -compile => 'OK';
> 
> sub post_config {
>     print STDERR "configuration is complete\n";
>     return Apache2::Const::OK;
> }
> 1;

And you expect &post_config to act as PerlPostConfigHandler?

I think it should read either

package Phase::PostConfig;
...
sub handler {...}

or

sub Phase::PostConfig::handler {...}


Also, if the handler is named "handler" you may omit "::handler" in the 
PerlPostConfigHandler argument:

PerlPostConfigHandler Phase::PostConfig

If your handler has any other name you must specify it:

PerlPostConfigHandler Phase::PostConfig::post_config


The combination you have chosen, naming the handler 
Phase::PostConfig::post_config and configuring it as 
Phase::PostConfig::handler won't work.

Torsten Förtsch

-- 
Need professional modperl support? Hire me! (http://foertsch.name)

Like fantasy? http://kabatinte.net
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.