Installation troubles

I’ve installed rt2 without a problem on another server… worked right from compilation. However, this second server is proving to be a headache. It’s running apache1.3.27, mod_perl 1.27, PHP 4.2.x, Perl 5.6.1 yet everything I’ve done to try to make it work ends up with when going to the WebUI a dialog box pops up asking to download the filert.nextreg[1]. If I just open it from here it’s the source code from rt. I think there is a problem in my Mason somewhere but I dont know enough about it to troubleshoot. Below is the Virtualhost entry in the httpd.conf

<VirtualHost 192.168.4.117>
DocumentRoot /opt/rt2/WebRT/html/
ServerName rt.nextreg.com
PerlModule Apache::DBI
PerlFreshRestart On
PerlRequire /opt/rt2/bin/webmux.pl
TransferLog /usr/local/apache/logs/access_log
TransferLog /usr/local/apache/logs/rt_log

#DirectoryIndex index.html
SetHandler perl-script
PerlHandler RT::Mason

One last thing to note would be that .html files are to be parsed by php as well (this is needed for our site to properly work) but even when removed and restated the problem persists. If someone could help me it would be much appreciated.

Jonathan
Nextreg Domain Names Inc. Administrator

Jonathan - Nextreg Domain Names Inc. wrote:

<VirtualHost 192.168.4.117>
DocumentRoot /opt/rt2/WebRT/html/
ServerName rt.nextreg.com
PerlModule Apache::DBI
PerlFreshRestart On

Turn PerlFreshRestart Off.

PerlRequire /opt/rt2/bin/webmux.pl
TransferLog /usr/local/apache/logs/access_log
TransferLog /usr/local/apache/logs/rt_log

#DirectoryIndex index.html
SetHandler perl-script
PerlHandler RT::Mason

Everything else looks OK…
Phil Homewood, Systems Janitor, www.SnapGear.com
pdh@snapgear.com Ph: +61 7 3435 2810 Fx: +61 7 3891 3630
SnapGear - Custom Embedded Solutions and Security Appliances

Ok. I turned off the PerlFreshRestart and restarted apache using apachectl
stop and apachectl start and I’m still having the same problems. Is there
anything else I could try??

Jonathan
Nextreg Domain Names Inc. Administrator

I’ve found out more… I have 2 servers one works and the other doesn’t (2
companies) when each is run in the command line (perl
/opt/rt2/bin/webmux.pl) the one that works replys with
"
Undefined subroutine &Apache::perl_hook called at
/usr/lib/perl5/site_perl/5.6.1/HTML/Mason/ApacheHandler.pm line 542.
BEGIN failed–compilation aborted at
/usr/lib/perl5/site_perl/5.6.1/HTML/Mason/ApacheHandler.pm line 542.
Compilation failed in require at /opt/rt2/bin/webmux.pl line 20.
BEGIN failed–compilation aborted at /opt/rt2/bin/webmux.pl line 20.
"

while the one that doesnt work gives a weird error

“Can’t locate object method “server” via package “Apache” (perhaps you
forgot to load “Apache”?) at /opt/rt2/bin/webmux.pl line 113.”

what does it mean it can’t find (or I forgot to load apache)? Apache is
running thoughout this.

Jonathan
Nextreg Domain Names Inc. Administratr

I’ve found out more… I have 2 servers one works and the other doesn’t (2
companies) when each is run in the command line (perl
/opt/rt2/bin/webmux.pl) the one that works replys with
"
Undefined subroutine &Apache::perl_hook called at

while the one that doesnt work gives a weird error

“Can’t locate object method “server” via package “Apache” (perhaps you
forgot to load “Apache”?) at /opt/rt2/bin/webmux.pl line 113.”

For both installations, can you run ‘make testdeps’ in the RT make
directory, and see which libraries are not installed. I suspect that
certain Apache:: libraries are missing from the second server (use CPAN to
install them), while the first server has (I think) a version of mod_perl
compiled for previous version of perl.

                         Bruce Campbell                            RIPE
               Systems/Network Engineer                             NCC
             www.ripe.net - PGP562C8B1B             Operations/Security