Introduction
osTicket is a widely-used open-source ticketing system that helps businesses manage customer support requests efficiently. This guide will walk you through the installation process of osTicket on the latest version of Ubuntu.
Prerequisites
Before starting, ensure your server meets the following requirements:
- Apache, LiteSpeed, or IIS web server with URL Rewrite module enabled.
- PHP version 8.1 to 8.2 (8.2 recommended).
- MySQL version 5.0 or higher.
Step 1: Update Your System
Begin by updating your package list and upgrading all system packages to their latest versions. Open your terminal and execute these commands:
sudo apt update
sudo apt upgrade -y
Step 2: Install Apache and PHP
Install Apache and the required PHP modules:
sudo apt install apache2
sudo apt install php8.2 libapache2-mod-php8.2 php8.2-mysql php8.2-xml php8.2-mbstring php8.2-intl php8.2-imap php8.2-gd php8.2-curl php8.2-zip
Step 3: Install MySQL
Install MySQL server and secure the installation:
sudo apt install mysql-server
sudo mysql_secure_installation
Follow the prompts to secure your MySQL installation.
Step 4: Download and Configure osTicket
Download the latest version of osTicket from the official website or use wget to download directly:
cd /var/www/html
wget https://github.com/osTicket/osTicket/releases/download/v1.17.1/osTicket-v1.17.1.zip
Extract the downloaded file:
sudo apt install unzip
unzip osTicket-v1.17.1.zip
Move the extracted files to a new directory:
mv upload osticket
Step 5: Set Permissions
Set the correct permissions for the osTicket directory:
sudo chown -R www-data:www-data /var/www/html/osticket
sudo chmod -R 755 /var/www/html/osticket
Step 6: Configure Apache
Create a new Apache configuration file for osTicket:
sudo nano /etc/apache2/sites-available/osticket.conf
Add the following configuration:
ServerAdmin admin@example.com DocumentRoot /var/www/html/osticket ServerName your_domain.com ServerAlias www.your_domain.com Options Indexes FollowSymLinks AllowOverride All Require all granted ErrorLog ${APACHE_LOG_DIR}/error.log CustomLog ${APACHE_LOG_DIR}/access.log combined
Enable the new configuration and rewrite module, then restart Apache:
sudo a2ensite osticket.conf
sudo a2enmod rewrite
sudo systemctl restart apache2
Step 7: Set Up the Database
Log in to your MySQL shell and create a database for osTicket:
mysql -u root -p
Enter the following commands in the MySQL shell:
CREATE DATABASE osticket;
CREATE USER 'osticketuser'@'localhost' IDENTIFIED BY 'yourpassword';
GRANT ALL PRIVILEGES ON osticket.* TO 'osticketuser'@'localhost';
FLUSH PRIVILEGES;
EXIT;
Step 8: Complete the Installation
Open your web browser and navigate to your server’s domain (e.g., http://your_domain.com). Follow the on-screen instructions to complete the osTicket installation, entering your database details when prompted.
Conclusion
You have successfully installed osTicket on the latest version of Ubuntu. You can now use osTicket to manage your customer support tickets effectively.







