tomazos has asked for the wisdom of the Perl Monks concerning the following question:
When I put PerlModule HTML::Mason::ApacheHandler into my apache httpd.conf, I get the following error:
$ apachectl start Syntax error on line 1024 of /home/andrew/apache/conf/httpd.conf: unknown field passed to constructor for class HTML::Mason::ExceptionCompilation fai +led in require at (eval 4) line 3. /home/andrew/apache/bin/apachectl start: httpd could not be started
Any ideas where to start looking/debugging this one?
SetHandler perl-script PerlHandler HTML::Mason::ApacheHandler
Without calling PerlModule first, it simply requires it ever time a request is processed at runtime.
In this instance, even when I do it that way it still fails with a similiar error, when it trys to load HTML::Mason::ApacheHandler:
[Mon Aug 1 10:01:09 2005] [error] unknown field \n passed to construc +tor for class HTML::Mason::ExceptionCompilation failed in require at +(eval 5) line 3.\n [Mon Aug 1 10:01:09 2005] [error] Can't locate object method "make_ah +" via package "Apache" (perhaps you forgot to load "Apache"?) at (eva +l 31) line 6.\n
$ perl -MHTML::Mason::ApacheHandler -e '' Undefined subroutine &Apache::perl_hook called at /home/andrew/cpan/li +b/HTML/Mason/ApacheHandler.pm line 356. BEGIN failed--compilation aborted at /home/andrew/cpan/lib/HTML/Mason/ +ApacheHandler.pm line 356. Compilation failed in require. BEGIN failed--compilation aborted.
I am not sure if this is the same problem.
In any case PerlModule HTML::Mason::ApacheHandler should work. See Mason basic config via httpd.conf
Could it have to do with me recently installing and then uninstalling Perl 5.8.7 in my home directory even though the system wide configuration is 5.6.1? Longshot.
Could it have something to do with me compiling mod_perl as a DSO and not having it statically linked? Another longshot.
HTML::Mason::CGIHandler works fine.
Apache::Registry also works fine.
HTML::Mason::ApacheHandler always fails with the above weird 'unknown field' error.
It could have given a nicer error message than "unknown field" though.
Especially seeing as PerlMethodHandlers are disabled by default.
-Andrew.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Weird HTML::Mason error
by davidrw (Prior) on Aug 01, 2005 at 15:34 UTC | |
by tomazos (Deacon) on Aug 01, 2005 at 15:40 UTC | |
by Arunbear (Prior) on Aug 01, 2005 at 16:08 UTC | |
by tomazos (Deacon) on Aug 01, 2005 at 17:01 UTC | |
by epoptai (Curate) on Aug 01, 2005 at 21:21 UTC | |
Re: Weird HTML::Mason error
by GoCool (Scribe) on Aug 01, 2005 at 16:59 UTC | |
by tomazos (Deacon) on Aug 01, 2005 at 17:32 UTC | |
Re: Weird HTML::Mason error
by GoCool (Scribe) on Aug 01, 2005 at 17:18 UTC | |
by tomazos (Deacon) on Aug 01, 2005 at 17:27 UTC | |
by GoCool (Scribe) on Aug 01, 2005 at 17:40 UTC | |
by tomazos (Deacon) on Aug 01, 2005 at 17:47 UTC | |
by GoCool (Scribe) on Aug 01, 2005 at 17:53 UTC |