How To Install OTRS on Ubuntu 16.04 LTS

Install OTRS on Ubuntu 16.04 LTS

In this tutorial we will show you how to install and configuration OTRS on Ubuntu 16.04 LTS server. For those of you who didn’t know, OTRS (Open-Source Ticket Request System) is a web-based ticketing system, widely used by businesses for services like customer support, help desks and call centres. The software is separated into several parts, the main section being the OTRS framework, which contains all central functions for the application and the ticket system

This article assumes you have at least basic knowledge of linux, know how to use the shell, and most importantly, you host your site on your own VPS. The installation is quite simple and assumes you are running in the root account, if not you may need to add ‘sudo’ to the commands to get root privileges. I will show you through the step by step installation OTRS on a Ubuntu 16.04 (Xenial Xerus) server.

Install OTRS on Ubuntu 16.04 LTS

Step 1. First make sure that all your system packages are up-to-date by running these following apt-get commands in the terminal.

Step 2. Installing MariaDB.

Install MariaDB on the server using apt-get command:

By default, MariaDB is not hardened. You can secure MariaDB using the mysql_secure_installation script. you should read and below each steps carefully which will set root password, remove anonymous users, disallow remote root login, and remove the test database and access to secure MariaDB:

Configure it like this:

Once installed, OTRS require that you change the following settings:

Under the [mysqld] section, paste:

Start MariaDB with system:

Step 3. Installing OTRS (OpenSource Trouble Ticket System).

First thing to do is to go to OTRS’s download page and download the latest stable version of OTRS:

Unpack the OTRS archive to the document root directory on your server:

Check if the system contains all required PERL modules and install required modules with apt (as suggested by the script), executing the command:

Create a OTRS user:

Default config files In /opt/otrs, execute the following command:

Step 4. Configure Apache web server.

Check installed modules and configure Apache:

If the response is “syntax OK” for all, it means that the Perl modules have been installed successfully.

Next, install the Apache web server and mod_perl, using apt-get command:

In /opt/otrs there is a configuration file for Apache. Link it to the webserver configuration directory:

OTRS requires a few Apache modules to be active for optimal operation:

Finally, Restart the webserver so it will load new configurations:

We will need to change some folders permissions:

Step 5. Accessing OTRS.

OTRS will be available on HTTP port 80 by default. Open your favorite browser and navigate to or http://server-ip/otrs/ and complete the required the steps to finish the installation. If you are using a firewall, please open port 80 to enable access to the control panel.

Install OTRS on Ubuntu 16.04 LTS

Congratulation’s! You have successfully installed OTRS. Thanks for using this tutorial for installing OTRS (OpenSource Trouble Ticket System) on Ubuntu 16.04 Xenial Xerus server. For additional help or useful information, we recommend you to check the official OTRS web site.

VPS Manage Service Offer
If you don’t have time to do all of this stuff, or if this is not your area of expertise, we offer a service to do “VPS Manage Service Offer”, starting from $10 (Paypal payment). Please contact us to get a best deal!