
Has anyone successfully gotten OTRS to work with Apache2 + mod_perl-2 (mod_perl-1.99_07)? I've finally conquered one problem and hit another. The first problem I had was not being able to run installer.pl. The error_log reported the following: [Thu Jan 02 16:55:37 2003] [error] 27204: ModPerl::Registry: Can't locate Kernel/Config.pm in @INC (@INC contains: //../..m /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 .) at /opt/OpenTRS/bin/cgi-bin/installer.pl line 39. BEGIN failed--compilation aborted at /opt/OpenTRS/bin/cgi-bin/installer.pl line 39. If you look in this message the first include path is //../.. which is being returned from the following in installer.pl: # OTRS root directory use FindBin qw($Bin); use lib "$Bin/../.."; The 'use lib' statement is setting //../.. instead of /opt/OpenTRS/bin/cgi-bin/../.. which seems to me that mod_perl is thinking that the perl script is running from / to the webserver. So to combat this I tried hard-coding an include path in perlstart.pl that I'm calling in PerlRequire in httpd.conf which seems to make it find Kernel/Config.pm but now fails with the following: [Fri Jan 03 14:38:14 2003] [error] 14175: ModPerl::Registry: Can't read ../../Kernel/Output/HTML/Standard/Header.dtl: No such file or directory at /opt/OpenTRS//Kernel/Output/HTML/Generic.pm line 193. I'm assming the same problem with the @INC issue is the same ../../ problem. Can anyone help me? It seems that the script is running in almost a chroot-type environment. -- Jason McCormick Network/Systems Administrator - Lexi-Comp, Inc. Ph: 330.656.0239 Fax: 330.656.4307 Email: jason.mccormick@lexi.com Public Key: http://bamboo.lexi.com/~jmccormick/public-keys.php

Hi Jason, On Fri, Jan 03, 2003 at 03:00:16PM -0500, Jason McCormick wrote:
Has anyone successfully gotten OTRS to work with Apache2 + mod_perl-2 (mod_perl-1.99_07)? I've finally conquered one problem and hit another. The
I'm not. But I'll check this tomorrow. .)
first problem I had was not being able to run installer.pl. The error_log reported the following:
[Thu Jan 02 16:55:37 2003] [error] 27204: ModPerl::Registry: Can't locate Kernel/Config.pm in @INC (@INC contains: //../..m /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 .) at /opt/OpenTRS/bin/cgi-bin/installer.pl line 39. BEGIN failed--compilation aborted at /opt/OpenTRS/bin/cgi-bin/installer.pl line 39.
If you look in this message the first include path is //../.. which is being returned from the following in installer.pl:
# OTRS root directory use FindBin qw($Bin); use lib "$Bin/../..";
The 'use lib' statement is setting //../.. instead of /opt/OpenTRS/bin/cgi-bin/../.. which seems to me that mod_perl is thinking that the perl script is running from / to the webserver. So to combat this I [...]
The $Bin should be the directory of the installer.pl. So @INC should be like: [...] Kernel/Config.pm in @INC (@INC contains: /opt/OpenTRS/bin/cgi-bin/../..m /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 [...] Maybe FindBin works not correctly with mod_perl2. I'll check this tomorrow.
Jason McCormick
Martin -- Martin Edenhofer - <martin at edenhofer.de> - http://martin.edenhofer.de/ -- "Security is a process, not a product." - Bruce Schneier

Thanks Martin, I haven't been able to make anymore progress on it and hard-coding paths is obviously not a good idea. :) -- Jason On Monday 06 January 2003 17:34, Martin Edenhofer wrote:
Hi Jason,
On Fri, Jan 03, 2003 at 03:00:16PM -0500, Jason McCormick wrote:
Has anyone successfully gotten OTRS to work with Apache2 + mod_perl-2 (mod_perl-1.99_07)? I've finally conquered one problem and hit another. The
I'm not. But I'll check this tomorrow. .)
first problem I had was not being able to run installer.pl. The error_log reported the following:
[Thu Jan 02 16:55:37 2003] [error] 27204: ModPerl::Registry: Can't locate Kernel/Config.pm in @INC (@INC contains: //../..m /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 .) at /opt/OpenTRS/bin/cgi-bin/installer.pl line 39. BEGIN failed--compilation aborted at /opt/OpenTRS/bin/cgi-bin/installer.pl line 39.
If you look in this message the first include path is //../.. which is being returned from the following in installer.pl:
# OTRS root directory use FindBin qw($Bin); use lib "$Bin/../..";
The 'use lib' statement is setting //../.. instead of /opt/OpenTRS/bin/cgi-bin/../.. which seems to me that mod_perl is thinking that the perl script is running from / to the webserver. So to combat this I [...]
The $Bin should be the directory of the installer.pl. So @INC should be like: [...] Kernel/Config.pm in @INC (@INC contains: /opt/OpenTRS/bin/cgi-bin/../..m /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 [...]
Maybe FindBin works not correctly with mod_perl2. I'll check this tomorrow.
Jason McCormick
Martin
-- Jason McCormick Network/Systems Administrator - Lexi-Comp, Inc. Ph: 330.656.0239 Fax: 330.656.4307 Email: jason.mccormick@lexi.com Public Key: http://bamboo.lexi.com/~jmccormick/public-keys.php

Hi Jason, On Wed, Jan 08, 2003 at 09:25:12AM -0500, Jason McCormick wrote:
Thanks Martin, I haven't been able to make anymore progress on it and hard-coding paths is obviously not a good idea. :)
Yes. :) I checked this. The current 1.0 RC1 should work with mod_perl-2 if you use the scripts/apache2-perl-startup.pl to your httpd.conf like: [...] Perlrequire /path/to/otrs/scripts/apache2-perl-startup.pl [...] Note: Maybe you have to change the lib path (use lib "/opt/otrs/"; and use lib "/opt/otrs/Kernel/cpan-lib";) in your apache-perl-startup.pl! I was not able to test the whole otrs with mod_perl-2 because I have Segmentation fault problems. :-/
-- Jason
Martin -- Martin Edenhofer - <martin at edenhofer.de> - http://martin.edenhofer.de/ -- nohl: 1:34am up 78 days, 4:10, 6 users, load average: 0.07, 0.15, 0.19

Martin, Thanks, I'll try this and let you know how it works out. -- Jason On Thursday 09 January 2003 19:53, Martin Edenhofer wrote:
Hi Jason,
On Wed, Jan 08, 2003 at 09:25:12AM -0500, Jason McCormick wrote:
Thanks Martin, I haven't been able to make anymore progress on it and hard-coding paths is obviously not a good idea. :)
Yes. :)
I checked this. The current 1.0 RC1 should work with mod_perl-2 if you use the scripts/apache2-perl-startup.pl to your httpd.conf like:
[...] Perlrequire /path/to/otrs/scripts/apache2-perl-startup.pl [...]
Note: Maybe you have to change the lib path (use lib "/opt/otrs/"; and use lib "/opt/otrs/Kernel/cpan-lib";) in your apache-perl-startup.pl!
I was not able to test the whole otrs with mod_perl-2 because I have Segmentation fault problems. :-/
-- Jason
Martin
-- Jason McCormick Network/Systems Administrator - Lexi-Comp, Inc. Ph: 330.656.0239 Fax: 330.656.4307 Email: jason.mccormick@lexi.com Public Key: http://bamboo.lexi.com/~jmccormick/public-keys.php
participants (3)
-
Jason McCormick
-
Jason McCormick
-
Martin Edenhofer