The Complete Guide: How to Install OsTicket Open Source Ticketing Support on Linux

The open source osTicket ticket support system is widely used and trusted. It easily routes inquiries created via email, web forms and phone calls, a simple, easy-to-use, multi-user web-based customer support platform. The best part is absolutely free… This guide will quickly walk you through how to install the open source OsTicket ticketing support system on Linux.

What you need to get support for the open source OsTicket ticketing system on Linux

  • RHEL 6 OS: We used the RHEL6 system for this demonstration.
[[email protected] ~]# cat /etc/redhat-release
Red Hat Enterprise Linux Server release 6.5 (Santiago)
[[email protected] ~]#

  • HTTPD.
  • MySQL.
  • PHP.
  • OsTicket

Steps required to install OsTicket ticket support system

one. Install HTTPD

[[email protected] ~]# yum -y install httpd httpd-devel

2. Restart the Apache server

In the next step, we need to restart the Apache server and add the service to chkconfig so that it loads automatically after reboot.

[[email protected] ~]# service httpd restart
Stopping httpd:                                            [  OK  ]
Starting httpd:                                            [  OK  ]
[[email protected] ~]#  chkconfig httpd on
[[email protected] ~]#

3. Installing and configuring MySQL

In the next step, we need to install the MySQL server.

[[email protected] ~]# yum -y install mysql mysql-server mysql-devel

4. Starting the Mysqld service

At this point, we need to start the MySQL service, add the MySQL service to chkconfig so that it will start automatically after reboot.

[[email protected] ~]# service mysqld restart
[[email protected] ~]# chkconfig mysqld on

5. Changing the root password in MySQL:

After we have started the MySQL service, we must change the MySQL root password.

[[email protected] ~]# mysql_secure_installation

Please enter the following answers to the question during installation:

Enter the current superuser password (no need to enter): (Please press enter to set the root password)

Enter current password for root (enter for none):
OK, successfully used password, moving on...
 
Setting the root password ensures that nobody can log into the MySQL
root user without the proper authorisation.
 
Set root password? [Y/n] Y
New password:
Re-enter new password:
Remove anonymous users? [Y/n] Y
Disallow root login remotely? [Y/n] Y
Remove test database and access to it? [Y/n] Y
Reload privilege tables now? [Y/n] Y

6. Creating the database required for OsTicket

We will now create the database required for OsTicket.

[[email protected] ~]#  mysql -u root -p

You will receive a MySQL query as soon as you are successfully authenticated. Please use the following command to create the database.

mysql> create database osticket;
mysql> grant all privileges on osticket.* to [email protected]'localhost' identified by 'password';
mysql>  flush privileges;
mysql> exit
[[email protected] ~]#

In the next step, we will install PHP.

7. Install PHP.

[[email protected] ~]# yum -y install php php-mysql php-common php-gd php-mbstring php-mcrypt php-devel php-xml php-imap php-ldap php-mbstring php-odbc php-pear php-xmlrpc php-soap mod_ssl

8. Restart the Apache server.

[[email protected] ~]# service httpd restart
Stopping httpd:                                            [  OK  ]
Starting httpd:                                            [  OK  ]
[[email protected] ~]#

9. Installing and configuring OsTicket:

[[email protected] ~]# yum -y install unzip
[[email protected] ~]# cd /var/www/html
[[email protected] html]# wget http://osticket.com/sites/default/files/download/osTicket-v1.9.2.zip
[[email protected] html]# unzip osTicket-v1.9.2.zip
[[email protected] html]#  mv upload support

ten. Rename and change the resolution of the ost-sampleconfig.php file.

[[email protected] html]# cd /var/www/html/support/include
[[email protected] include]# mv ost-sampleconfig.php ost-config.php
[[email protected] include]# chmod 777 ost-config.php

eleven. Modifying /etc/php.ini for short_open_tag parameter

Open and change the “short_open_tag” parameter in the “/etc/php.ini” file to one level below.

short_open_tag = On

12. Now restart Apache again.

[[email protected] include]# service httpd restart
Stopping httpd:                                            [  OK  ]
Starting httpd:                                            [  OK  ]
[[email protected] include]#

13. Now open your browser and use below format in the address bar.

http://ip address/support/setup/
or
http://hostname or doamain/support/setup/

This will open a page in the browser for further configuration:

Click the button Continue in the lower part. In the next window, enter the details below and click the install now button:

-->System Settings :
   Helpdesk Name: LinuxRoutes HelpDesk
   Default Email: [email protected]
   Default Language: English
 
--> Admin User :
   First Name: Manmohan
   Last Name : Mirkar
   Email Add : [email protected]
   Username  : administrator
   Password  : Password
   Retype Pass : Password
 
--> Database Settings :
   MySQL Hostname : localhost
   MySQL Database : osticket
   MySQL Username : osticket
   MySQL password : password

Screenshot for installing OsTicket ticketing system support:

How to install support for OsTicket Open Source ticketing system on Linux

If all details are correct, you will receive a success window along with the URL to access the OsTicket application as shown below:

How to install support for OsTicket Open Source ticketing system on Linux

Now next time and further use the address (Your osTicket URL) shown in the screenshot above. So from now on, you can create new users using the administrator credentials and tickets can be created with a regular user using the URL given in the screenshot above “http: // / support /”.

How to install support for OsTicket Open Source ticketing system on Linux

14. Change permission for ost-config.php and remove installation directory.

[[email protected] include]#  cd /var/www/html/support
[[email protected] support]# rm -rf setup
[[email protected] support]# chmod 644 /var/www/html/support/include/ost-config.php

Reference:

Sidebar