[EMAIL PROTECTED] schrieb:
Hallo Torsten,


Hallo Thorsten,

aufgrund Deines Tipps habe ich einmal die Syntax der pm-Files überprüft:

...


Aber ich habe etwas gefunden:

[EMAIL PROTECTED]:Kernel> perl -cw Config.pm
Can't locate Kernel/Config/Defaults.pm in @INC (@INC contains:
/usr/lib/perl5/5.8.7/i586-linux-thread-multi /usr/lib/perl5/5.8.7
/usr/lib/perl5/site_perl/5.8.7/i586-linux-thread-multi
/usr/lib/perl5/site_perl/5.8.7 /usr/lib/perl5/site_perl
/usr/lib/perl5/vendor_perl/5.8.7/i586-linux-thread-multi
/usr/lib/perl5/vendor_perl/5.8.7 /usr/lib/perl5/vendor_perl .) at
Config.pm line 103.
BEGIN failed--compilation aborted at Config.pm line 103.

Die Config.pm ist kaputt gegangen.

Hier die Datei:

-----------------------------------------------------------------
# --
# Kernel/Config.pm - Config file for OTRS kernel
# Copyright (C) 2001-2006 OTRS GmbH, http://otrs.org/
# --
# $Id: Config.pm.dist,v 1.18 2006/09/07 16:15:41 mh Exp $
# --
# This software comes with ABSOLUTELY NO WARRANTY. For details, see
# the enclosed file COPYING for license information (GPL). If you
# did not receive this file, see http://www.gnu.org/licenses/gpl.txt.
# --
#  Note:
#
#  -->> OTRS does have a lot of config settings. For more settings
#       (Notifications, Ticket::ViewAccelerator, Ticket::NumberGenerator,
#       LDAP, PostMaster, Session, Preferences, ...) see
#       Kernel/Config/Defaults.pm and copy your wanted lines into "this"
#       config file. This file will not be changed on update!
#
# --

package Kernel::Config;

sub Load {
    my $Self =hift;
    # ---------------------------------------------------- #
    # ---------------------------------------------------- #
    #                                                      #
    #         Start of your own config options!!!          #
    #                                                      #
    # ---------------------------------------------------- #
    # ---------------------------------------------------- #

    # ---------------------------------------------------- #
    # database settings                                    #
    # ---------------------------------------------------- #
    # DatabaseHost
    # (The database host.)
    $Self->{'DatabaseHost'} =localhost';
    # Database
    # (The database name.)
    $Self->{'Database'} =otrs';
    # DatabaseUser
    # (The database user.)
    $Self->{'DatabaseUser'} =**geheim**';
    # DatabasePw
    # (The password of database user. You also can use bin/CryptPassword.pl
    # for crypted passwords.)
    $Self->{'DatabasePw'} =**geheim**';
    # DatabaseDSN
    # (The database DSN for MySQL = more: "man DBD::mysql")
    $Self->{DatabaseDSN} > 
"DBI:mysql:database=elf->{Database};host=$Self->{DatabaseHost};";

    # (The database DSN for PostgreSQL = more: "man DBD::Pg")
    # if you want to use a local socket connection
#    $Self->{DatabaseDSN} ÛI:Pg:dbname=$Self->{Database};";
    # if you want to use a tcpip connection
#    $Self->{DatabaseDSN} > 
"DBI:Pg:dbname=elf->{Database};host=$Self->{DatabaseHost};";

    # ---------------------------------------------------- #
    # fs root directory
    # ---------------------------------------------------- #
    $Self->{Home} > '/srv/www/vhosts/it-steps24.de/subdomains/ticket/httpdocs/';

    # ---------------------------------------------------- #
    # insert your own config settings "here"               #
    # config settings taken from Kernel/Config/Defaults.pm #
    # ---------------------------------------------------- #
    # $Self->{SessionUseCookie} =;
    # $Self->{'CheckMXRecord'} =;

    # ---------------------------------------------------- #

    # ---------------------------------------------------- #
    # data inserted by installer                           #
    # ---------------------------------------------------- #
    # $DIBI$
    $Self->{'SystemID'} =0;
    $Self->{'SecureMode'} =;
    $Self->{'Organization'} =IT-Steps24 GmbH';
    $Self->{'LogModule::LogFile'} =/tmp/otrs.log';
    $Self->{'LogModule'} =Kernel::System::Log::SysLog';
    $Self->{'FQDN'} =ticket.it-steps24.de';
    $Self->{'DefaultLanguage'} Þ';
    $Self->{'AdminEmail'} [EMAIL PROTECTED]';
    $Self->{'DefaultCharset'} =utf-8';

    $Self->{'DefaultUsedLanguages'}->{'de'} Þutsch';

    # ---------------------------------------------------- #
    # ---------------------------------------------------- #
    #                                                      #
    #           End of your own config options!!!          #
    #                                                      #
    # ---------------------------------------------------- #
    # ---------------------------------------------------- #
}

# ---------------------------------------------------- #
# needed system stuff (don't edit this)                #
# ---------------------------------------------------- #
use strict;
use vars qw(@ISA $VERSION);
use Kernel::Config::Defaults;
push (@ISA, 'Kernel::Config::Defaults');
$VERSION =$Revision: 1.18 $';
$VERSION =s/^\$.*:\W(.*)\W.+?$/$1/;
# -----------------------------------------------------#

1;
-----------------------------------------------------------------

Siehst Du einen Fehler?

Vielen Dank schon einmal!

Gruß
Th.

Mir z.B. fällt auf das sämtliche Parameter sehr seltsam definiert sind.

Während bei Dir

$Self->{'DatabaseHost'} =localhost';"

steht, sollte es eigentlich so aussehen:

$Self->{DatabaseHost} = 'localhost';

Zum einen ist "localhost" also nicht richtig durch "'" definiert und der
Parameter "DatabaseHost" zusätzlich abgegrenzt ('DatabaseHost').

Im Prinzip sieht Deine komplette Konfiguration so aus. Warum?

Vergleiche mal mit der Syntax der Config.pm.dist!

Grüsse
Ivan
_______________________________________________
OTRS-de Mailingliste: otrs-de - Webpage: http://otrs.org/
Archiv: http://lists.otrs.org/pipermail/otrs-de/
Listenabo verwalten: http://lists.otrs.org/cgi-bin/listinfo/otrs-de/
Support oder Consulting fuer Ihr OTRS System?
=> http://www.otrs.com/

Antwort per Email an