Question about RedHat Installation

I performed a complete installation of RedHat 8.0 (all
packages) which included Apache, PHP and Perl. I was under
the impression it loaded mod_perl.

To make RT work, I downloaded the newest versions.
Satisfied all dependencies on CPAN Perl modules and ran a
./config with changes to webuser/group to apache (default
name given by RH). Everthing installed without error
except for a couple (2 out of 98) tests in HTML::Mason
module. I also edited the httpd.conf to match the README,
however I may have bungled it. For the most part I cut and
pasted, ommitting the 4 lines for perlmod2, and the
“servername”.

The problem is the HTML doesn’t parse. I know Apache is
working because it responds to port 80, however the index
displays the

“%# BEGIN LICENSE BLOCK %# %# Copyright (c) 1996-2003 Jesse
Vincent %# %# (Except where explictly superceded by other
copyright notices) %# %# This work is made available to you
under the…”
instead of processing it. So I’m not sure if this is:
mod_perl problem (due to HTML::Mason complaints)
apache problem (due to my server not having a DNS-given
hostname)
or something with the build of RT.

I did search for the RTFM but it’s not coming up. I’m not
sure if the fsck.com site is down or if its a firewall
issue at my work.

I appreicate any help.
John Schubert

The problem is the HTML doesn’t parse. I know Apache is
working because it responds to port 80, however the index
displays the

“%# BEGIN LICENSE BLOCK %# %# Copyright (c) 1996-2003 Jesse
Vincent %# %# (Except where explictly superceded by other
copyright notices) %# %# This work is made available to you
under the…”
instead of processing it. So I’m not sure if this is:
mod_perl problem (due to HTML::Mason complaints)
apache problem (due to my server not having a DNS-given
hostname)
or something with the build of RT.

It is an apache configuration problem. You are getting
the default text/html handler instead of a perlhandler.
Your
SetHandler perl-script
PerlHandler RT::Mason
aren’t taking effect. There is a separate rpm for mod_perl.
Does ‘rpm -q mod_perl’ say you have one?

Les Mikesell
les@futuresource.com

I got into the FAQ after sending my post and started to
suspect it was the apache server configuration. The output
from the command you mention is:
mod_perl-1.99_05-3

As soon as I commented out the:

added the next 6 lines for RT

#Alias /rt2 /usr/local/rt2/WebRT/html
#PerlRequire /usr/local/rt2/bin/webmux.pl
#<Location /rt2>

SetHandler perl-script

PerlHandler RT::Mason

#

Apache would restart without complaint. I read in the RTFM
to edit the $WEBPATH in config.pm, but a global “find”
failed to show me where that file is located.

With the 6 lines included, I see a : “Can’t locate
/usr/local/rt2/bin/webmux.pl in @INC…” error during httpd
restart. I searched for the webmux file and found it in
two places. I’m not sure how I ended up with two, but they
are
/var/www/html/rt-3-0-6/bin/webmux.pl
/opt/rt3/bin/webmux.pl

The first location is where I extracted the RT gz/tar file.
I put it in /var/www/html because that’s the apache root.
I believe RT created the second on in /opt by default.

It almost sounds like this is a path issue, however I’m not
sure how to change the path since I’m not sure where to
look (it’s not as easy as just vi .profile or echo $PATH,
AFAIK).

I greatly appreciate your time. I am used to working with
Solaris on Sun boxes, so this is my first forray into a
different flavor. So far, I miss my Ultra-10 :slight_smile:

JohnOn 14 Oct 2003 15:14:10 -0500 Les Mikesell les@futuresource.com wrote:

On Tue, 2003-10-14 at 14:48, John Schubert wrote:

The problem is the HTML doesn’t parse. I know Apache
is
working because it responds to port 80, however the
index
displays the

“%# BEGIN LICENSE BLOCK %# %# Copyright (c) 1996-2003
Jesse
Vincent %# %# (Except where explictly superceded by
other
copyright notices) %# %# This work is made available to
you
under the…”
instead of processing it. So I’m not sure if this is:
mod_perl problem (due to HTML::Mason complaints)
apache problem (due to my server not having a DNS-given
hostname)
or something with the build of RT.

It is an apache configuration problem. You are getting
the default text/html handler instead of a perlhandler.
Your
SetHandler perl-script
PerlHandler RT::Mason
aren’t taking effect. There is a separate rpm for
mod_perl.
Does ‘rpm -q mod_perl’ say you have one?


Les Mikesell
les@futuresource.com

I spotted the RT change from 2 to 3, but that made no
difference. I also changed the PerlRequire to the paths of
the two webmux.pl locations and it still complains it can’t
find it. I didn’t include the whole error, so here it is:

httpd failed. The error was: Starting httpd: [Tue Oct 14
15:06:46 2003] [error] Can’t locate Apache.pm in @INC (@INC
contains: /opt/rt3/local/lib /opt/rt3/lib
/usr/lib/perl5/5.8.0/i386-linux-thread-multi
/usr/lib/perl5/5.8.0
/usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi
/usr/lib/perl5/site_perl/5.8.0 /usr/lib/perl5/site_perl
/usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi
/usr/lib/perl5/vendor_perl/5.8.0 /usr/lib/perl5/vendor_perl
.) at /usr/lib/perl5/5.8.0/CGI.pm line 161.
Compilation failed in require at /opt/rt3/bin/webmux.pl
line 54.
BEGIN failed–compilation aborted at /opt/rt3/bin/webmux.pl
line 54.
Compilation failed in require at (eval 1) line 1.

[Tue Oct 14 15:06:46 2003] [error] Can’t load Perl file:
/opt/rt3/bin/webmux.pl for server localhost.localdomain:0,
exiting…

JohnOn Tue, 14 Oct 2003 14:51:58 -0700 “John Schubert” jschubert@linearcorp.com wrote:

I got into the FAQ after sending my post and started to
suspect it was the apache server configuration. The
output
from the command you mention is:
mod_perl-1.99_05-3

As soon as I commented out the:

added the next 6 lines for RT

#Alias /rt2 /usr/local/rt2/WebRT/html
#PerlRequire /usr/local/rt2/bin/webmux.pl
#<Location /rt2>

SetHandler perl-script

PerlHandler RT::Mason

#

Apache would restart without complaint. I read in the
RTFM
to edit the $WEBPATH in config.pm, but a global “find”
failed to show me where that file is located.

With the 6 lines included, I see a : “Can’t locate
/usr/local/rt2/bin/webmux.pl in @INC…” error during
httpd
restart. I searched for the webmux file and found it in
two places. I’m not sure how I ended up with two, but
they
are
/var/www/html/rt-3-0-6/bin/webmux.pl
/opt/rt3/bin/webmux.pl

The first location is where I extracted the RT gz/tar
file.
I put it in /var/www/html because that’s the apache
root.
I believe RT created the second on in /opt by default.

It almost sounds like this is a path issue, however I’m
not
sure how to change the path since I’m not sure where to
look (it’s not as easy as just vi .profile or echo $PATH,
AFAIK).

I greatly appreciate your time. I am used to working
with
Solaris on Sun boxes, so this is my first forray into a
different flavor. So far, I miss my Ultra-10 :slight_smile:

John
On 14 Oct 2003 15:14:10 -0500 Les Mikesell les@futuresource.com wrote:
SNIP

I’m still hashing through this. I installed a few more
mod_perl modules (Apache::DBI and Apache::Registry) which
it looks like are needed, however weren’t listed in the
dependency listing. I poked through the mod_perl
documentation and tried pasting in:
<Location /rt>
SetHandler perl-script
PerlHandler Apache::Registry
Options ExecCGI
allow from all
PerlSendHeader On

and now the page no longer parses text or kills the httpd
at restart. However, looking at the .conf in RT’s
documenation it uses PerlHandler RT::Mason. Where is this?
I searched CPAN and don’t see it.

Either way, now the /www/root/rt URL returns a “Server
error 500”. I hope this means I’ve made some progress.

Thanks for the help so far and in advance.

JohnOn Tue, 14 Oct 2003 15:13:43 -0700 “John Schubert” jschubert@linearcorp.com wrote:

I spotted the RT change from 2 to 3, but that made no
difference. I also changed the PerlRequire to the paths
of
the two webmux.pl locations and it still complains it
can’t
find it. I didn’t include the whole error, so here it
is:

httpd failed. The error was: Starting httpd: [Tue Oct 14
15:06:46 2003] [error] Can’t locate Apache.pm in @INC
(@INC
contains: /opt/rt3/local/lib /opt/rt3/lib
/usr/lib/perl5/5.8.0/i386-linux-thread-multi
/usr/lib/perl5/5.8.0
/usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi
/usr/lib/perl5/site_perl/5.8.0 /usr/lib/perl5/site_perl
/usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi
/usr/lib/perl5/vendor_perl/5.8.0
/usr/lib/perl5/vendor_perl
.) at /usr/lib/perl5/5.8.0/CGI.pm line 161.
Compilation failed in require at /opt/rt3/bin/webmux.pl
line 54.
BEGIN failed–compilation aborted at
/opt/rt3/bin/webmux.pl
line 54.
Compilation failed in require at (eval 1) line 1.

[Tue Oct 14 15:06:46 2003] [error] Can’t load Perl file:
/opt/rt3/bin/webmux.pl for server
localhost.localdomain:0,
exiting…

John
On Tue, 14 Oct 2003 14:51:58 -0700 “John Schubert” jschubert@linearcorp.com wrote:

I got into the FAQ after sending my post and started to
suspect it was the apache server configuration. The
output
from the command you mention is:
mod_perl-1.99_05-3

As soon as I commented out the:

added the next 6 lines for RT

#Alias /rt2 /usr/local/rt2/WebRT/html
#PerlRequire /usr/local/rt2/bin/webmux.pl

#<Location /rt2>

SetHandler perl-script

PerlHandler RT::Mason

#

Apache would restart without complaint. I read in the
RTFM
to edit the $WEBPATH in config.pm, but a global “find”
failed to show me where that file is located.

With the 6 lines included, I see a : “Can’t locate
/usr/local/rt2/bin/webmux.pl in @INC…” error during
httpd
restart. I searched for the webmux file and found it
in
two places. I’m not sure how I ended up with two, but
they
are
/var/www/html/rt-3-0-6/bin/webmux.pl
/opt/rt3/bin/webmux.pl

The first location is where I extracted the RT gz/tar
file.
I put it in /var/www/html because that’s the apache
root.
I believe RT created the second on in /opt by default.

It almost sounds like this is a path issue, however I’m
not
sure how to change the path since I’m not sure where to
look (it’s not as easy as just vi .profile or echo
$PATH,
AFAIK).

I greatly appreciate your time. I am used to working
with
Solaris on Sun boxes, so this is my first forray into a
different flavor. So far, I miss my Ultra-10 :slight_smile:

John
On 14 Oct 2003 15:14:10 -0500 Les Mikesell les@futuresource.com wrote:
SNIP


rt-users mailing list
rt-users@lists.fsck.com
http://lists.fsck.com/mailman/listinfo/rt-users

Have you read the FAQ? The RT FAQ Manager lives at
http://fsck.com/rtfm

Just asking for advice before I install anything. I had
posted to the list about RH8 problems, and I could never
get the OS to make mod_perl1, Apache1 and MySQL play
together. So I just installed a complete (all packages)
version of RH 7.3 as a “server”.

Before I get started, should I recompile apache with MySQL?
Or just install it as a stand alone? Is (or Are) there any
other things I need to install or modify on my “virgin” RH
7.3 box before attempting to install RT?

I have read the fine RT manual, but since I’ve wasted the
last 4 weeks trying to get RH8 to work I’m wanting to avoid
any further problems. I’m at the point I’m almost willing
to buy a Sun machine and donate it to work. Any advice
will be greatly appreciated.

John Schubert