OTRS Server Install


Setup Networking

  1. cd /etc/netplan/
  2. Add to config file 10-lxc.yaml
  3. sudo netplan try


System Updates 

sudo apt-get install wget unzip -y

sudo apt-get update -ysudo apt-get upgrade -y

sudo apt-get install apache2 libapache2-mod-perl2 mariadb-server -y

sudo systemctl start apache2sudo systemctl start mysqlsudo systemctl enable apache2sudo systemctl enable mysql


Make OTRS User

mysql -u root -p

MariaDB [(none)]> CREATE DATABASE otrs_db;

MariaDB [(none)]> GRANT ALL PRIVILEGES ON otrs_db.* TO ‘otrs’@’localhost’ IDENTIFIED BY ‘123456’;


MariaDB [(none)]> \q


EDIT SQL Configurations 

sudo nano /etc/mysql/my.cnf


sudo systemctl restart mysql


Install some Prerequisites

sudo apt-get install libdbd-odbc-perl libauthen-ntlm-perl libxml-libxml-perl libxml-libxslt-perl libpdf-api2-simple-perl libyaml-libyaml-perl libencode-hanextra-perl libjson-xs-perl libmail-imapclient-perl libtemplate-perl libtemplate-perl libtext-csv-xs-perl libapache2-mod-perl2 libdbd-pg-perl libnet-dns-perl libnet-ldap-perl libio-socket-ssl-perl libpdf-api2-perl libsoap-lite-perl libgd-text-perl libgd-graph-perl libapache-dbi-perl libarchive-zip-perl libcrypt-eksblowfish-perl libcrypt-ssleay-perl -y

sudo a2enmod perlsudo systemctl restart apache2


Download OTRS

DO THIS IN THE /opt/otrs folder

mkdir /otp/otrs

cd /opt/otrs



sudo useradd -d /opt/otrs -c ‘otrspimp’ otrssudo usermod -G www-data otrs

cd /opt/otrs/otrs-5.0.22/Kernelsudo cp Config.pmsudo nano


Init Apache and Perl

sudo nano  scripts/

sudo a2ensite otrs

sudo a2enmod headerssudo a2enmod versionsudo a2enmod deflatesudo a2enmod filter

sudo systemctl restart apache2


Open Ports

apt-get install ufw

sudo ufw enablesudo ufw allow 80


Visit Server





Leave a Reply