Installing osTicket on Ubuntu 24.04 using LAMP Stack with SSL
In this guide, we will walk you through the process of deploying osTicket, an open-source support ticketing system, on Ubuntu 24.04 LTS. By following these steps, you'll create a stable, long-term supported platform for ticketing and helpdesk workflows.
Prerequisites
First, create a Virtual Private Server (VPS) using Shape.Host, then connect to the server via SSH. For Linux, macOS, and Windows users, you can use PuTTY to connect to the server.
Installation
System Update and Upgrade
Before beginning the installation, update and upgrade the system using the command:
Add PHP Repository
To install the required PHP packages, add the following repository:
Install Required Packages
Install the necessary packages with the following command:
Install Apache, PHP, and Extensions
Install Apache, PHP 8.2, and extensions with the following command:
Install MariaDB or MySQL
Ubuntu 24.04 includes MariaDB 10.11 by default. If you prefer MySQL 8.0, you can install it using:
Install Fail2Ban (Optional)
To block brute-force login attempts on Ubuntu 24.04, you can install Fail2Ban:
Install UFW/NFTables (Optional)
To restrict access to required ports (80/443) on Ubuntu 24.04, you can install UFW/NFTables:
Install Let's Encrypt (Certbot)
To secure the site with SSL, follow the prompts to obtain and install the SSL certificate:
Install osTicket
Download and extract the osTicket package, then move the setup folder:
Replace with the appropriate version number.
Configure Apache Virtual Host
To configure Apache Virtual Host, create a new config file, paste the provided content, enable the site, and reload Apache.
Create the osTicket Database
To create the osTicket database, use the following command:
Replace with a strong password for the osTicket database.
Install Apache mod_ssl
To enable HTTPS with HTTP/2 support on Ubuntu 24.04, install Apache mod_ssl:
Install osTicket and Enable SSL
Enable the SSL module, enable the site, and reload Apache:
Replace with the appropriate configuration file for your site.
Secure Attachments
Attachments and database growth must be monitored over time. To improve scalability, store attachments on a separate storage volume or S3-compatible service.
Accessing osTicket
To access osTicket, visit or .
Key Features of osTicket
osTicket offers several key features, including email-to-ticket conversion, custom fields and forms, agent collision avoidance, ticket filters and automation, multilingual support, and knowledgebase integration.
By following these steps, you will have successfully deployed osTicket on Ubuntu 24.04 LTS with a LAMP stack and SSL, providing a secure, stable, and scalable foundation for your ticketing and helpdesk workflows.
[1] Source [2] Source
In this guided process, we will also set up a home-and-garden lifestyle for our VPS, ensuring an organized and efficient space. By installing Fail2Ban, data-and-cloud-computing best practices will be employed to secure our server from brute-force attacks, enhancing its overall performance.