<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>it Archives - Linux Windows and android Tutorials</title>
	<atom:link href="https://www.osradar.com/tag/it/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.osradar.com</link>
	<description>tutorials and news and Seurity</description>
	<lastBuildDate>Mon, 30 Jul 2018 09:38:27 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=5.8.12</generator>
	<item>
		<title>How to install the lastest OTRS on Ubuntu 18.04?</title>
		<link>https://www.osradar.com/how-to-install-the-lastest-otrs-on-ubuntu-18-04/</link>
					<comments>https://www.osradar.com/how-to-install-the-lastest-otrs-on-ubuntu-18-04/#comments</comments>
		
		<dc:creator><![CDATA[angeloma]]></dc:creator>
		<pubDate>Mon, 30 Jul 2018 09:38:27 +0000</pubDate>
				<category><![CDATA[Featured]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[administration]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[it]]></category>
		<category><![CDATA[otrs]]></category>
		<category><![CDATA[support]]></category>
		<category><![CDATA[Tutorial]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=4917</guid>

					<description><![CDATA[<p>OTRS (Open-Source Ticket Request System) is a free system that any institution can use to assign unique identifiers called tickets to service or information requests. Very useful in IT support departments to control and respond to requests made by users within an organization. Originally, OTRS worked only on MySQL databases. Support has since been added [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-install-the-lastest-otrs-on-ubuntu-18-04/">How to install the lastest OTRS on Ubuntu 18.04?</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>OTRS (Open-Source Ticket Request System) is a free system that any institution can use to assign unique identifiers called tickets to service or information requests. Very useful in IT support departments to control and respond to requests made by users within an organization.</p>
<p>Originally, <strong>OTRS</strong> worked only on MySQL databases. Support has since been added for PostgreSQL, Oracle, DB2 and Microsoft SQL Server.</p>
<ul>
<li>
<h3>It&#8217;s open source.</h3>
</li>
<li>Thanks to the perl modules it is scalable.</li>
<li>Easy to use</li>
<li>It has a good security system</li>
<li>flexible and controllable at all times</li>
<li>It has a web frontend easy and ready to use.</li>
</ul>
<h2>Installing OTRS on Ubuntu 18.04</h2>
<p>OTRS can be installed on various GNU/LINUX distributions and use several database managers, so the decision depends on our needs. In this tutorial we will use the combination of Ubuntu, Apache and PostgreSQL.</p>
<h3>1.- Upgrading the system</h3>
<p>Since a new version of an operating system is released, new security patches are released that improve the stability of the packages and the system in general, so it is recommended to start the tutorial with a system update.</p>
<pre>:~$ sudo -i</pre>
<p>After entering your password you will be a root user</p>
<pre>:~# apt update &amp;&amp; apt upgrade</pre>
<figure id="attachment_4918" aria-describedby="caption-attachment-4918" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-4918" src="https://www.osradar.com/wp-content/uploads/2018/07/1-5.png" alt="1.- Upgrading the system" width="1366" height="768" srcset="https://www.osradar.com/wp-content/uploads/2018/07/1-5.png 1366w, https://www.osradar.com/wp-content/uploads/2018/07/1-5-300x169.png 300w, https://www.osradar.com/wp-content/uploads/2018/07/1-5-768x432.png 768w, https://www.osradar.com/wp-content/uploads/2018/07/1-5-1024x576.png 1024w, https://www.osradar.com/wp-content/uploads/2018/07/1-5-696x391.png 696w, https://www.osradar.com/wp-content/uploads/2018/07/1-5-1068x600.png 1068w, https://www.osradar.com/wp-content/uploads/2018/07/1-5-747x420.png 747w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-4918" class="wp-caption-text">1.- Upgrading the system</figcaption></figure>
<h3>2.- Installing Apache web server and PostgreSQL</h3>
<p>OTRS has a very friendly web interface from where the system is controlled, so we must install apache and postgreSQL as the database management system.</p>
<pre>:~# apt install apache2 libapache2-mod-perl2 postgresql</pre>
<figure id="attachment_4919" aria-describedby="caption-attachment-4919" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-4919" src="https://www.osradar.com/wp-content/uploads/2018/07/2-5.png" alt="2.- Installing apache and postgresql" width="1366" height="768" srcset="https://www.osradar.com/wp-content/uploads/2018/07/2-5.png 1366w, https://www.osradar.com/wp-content/uploads/2018/07/2-5-300x169.png 300w, https://www.osradar.com/wp-content/uploads/2018/07/2-5-768x432.png 768w, https://www.osradar.com/wp-content/uploads/2018/07/2-5-1024x576.png 1024w, https://www.osradar.com/wp-content/uploads/2018/07/2-5-696x391.png 696w, https://www.osradar.com/wp-content/uploads/2018/07/2-5-1068x600.png 1068w, https://www.osradar.com/wp-content/uploads/2018/07/2-5-747x420.png 747w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-4919" class="wp-caption-text">2.- Installing apache and postgresql</figcaption></figure>
<p>After that, we started both services.</p>
<pre>:~# systemctl start apache2
:~# systemctl start postgresql</pre>
<figure id="attachment_4920" aria-describedby="caption-attachment-4920" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-4920" src="https://www.osradar.com/wp-content/uploads/2018/07/3-5.png" alt="3.- Starting services" width="1366" height="738" srcset="https://www.osradar.com/wp-content/uploads/2018/07/3-5.png 1366w, https://www.osradar.com/wp-content/uploads/2018/07/3-5-300x162.png 300w, https://www.osradar.com/wp-content/uploads/2018/07/3-5-768x415.png 768w, https://www.osradar.com/wp-content/uploads/2018/07/3-5-1024x553.png 1024w, https://www.osradar.com/wp-content/uploads/2018/07/3-5-696x376.png 696w, https://www.osradar.com/wp-content/uploads/2018/07/3-5-1068x577.png 1068w, https://www.osradar.com/wp-content/uploads/2018/07/3-5-777x420.png 777w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-4920" class="wp-caption-text">3.- Starting services</figcaption></figure>
<h3>3.- Installing PERL modules</h3>
<p>Now we proceed to install some PERL modules so that OTRS runs correctly. This is because it is built with Perl.</p>
<pre>:~# apt install 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 libencode-hanextra-perl libjson-xs-perl libmail-imapclient-perl libtemplate-perl libtemplate-perl libtext-csv-xs-perl libxml-libxml-perl libxml-libxslt-perl libpdf-api2-simple-perl libyaml-libyaml-perl</pre>
<figure id="attachment_4921" aria-describedby="caption-attachment-4921" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-4921" src="https://www.osradar.com/wp-content/uploads/2018/07/4-3.png" alt="4.- Installing perl modules" width="1366" height="738" srcset="https://www.osradar.com/wp-content/uploads/2018/07/4-3.png 1366w, https://www.osradar.com/wp-content/uploads/2018/07/4-3-300x162.png 300w, https://www.osradar.com/wp-content/uploads/2018/07/4-3-768x415.png 768w, https://www.osradar.com/wp-content/uploads/2018/07/4-3-1024x553.png 1024w, https://www.osradar.com/wp-content/uploads/2018/07/4-3-696x376.png 696w, https://www.osradar.com/wp-content/uploads/2018/07/4-3-1068x577.png 1068w, https://www.osradar.com/wp-content/uploads/2018/07/4-3-777x420.png 777w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-4921" class="wp-caption-text">4.- Installing perl modules</figcaption></figure>
<p>When the process is finished, it is necessary to activate the PERL module for apache.</p>
<pre class="">:~# a2enmod perl</pre>
<p>And restart apache</p>
<pre class="">:~# systemctl restart apache2</pre>
<figure id="attachment_4922" aria-describedby="caption-attachment-4922" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-4922" src="https://www.osradar.com/wp-content/uploads/2018/07/5-5.png" alt="5.- Enabling perl modules for apache" width="1366" height="738" srcset="https://www.osradar.com/wp-content/uploads/2018/07/5-5.png 1366w, https://www.osradar.com/wp-content/uploads/2018/07/5-5-300x162.png 300w, https://www.osradar.com/wp-content/uploads/2018/07/5-5-768x415.png 768w, https://www.osradar.com/wp-content/uploads/2018/07/5-5-1024x553.png 1024w, https://www.osradar.com/wp-content/uploads/2018/07/5-5-696x376.png 696w, https://www.osradar.com/wp-content/uploads/2018/07/5-5-1068x577.png 1068w, https://www.osradar.com/wp-content/uploads/2018/07/5-5-777x420.png 777w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-4922" class="wp-caption-text">5.- Enabling perl modules for apache</figcaption></figure>
<h3>4.- Create a new user</h3>
<p>It is recommended that the user running OTRS is not the root user, because this gives us more security and control over our web server.</p>
<p>We proceed to create a new user, for example, otrs.</p>
<pre class="">:~# useradd -d /opt/otrs -c 'OTRS user' otrs</pre>
<p>Now we add it to the www-data group which is the group that has the apache run permission.</p>
<pre>:~# usermod -a -G www-data otrs</pre>
<figure id="attachment_4923" aria-describedby="caption-attachment-4923" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-4923" src="https://www.osradar.com/wp-content/uploads/2018/07/6-6.png" alt="6.- creating new user" width="1366" height="738" srcset="https://www.osradar.com/wp-content/uploads/2018/07/6-6.png 1366w, https://www.osradar.com/wp-content/uploads/2018/07/6-6-300x162.png 300w, https://www.osradar.com/wp-content/uploads/2018/07/6-6-768x415.png 768w, https://www.osradar.com/wp-content/uploads/2018/07/6-6-1024x553.png 1024w, https://www.osradar.com/wp-content/uploads/2018/07/6-6-696x376.png 696w, https://www.osradar.com/wp-content/uploads/2018/07/6-6-1068x577.png 1068w, https://www.osradar.com/wp-content/uploads/2018/07/6-6-777x420.png 777w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-4923" class="wp-caption-text">6.- creating new user</figcaption></figure>
<h3>5.- Preparing postgreSQL and the database</h3>
<p>First of all, we must log in to the postgreSQL console:</p>
<pre>:~# sudo - postgres
:~# psql</pre>
<figure id="attachment_4924" aria-describedby="caption-attachment-4924" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-4924" src="https://www.osradar.com/wp-content/uploads/2018/07/7-4.png" alt="7.- PostgreSQL shell" width="1366" height="738" srcset="https://www.osradar.com/wp-content/uploads/2018/07/7-4.png 1366w, https://www.osradar.com/wp-content/uploads/2018/07/7-4-300x162.png 300w, https://www.osradar.com/wp-content/uploads/2018/07/7-4-768x415.png 768w, https://www.osradar.com/wp-content/uploads/2018/07/7-4-1024x553.png 1024w, https://www.osradar.com/wp-content/uploads/2018/07/7-4-696x376.png 696w, https://www.osradar.com/wp-content/uploads/2018/07/7-4-1068x577.png 1068w, https://www.osradar.com/wp-content/uploads/2018/07/7-4-777x420.png 777w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-4924" class="wp-caption-text">7.- PostgreSQL shell</figcaption></figure>
<p>Now we create the user dedicated to OTRS:</p>
<pre>create user otrs password 'otrspss' nosuperuser;</pre>
<p>&#8216;otrspss&#8217; is the password, you can enter any password you want and obviously do not share it.</p>
<p>Now we have to create the database and give privileges to the newly created user on it.</p>
<pre>create database otrs owner otrs;</pre>
<figure id="attachment_4925" aria-describedby="caption-attachment-4925" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-4925" src="https://www.osradar.com/wp-content/uploads/2018/07/8-4.png" alt="8.- Creating databases" width="1366" height="738" srcset="https://www.osradar.com/wp-content/uploads/2018/07/8-4.png 1366w, https://www.osradar.com/wp-content/uploads/2018/07/8-4-300x162.png 300w, https://www.osradar.com/wp-content/uploads/2018/07/8-4-768x415.png 768w, https://www.osradar.com/wp-content/uploads/2018/07/8-4-1024x553.png 1024w, https://www.osradar.com/wp-content/uploads/2018/07/8-4-696x376.png 696w, https://www.osradar.com/wp-content/uploads/2018/07/8-4-1068x577.png 1068w, https://www.osradar.com/wp-content/uploads/2018/07/8-4-777x420.png 777w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-4925" class="wp-caption-text">8.- Creating databases</figcaption></figure>
<p>Then we went out</p>
<p>Now we enable the new user&#8217;s log in, to do this we must edit the file</p>
<pre class="">:~# nano /etc/postgresql/10/main/pg_hba.conf</pre>
<p>And we edit the file to look like the image</p>
<figure id="attachment_4926" aria-describedby="caption-attachment-4926" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-4926" src="https://www.osradar.com/wp-content/uploads/2018/07/9-7.png" alt="9.- Editing postgresql con file" width="1366" height="738" srcset="https://www.osradar.com/wp-content/uploads/2018/07/9-7.png 1366w, https://www.osradar.com/wp-content/uploads/2018/07/9-7-300x162.png 300w, https://www.osradar.com/wp-content/uploads/2018/07/9-7-768x415.png 768w, https://www.osradar.com/wp-content/uploads/2018/07/9-7-1024x553.png 1024w, https://www.osradar.com/wp-content/uploads/2018/07/9-7-696x376.png 696w, https://www.osradar.com/wp-content/uploads/2018/07/9-7-1068x577.png 1068w, https://www.osradar.com/wp-content/uploads/2018/07/9-7-777x420.png 777w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-4926" class="wp-caption-text">9.- Editing postgresql conf file</figcaption></figure>
<p>We finally restart the postgresql service.</p>
<pre class="">:~# systemctl restart postgresql</pre>
<h3>6.- Downloading OTRS</h3>
<p>Now we can download OTRS from their servers, at the time of writing this article, their latest stable version is 6.0.</p>
<pre>:~# cd /opt
:~# wget http://ftp.otrs.org/pub/otrs/otrs-6.0.8.tar.gz</pre>
<figure id="attachment_4928" aria-describedby="caption-attachment-4928" style="width: 1365px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-4928" src="https://www.osradar.com/wp-content/uploads/2018/07/10-5.png" alt="10.- Downloading otrs" width="1365" height="542" srcset="https://www.osradar.com/wp-content/uploads/2018/07/10-5.png 1365w, https://www.osradar.com/wp-content/uploads/2018/07/10-5-300x119.png 300w, https://www.osradar.com/wp-content/uploads/2018/07/10-5-768x305.png 768w, https://www.osradar.com/wp-content/uploads/2018/07/10-5-1024x407.png 1024w, https://www.osradar.com/wp-content/uploads/2018/07/10-5-696x276.png 696w, https://www.osradar.com/wp-content/uploads/2018/07/10-5-1068x424.png 1068w, https://www.osradar.com/wp-content/uploads/2018/07/10-5-1058x420.png 1058w" sizes="(max-width: 1365px) 100vw, 1365px" /><figcaption id="caption-attachment-4928" class="wp-caption-text">10.- Downloading otrs</figcaption></figure>
<p>Once downloaded, we unzip it, rename the folder to a short name and finally change the owner of the folder.</p>
<pre>:~# tar -xzvf otrs-6.0.8.tar.gz
:~# mv otrs-6.0.8 otrs
:~# chown -R otrs:otrs otrs</pre>
<figure id="attachment_4929" aria-describedby="caption-attachment-4929" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-4929" src="https://www.osradar.com/wp-content/uploads/2018/07/10-6.png" alt="10.- getting the folder" width="1366" height="738" srcset="https://www.osradar.com/wp-content/uploads/2018/07/10-6.png 1366w, https://www.osradar.com/wp-content/uploads/2018/07/10-6-300x162.png 300w, https://www.osradar.com/wp-content/uploads/2018/07/10-6-768x415.png 768w, https://www.osradar.com/wp-content/uploads/2018/07/10-6-1024x553.png 1024w, https://www.osradar.com/wp-content/uploads/2018/07/10-6-696x376.png 696w, https://www.osradar.com/wp-content/uploads/2018/07/10-6-1068x577.png 1068w, https://www.osradar.com/wp-content/uploads/2018/07/10-6-777x420.png 777w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-4929" class="wp-caption-text">10.- getting the folder</figcaption></figure>
<p>Before continuing, we must run a script that will check if all the modules are available.</p>
<pre class="">:~# /opt/otrs/bin/otrs.CheckModules.pl</pre>
<figure id="attachment_4930" aria-describedby="caption-attachment-4930" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-4930" src="https://www.osradar.com/wp-content/uploads/2018/07/12-2.png" alt="11.- Checking perl modules" width="1366" height="738" srcset="https://www.osradar.com/wp-content/uploads/2018/07/12-2.png 1366w, https://www.osradar.com/wp-content/uploads/2018/07/12-2-300x162.png 300w, https://www.osradar.com/wp-content/uploads/2018/07/12-2-768x415.png 768w, https://www.osradar.com/wp-content/uploads/2018/07/12-2-1024x553.png 1024w, https://www.osradar.com/wp-content/uploads/2018/07/12-2-696x376.png 696w, https://www.osradar.com/wp-content/uploads/2018/07/12-2-1068x577.png 1068w, https://www.osradar.com/wp-content/uploads/2018/07/12-2-777x420.png 777w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-4930" class="wp-caption-text">11.- Checking perl modules</figcaption></figure>
<p>As we see in the image, I am missing a module that is required, fortunately it also gives us the command to solve the mishap. In this case it is <strong>cpan DateTime</strong></p>
<figure id="attachment_4931" aria-describedby="caption-attachment-4931" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-4931" src="https://www.osradar.com/wp-content/uploads/2018/07/12-3.png" alt="12.- cpan datetime" width="1366" height="738" srcset="https://www.osradar.com/wp-content/uploads/2018/07/12-3.png 1366w, https://www.osradar.com/wp-content/uploads/2018/07/12-3-300x162.png 300w, https://www.osradar.com/wp-content/uploads/2018/07/12-3-768x415.png 768w, https://www.osradar.com/wp-content/uploads/2018/07/12-3-1024x553.png 1024w, https://www.osradar.com/wp-content/uploads/2018/07/12-3-696x376.png 696w, https://www.osradar.com/wp-content/uploads/2018/07/12-3-1068x577.png 1068w, https://www.osradar.com/wp-content/uploads/2018/07/12-3-777x420.png 777w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-4931" class="wp-caption-text">12.- cpan datetime</figcaption></figure>
<p>Now we run the script again.</p>
<figure id="attachment_4932" aria-describedby="caption-attachment-4932" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-4932" src="https://www.osradar.com/wp-content/uploads/2018/07/13-3.png" alt="13.- Re checking" width="1366" height="738" srcset="https://www.osradar.com/wp-content/uploads/2018/07/13-3.png 1366w, https://www.osradar.com/wp-content/uploads/2018/07/13-3-300x162.png 300w, https://www.osradar.com/wp-content/uploads/2018/07/13-3-768x415.png 768w, https://www.osradar.com/wp-content/uploads/2018/07/13-3-1024x553.png 1024w, https://www.osradar.com/wp-content/uploads/2018/07/13-3-696x376.png 696w, https://www.osradar.com/wp-content/uploads/2018/07/13-3-1068x577.png 1068w, https://www.osradar.com/wp-content/uploads/2018/07/13-3-777x420.png 777w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-4932" class="wp-caption-text">13.- Re checking</figcaption></figure>
<p>we can now see that we meet all the requirements. The missing modules are optional.</p>
<p>Now we proceed to copy the necessary settings for the execution.</p>
<pre class="">:~# cd /opt/otrs/
:~# cp Kernel/Config.pm.dist Kernel/Config.pm</pre>
<figure id="attachment_4933" aria-describedby="caption-attachment-4933" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-4933" src="https://www.osradar.com/wp-content/uploads/2018/07/14-3.png" alt="14.- Copying configurations" width="1366" height="738" srcset="https://www.osradar.com/wp-content/uploads/2018/07/14-3.png 1366w, https://www.osradar.com/wp-content/uploads/2018/07/14-3-300x162.png 300w, https://www.osradar.com/wp-content/uploads/2018/07/14-3-768x415.png 768w, https://www.osradar.com/wp-content/uploads/2018/07/14-3-1024x553.png 1024w, https://www.osradar.com/wp-content/uploads/2018/07/14-3-696x376.png 696w, https://www.osradar.com/wp-content/uploads/2018/07/14-3-1068x577.png 1068w, https://www.osradar.com/wp-content/uploads/2018/07/14-3-777x420.png 777w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-4933" class="wp-caption-text">14.- Copying configurations</figcaption></figure>
<p>The following will be editing the configuration file and in changing the database, removing mysql support and supporting postgreSQL</p>
<figure id="attachment_4934" aria-describedby="caption-attachment-4934" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-4934" src="https://www.osradar.com/wp-content/uploads/2018/07/15-2.png" alt="15.- editing configuration" width="1366" height="738" srcset="https://www.osradar.com/wp-content/uploads/2018/07/15-2.png 1366w, https://www.osradar.com/wp-content/uploads/2018/07/15-2-300x162.png 300w, https://www.osradar.com/wp-content/uploads/2018/07/15-2-768x415.png 768w, https://www.osradar.com/wp-content/uploads/2018/07/15-2-1024x553.png 1024w, https://www.osradar.com/wp-content/uploads/2018/07/15-2-696x376.png 696w, https://www.osradar.com/wp-content/uploads/2018/07/15-2-1068x577.png 1068w, https://www.osradar.com/wp-content/uploads/2018/07/15-2-777x420.png 777w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-4934" class="wp-caption-text">15.- editing configuration</figcaption></figure>
<p>Next, we must enable PostgreSQL support in apache and perl.</p>
<pre class="">:~# nano scripts/apache2-perl-startup.pl</pre>
<p>Inside the file, we just uncomment the following lines:</p>
<p># enable this if you use postgresql<br />
use DBD::Pg ();<br />
use Kernel::System::DB::postgresql;</p>
<figure id="attachment_4935" aria-describedby="caption-attachment-4935" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-4935" src="https://www.osradar.com/wp-content/uploads/2018/07/16-2.png" alt="16.- Startup apache perl" width="1366" height="738" srcset="https://www.osradar.com/wp-content/uploads/2018/07/16-2.png 1366w, https://www.osradar.com/wp-content/uploads/2018/07/16-2-300x162.png 300w, https://www.osradar.com/wp-content/uploads/2018/07/16-2-768x415.png 768w, https://www.osradar.com/wp-content/uploads/2018/07/16-2-1024x553.png 1024w, https://www.osradar.com/wp-content/uploads/2018/07/16-2-696x376.png 696w, https://www.osradar.com/wp-content/uploads/2018/07/16-2-1068x577.png 1068w, https://www.osradar.com/wp-content/uploads/2018/07/16-2-777x420.png 777w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-4935" class="wp-caption-text">16.- Startup apache perl</figcaption></figure>
<p>Save the changes and exit.</p>
<p>Now we check that all dependencies and modules are correctly loaded and configured.</p>
<pre>:~# perl -cw /opt/otrs/bin/cgi-bin/index.pl
:~# perl -cw /opt/otrs/bin/cgi-bin/customer.pl
:~# perl -cw /opt/otrs/bin/otrs.Console.pl</pre>
<p>And if when executing each of the commands, we receive a &#8220;Syntax OK&#8221;. Everything&#8217;s on track.</p>
<figure id="attachment_4936" aria-describedby="caption-attachment-4936" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-4936" src="https://www.osradar.com/wp-content/uploads/2018/07/17-2.png" alt="17.- Checking modules" width="1366" height="738" srcset="https://www.osradar.com/wp-content/uploads/2018/07/17-2.png 1366w, https://www.osradar.com/wp-content/uploads/2018/07/17-2-300x162.png 300w, https://www.osradar.com/wp-content/uploads/2018/07/17-2-768x415.png 768w, https://www.osradar.com/wp-content/uploads/2018/07/17-2-1024x553.png 1024w, https://www.osradar.com/wp-content/uploads/2018/07/17-2-696x376.png 696w, https://www.osradar.com/wp-content/uploads/2018/07/17-2-1068x577.png 1068w, https://www.osradar.com/wp-content/uploads/2018/07/17-2-777x420.png 777w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-4936" class="wp-caption-text">17.- Checking modules</figcaption></figure>
<p>Now we proceed to import a sample database into postgreSQL.</p>
<pre>:~# su - postgres
:~# cd /opt/otrs/</pre>
<p>and write:</p>
<pre>:~# psql -U otrs -W -f scripts/database/otrs-schema.postgresql.sql otrs</pre>
<figure id="attachment_4938" aria-describedby="caption-attachment-4938" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-4938" src="https://www.osradar.com/wp-content/uploads/2018/07/18-1.png" alt="18.- copying sample database" width="1366" height="738" srcset="https://www.osradar.com/wp-content/uploads/2018/07/18-1.png 1366w, https://www.osradar.com/wp-content/uploads/2018/07/18-1-300x162.png 300w, https://www.osradar.com/wp-content/uploads/2018/07/18-1-768x415.png 768w, https://www.osradar.com/wp-content/uploads/2018/07/18-1-1024x553.png 1024w, https://www.osradar.com/wp-content/uploads/2018/07/18-1-696x376.png 696w, https://www.osradar.com/wp-content/uploads/2018/07/18-1-1068x577.png 1068w, https://www.osradar.com/wp-content/uploads/2018/07/18-1-777x420.png 777w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-4938" class="wp-caption-text">18.- copying sample database</figcaption></figure>
<pre>:~# psql -U otrs -W -f scripts/database/otrs-initial_insert.postgresql.sql otrs</pre>
<p>&nbsp;</p>
<figure id="attachment_4939" aria-describedby="caption-attachment-4939" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-4939" src="https://www.osradar.com/wp-content/uploads/2018/07/19-1.png" alt="19.- Copying sample database" width="1366" height="738" srcset="https://www.osradar.com/wp-content/uploads/2018/07/19-1.png 1366w, https://www.osradar.com/wp-content/uploads/2018/07/19-1-300x162.png 300w, https://www.osradar.com/wp-content/uploads/2018/07/19-1-768x415.png 768w, https://www.osradar.com/wp-content/uploads/2018/07/19-1-1024x553.png 1024w, https://www.osradar.com/wp-content/uploads/2018/07/19-1-696x376.png 696w, https://www.osradar.com/wp-content/uploads/2018/07/19-1-1068x577.png 1068w, https://www.osradar.com/wp-content/uploads/2018/07/19-1-777x420.png 777w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-4939" class="wp-caption-text">19.- Copying sample database</figcaption></figure>
<p>And finally:</p>
<pre class="">:~# psql -U otrs -W -f scripts/database/otrs-schema-post.postgresql.sql otrs</pre>
<figure id="attachment_4940" aria-describedby="caption-attachment-4940" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-4940" src="https://www.osradar.com/wp-content/uploads/2018/07/20.png" alt="20.- Copying sample database" width="1366" height="738" srcset="https://www.osradar.com/wp-content/uploads/2018/07/20.png 1366w, https://www.osradar.com/wp-content/uploads/2018/07/20-300x162.png 300w, https://www.osradar.com/wp-content/uploads/2018/07/20-768x415.png 768w, https://www.osradar.com/wp-content/uploads/2018/07/20-1024x553.png 1024w, https://www.osradar.com/wp-content/uploads/2018/07/20-696x376.png 696w, https://www.osradar.com/wp-content/uploads/2018/07/20-1068x577.png 1068w, https://www.osradar.com/wp-content/uploads/2018/07/20-777x420.png 777w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-4940" class="wp-caption-text">20.- Copying sample database</figcaption></figure>
<h3>7.- Starting OTRS</h3>
<p>We set the permissions to the group that runs apache</p>
<pre class="">:~# /opt/otrs/bin/otrs.SetPermissions.pl --otrs-user=www-data --web-group=www-data</pre>
<p>Let&#8217;s then make a symbolic link from the virtualhost configuration created to the apache configuration file</p>
<pre class="">:~# ln -s /opt/otrs/scripts/apache2-httpd.include.conf /etc/apache2/sites-available/otrs.conf</pre>
<p>we finally enabled virtualhost and restarted apache.</p>
<pre class="">:~# a2ensite otrs
:~# systemctl restart apache2</pre>
<figure id="attachment_4941" aria-describedby="caption-attachment-4941" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-4941" src="https://www.osradar.com/wp-content/uploads/2018/07/21.png" alt="21.- Virtualhost apache" width="1366" height="738" srcset="https://www.osradar.com/wp-content/uploads/2018/07/21.png 1366w, https://www.osradar.com/wp-content/uploads/2018/07/21-300x162.png 300w, https://www.osradar.com/wp-content/uploads/2018/07/21-768x415.png 768w, https://www.osradar.com/wp-content/uploads/2018/07/21-1024x553.png 1024w, https://www.osradar.com/wp-content/uploads/2018/07/21-696x376.png 696w, https://www.osradar.com/wp-content/uploads/2018/07/21-1068x577.png 1068w, https://www.osradar.com/wp-content/uploads/2018/07/21-777x420.png 777w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-4941" class="wp-caption-text">21.- Virtualhost apache</figcaption></figure>
<h3>8.- Testing the installation</h3>
<p>Now we can enter the web browser, with the server IP and the orts path. To log in by default with root@localhost and as root key.</p>
<p><strong>http://IP_SERVER/orts/</strong></p>
<figure id="attachment_4942" aria-describedby="caption-attachment-4942" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-4942" src="https://www.osradar.com/wp-content/uploads/2018/07/22.png" alt="22.- Logging otrs web interface" width="1366" height="664" srcset="https://www.osradar.com/wp-content/uploads/2018/07/22.png 1366w, https://www.osradar.com/wp-content/uploads/2018/07/22-300x146.png 300w, https://www.osradar.com/wp-content/uploads/2018/07/22-768x373.png 768w, https://www.osradar.com/wp-content/uploads/2018/07/22-1024x498.png 1024w, https://www.osradar.com/wp-content/uploads/2018/07/22-696x338.png 696w, https://www.osradar.com/wp-content/uploads/2018/07/22-1068x519.png 1068w, https://www.osradar.com/wp-content/uploads/2018/07/22-864x420.png 864w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-4942" class="wp-caption-text">22.- Logging otrs web interface</figcaption></figure>
<figure id="attachment_4943" aria-describedby="caption-attachment-4943" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-4943" src="https://www.osradar.com/wp-content/uploads/2018/07/23.png" alt="23.- Main panel ORTS" width="1366" height="664" srcset="https://www.osradar.com/wp-content/uploads/2018/07/23.png 1366w, https://www.osradar.com/wp-content/uploads/2018/07/23-300x146.png 300w, https://www.osradar.com/wp-content/uploads/2018/07/23-768x373.png 768w, https://www.osradar.com/wp-content/uploads/2018/07/23-1024x498.png 1024w, https://www.osradar.com/wp-content/uploads/2018/07/23-696x338.png 696w, https://www.osradar.com/wp-content/uploads/2018/07/23-1068x519.png 1068w, https://www.osradar.com/wp-content/uploads/2018/07/23-864x420.png 864w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-4943" class="wp-caption-text">23.- Main panel ORTS</figcaption></figure>
<p>And then we can go on to create a new ticket</p>
<figure id="attachment_4944" aria-describedby="caption-attachment-4944" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-4944" src="https://www.osradar.com/wp-content/uploads/2018/07/24.png" alt="24.- Creating a new ticket" width="1366" height="664" srcset="https://www.osradar.com/wp-content/uploads/2018/07/24.png 1366w, https://www.osradar.com/wp-content/uploads/2018/07/24-300x146.png 300w, https://www.osradar.com/wp-content/uploads/2018/07/24-768x373.png 768w, https://www.osradar.com/wp-content/uploads/2018/07/24-1024x498.png 1024w, https://www.osradar.com/wp-content/uploads/2018/07/24-696x338.png 696w, https://www.osradar.com/wp-content/uploads/2018/07/24-1068x519.png 1068w, https://www.osradar.com/wp-content/uploads/2018/07/24-864x420.png 864w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-4944" class="wp-caption-text">24.- Creating a new ticket</figcaption></figure>
<p>We can say that the variety of OTRS configurations makes it a powerful and versatile software ideal to fulfill the task of supporting the users of an organization.</p>
<p>Please share this article through your social networks</p>
<p>&nbsp;</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-install-the-lastest-otrs-on-ubuntu-18-04/">How to install the lastest OTRS on Ubuntu 18.04?</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.osradar.com/how-to-install-the-lastest-otrs-on-ubuntu-18-04/feed/</wfw:commentRss>
			<slash:comments>12</slash:comments>
		
		
			</item>
	</channel>
</rss>
