Apache config help?

Ok I’ve been struggling with this install of RT 2.04 for a day and a half
now and I need a bit of help… I know my way around a RedHat 7.1 install
since I setup Bugzilla, and Perl, and MySQL, and Apache on the same system a
few months ago.

Now I’m trying to set up RT2 on the same server to use a seperate database
from the bugzilla stuff. I’ve been following the setup guide and I’ve
finally gotten to the part about modifying the Apache configuration files
(the testdeps and fixdeps were a big help, although it took some work to get
Apache::Cookie installed).

I want RT to be accessable from a subdirectory on my web server (ie
http://192.168.10.1/rt , the server is on our internal network and doesnt
have a full domain address. bugzilla is accessed from
http://192.168.10.1/bugzilla on the same server)

I have all the necessary modules installed (as proven by testdeps) and I’m
in the process of modifying the Apache httpd.conf file.

I have a simlink to /usr/local/rt2/WebRT/html placed in the Apache htdocs
directory and in the httpd.conf file I’ve entered the lines:

RT2 config

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

When I try to restart apache it says to check the config file for Syntax
errors. It refuses to recognize PerlModule, PerlRequire and PerlHandler and
wont use the config file as long as they are present. I’m pretty sure Mason
and mod_perl are installed since testdeps didnt find anything wrong.

If I comment out all these lines and just go to http://192.168.10.1/rt I get
basic text headers instead of the Rt page.

What am I missing? Any Suggestions?

Martin

I have all the necessary modules installed (as proven by testdeps)

Are you loading all of them in your apache config?

When I try to restart apache it says to check the config file for Syntax
errors. It refuses to recognize PerlModule, PerlRequire and PerlHandler and
wont use the config file as long as they are present.

Sounds to me like you’re missing a

LoadModule perl_module /path/to/mod_perl.so

I dont have a mod_perl.so file anywhere on my server, only a libperl.so, and
a LoadModule perl_module /path/libperl.so command in httpd.conf just gives
me an error.

When I installed mod_perl it asked for the source files, did a lot of
copying and installing and didnt give me any errors. I assumed that meant
everything was set up correctly and Apache would now accept PerlModule,
Perlhandler, etc, but apparently I was wrong. There’s nothing in the RT
Documentation that says I need to load modules manually in the Apache config
files.

I’ve had one problem after another trying to get this installed and I’m
afraid I’m pretty close to just dumping it and going with something else
unless I can get this running within the next day.

Does anyone have other suggestions for me to try?

Hello,

Yes you don’t have to load the module with static install. When you do make
install, I don;t think it will replace the existing httpd binary file. You
should delete the current one in (/path/to/apache/bin/httpd) or rename it
and make install again

And try :
/path/to/apache/bin/httpd -l
(l in small cap)

It will display the list of active modules , and you should see:
mod_perl.c in the list

Steve Poirier
Inet Technologies Inc.
http://www.inet-technologies.comFrom: “Martin Hemmings” mhemmings@trakonic.com
To: “rt-users-list” rt-users@lists.fsck.com
Sent: August 8, 2001 14:12
Subject: RE: [rt-users] Apache config help?

I dont have a mod_perl.so file anywhere on my server, only a libperl.so,
and
a LoadModule perl_module /path/libperl.so command in httpd.conf just gives
me an error.

When I installed mod_perl it asked for the source files, did a lot of
copying and installing and didnt give me any errors. I assumed that meant
everything was set up correctly and Apache would now accept PerlModule,
Perlhandler, etc, but apparently I was wrong. There’s nothing in the RT
Documentation that says I need to load modules manually in the Apache
config
files.

I’ve had one problem after another trying to get this installed and I’m
afraid I’m pretty close to just dumping it and going with something else
unless I can get this running within the next day.

Does anyone have other suggestions for me to try?

-----Original Message-----
From: Dave Sherohman [mailto:dsherohman@westling.com]
Sent: August 8, 2001 1:27 PM
To: Martin Hemmings
Cc: rt-users-list
Subject: Re: [rt-users] Apache config help?

I have all the necessary modules installed (as proven by testdeps)

Are you loading all of them in your apache config?

When I try to restart apache it says to check the config file for
Syntax
errors. It refuses to recognize PerlModule, PerlRequire and
PerlHandler and
wont use the config file as long as they are present.

Sounds to me like you’re missing a

LoadModule perl_module /path/to/mod_perl.so


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

Martin,

I had the same problem when I set up RT 2 on my red hat linux 7.0 system.
I noticed that there is a condition placed on the ‘LoadModule perl_module
modules/libperl.so’ in the httpd.conf file and also on ‘AddModule
mod_perl.c’.
The default httpd.conf says :
</IfDefine HAVE_PERL>
LoadModule perl_module modules/libperl.so

and

AddModule mod_perl.c

I commented out the IfDefine statements and that seemed to fix the problem!
I had installed apache with linux, I’m assuming the httpd.conf file that
resulted is the ‘usual’ default httpd.conf file.
I checked to see if the perl module was loading by looking at
/etc/httpd/logs/error_log When httpd starts an entry is placed in that
file with details of some modules (ones that are not compiled with apache),
my system reports the following :
‘[notice] Apache/1.3.12(Unix) (Red Hat/Linux) mod_ssl/2.6.6 OpenSSL/0.9.5a
mod_perl/1.24 configured – resuming normal operations’

The only other thing is to ensure that your perl specific tags are placed
after the load module statements!

Regards,
Stuart-----Original Message-----
From: Martin Hemmings [mailto:mhemmings@trakonic.com]
Sent: Thursday, 9 August 2001 2:12
To: rt-users-list
Subject: [rt-users] Apache config help?

Ok I’ve been struggling with this install of RT 2.04 for a day and a half
now and I need a bit of help… I know my way around a RedHat 7.1 install
since I setup Bugzilla, and Perl, and MySQL, and Apache on the same system a
few months ago.

Now I’m trying to set up RT2 on the same server to use a seperate database
from the bugzilla stuff. I’ve been following the setup guide and I’ve
finally gotten to the part about modifying the Apache configuration files
(the testdeps and fixdeps were a big help, although it took some work to get
Apache::Cookie installed).

I want RT to be accessable from a subdirectory on my web server (ie
http://192.168.10.1/rt , the server is on our internal network and doesnt
have a full domain address. bugzilla is accessed from
http://192.168.10.1/bugzilla on the same server)

I have all the necessary modules installed (as proven by testdeps) and I’m
in the process of modifying the Apache httpd.conf file.

I have a simlink to /usr/local/rt2/WebRT/html placed in the Apache htdocs
directory and in the httpd.conf file I’ve entered the lines:

RT2 config

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

When I try to restart apache it says to check the config file for Syntax
errors. It refuses to recognize PerlModule, PerlRequire and PerlHandler and
wont use the config file as long as they are present. I’m pretty sure Mason
and mod_perl are installed since testdeps didnt find anything wrong.

If I comment out all these lines and just go to http://192.168.10.1/rt I get
basic text headers instead of the Rt page.

What am I missing? Any Suggestions?

Martin

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

I commented out the IfDefine statements and that seemed to fix the problem!

Running httpd with -DHAVE_PERL will work too. The standard code that you
saw in the httpd.conf only loads mod_perl if the HAVE_PERL variable is
set.

JustThe.net LLC - Steve “Web Dude” Sobol, CTO - sjsobol@JustThe.net

Donate a portion of your monthly ISP bill to your favorite charity or
non-profit organization! E-mail me for details.

Ok, I think I’ve gotten mod-perl correctly installed now… when I do a
/usr/local/apache/bin/httpd -l I see mod_perl.c in the list. I had to
download Apache and mod_perl again, install mod_perl using the source
directory for the apache that I just downloaded, rebuild Apache to the same
directory that I had used previously and restart httpd. (The step-by-step
instructions were on take23.org)

Now the error_log is showing “[notice] Apache/1.3.19 (Unix) mod_perl/1.26
configured – resuming normal operati
ons” after a restart.

One problem taken care of…

New Problem
Now the page isn’t being loaded… instead the error_log file is showing:

[warn] [Mason] Cannot resolve file to component:
/usr/local/apache/htdocs/rt/inde
x.html (is file outside component root?)

I can manually follow the links and find index.html with no problems… the
only thing I could think of is that all these components have root/bin
listed as owner/group (since I’m the root user when I installed them, while
apache is running as user/group apache/apache. Would that make a
difference? What permissions should be changed on the RT2
files/directories?

Here’s part of my httpd.conf file:

#rt simlink in /usr/local/apache/htdocs points to /usr/local/rt2/WebRT/html

RT2 config

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

There is a problem with symlink and mason. Put the full path, don’t use a
symlink.
Steve Poirier
Directeur d�veloppement / Projet Manager
Inet Technologies Inc.From: “Martin Hemmings” mhemmings@trakonic.com
To: “rt-users-list” rt-users@lists.fsck.com
Sent: August 9, 2001 09:58
Subject: RE: [rt-users] Apache config help?

Ok, I think I’ve gotten mod-perl correctly installed now… when I do a
/usr/local/apache/bin/httpd -l I see mod_perl.c in the list. I had to
download Apache and mod_perl again, install mod_perl using the source
directory for the apache that I just downloaded, rebuild Apache to the
same
directory that I had used previously and restart httpd. (The
step-by-step
instructions were on take23.org)

Now the error_log is showing “[notice] Apache/1.3.19 (Unix) mod_perl/1.26
configured – resuming normal operati
ons” after a restart.

One problem taken care of…

New Problem
Now the page isn’t being loaded… instead the error_log file is
showing:

[warn] [Mason] Cannot resolve file to component:
/usr/local/apache/htdocs/rt/inde
x.html (is file outside component root?)

I can manually follow the links and find index.html with no problems…
the
only thing I could think of is that all these components have root/bin
listed as owner/group (since I’m the root user when I installed them,
while
apache is running as user/group apache/apache. Would that make a
difference? What permissions should be changed on the RT2
files/directories?

Here’s part of my httpd.conf file:

#rt simlink in /usr/local/apache/htdocs points to
/usr/local/rt2/WebRT/html

RT2 config

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

-----Original Message-----
From: rt-users-admin@lists.fsck.com
[mailto:rt-users-admin@lists.fsck.com]On Behalf Of Steve Poirier
Sent: August 8, 2001 3:40 PM
To: Martin Hemmings
Cc: rt-users@lists.fsck.com
Subject: Re: [rt-users] Apache config help?

Hello,

Yes you don’t have to load the module with static install. When
you do make
install, I don;t think it will replace the existing httpd binary file.
You
should delete the current one in (/path/to/apache/bin/httpd) or rename
it
and make install again

And try :
/path/to/apache/bin/httpd -l
(l in small cap)

It will display the list of active modules , and you should see:
mod_perl.c in the list


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