How To Install osTicket on CentOS 6

Install osTicket on CentOS 6

In this tutorial, we will show you how to install and configure of osTicket on your CentOS 6. For those of you who didn’t know, os-Ticket is a widely used and trusted open-source support ticket system. It seamlessly routes inquiries created via email, web forms, and phone calls into a simple, easy-to-use, multi-user, web-based customer support platform. Generally Used for Help Desk services.

This article assumes you have at least basic knowledge of Linux, know how to use the shell, and most importantly, you host your site on your own VPS. The installation is quite simple. I will show you the step-by-step installation osTicket on CentOS 6.


  • A server running one of the following operating systems: CentOS 6.
  • It’s recommended that you use a fresh OS install to prevent any potential issues.
  • A non-root sudo useror access to the root user. We recommend acting as a non-root sudo user, however, as you can harm your system if you’re not careful when acting as the root.

Install osTicket on CentOS 6

Step 1. First of all, make sure that all packages are up to date.

yum -y update

Step 2. Install the LAMP server and include some PHP extensions.

yum install httpd httpd-devel 
yum install mysql mysql-server
yum install php php-cli php-common php-devel php-gd php-mbstring php-mysql php-xml php-imap php-zip php-zlib php-pdo

Start service Apache web server and MySQL also enable it to start on boot of the server:

service httpd start
service mysql start
chkconfig httpd on
chkconfig mysqld on

Step 3. Install osTicket.

Download the latest stable version of osTicket, At the moment of writing this article it is version 1.9.8:

mkdir -p /opt/osticket
unzip -d /opt/osticket /tmp/ 
ln -s /opt/osticket/upload /var/www/html/support

We will need to change some folders permissions:

chown apache: -R /var/www/html/support /opt/osticket

Run the following commands to finalize the installation of osTicket:

cd /var/www/html/support 
cp include/ost-sampleconfig.php include/ost-config.php

Step 4. Configure MySQL Database for osTicket.

By default, MySQL is not hardened. You can secure MySQL using the mysql_secure_installation script. you should read and below each step carefully which will set a root password, remove anonymous users, disallow remote root login, and remove the test database and access to secure MySQL.


Next, we will need to log in to the MySQL console and create a database for osTicket. Run the following command:

mysql -u root -p

This will prompt you for a password, so enter your MySQL root password and hit Enter. Once you are logged in to your database server you need to create a database for the osTicket software:

mysql> create database support;
mysql> grant all on support.* to support@localhost identified by 'support';
mysql> \q

Step 5. Configure Apache webserver.

Create a new virtual host directive in Apache so you can access the osTicket installation on your server using your domain name:

nano /etc/httpd/conf/httpd.conf

Add the following lines at the end of the file:

<VirtualHost *:80>
 DocumentRoot /var/www/html/support
 <Directory /var/www/html/support/>
 Options FollowSymLinks
 AllowOverride All
 ErrorLog /var/log/httpd/
 CustomLog /var/log/httpd/ common

Restart the Apache service for the changes to take effect:

service httpd restart

Step 6. Accessing osTicket.

osTicket will be available on HTTP port 80 by default. Open your favorite browser and navigate to or http://support.server-ip and complete the required steps to finish the installation. If you are using a firewall, please open port 80 to enable access to the control panel.

Congratulations! You have successfully installed osTicket. Thanks for using this tutorial for installing osTicket (Open source ticketing tool) on CentOS 6 system. For additional help or useful information, we recommend you to check the official osTicket website.

VPS Manage Service Offer
If you don’t have time to do all of this stuff, or if this is not your area of expertise, we offer a service to do “VPS Manage Service Offer”, starting from $10 (Paypal payment). Please contact us to get the best deal!