
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 ratnaweera@sunrise.ch schrieb:
Hi
Ref: Renee Bäcker
25.03.2009 14:10 ratnaweera@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