Where to put this in httpd.conf?

BlueNoteWeb

Verified User
Joined
Nov 4, 2004
Messages
52
Location
Denton, TX
I'm trying to install Request Tracker, part of the readme says this:

Code:
Next, add a few lines to your Apache configuration file, so that
it knows where to find RT:

<VirtualHost your.ip.address>
    ServerName your.rt.server.hostname
    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>
</VirtualHost>

I'm not really sure where to put that. I've tried using the admin tool to edit a user's httpd.conf and I've tried putting it directly into the main httpd.conf. Even when running "configtest" shows no errors, httpd refuses to start back up again.

Where should I be putting this bit of code? When I put my IP address in place of "your.ip.address," do I need a port number? What should I put for "your.rt.server.hostname"? Should that be a subdomain that already exists, or one that does not exist?

Thanks for any help you can offer.
 
It can go at the bottom of the main system httpd.conf file.

But I hope you realize that the example you gave is only an example.

If you use incorrect paths in what you add (the paths shown are most likely incorrect) or don't use the proper IP#, then of course Apache won't restart.

Jeff
 
Thanks for the reply. I contacted support about this and they helped me get the entry in the right place, but I still can't get Apache to reload. Maybe you can offer some advice?

Here's the last email I sent to DA support:
> I followed your instructions, here's what shows up in the error_log:
>
> [Thu Feb 02 23:24:33 2006] [error] Can't locate loadable object for
> module Apache::Constants in @INC (@INC contains:
> /usr/lib/perl5/5.8.3/i386-linux-thread-multi /usr/lib/perl5/5.8.3
> /usr/lib/perl5/site_perl/5.8.3/i386-linux-thread-multi
> /usr/lib/perl5/site_perl/5.8.2/i386-linux-thread-multi
> /usr/lib/perl5/site_perl/5.8.1/i386-linux-thread-multi
> /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi
> /usr/lib/perl5/site_perl/5.8.3 /usr/lib/perl5/site_perl/5.8.2
> /usr/lib/perl5/site_perl/5.8.1 /usr/lib/perl5/site_perl/5.8.0
> /usr/lib/perl5/site_perl
> /usr/lib/perl5/vendor_perl/5.8.3/i386-linux-thread-multi
> /usr/lib/perl5/vendor_perl/5.8.2/i386-linux-thread-multi
> /usr/lib/perl5/vendor_perl/5.8.1/i386-linux-thread-multi
> /usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi
> /usr/lib/perl5/vendor_perl/5.8.3 /usr/lib/perl5/vendor_perl/5.8.2
> /usr/lib/perl5/vendor_perl/5.8.1 /usr/lib/perl5/vendor_perl/5.8.0
> /usr/lib/perl5/vendor_perl . /etc/httpd/ /etc/httpd/lib/perl) at
> /usr/lib/perl5/site_perl/5.8.3/i386-linux-thread-multi/mod_perl.pm line
> 14\nCompilation failed in require at
> /usr/lib/perl5/site_perl/5.8.3/i386-linux-thread-multi/Apache.pm line
> 6.\nBEGIN failed--compilation aborted at
> /usr/lib/perl5/site_perl/5.8.3/i386-linux-thread-multi/Apache.pm line
> 6.\nCompilation failed in require at /usr/lib/perl5/5.8.3/CGI.pm line
> 189.\nCompilation failed in require at /opt/rt3/bin/webmux.pl line
> 56.\nBEGIN failed--compilation aborted at /opt/rt3/bin/webmux.pl line
> 56.\nCompilation failed in require at (eval 2) line 1.\n
>

webmux.pl is in the path specified in the file.

The most obvious answer is that Apache::Constants is not installed, however:

That's what I thought, too...but:

> cpan> install Apache::Constants
> CPAN: Storable loaded ok
> Going to read /root/.cpan/Metadata
> Database was generated on Thu, 02 Feb 2006 22:14:25 GMT
> Apache::Constants is up to date (1.09).
>
> cpan>

Any ideas on where to go next?
 
Back to the RequestTracker folk.

You're missing modules. They can help you figure out which one(s) as I don't have the time right now.

Then search these forums as to how to use customapache to crete your apache build with the modules you need.

Jeff
 
Back
Top