Apache config problem

With the following lines in commonhttpd.conf;

PerlRequire /usr/local/rt2/bin/webmux.pl
<Location /rt2>
SetHandler perl-script
PerlHandler RT::Mason

I get the following when trying to start httpd;

[root@hylafax conf]# /etc/rc.d/init.d/httpd start
Starting httpd-perl: [ OK ]
Starting httpd: Syntax error on line 503 of /etc/httpd/conf/commonhttpd.conf:
Invalid command ‘PerlRequire’, perhaps mis-spelled or defined by a module not included in the server configuration
[FAILED]

If I execute;
[root@hylafax conf]# perl /usr/local/rt2/bin/webmux.pl

I get;
Undefined subroutine &Apache::perl_hook called at /usr/lib/perl5/site_perl/5.8.0/HTML/Mason/ApacheHandler.pm line 542.
BEGIN failed–compilation aborted at /usr/lib/perl5/site_perl/5.8.0/HTML/Mason/ApacheHandler.pm line 542.
Compilation failed in require at /usr/local/rt2/bin/webmux.pl line 20.
BEGIN failed–compilation aborted at /usr/local/rt2/bin/webmux.pl line 20.

This is a fresh install on a default Mandrake 9.0 with apache mod_perl loading
as a DSO.

The install seemed to go smoothly with only after testdeps showed
all the necessary module loaded.

Any idea what I am missing?

I am not a Perl programmer (or much of any kind of programmer). I just want
Linux and Open Source in general to have a good rep. So be gentle.

I’m bumping up against a deadline and need to get this working.

TIA
Bobby

With the following lines in commonhttpd.conf;

PerlRequire /usr/local/rt2/bin/webmux.pl
<Location /rt2>
SetHandler perl-script
PerlHandler RT::Mason

I get the following when trying to start httpd;

[root@hylafax conf]# /etc/rc.d/init.d/httpd start
Starting httpd-perl: [ OK ]
Starting httpd: Syntax error on line 503 of /etc/httpd/conf/commonhttpd.conf:
Invalid command ‘PerlRequire’, perhaps mis-spelled or defined by a module not included in the
server configuration

This means your Apache did not load mod_perl for some reasons.

Actually (I don’t know why) RT manual recommends to have statically
compiled mod_perl.

regards,
Stan.