Install Problems

I am at the point in the RT install where I modify httpd.conf to recognize Apache::Mason. I’m getting the following error when restarting Apache:

Syntax error on line 951 of /etc/apache/httpd.conf:
Can’t locate Apache/DBI.pm in @INC (@INC contains: /usr/perl5/5.00503/sun4-solaris /usr/perl5/5.00503 /usr/perl5/site_perl/5.005/sun4-solaris /usr/perl5/site_perl/5.005 . /usr/apache/perl5/5.005/sun4-solaris) at (eval 3) line 3.

I’m a beginner at Perl, so please help me. How do I modify @INC? I’ve tried using PerlSetEnv in httpd.conf but it doesn’t work. I’ve also set PerlTaintCheck to “off”.

thanks,
Tom

I’m running solaris 2.8, Mysql, Perl 5.005

perl -MCPAN -e’install Apache::DBI’

should do you.On Mon, Jul 02, 2001 at 05:09:49PM -0500, Tom Keeney wrote:

I am at the point in the RT install where I modify httpd.conf to recognize Apache::Mason. I’m getting the following error when restarting Apache:

Syntax error on line 951 of /etc/apache/httpd.conf:
Can’t locate Apache/DBI.pm in @INC (@INC contains: /usr/perl5/5.00503/sun4-solaris /usr/perl5/5.00503 /usr/perl5/site_perl/5.005/sun4-solaris /usr/perl5/site_perl/5.005 . /usr/apache/perl5/5.005/sun4-solaris) at (eval 3) line 3.

I’m a beginner at Perl, so please help me. How do I modify @INC? I’ve tried using PerlSetEnv in httpd.conf but it doesn’t work. I’ve also set PerlTaintCheck to “off”.

thanks,
Tom

I’m running solaris 2.8, Mysql, Perl 5.005


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

jesse reed vincent – root@eruditorum.orgjesse@fsck.com
70EBAC90: 2A07 FC22 7DB4 42C1 9D71 0108 41A3 3FB3 70EB AC90

A REAL sysadmin challenge is “resurrect five dead mailserver while so ripped
to the gills on mdma that you can’t focus on any given line of text for more
than 10 seconds continuously.”
-Nathan Mehl

You don’t have the Apache DBI module installed. If your running RT 2.0 RC3
you can run make testdeps in the rt source root and make fixdeps to install
any other modules you may be missing. This is all covered in the README
file.

You Should be able to run,

perl -MCPAN -e’install Apache::DBI’

This will install the Apache DBI perl module.

Greg
Greg Dickerson
Support Manager
O’Reilly & Associates, Inc.From: “Tom Keeney” tom.keeney@novuscg.com
To: rt-users@lists.fsck.com
Sent: Monday, July 02, 2001 3:09 PM
Subject: [rt-users] Install Problems

I am at the point in the RT install where I modify httpd.conf to recognize
Apache::Mason. I’m getting the following error when restarting Apache:

Syntax error on line 951 of /etc/apache/httpd.conf:
Can’t locate Apache/DBI.pm in @INC (@INC contains:
/usr/perl5/5.00503/sun4-solaris /usr/perl5/5.00503
/usr/perl5/site_perl/5.005/sun4-solaris /usr/perl5/site_perl/5.005 .
/usr/apache/perl5/5.005/sun4-solaris) at (eval 3) line 3.

I’m a beginner at Perl, so please help me. How do I modify @INC? I’ve
tried using PerlSetEnv in httpd.conf but it doesn’t work. I’ve also set
PerlTaintCheck to “off”.

thanks,
Tom

I’m running solaris 2.8, Mysql, Perl 5.005


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

Hey all,

I think I’m having problems with some Perl module or something. make testdeps
shows everything is found, then I installed. I setup our main apache like so:

ProxyPass /rt2/ http://our.ip.addy.here:8024/rt2/

Then in the modperl apache that runs on 8024 (or something like that), I setup:

Alias /rt2/ /usr/local/rt2/WebRT/html/
PerlRequire /usr/local/rt2/bin/webmux.pl
<Location /rt2>
SetHandler perl-script
PerlHandler RT::Mason

However, when I go to http://our.ip.addy.here/rt2/ I get:

<& /Elements/Header, Title=>“Start page”, Refresh =>
$session{‘home_refresh_interval’} &> <& /Elements/Tabs, current_toptab => ‘’ &>
<& /Elements/CustomHomepageHeader, %ARGS &> <& /Elements/MyTickets &>
<& /Elements/MyRequests &> <& /Elements/Quicksearch &>
<& /Elements/Refresh, Name => ‘HomeRefreshInterval’, Default => $session
{‘home_refresh_interval’} &>
<%init> if ($ARGS{‘HomeRefreshInterval’}) { $session{‘home_refresh_interval’}
= $ARGS{‘HomeRefreshInterval’}; }

That stuff isn’t being interpreted. Anyone know know why? This is assumably a
module problem, here’s make testdeps though:

make testdeps

/usr/bin/perl ./tools/testdeps -warn mysql
Checking for Digest::MD5…found
Checking for Storable…found
Checking for DBI 1.18 …found
Checking for DBIx::DataSource 0.02 …found
Checking for DBIx::SearchBuilder 0.48 …found
Checking for HTML::Entities…found
Checking for MLDBM…found
Checking for Net::Domain…found
Checking for Net::SMTP…found
Checking for Params::Validate 0.02 …found
Checking for HTML::Mason 1.02 …found
Checking for CGI::Cookie 1.20 …found
Checking for Apache::Cookie…found
Checking for Apache::Session 1.53 …found
Checking for Date::Parse…found
Checking for Date::Format…found
Checking for MIME::Entity 5.108 …found
Checking for Mail::Mailer 1.20 …found
Checking for Getopt::Long 2.24 …found
Checking for Tie::IxHash…found
Checking for Text::Wrapper…found
Checking for Text::Template…found
Checking for File::Spec 0.8 …found
Checking for Errno…found
Checking for FreezeThaw…found
Checking for File::Temp…found
Checking for Log::Dispatch 1.6 …found
Checking for DBD::mysql 2.0416 …found

System is Linux 2.4.9
Main Apache is 1.3.24
Mod_perl Apache is 1.3.20
RT is 2.0.13

Any help would be greatly appreciated.

Phil
“They that can give up essential liberty to obtain a little temporary safety
deserve neither liberty nor safety.”
-Benjamin Franklin, 1759

After I did an upgrade from Fedora Core 4 to Fedora Core 6, RT stopped
working. The server was returning 500 errors. That was probably
something to do with FastCGI.

At any rate, I decided to rip everything out and start over again
using the RPM now in Fedora Extras.

When I try to restart the webserver after installing the RPM, I get this error:

[Tue Feb 27 11:39:42 2007] [error] Couldn’t load RT config file
/etc/rt3/RT_SiteConfig.pm as user root / group root.\nThe file is
owned by user root and group root.\nThis usually means that the
user/group your webserver is running as cannot read the file.\nBe
careful not to make the permissions on this file too liberal, because
it contains database\npasswords. You may need to put the webserver
user in the appropriate group (root) or change\npermissions be able to
run succesfully\nCan’t locate /usr/local/etc/rt3/IR/RTIR_Config.pm in
@INC (@INC contains: /usr/local/lib/rt3/lib
/usr/lib/perl5/vendor_perl/5.8.8/i386-linux-thread-multi
/usr/lib/perl5/vendor_perl/5.8.8
/usr/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi
/usr/lib/perl5/site_perl/5.8.7/i386-linux-thread-multi
/usr/lib/perl5/site_perl/5.8.6/i386-linux-thread-multi
/usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi
/usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl/5.8.7
/usr/lib/perl5/site_perl/5.8.6 /usr/lib/perl5/site_perl/5.8.5
/usr/lib/perl5/site_perl
/usr/lib/perl5/vendor_perl/5.8.7/i386-linux-thread-multi
/usr/lib/perl5/vendor_perl/5.8.6/i386-linux-thread-multi
/usr/lib/perl5/vendor_perl/5.8.5/i386-linux-thread-multi
/usr/lib/perl5/vendor_perl/5.8.7 /usr/lib/perl5/vendor_perl/5.8.6
/usr/lib/perl5/vendor_perl/5.8.5 /usr/lib/perl5/vendor_perl
/usr/lib/perl5/5.8.8/i386-linux-thread-multi /usr/lib/perl5/5.8.8 .
/etc/httpd) at /etc/rt3/RT_SiteConfig.pm line 35.\nCompilation failed
in require at /usr/lib/perl5/vendor_perl/5.8.8/RT.pm line 141.\nBEGIN
failed–compilation aborted at /usr/sbin/webmux.pl line
76.\nCompilation failed in require at (eval 2) line 1.\n
[Tue Feb 27 11:39:42 2007] [error] Can’t load Perl file:
/usr/sbin/webmux.pl for server gandolf.whizardries.com:0, exiting…

I’m obviously loathe to add apache to my root group and changing the
ownership of the file to apache:apache hasn’t worked, so I figured
that this must mean that I’m doing something wrong.

Any ideas?