Вы находитесь на странице: 1из 21

 

INSTALAÇÃO DO OTRS 5.0.20 
NO CENTOS 7.1 
 

 
Por Carlos Eduardo Fraga Ribeiro 
eduardo@fametreinamentos.com.br 

FORTALEZA 

2017   

1   
 

SUMARIO 

 
SUMARIO 2 

VISÃO GERAL 3 

OBJETIVO 3 

PRÉ-REQUISITOS 3 

ATIVIDADES 3 
1 - Configuraro SElinux 3 
2 - Instalar o banco mariadb-server 4 
3 - Configurar o mariadb 7 
4 - Instalar o OTRS 5.0.20 8 
5 - Checar a instalação dos modulos 12 
6 - Configurar o apache 12 
7 - Concluir a instalação na interface web 13 
8 - Finalizar a instalação 20 

REFERENICIAS 21 

   

2   
 

VISÃO GERAL 

Este documento descreve o procedimento para instalar o sistema OTRS 5.0.20 em um 
servidor Linux CentOS 7.1 64Bits.  

OBJETIVO 

1. Instalar e configurar o OTRS 5; 

PRÉ-REQUISITOS 

1. OTRS 5.0.20 disponível em https://www.otrs.com/ 
2. Servidor CentOS Linux release 7.3.1611 (Core)  
a. Memória RAM 3.75Gb; 
b. Hard drive 10Gb; 
c. 1 conta de e-mail; 

ATIVIDADES 

1 - Configuraro SElinux 

vim /etc/selinux/config

SELINUX=permissive

SELINUXTYPE=targeted

3   
setenforce 0

getenforce  

Permissive

2 - Instalar o banco mariadb-server 

cd /tmp

yum -y install mariadb-server

mysql_secure_installation

NOTE: RUNNING ALL PARTS OF THIS SCRIPT IS RECOMMENDED FOR ALL MariaDB

SERVERS IN PRODUCTION USE! PLEASE READ EACH STEP CAREFULLY!

In order to log into MariaDB to secure it, we'll need the current

password for the root user. If you've just installed MariaDB, and

you haven't set the root password yet, the password will be blank,

so you should just press enter here.

Enter current password for root (enter for none): ​ENTER

OK, successfully used password, moving on...

4   
Setting the root password ensures that nobody can log into the
MariaDB

root user without the proper authorisation.

Set root password? [Y/n] ​Y

New password: ​NOVA_SENHA

Re-enter new password: ​NOVA_SENHA

Password updated successfully!

Reloading privilege tables..

... Success!

By default, a MariaDB installation has an anonymous user, allowing


anyone

to log into MariaDB without having to have a user account created for

them. This is intended only for testing, and to make the


installation

go a bit smoother. You should remove them before moving into a

production environment.

Remove anonymous users? [Y/n] ​Y

... Success!

Normally, root should only be allowed to connect from 'localhost'.


This

5   
ensures that someone cannot guess at the root password from the
network.

Disallow root login remotely? [Y/n] ​Y

... Success!

By default, MariaDB comes with a database named 'test' that anyone


can

access. This is also intended only for testing, and should be


removed

before moving into a production environment.

Remove test database and access to it? [Y/n] ​Y

- Dropping test database...

... Success!

- Removing privileges on test database...

... Success!

Reloading the privilege tables will ensure that all changes made so
far

will take effect immediately.

Reload privilege tables now? [Y/n] ​Y

... Success!

6   
Cleaning up...

All done! If you've completed all of the above steps, your MariaDB

installation should now be secure.

Thanks for using MariaDB!

3 - Configurar o mariadb 

systemctl stop mariadb

vim /etc/my.cnf.d/otrs.cnf

[mysqld]

max_allowed_packet = 20M

query_cache_size = 32M

innodb_log_file_size = 256M

rm -rf /usr/lib/mysql/ib*

systemctl start mariadb

mysql -p

Enter password: ​NOVA_SENHA

7   
Welcome to the MariaDB monitor. Commands end with ; or \g.

Your MariaDB connection id is 12

Server version: 5.5.52-MariaDB MariaDB Server

Copyright (c) 2000, 2016, Oracle, MariaDB Corporation Ab and others.

Type 'help;' or '\h' for help. Type '\c' to clear the current input
statement.

MariaDB [(none)]> ​exit

Bye

4 - Instalar o OTRS 5.0.20 

yum intall -y wget

wget -c ​http://ftp.otrs.org/pub/otrs/otrs-5.0.20.tar.gz

tar -zxvf otrs-5.0.20.tar.gz -C /opt/

cd /opt/

mv otrs-5.0.20 otrs

yum -y install perl-core

8   
 

vim /tmp/cpan.txt

Apache::DBI

Apache2::Reload

Archive::Tar

Archive::Zip

Crypt::Eksblowfish::Bcrypt

Crypt::SSLeay

Date::Format

DBI

DBD::mysql

DBD::ODBC

DBD::Oracle

DBD::Pg

Digest::SHA

Encode::HanExtra

IO::Socket::SSL

JSON::XS

List::Util::XS

LWP::UserAgent

Mail::IMAPClient

IO::Socket::SSL

Authen::SASL

Authen::NTLM

9   
ModPerl::Util

Net::DNS

Net::LDAP

Template

Template::Stash::XS

Text::CSV_XS

Time::HiRes

Time::Piece

XML::LibXML

XML::LibXSLT

XML::Parser

YAML::XS

  

for i in `cat /tmp/cpan.txt`; do yum -y install "perl($i)"; done

perl /opt/otrs/bin/otrs.CheckModules.pl

  ​o Apache::DBI......................ok (v1.12)

o Apache2::Reload..................ok (v0.13)

o Archive::Tar.....................ok (v1.92)

o Archive::Zip.....................ok (v1.30)

o Crypt::Eksblowfish::Bcrypt.......ok (v0.009)

o Crypt::SSLeay....................ok (v0.64)

o Date::Format.....................ok (v2.24)

o DBI..............................ok (v1.627)

10   
o DBD::mysql.......................ok (v4.023)

o DBD::ODBC........................ok (v1.50)

o DBD::Oracle......................Not installed! (optional -


Required to connect to a Oracle database.)

o DBD::Pg..........................ok (v2.19.3)

o Digest::SHA......................ok (v5.85)

o Encode::HanExtra.................ok (v0.23)

o IO::Socket::SSL..................ok (v1.94)

o JSON::XS.........................ok (v3.01)

o List::Util::XS...................ok (v1.27)

o LWP::UserAgent...................ok (v6.13)

o Mail::IMAPClient.................ok (v3.37)

o IO::Socket::SSL................ok (v1.94)

o Authen::SASL...................ok (v2.15)

o Authen::NTLM...................ok (v1.09)

o ModPerl::Util....................ok (v2.000010)

o Net::DNS.........................ok (v0.72)

o Net::LDAP........................ok (v0.56)

o Template.........................ok (v2.24)

o Template::Stash::XS..............ok (undef)

o Text::CSV_XS.....................ok (v1.00)

o Time::HiRes......................ok (v1.9725)

o Time::Piece......................ok (v1.20_01)

o XML::LibXML......................ok (v2.0018)

11   
o XML::LibXSLT.....................ok (v1.80)

o XML::Parser......................ok (v2.41)

o YAML::XS.........................ok (v0.54)

useradd -d /opt/otrs -c 'OTRS user' otrs

usermod -G apache otrs

cd /opt/otrs/Kernel/

cp Config.pm.dist Config.pm

cp Config.pod.dist Config.pod

5 - Checar a instalação dos modulos 

perl -cw /opt/otrs/bin/cgi-bin/index.pl

/opt/otrs/bin/cgi-bin/index.pl syntax OK

perl -cw /opt/otrs/bin/cgi-bin/customer.pl

/opt/otrs/bin/cgi-bin/customer.pl syntax OK

perl -cw /opt/otrs/bin/otrs.Console.pl

/opt/otrs/bin/otrs.Console.pl syntax OK

6 - Configurar o apache 

12   
 

yum install httpd mod_perl

cd /etc/httpd/conf.d/

cp /opt/otrs/scripts/apache2-httpd.include.conf zzz_otrs.conf

cd /opt/otrs/

bin/otrs.SetPermissions.pl --otrs-user=otrs --web-group=apache

yum -y install mod_ssl openssl

systemctl restart httpd

7 - Concluir a instalação na interface web 

13   
 

14   
 

15   
 

16   
 

17   
 

18   
 

19   
 

8 - Finalizar a instalação 

su -c '/opt/otrs/bin/otrs.Daemon.pl start' -s /bin/bash otrs

cd /opt/otrs/var/cron

for foo in *.dist; do cp $foo `basename $foo .dist`; done

su -c '/opt/otrs/bin/Cron.sh start' -s /bin/bash otrs

/opt/otrs/var/cron

Cron.sh - start/stop OTRS cronjobs

Copyright (C) 2001-2017 OTRS AG, http://otrs.com/

20   
(using /opt/otrs) done

REFERENICIAS 

http://doc.otrs.com/doc/manual/admin/stable/en/html/manual-installation-of-otrs.html 

21   

Вам также может понравиться