Ultimate Guide: Configuring osTicket on Debian 11 Bullseye

In this comprehensive tutorial, we’ll take you through the entire process of installing and fine-tuning osTicket on Debian 11 Bullseye. osTicket is a robust open-source support ticket system that has garnered a significant following, as evidenced by its presence on GitHub. Being built on PHP, osTicket requires a MySQL database to function. We will cover all the necessary steps, including server setup, firewall configuration, obtaining an HTTPS certificate through Certbot, downloading and setting up osTicket, as well as configuring MariaDB and Nginx.

Prerequisites for Installation

Before we dive into the installation of osTicket, make sure you have the following ready:

  • A server with Debian 11 Bullseye, preferably hosted by a service like Vultr.
  • Elevated privileges with a sudo user.
  • A DNS A record pointing your chosen domain name to the IP address of your server.

Detailed Installation Instructions

Step 1: Installing Necessary Packages

Begin by installing the core components required to run osTicket using the APT package manager:

$ sudo apt install -y ufw nginx python3-certbot-nginx php-fpm php-mysql mariadb-server unzip php-gd php-imap php-xml php-mbstring php-intl php-apcu

Step 2: Fire Up the Firewall

Set up UFW to allow necessary ports for SSH, HTTP, and HTTPS traffic:

$ sudo ufw allow ssh

$ sudo ufw allow http

$ sudo ufw allow https

$ sudo ufw enable

Step 3: Obtain an HTTPS Certificate via Certbot

Secure your osTicket installation with an HTTPS certificate by using Certbot with the Nginx plugin:

$ sudo certbot –nginx -d yourdomain.com

Step 4: Certificate Renewal Automation

Set up a cron job to keep your HTTPS certificate from expiring by renewing it regularly:

$ sudo crontab -e

Paste in the new line to renew automatically:

0 0 * * * /usr/bin/certbot renew –quiet

Step 5: Acquiring osTicket Source

Fetch the latest osTicket source files and prepare them for the server environment:

$ sudo wget -P /var/www/ https://github.com/osTicket/osTicket/releases/latest/download/osTicket-v1.15.4.zip

$ sudo unzip /var/www/osTicket-v1.15.4.zip -d /var/www/

$ sudo mv /var/www/upload /var/www/osticket

$ sudo cp /var/www/osticket/include/ost-sampleconfig.php /var/www/osticket/include/ost-config.php

$ sudo chown -R www-data:www-data /var/www/osticket

Step 6: Database Configuration for MariaDB

Secure your MariaDB installation and set up a dedicated database and user for osTicket:

$ sudo mysql_secure_installation

$ sudo mysql

CREATE DATABASE osticketdb CHARACTER SET utf8 COLLATE utf8_general_ci;

CREATE USER ‘osticketuser’@’localhost’ IDENTIFIED BY ‘yourpassword’;

GRANT ALL PRIVILEGES ON osticketdb.* TO ‘osticketuser’@’localhost’;



Step 7: Configuring Nginx for osTicket

Adjust your Nginx server block for optimal performance with osTicket:

$ sudo nano /etc/nginx/sites-available/osticket

Replace the existing configuration with an optimized one, ensuring you substitute ‘yourdomain.com’ with your actual domain name:

server {
listen 443 ssl http2;
server_name yourdomain.com;
ssl_certificate /etc/letsencrypt/live/yourdomain.com/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/yourdomain.com/privkey.pem;
root /var/www/osticket;
index index.php;



By following these steps, you’ve successfully set up osTicket on your Debian 11 Bullseye server. Your support ticket system is now ready for customization and ready to deliver excellent customer support.


Q: What is osTicket, and why is it useful for my organization?

A: osTicket is an open source support ticket system that helps you manage customer inquiries in an organized manner, making it a valuable tool for providing effective support.

Q: How do I maintain the security of my osTicket installation?

A: Keep your system updated, use strong passwords, regularly backup your osTicket installation, and configure HTTPS to maintain security.

This guide ensures that your content is not only SEO-friendly and educational but also engaging and current, setting the stage for an effective support system using the latest technologies available.

Editorial Staff
Editorial Staffhttps://www.bollyinside.com
The Bollyinside editorial staff is made up of tech experts with more than 10 years of experience Led by Sumit Chauhan. We started in 2014 and now Bollyinside is a leading tech resource, offering everything from product reviews and tech guides to marketing tips. Think of us as your go-to tech encyclopedia!


Please enter your comment!
Please enter your name here

Related Articles

Best Telemedicine Software: for your healthcare practice

Telemedicine software has transformed my healthcare visits. It's fantastic for patients and doctors since they can obtain aid quickly. I...
Read more
I love microlearning Platforms in today's fast-paced world. Short, focused teachings that engage me are key. Microlearning platforms are great...
Think of a notebook on your computer or tablet that can be changed to fit whatever you want to write...
As of late, Homeschool Apps has gained a lot of popularity, which means that an increasing number of...
From what I've seen, HelpDesk software is essential for modern businesses to run easily. It's especially useful for improving customer...
For all of our important pictures, stories, and drawings, Google Drive is like a big toy box. But sometimes the...