In this article, I will explain to you the installation of the osTicketing System. So Friends as you know osTicket is an Open Source Helpdesk Support System which is used worldwide. We can manage and organize customer inquiries and complaints in one place. It provides us a user-friendly environment so it becomes very easy to manage the osTicket system.
What is the osTicketing System?
Ans. – osTicket is a widely-used open source support ticket system. It seamlessly integrates inquiries created via email, phone, and web-based forms into a simple easy-to-use multi-user web interface. Manage, organize, and archive all your support requests and responses in one place while providing your customers with the accountability and responsiveness they deserve.

Prerequisites To Install osTicket –
- PHP 5.6 for Windows Server 64-bit
- MariaDB 5.5 for Windows Server 64-bit
- PHP Manager for IIS
Steps To Install osTicket in Ubuntu
Update the Ubuntu System with the latest updates and requirements –
root@LinuxKings-virtual-machine:- # sudo apt update
Install Maria database Server
root@LinuxKings-virtual-machine:- # sudo apt install mariadb-server
Now secure your database
root@LinuxKings-virtual-machine:- # sudo mysql_secure_installation
To Login as Normal user, change the authenticate plugin
root@LinuxKings-virtual-machine:- # sudo mysql -u root
UPDATE mysql.user SET plugin = 'mysql_native_password' WHERE User = 'root'; FLUSH PRIVILEGES; QUIT;
Log in as Normal User
root@LinuxKings-virtual-machine:- # mysql -u root –p
Enter password: Enter password Welcome to the MariaDB monitor. Commands end with ; or \g. Your MariaDB connection id is 56 Server version: 10.3.22-MariaDB-1ubuntu1 Ubuntu Create a Database for osTicket And set a user for accessing the Database MariaDB [(none)]> CREATE DATABASE osticket_db; MariaDB [(none)]> GRANT ALL PRIVILEGES ON osticket_db.* TO username@localhost MariaDB [(none)]> IDENTIFIED BY "PuTstr0ngP@sSw0rdHeRe"; MariaDB [(none)]> FLUSH PRIVILEGES; MariaDB [(none)]> QUIT;
Install Apache server in Ubuntu
root@LinuxKings-virtual-machine:- # sudo apt install apache2
Start service of Apache and enable its service for permanent
root@LinuxKings-virtual-machine:- # sudo systemctl start apache2
root@LinuxKings-virtual-machine:- # sudo systemctl enable apache2
Again Update Your Ubuntu Server
root@LinuxKings-virtual-machine:- # sudo apt update
Now Install PHP and other requirements of PHP
root@LinuxKings-virtual-machine:- # sudo apt-get install php php-{fpm,pear,imap,apcu,intl,cgi,common,mbstring,net-socket,gd,xml-util,mysql,bcmath}
Check te version of PHP
root@LinuxKings-virtual-machine:- #php -v
PHP 7.4.3 (cli) (built: Mar 26 2020 20:24:23) ( NTS ) Copyright (c) The PHP Group Zend Engine v3.4.0, Copyright (c) Zend Technologies with Zend OPcache v7.4.3, Copyright (c), by Zend Technologies
Install curl, wget, and unzip
root@LinuxKings-virtual-machine:- # sudo apt-get install curl wget unzip
Now download osTicket using curl
root@LinuxKings-virtual-machine:- # curl -s https://api.github.com/repos/osTicket/osTicket/releases/latest \ | grep browser_download_url \ | grep "browser_download_url" \ | cut -d '"' -f 4 \ | wget -i -
Unzip osTicket in a Desired Folder/directory
root@LinuxKings-virtual-machine:- # unzip osTicket-v*.zip -d osTicket
Check whether osTicket is correctly installed
root@LinuxKings-virtual-machine:- # cd osTicket
root@LinuxKings-virtual-machine:- # ls osTicket scripts upload
Move osTicket directory to /var/www/
root@LinuxKings-virtual-machine:- #sudo mv osTicket /var/www/
Change directory to /var/www/osTicket/upload/include
root@LinuxKings-virtual-machine:- # cd /var/www/osTicket/upload/include
Create osTicket configuration file
root@LinuxKings-virtual-machine-/var/www/osTicket/upload/include# sudo cp ost-sampleconfig.php ost-config.php
Create a virtualhosting file for osTicket
root@LinuxKings-virtual-machine:- # sudo vim /etc/apache2/sites-enabled/osticket.conf
<VirtualHost *:80> ServerAdmin admin@example.com DocumentRoot /var/www/osTicket/upload ServerName osticket.linuxkings.com ServerAlias www.osticket.linuxkings.com <Directory /var/www/osTicket/> Options FollowSymlinks AllowOverride All Require all granted </Directory> ErrorLog ${APACHE_LOG_DIR}/osticket_error.log CustomLog ${APACHE_LOG_DIR}/osticket_access.log combined </VirtualHost>
Check whether the syntax is written correct or wrong
root@LinuxKings-virtual-machine:- # sudo apachectl -t Syntax OK
Now restart the service of apache
root@LinuxKings-virtual-machine:- # sudo systemctl restart apache2
Now when you will refresh your browser you will see an image and at botton of the page you notice something like this –
Your osTicket URL: Your Staff Control Panel:
http://192.168.40.147/ http://192.168.40.147/scp
Now click on the osTicket URL:
http://192.168.40.147 ( in my case )
Now you will see a new webpage saying that Thank For Choosing osTicket!
All the requirements/prerequisites of osTicket are completed, now you can move forward.
So here click on the Continue and go ahead.
Now it shows an error message like this –
To handle this error you must copy the command written below CLI: and paste it to the following location
root@LinuxKings-virtual-machine:- #cd /var/www/osTicket/upload
root@LinuxKings-virtual-machine-/var/www/osTicket/uploaf/include# cp include/ost-sampleconfig.php include/ost-config.php
( check image below )
Now again click on the Continue. And again you will see an error showing “Configuration file is writable”.
To solve this error again copy the command mentioned below the CLI: and paste it in the same directory.
( Check the image below)
Give the required permission to the osTicket config file
root@LinuxKings-virtual-machine:- # chmod 0644 /var/www/osTicket/upload/include/ost-config.php
Now-Again restart service of Apache
root@LinuxKings-virtual-machine:- # sudo systemctl restart apache2
Now you will be redirected to the osTicket Basic Installation webpage.
Here you must have filled your basic details like you Helpdesk Name, Default Email, Admin details, and also the database setting.
So fill these details carefully. You can also modify these details after logging in.
Once you have filled the basic installation details now you can press Install Now and move forward.
After clicking on Install now you will be transferred to a new webpage which will be like the image shown below.
Now on this page click on Sign In ( click on the top right)
Now you will go to the login page of osTicket.
Here you can guest login or you can also log in as Agent Login
if you admin then I recommend you log in as Agent.
After successful login, you can manage all of your data related to osTicket.
So friends this is all about what is osTicket. How to install osTicket in Ubuntu. Friends, if you have doubts or any queries with this post then don’t hesitate to contact me. And if you have any suggestions for me then please write to me in the comment box. If you like my posts please share it with your friends.