How to install OTRS 5 Free on CentOS 7

Check IP
ipp addr

Update packages
yum clean all
yum -y update

yum -y install wget
yum -y install mc

Install webmin
wget http://prdownloads.sourceforge.net/webadmin/webmin-1.791-1.noarch.rpm
yum -y install perl perl-Net-SSLeay openssl perl-IO-Tty
rpm -U webmin-1.791-1.noarch.rpm

Deactivate SELinux

Check status with: sestatus
Edit /etc/selinux/config
set SELINUX=permissive.

Type setenforce Permissive

yum -y install mariadb-server
open the file /etc/my.cnf and add following lines under the [mysqld] section:
max_allowed_packet = 20M
query_cache_size = 32M
innodb_log_file_size = 256M

execute:
systemctl enable mariadb.service
systemctl start mariadb.service

/usr/bin/mysql_secure_installation
follow the on-screen instructions to set a database root password, remove anonymous access and remove the test database.

yum -y install epel-release
yum install -y mod_perl “perl(Crypt::Eksblowfish::Bcrypt)” “perl(JSON::XS)” “perl(GD::Text)” “perl(Encode::HanExtra)” “perl(GD::Graph)” “perl(Mail::IMAPClient)” “perl(PDF::API2)” “perl(Text::CSV_XS)” “perl(YAML::XS)”

Download OTRS Free for CentOS
wget http://ftp.otrs.org/pub/otrs/RPMS/rhel/6/otrs-5.0.8-01.noarch.rpm

Install:
yum install –nogpgcheck otrs-5.0.8-01.noarch.rpm

systemctl enable httpd.service
systemctl start httpd.service

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

The next step is to configure OTRS using the web installer
http://localhost/otrs/installer.pl
insted of localhost use hostname or IP of your server

Start the OTRS daemon and activate corresponding watchdog cron job (this must be done by the otrs user):
su otrs
/opt/otrs/bin/otrs.Daemon.pl start
/opt/otrs/bin/Cron.sh start

 

Leave a Reply

Your email address will not be published. Required fields are marked *