Rt-3.0-beta/apache-1.3.27/modperl1 - nightmare

Hello users,

I am fighting a losing war with apache-1.3.27+modper1 and rt-3.0-beta.

Perhaps someone has a good eye and a pointing finger:

beastie# httpd -l
Compiled-in modules:
http_core.c
mod_so.c
mod_perl.c
suexec: enabled; valid wrapper /usr/local/sbin/suexec

beastie# apachectl configtest

Subroutine handler redefined at /opt/rt3/bin/webmux.pl line 111.
[Thu Feb 13 15:34:28 2003] [error] Undefined subroutine &RT::LoadConfig called at /opt/rt3/bin/webmux.pl line 60.
Compilation failed in require at (eval 78) line 1.

Syntax error on line 104 of /usr/local/etc/apache/virtualhosts:
Undefined subroutine &RT::LoadConfig called at /opt/rt3/bin/webmux.pl line 60.
Compilation failed in require at (eval 78) line 1.

My virtualhost for rt3:

<VirtualHost *:443>
ServerName rt3.wananchi.com
DocumentRoot /opt/rt3/share/html
AddDefaultCharset UTF-8

PerlModule Apache::DBI
PerlRequire /opt/rt3/bin/webmux.pl

<Location />
    SetHandler perl-script
    PerlHandler RT::Mason
</Location>
    cheers
   - wash 

Odhiambo Washington, wash@wananchi.com . WANANCHI ONLINE LTD (Nairobi, KE) |
http://ns2.wananchi.com/~wash/ . 1ere Etage, Loita Hse, Loita St., |
GSM: (+254) 722 743 223 . # 10286, 00100 NAIROBI |
“Oh My God! They killed init! You Bastards!”
–from a /. post

I am fighting a losing war with apache-1.3.27+modper1 and rt-3.0-beta.
beastie# apachectl configtest

Subroutine handler redefined at /opt/rt3/bin/webmux.pl line 111.
[Thu Feb 13 15:34:28 2003] [error] Undefined subroutine &RT::LoadConfig
called at /opt/rt3/bin/webmux.pl line 60. Compilation failed in require at
(eval 78) line 1.

Got bitten by the very same thing myself, but Phil Homewood helpfully sorted
this out: you can’t run RT2 & RT3 in the same Apache instance with mod_perl.
Either switch one of them off, or run one (or both) with fastcgi instead.

This might cause a few problems for people trying to upgrade from RT2->RT3
though. Anyone know of a workaround?

cheers
john

  • dr john halewood [2003-02-13 12:08]:> On Thursday 13 February 2003 16:13, Odhiambo Washington wrote:

I am fighting a losing war with apache-1.3.27+modper1 and
rt-3.0-beta. beastie# apachectl configtest

Subroutine handler redefined at /opt/rt3/bin/webmux.pl line 111.
[Thu Feb 13 15:34:28 2003] [error] Undefined subroutine
&RT::LoadConfig called at /opt/rt3/bin/webmux.pl line 60. Compilation
failed in require at (eval 78) line 1.

Got bitten by the very same thing myself, but Phil Homewood helpfully
sorted this out: you can’t run RT2 & RT3 in the same Apache instance
with mod_perl. Either switch one of them off, or run one (or both)
with fastcgi instead.

This might cause a few problems for people trying to upgrade from
RT2->RT3 though. Anyone know of a workaround?

There isn’t one, because of how mod_perl keeps a single Perl interpreter
resident in each child, and because Perl doesn’t allow multiple versions
of a module to be loaded at once.

If you could get Jesse to re-namespace RT3 from RT:: to RT3::, there
wouldn’t be a problem…

(darren)

When your hammer is C++, everything begins to look like a thumb.
– Steve Haflich

I am fighting a losing war with apache-1.3.27+modper1 and rt-3.0-beta.
beastie# apachectl configtest

Subroutine handler redefined at /opt/rt3/bin/webmux.pl line 111.
[Thu Feb 13 15:34:28 2003] [error] Undefined subroutine &RT::LoadConfig
called at /opt/rt3/bin/webmux.pl line 60. Compilation failed in require at
(eval 78) line 1.

Got bitten by the very same thing myself, but Phil Homewood helpfully sorted
this out: you can’t run RT2 & RT3 in the same Apache instance with mod_perl.
Either switch one of them off, or run one (or both) with fastcgi instead.

Thanks for this. It gave me too much grief. I don’t know why I did not think
to go to http://www.fsck.com/rtfm

This might cause a few problems for people trying to upgrade from RT2->RT3
though. Anyone know of a workaround?

Hmm, I thought one could run both using fastcgi. I’ve tried it and it did not
work.

    cheers
   - wash 

Odhiambo Washington, wash@wananchi.com . WANANCHI ONLINE LTD (Nairobi, KE) |
http://ns2.wananchi.com/~wash/ . 1ere Etage, Loita Hse, Loita St., |
GSM: (+254) 722 743 223 . # 10286, 00100 NAIROBI |
“Oh My God! They killed init! You Bastards!”
–from a /. post

Odhiambo Washington wrote:

Hmm, I thought one could run both using fastcgi. I’ve tried it and it did not
work.

It should work, though I haven’t yet tried it.

As has also been pointed out, it should also be possible to run
both under mod_perl, if you run separate apache instances on
different ports/IPs.
�|� http://www.bestpractical.com/rt – Trouble Ticketing. Free.