How to Install osTicket on CentOS 7

r00t March 28, 2018

Install osTicket on CentOS 7

In this tutorial we’ll learn how to install OsTicket on CentOS 7. We will also install and configure its prerequisites. OsTicket is a free and open source help desk software and assist ticketing system, similar (although not completely the same) to platforms like; Zendesk, Freshdesk, Groove and Ladesk. OsTicket allows you to manage, organize and record your support ticket request and contains support for LDAP and Active Directory authentication. It seamlessly routes inquiries created through email, web-forms and phone calls into an easy, easy-to-use, multi-user, web-based customer support platform.

I recommend to use a minimal CentOS server setup as a basis for the tutorial, that can be a virtual or a root server image with an CentOS 7 minimal install from a web hosting company or you use our minimal server tutorial to install a server from scratch.

Install osTicket on CentOS 7

Step 1. First, ensure your system and apt package lists are fully up-to-date by running the following:

yum -y install epel-release
yum -y update

Step 2. Installing LAMP on Ubuntu 16.04.

You should check out this LAMP stack install tutorial for Ubuntu 16.04, if you haven’t installed LAMP yet. Once it’s installed, come back here and read on. We also will install the required packages for LAMP stack and the important PHP extension that OpenCart relies on:

apt-get install php7.0-mysql php7.0-curl php7.0-json php7.0-cgi php7.0 libapache2-mod-php7.0 php7.0-mcrypt php7.0-gd php7.0-mbstring php7.0-zip php7.0-dom php7.0-xml

Step 3. Installing osTicket.

First, download osTicket from the official web site. The latest stable release is 1.10.1 so you can download it with the following command:

mkdir -p /opt/osticket
wget http://osticket.com/sites/default/files/download/osTicket-v1.10.1.zip -P /tmp
unzip -d /opt/osticket /tmp/osTicket-v1.10.1.zip

Create the symbolic link:

ln -s /opt/osticket/upload /var/www/html/support

Now just set the right permissions for the folders:

cd /var/www/html/support 
cp include/ost-sampleconfig.php include/ost-config.php
chown apache: -R /var/www/html/support /opt/osticket

Step 4. Create a database for osTicket.

Next, we need to create a database for the osTicket installation:

mysql -uroot -p

Run the following command to create a database for osTicket:

MariaDB [(none)]> CREATE DATABASE osticketdb;
MariaDB [(none)]> CREATE USER 'osticketuser'@'localhost' IDENTIFIED BY 'password';
MariaDB [(none)]> GRANT ALL ON osticketdb.* TO 'osticketuser'@'localhost';
MariaDB [(none)]> FLUSH PRIVILEGES;
MariaDB [(none)]> \q

Step 5. Configure Apache web server for osTicket.

If you are using Apache as a web server, you need to edit your ‘/etc/httpd/conf/httpd.conf’ file. Open it with your favorite text editor and add the following lines:

<VirtualHost *:80>
DocumentRoot /var/www/html/support
ServerName linuxhelp.example.com
ServerAlias www.linuxhelp.example.com

<Directory "/var/www/html/support">
AllowOverride All
</Directory>

ErrorLog logs/linuxhelp.example.com-error_log
CustomLog logs/linuxhelp.example.com-access_log common
</VirtualHost>

Save the file and restart your web server:

systemctl restart apache

Step 6. Accessing osTicket.

You can now complete the installation with the osTicket web interface. Open your web browser and navigate to http://yourdomain.com/support or http://{your-server-ip}/support to launch the installer.

Congratulation’s! You have successfully install OsTicket on your CentOS 7 server. Thanks for using this tutorial for installing OsTicket open source help desk software on CentOS 7 system.

The Tags:

Leave a Comment

Comments are closed.