As I mentioned in an email posting yesterday I have not been
able to use mod_perl with OTRS. When I set up apache (apache2 / mod_perl2) per
the OTRS instructions I get the following error during startup…
[Mon Apr 17 18:41:54 2006] [error] Can't locate
Apache/RequestRec.pm in @INC (@INC contains: //../../Kernel/cpan-lib //../..
../../ /usr/local/otrs/Kernel/cpan-lib /usr/local/otrs/
/usr/local/lib/perl5/site_perl/5.8.6/mach /usr/local/lib/perl5/site_perl/5.8.6
/usr/local/lib/perl5/site_perl/5.6.2 /usr/local/lib/perl5/site_perl/5.6.1
/usr/local/lib/perl5/site_perl /usr/local/lib/perl5/5.8.6/BSDPAN
/usr/local/lib/perl5/5.8.6/mach /usr/local/lib/perl5/5.8.6 . /usr/local //../..
//../../Kernel/cpan-lib) at /usr/local/lib/perl5/5.8.6/CGI/Carp.pm line 471,
<PRODUCT> line 4.\n
Does anyone know what’s causing this? Here’s the
file I’m “Include’ing” in my httpd.conf…
---------<beginning of file>---------------------
# agent, admin and customer frontend
ScriptAlias /otrs/ "/usr/local/otrs/bin/cgi-bin/"
Alias /otrs-web/
"/usr/local/otrs/var/httpd/htdocs/"
# load all otrs modules
Perlrequire /usr/local/otrs/scripts/apache2-perl-startup.pl
# Apache::Reload - Reload Perl Modules when Changed on Disk
PerlModule Apache2::Reload
PerlInitHandler Apache2::Reload
PerlModule Apache2::RequestRec
# set mod_perl2 options
<Location /otrs>
# ErrorDocument 403 /otrs/customer.pl
AllowOverride None
ErrorDocument 403 /otrs/index.pl
SetHandler perl-script
PerlResponseHandler ModPerl::Registry
Options +ExecCGI
PerlOptions +ParseHeaders
PerlOptions +SetupEnv
Order allow,deny
Allow from all
</Location>
# directory settings
<Directory "/usr/local/otrs/bin/cgi-bin/">
AllowOverride None
Options +ExecCGI -Includes
Order allow,deny
Allow from all
</Directory>
<Directory
"/usr/local/otrs/var/httpd/htdocs/">
AllowOverride None
Order allow,deny
Allow from all
</Directory>
# MaxRequestsPerChild (so no apache child will be to big!)
MaxRequestsPerChild 400
---------<end of file>---------------------
Thank you,
Computer Associates, Inc.
Phone: (401)232-2600, Fax: (401)232-7778
Email: support@cainetserv.net
Web: http://www.cainetserv.com/