I think I had an issue with mod_perl (or was it reload? ;-) some time ago with 
similar PATH issues.
(Actually, I have it configured under xampp, changing the path of otrs, 
specially for Perl is hell. Somehow in the code they have made an error to have 
the path not relative from where it is called)

Can you show how you're apache is configured for OTRS?

Part of mine is shown below. You can see where the extra apache-perl script is 
called. Do you use it as well?

/opt/lampp/etc/extra/httpd-otrs.conf:

<...>
# if mod_perl is used
<IfModule mod_perl.c>

    # load all otrs modules
    Perlrequire /opt/otrs/scripts/apache2-perl-startup.pl

    # Apache::Reload - Reload Perl Modules when Changed on Disk
    PerlModule Apache::Reload
    PerlInitHandler Apache::Reload
<...>


In the startup file I have set/added the correct path. Perhaps you should too, 
to get it going.

/opt/otrs/scripts/apache2-perl-startup.pl:

   <...>
   $ENV{MOD_PERL} =~ /mod_perl/ or die "MOD_PERL not used!";
   
   # set otrs lib path!
   use lib qw(/opt/otrs /opt/otrs/Kernel /opt/otrs/Kernel/modules 
/opt/otrs/Kernel/
   cpan-lib /opt/lampp/lib/perl5/site_perl/5.10.0/i686-linux/Apache2);

   <...>


Kind regards,

Frans Stekelenburg
NetDialog Service Center



+31 30 789 3636
www.netdialog.eu


> -----Original Message-----
> From: otrs-boun...@otrs.org [mailto:otrs-boun...@otrs.org] On Behalf Of
> Renee Bäcker
> Sent: donderdag 26 maart 2009 14:53
> To: User questions and discussions about OTRS.
> Subject: Re: [otrs] Another Config.pm problem
> 
> Can you create a test.pl in the same directory where the index.pl is?
> 
> It should have this content:
> 
> #!/usr/bin/perl
> 
> use strict;
> use warnings;
> use FindBin qw($Bin);
> 
> use CGI;
> print CGI->header, $Bin;
> 
> chmod it to 755, run it via Browser and post the result here.
> 
> Cheers,
> Renee
> 
> ratnawe...@sunrise.ch schrieb:
> > Hi
> >
> > Ref: Renee Bäcker <mailinglis...@renee-baecker.de> 25.03.2009 14:10
> >> ratnawe...@sunrise.ch schrieb:
> >>> ...
> >>> # pwd
> >>> /home/www/intra/otrs/Kernel
> >> In your last post the error message said "/home/www/otrs/..." no
> "intra"
> >> in it.
> >
> > Sorry for that. I sort of annonymized the thing. Here is the
> > complete story:
> >
> > ===
> > # pwd
> > /home/www/intra/otrs
> >
> > # ls
> > ARCHIVE  COPYING  INSTALL         Kernel           README.webserver
> > TODO
> > bin      CREDITS  INSTALL.RedHat  README           RELEASE
> > UPGRADING
> > CHANGES  doc      INSTALL.SuSE    README.database  scripts
> > var
> >
> > # ls Kernel/
> > Config     Config.pm.dist  Language     Modules  System
> > Config.pm  cpan-lib        Language.pm  Output
> >
> > # diff Kernel/Config.pm Kernel/Config.pm.dist
> >
> > File bin/cgi-bin/installer.pl lines 26 .. 38
> > ----------------------------
> > # use ../../ as lib location
> > use FindBin qw($Bin);
> > use lib "$Bin/../..";
> > use lib "$Bin/../../Kernel/cpan-lib";
> >
> > use vars qw($VERSION $Debug);
> > $VERSION = qw($Revision: 1.28 $) [1];
> >
> > # check @INC for mod_perl (add lib path for "require module"!)
> > push( @INC, "$Bin/../..", "$Bin/../../Kernel/cpan-lib" );
> >
> > # all OTRS Installer modules
> > use Kernel::Config;
> > ====
> >
> > Request of the browser
> >
> > Error message in Apache logs:
> >  [error] Can't locate Kernel/Config.pm in @INC (@INC contains:
> >  /usr/sbin/../Kernel/cpan-lib /usr/sbin/.. /etc/perl
> >  /usr/local/lib/perl/5.8.8 /usr/local/share/perl/5.8.8
> >  /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.8
> >  /usr/share/perl/5.8 /usr/local/lib/site_perl . /etc/apache2) at
> >  /home/www/intra/otrs/bin/cgi-bin/installer.pl line 38.\nBEGIN
> >  failed--compilation aborted at
> >  /home/www/intra/otrs/bin/cgi-bin/installer.pl line 38.\n
> >
> > obviously @INC does not contain ./Kernel, what is the usual
> > procedure to add that?
> >
> >
> >> BTW: you should chown Config.pm it makes no sense to have it
> >> owned by root
> >
> > Done.
> > # ls -l Kernel/
> > insgesamt 48
> > drwxrwxr-x  3 500 users  4096 2009-03-23 22:10 Config
> > -rw-rw-r--  1 500 users  3918 2009-03-23 22:09 Config.pm
> > -rw-rw-r--  1 500 users  3918 2008-03-07 17:50 Config.pm.dist
> > drwxrwxr-x 16 500 users  4096 2009-01-20 21:06 cpan-lib
> > drwxrwxr-x  2 500 users  4096 2009-01-20 21:06 Language
> > -rw-rw-r--  1 500 users 14119 2008-11-16 17:03 Language.pm
> > drwxrwxr-x  2 500 users  4096 2009-01-20 21:06 Modules
> > drwxrwxr-x  5 500 users  4096 2009-01-20 21:06 Output
> > drwxrwxr-x 23 500 users  4096 2009-01-20 21:06 System
> >
> > regards
> > Ratna
> > ---------------------------------------------------------------------
> > OTRS mailing list: otrs - Webpage: http://otrs.org/
> > Archive: http://lists.otrs.org/pipermail/otrs
> > To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/otrs
> >
> > NEW! ENTERPRISE SUBSCRIPTION - Get more information NOW!
> > http://www.otrs.com/en/support/enterprise-subscription/
> >
> >
> 
> 
> --
> 
> Perl-Magazin: http://perl-magazin.de
> Perl-Nachrichten: http://perl-nachrichten.de
> ---------------------------------------------------------------------
> OTRS mailing list: otrs - Webpage: http://otrs.org/
> Archive: http://lists.otrs.org/pipermail/otrs
> To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/otrs
> 
> NEW! ENTERPRISE SUBSCRIPTION - Get more information NOW!
> http://www.otrs.com/en/support/enterprise-subscription/
---------------------------------------------------------------------
OTRS mailing list: otrs - Webpage: http://otrs.org/
Archive: http://lists.otrs.org/pipermail/otrs
To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/otrs

NEW! ENTERPRISE SUBSCRIPTION - Get more information NOW!
http://www.otrs.com/en/support/enterprise-subscription/

Reply via email to