SecureMode active

Moderator: crythias

Locked
Moody
Znuny newbie
Posts: 4
Joined: 22 May 2011, 19:17
Znuny Version: 3.0.7

SecureMode active

Post by Moody »

Hi all,
I have installed open Suse 11.4 including mysql and apache2. After this i have installed OTRS using yast. This worked out fine (as far as I understand linux) and all dependencies were installed as well.

When I start then the configuration with the browser I recived the message: securemode is active. If you want to run the installer disable securemode.
details:

Code: Select all

Backend ERROR: OTRS-CGI-10 Perl: 5.12.3 OS: linux Time: Mon May 23 19:32:16 2011 Message: SecureMode active! Traceback (6700): Module: Kernel::Output::HTML::Layout::Error (v1.351.2.5) Line: 1118 Module: Kernel::System::Web::InterfaceInstaller::Run (v1.6) Line: 124 Module: ModPerl::ROOT::ModPerl::Registry::opt_otrs_bin_cgi_2dbin_installer_2epl::handler (unknown version) Line: 46 Module: (eval) (v1.33.2.1) Line: 204 Module: ModPerl::RegistryCooker::run (v1.33.2.1) Line: 204 Module: ModPerl::RegistryCooker::default_handler (v1.33.2.1) Line: 170 Module: ModPerl::Registry::handler (v1.99) Line: 31 
So I have add the line. here is now the new config.pm file:

Code: Select all

# --
# Kernel/Config.pm - Config file for OTRS kernel
# Copyright (C) 2001-2010 xxx, http://otrs.org/
# --
# $Id: Config.pm.dist,v 1.23 2010/01/13 22:25:00 martin Exp $
# --
# This software comes with ABSOLUTELY NO WARRANTY. For details, see
# the enclosed file COPYING for license information (AGPL). If you
# did not receive this file, see http://www.gnu.org/licenses/agpl.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 = shift;
    # ---------------------------------------------------- #
    # ---------------------------------------------------- #
    #                                                      #
    #         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} = 'otrs';
    # DatabasePw
    # (The password of database user. You also can use bin/otrs.CryptPassword.pl
    # for crypted passwords.)
    $Self->{DatabasePw} = 'some-pass';
    # DatabaseDSN
    # (The database DSN for MySQL ==> more: "man DBD::mysql")
    $Self->{DatabaseDSN} = "DBI:mysql:database=$Self->{Database};host=$Self->{DatabaseHost};";
    
    #New Line SecureMode 
    $Self->{SecureMode} = '1';
   
 # (The database DSN for PostgreSQL ==> more: "man DBD::Pg")
    # if you want to use a local socket connection
#    $Self->{DatabaseDSN} = "DBI:Pg:dbname=$Self->{Database};";
    # if you want to use a tcpip connection
#    $Self->{DatabaseDSN} = "DBI:Pg:dbname=$Self->{Database};host=$Self->{DatabaseHost};";

    # ---------------------------------------------------- #
    # fs root directory
    # ---------------------------------------------------- #
    $Self->{Home} = '/opt/otrs';

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

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

    # ---------------------------------------------------- #
    # data inserted by installer                           #
    # ---------------------------------------------------- #
    # $DIBI$

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

# ---------------------------------------------------- #
# needed system stuff (don't edit this)                #
# ---------------------------------------------------- #
use strict;
use warnings;

use vars qw(@ISA $VERSION);
$VERSION = qw($Revision: 1.23 $)[1];

use Kernel::Config::Defaults;
push (@ISA, 'Kernel::Config::Defaults');

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

1;
Can someone help?
Regards
Moody
jojo
Znuny guru
Posts: 15020
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: SecureMode active

Post by jojo »

$Self->{SecureMode} = '1'; enables secure mode
$Self->{SecureMode} = '0'; disables secure mode
"Production": OTRS™ 8, OTRS™ 7, STORM powered by OTRS
"Testing": ((OTRS Community Edition)) and git Master

Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
Moody
Znuny newbie
Posts: 4
Joined: 22 May 2011, 19:17
Znuny Version: 3.0.7

Re: SecureMode active

Post by Moody »

Thanks jojo! I am an idiot .... :(

I add the line $Self->{SecureMode} = '1'; and wounder about the message securemode active :shock:


And it works now! :D
Moody
Locked