How to install osTicket on Ubuntu

osTicket is a popular open source application system.

For example, I will install osTicket on Ubuntu 18.04.

First, install the web server and the necessary components:

sudo apt update
sudo apt install apache2 php libapache2-mod-php php-mysql php-cgi php-fpm php-cli php-curl php-gd php-imap php-mbstring php-xml php-intl php-ldap php-apcu unzip

Install the database server and execute the security recommendations with the second command:

sudo apt install mysql-client mysql-server
sudo mysql_secure_installation

Connect to the MySQL server, create the database and user:

sudo mysql -u root -p
CREATE DATABASE osticket;
create user osticket@localhost identified by 'password';
GRANT ALL PRIVILEGES ON osticket.* TO 'osticket'@'localhost' IDENTIFIED BY 'password';
FLUSH PRIVILEGES;
exit;

Create a directory and download osTicket, and also create a configuration file:

sudo mkdir /var/www/osticket
cd /var/www/osticket
sudo wget https://github.com/osTicket/osTicket/releases/download/v1.12.2/osTicket-v1.12.2.zip
sudo unzip osTicket-v1.12.2.zip
sudo cp upload/include/ost-sampleconfig.php upload/include/ost-config.php
sudo chown -R www-data:www-data /var/www/osticket

New download links can be copied here:
https://osticket.com/download/
https://github.com/osTicket/osTicket/releases

Set up a separate Apache2 web configuration for osTicket, or if using the standard one, we will move the files to the root directory of the web server:

sudo mv /var/www/osticket/upload/* /var/www/html

Now it remains to open the browser address of the server on which osTicket is installed and follow the instructions. After installation and configuration, for security reasons, be sure to delete the setup directory.

See also my article:
Installing and Configuring the Apache2 Web Server

Did my article help you? How about buying me a cup of coffee as an encouragement? Buy me a coffe.

Leave a comment

Leave a Reply