RT+Apache2+FastCGI Question

Hey Everyone,
I’m attempting to RT running under FastCGI with apache2.

I’ve gotten everything configured and compiled, but when I goto start
apache I’m getting the following error in the error_log:
Can’t locate /opt/rt3/etc/RT_SiteConfig.pm in @INC (@INC contains:
/opt/rt3/local/lib /opt/rt3/lib /opt/rt3/etc /etc/perl
/usr/lib/perl5/site_perl/5.8.5/i686-linux
/usr/lib/perl5/site_perl/5.8.5 /usr/lib/perl5/site_perl/5.8.4
/usr/lib/perl5/site_perl/5.8.4/i686-linux /usr/lib/perl5/site_perl
/usr/lib/perl5/vendor_perl/5.8.5/i686-linux
/usr/lib/perl5/vendor_perl/5.8.5 /usr/lib/perl5/vendor_perl
/usr/lib/perl5/5.8.5/i686-linux /usr/lib/perl5/5.8.5
/usr/local/lib/site_perl .) at /opt/rt3/lib/RT.pm line 123.
BEGIN failed–compilation aborted at /opt/rt3/bin/webmux.pl line 77.
Compilation failed in require at /opt/rt3/bin/mason_handler.fcgi line 52.

Here is my apache conf for RT, I’m trying to run it in a subdir under my root:

AddDefaultCharset UTF-8
Alias /rt/NoAuth/images/ /opt/rt3/share/html/NoAuth/images/
<Location /rt/NoAuth/images >
SetHandler default-handler

FastCgiServer /opt/rt3/bin/mason_handler.fcgi -idle-timeout 120 -processes 6
ScriptAlias /rt/ /opt/rt3/bin/mason_handler.fcgi/

The error is coming from this line in lib/RT.pm
require $SITE_CONFIG_FILE
|| die (“Couldn’t load RT config file ‘$SITE_CONFIG_FILE’\n$@”);

Above in the file is the following setup of SITE_CONFIG_FILE
$SITE_CONFIG_FILE = ‘/opt/rt3/etc/RT_SiteConfig.pm’;

I’ve tried foing the same require statement just from the perl command
interpretor and it works fine. Anyone have any ideas.

Mike
http://www.blahz.org/

-----Original Message-----
From: rt-users-bounces@lists.bestpractical.com
[mailto:rt-users-bounces@lists.bestpractical.com] On Behalf
Of Mike Roest

Hey Everyone,
I’m attempting to RT running under FastCGI with apache2.

I’ve gotten everything configured and compiled, but when I goto start
apache I’m getting the following error in the error_log:
Can’t locate /opt/rt3/etc/RT_SiteConfig.pm in @INC (@INC contains:

I’d say check the permissions of RT_SiteConfig.pm and all directories
leading up to it. Make sure they are readable by the user that apache
is running as.

I’ve tried foing the same require statement just from the perl command
interpretor and it works fine. Anyone have any ideas.

Did you run the interpretor as the apache user?

This transmission (including any attachments) may contain confidential information, privileged material (including material protected by the solicitor-client or other applicable privileges), or constitute non-public information. Any use of this information by anyone other than the intended recipient is prohibited. If you have received this transmission in error, please immediately reply to the sender and delete this information from your system. Use, dissemination, distribution, or reproduction of this transmission by unintended recipients is not authorized and may be unlawful.

I’ve gotten everything configured and compiled, but when I goto start
apache I’m getting the following error in the error_log:
Can’t locate /opt/rt3/etc/RT_SiteConfig.pm in @INC (@INC contains:

does /opt/rt3/etc/RT_SiteConfig.pm exist, and is it readable by the
user apache runs as?

seph

Hi There,
It looks like that was the problem. Even though running the perl
interpreter as apache worked. Once I changed ownership of the lib and
etc directories it now looks to be working.

ThanksOn 6/20/05, seph seph@directionless.org wrote:

I’ve gotten everything configured and compiled, but when I goto start
apache I’m getting the following error in the error_log:
Can’t locate /opt/rt3/etc/RT_SiteConfig.pm in @INC (@INC contains:

does /opt/rt3/etc/RT_SiteConfig.pm exist, and is it readable by the
user apache runs as?

seph

Mike
http://www.blahz.org/