Webmux.pl crashes apache2 start

Hello world!

I have a brand new installation of RT 3.8.2.
The configure, testdeps, e install worked propperly, and I was able to
run initialize-database, all ok so far.

But setting apache to run the web interface fails because of bin/webmux.pl file.

Whenever I have the line:
PerlRequire “/opt/rt-3.8/bin/webmux.pl”
in my apache config file, apache crashes with the error:

[error] Can’t locate object method “Config” via package “RT” at
/opt/rt-3.8/bin/webmux.pl line 100.\nBEGIN failed–compilation aborted
at /opt/rt-3.8/bin/webmux.pl line 102.\nCompilation failed in require
at (eval 243) line 1.\n

I’ve tryed som workarounds found at this list archives and other
foruns, but none worked.

I’ve tryed upgrading UNIVERSAL::require as suggested, but it was
alread in the newest version.

I checked if it could be the config of SELINUX, but it was already set
to permissive. Nothing in the /var/log/messages.

Also tryed adding the code bellow in webmux.pl, after the BEGIN block,
but nothing changed.

require Apache::RequestUtil;
no warnings ‘redefine’;
my $sub = *Apache::request{CODE};
*Apache::request = sub {
my $r;
eval { $r = $sub->(‘Apache’); };
# warn $@ if $@;
return $r;
};

I have apache 2.2.9-10 and mod_perl 2.0.4-1 in a Debian/Lenny box.

Any fixes for that?

Krishnamurti Lelis Lima Vieira Nunes

Hello world!

Hello!

Whenever I have the line:
PerlRequire “/opt/rt-3.8/bin/webmux.pl”
in my apache config file, apache crashes with the error:

[error] Can’t locate object method “Config” via package “RT” at
/opt/rt-3.8/bin/webmux.pl line 100.\nBEGIN failed–compilation aborted
at /opt/rt-3.8/bin/webmux.pl line 102.\nCompilation failed in require
at (eval 243) line 1.\n

From my original blundering attempts to get RT up and running,
webmux.pl is what complains when something is misconfigged or
incorrect in basic setup. RT_SiteConfig is read, modules are loaded,
etc., and if it chokes on any of this, webmux.pl cannot execute
properly; and since you’re requiring it for apache to run, apache
cannot start.

We should probably see your RT_SiteConfig file, for starters. If you
have any plugins set, comment them out maybe and see if it starts
then?

Rob

/chown -R us:us /yourbase