How to Install OTRS on CentOS

To Install OTRS on CentOS

OTRS is an Open-source Ticket Request System. It is an open-source trouble ticket system software used in organizations for enquiries, complaints, defect reports, support requests, and other communications.

Installation of OTRS

Install the LAMP, before the installation of OTRS. To know how to install LAMP, visit the following link
https://www.linuxhelp.com/install-lamp-fedora-22/

Open the my.cnf file to add mysql location using below command.

[root@linuxhelp Desktop]# vim /etc/my.cnf

Run the following command to restart the mysql service.

[root@linuxhelp Desktop]# service mysqld restart
Stopping mysqld:                                           [  OK  ]
Starting mysqld:                                           [  OK  ]

Now start the apache service with below command.

[root@linuxhelp Desktop]# service httpd start
Starting httpd:                                            [  OK  ]

Then start the apache in run level using following command.

[root@linuxhelp Desktop]# chkconfig httpd on

To configure, copy apache configuration into respective location.

[root@linuxhelp Desktop]# cp /etc/httpd/conf/httpd.conf /etc/httpd/conf/httpd.conf.bak

Here, change the following settings with below command.

[root@linuxhelp Desktop]# vim /etc/httpd/conf/httpd.conf
ServerAdmin root@localhost
ServerName 192.168.5.82:80
Listen 192.168.5.82:80

Now, run the below command to verify the configuration status.

[root@linuxhelp Desktop]# httpd -t
Syntax OK

Restart the apache by using the below command.

[root@linuxhelp Desktop]# service httpd restart
Stopping httpd:                                            [  OK  ]
Starting httpd:                                            [  OK  ]

Run the following command to edit the iptables to allow default apache port 80 and to restart the iptable service.

[root@linuxhelp Desktop]# iptables -A INPUT -p tcp -m state --state NEW -m tcp --dport 80 -j ACCEPT
[root@linuxhelp Desktop]# service iptables restart
iptables: Setting chains to policy ACCEPT: filter mangle na[ OK ]
iptables: Flushing firewall rules: [ OK ]
iptables: Unloading modules: [ OK ]
iptables: Applying firewall rules: [ OK ]

Now start download the OTRS package by using the below command.

[root@linuxhelp Desktop]# wget http://ftp.otrs.org/pub/otrs/RPMS/rhel/6/otrs-3.3.6-01.noarch.rpm
--2016-08-04 15:09:01-- http://ftp.otrs.org/pub/otrs/RPMS/rhel/6/otrs-3.3.6-01.noarch.rpm
Resolving ftp.otrs.org... 178.63.12.4
.
.
.
100%[============================================================================> ] 20,259,619 160K/s in 3m 35s
2016-08-04 15:12:37 (91.9 KB/s) - “ otrs-3.3.6-01.noarch.rpm”  saved [20259619/20259619]

Then install the OTRS package with below command.

[root@linuxhelp Desktop]# yum install otrs-3.3.6-01.noarch.rpm
Loaded plugins: aliases, changelog, fastestmirror, kabi, presto, refresh-packagekit, security, tmprepo, verify,
: versionlock
Loading support for CentOS kernel ABI
Setting up Install Process
.
.
.
Installed:
otrs.noarch 0:3.3.6-01

Complete!

Additionally, install perl modules. To know the required modules by OTRS, run the below command.

[root@linuxhelp Desktop]# /opt/otrs/bin/otrs.CheckModules.pl

Install only the perl required package from the above displayed packages.

Run the below command to install the perl package.

[root@linuxhelp Desktop]# yum install " perl(Encode::HanExtra)"  " perl(GD)"  " perl(GD::Text)"  " perl(GD::Graph)"  " perl(JSON::XS)"  " perl(Mail::IMAPClient)"  " perl(PDF::API2)"  " perl(Text::CSV_XS)"  " perl(YAML::XS)"  
Loaded plugins: aliases, changelog, fastestmirror, kabi, presto, refresh-packagekit, security, tmprepo, verify,
: versionlock
Loading support for CentOS kernel ABI
Setting up Install Process
Loading mirror speeds from cached hostfile
* base: centos.excellmedia.net

.
.
.

Dependency Installed:
perl-Font-TTF.noarch 0:0.45-6.el6 perl-Parse-RecDescent.noarch 0:1.965-1.el6 perl-common-sense.noarch 0:3.5-1.el6

Complete!

Run the below command to view the installed packages.

[root@linuxhelp Desktop]# /opt/otrs/bin/otrs.CheckModules.pl

Now open the browser and enter the ip address with location path. Click next to start installation of OTRS.

Here click Accept License option.

Now select the database type and then click next.

Enter the following details and click Check database setting option to verify the database settings.

Here you can modify the system configuration.

Configure the outbound mail and click next for further process.

Finally, OTRS login details will be generated.

Now, Login the OTRS with generated username and password.

Home page of OTRS will appear on the screen.

Tag : OTRS
FAQ
Q
In Centos server installation of the package via RPM can be achieved in YUM?
A
In Centos, server RPM can be installed by using "rpm -ivh" rpm package and also via "yum install rpm" package.
Q
How to rectify OTRS installation error, while running the Perl scripts "otrs.CheckModules.pl"?
A
May be the "otrs.CheckModules.pl " won't have executable permission change them as "chmod +x /opt/otrs/bin/otrs.CheckModules.pl" and proceed with the setup of OTRS.
Q
How to overcome access denied error and also Database connection issue in OTRS?
A
After configuring OTRS make sure the DB user has full privilege over the created directory.
Q
How to install LAMP Stack on Fedora?
A
For LAMP Setup in Fedora use the following link
https://www.linuxhelp.com/install-lamp-fedora-22/
Q
Where to download the ORTS package in archive format?
A
To download the ORTS package in archive format follow URL "http://ftp.otrs.org/pub/otrs/RPMS/rhel/6/"