Problem Starting Web Interface

Hi there -

I am going through the motions of setting up RT version 3.4.4 on a Red Hat
Enterprise 3 server. The server originally had Perl 5.8.0 and MySQL 3.23. I
upgraded Perl to version 5.8.8 without removing the original perl files, and
removed older MySQL database for version 4.1.16. The installation procedure went
by without any major problems. I am at the point of setting up the web
interface. The server currently has two websites on it, and the rt website would
be added to the list. The new virtual server will have its own ip address and
hostname.

I am modifying the httpd.conf file and have the following entries set up for the
rt server:

<VirtualHost 132.183.12.53:80>

    ServerName radoncrt.mgh.harvard.edu

    ServerAdmin ahkaplan@partners.org

    DocumentRoot /var/opt/rt3/share/html

    ErrorLog /usr/local/apache/logs/rt_error_log

    ErrorLog /usr/local/apache/logs/rt_error_log

and

Alias /rt /opt/rt3/share/html

<Location /rt>

    AddDefaultCharset UTF-8

    SetHandler perl-script

    PerlHandler RT::Mason

    PerlModule Apache::DBI

    PerlRequire /opt/rt3/bin/webmux.pl

</Location>

Whenever I try to start the server with the above information, I get the
following error:

Syntax error on line 577 of /usr/local/apache_1.3.perl/conf/httpd.conf:

Can’t locate Apache/DBI.pm in @INC (@INC contains:
/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
/usr/lib/perl5/5.8.0/i386-linux-thread-multi /usr/lib/perl5/5.8.0 .
/usr/local/apache/ /usr/local/apache/lib/perl) at (eval 5) line 3.

Line 577 corresponds to the PerlModule Apache::DBI line. I verified the
Apache::DBI module has been installed. How can I correct this? Thanks.

Can’t locate Apache/DBI.pm in @INC (@INC contains:
/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
/usr/lib/perl5/5.8.0/i386-linux-thread-multi /usr/lib/perl5/5.8.0 .
/usr/local/apache/ /usr/local/apache/lib/perl) at (eval 5) line 3.

Looks like your mod_perl is built against perl 5.8.0.

Hi there –

I tried recompiling mod_perl and it appeared to compile with perl 5.8.8.
However, when I tried starting apache with the appropriate modifications, I got
the same error message.

I checked the /usr/local/lib/perl5 directory, and there are two subdirectories
which read 5.8.8 and site_perl. The original perl directory is located at
/usr/lib/perl5 and has the following subdirectories: 5.8.0, site_perl, and
vendor_perl.

One idea I had was to rename the /usr/lib/perl5 directory and create a symbolic
link to /usr/local/lib/perl5. Once that is done, I will try to recompile
mod_perl. What are your thoughts?-----Original Message-----
From: Jesse Vincent [mailto:jesse@bestpractical.com]
Sent: Friday, February 24, 2006 3:18 PM
To: Kaplan, Andrew H.
Cc: rt-users@lists.bestpractical.com
Subject: Re: [rt-users] Problem Starting Web Interface

Can’t locate Apache/DBI.pm in @INC (@INC contains:
/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
/usr/lib/perl5/5.8.0/i386-linux-thread-multi /usr/lib/perl5/5.8.0 .
/usr/local/apache/ /usr/local/apache/lib/perl) at (eval 5) line 3.

Looks like your mod_perl is built against perl 5.8.0.