[rt-users] Apache user environment

Ruslan Zakirov ruz at bestpractical.com
Thu Mar 6 07:00:00 EST 2008


most probably it's a problem with permissions on those dirs

On Thu, Mar 6, 2008 at 2:44 PM, Musolino, Peter
<peter.musolino at dbzco.com> wrote:
>
>
>
> Apologies if this has been asked before, and its more an environment problem
> as it pertains to RT.
>
> After installing all requisite perl modules, rpms, etc, making install,
> configuring files, I am having issues with apache keeping mason_handler.fcgi
> running.  It crashes out as it cannot locate Locale::Maketext::Lexicon with
> the Can't locate Locale/Maketext/Lexicon.pm in @INC (@INC contains: ……
>
> I installed all the modules from CPAN which placed most of them in
> /usr/lib/perl5/site_perl.  I copied the Lexicon module as well as the other
> requisite modules in Locale/Maketext to /usr/lib/perl5/5.8.5/ which quelled
> that error, but then it could not find DBIx::SearchBuilder.  I tried the
> same trick with copying it down a level, but this did not soothe the savage
> beast.
>
> Upon looking at the issue, I noticed that running it as root or some other
> user, that I had no compilation errors:
>
> root # perl
> use Locale::Maketext::Lexicon;
>
> However, running it as apache:
>
> root# sudo -u apache perl
> use Locale::Maketext::Lexicon;
> Can't locate Locale/Maketext/Lexicon.pm in @INC (@INC contains:
> /usr/lib/perl5/5.8.5/i386-linux-thread-multi /usr/lib/perl5/5.8.5
> /usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi
> /usr/lib/perl5/site_perl/5.8.4/i386-linux-thread-multi
> /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.5 /usr/lib/perl5/site_perl/5.8.4
> /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.5/i386-linux-thread-multi
> /usr/lib/perl5/vendor_perl/5.8.4/i386-linux-thread-multi
> /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.5 /usr/lib/perl5/vendor_perl/5.8.4
> /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 .) at - line 1.
>
> BEGIN failed--compilation aborted at - line 1.
>
> The apache user seems to have the proper perl include paths, pointing out
> the designated location of the aforementioned cpan installation point:
>
> root # sudo -u apache perl
> foreach $i (@INC) {
> print $i;
> print "\n";
> }
> /usr/lib/perl5/5.8.5/i386-linux-thread-multi
> /usr/lib/perl5/5.8.5
> /usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi
> /usr/lib/perl5/site_perl/5.8.4/i386-linux-thread-multi
> /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.5 <---|
> /usr/lib/perl5/site_perl/5.8.4
> /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.5/i386-linux-thread-multi
> /usr/lib/perl5/vendor_perl/5.8.4/i386-linux-thread-multi
> /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.5
> /usr/lib/perl5/vendor_perl/5.8.4
> /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
>
> Has anyone had this type of problem before?
> Thanks in advance for any help
>
> Regards,
>
> Peter Musolino
> peter.musolino at dbzco.com
>
>
> This e-mail message is intended only for the named recipient(s) above. It
> may contain confidential information. If you are not the intended recipient,
> you are hereby noti
> fied that any use, dissemination, distribution or copying of this e-mail and
> any attachment(s) is strictly prohibited. D.B. Zwirn & Co., L.P. reserves
> the right to archive
>  and monitor all e-mail communications through its networks. If you have
> received this e-mail in error, please immediately notify the sender by
> replying to this e-mail and
>  delete the message and any attachment(s) from your system. Thank you.
>
>
> _______________________________________________
>  http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users
>
>  Community help: http://wiki.bestpractical.com
>  Commercial support: sales at bestpractical.com
>
>
>  Discover RT's hidden secrets with RT Essentials from O'Reilly Media.
>  Buy a copy at http://rtbook.bestpractical.com
>



-- 
Best regards, Ruslan.


More information about the rt-users mailing list