This is how I configured OS Ticket on Debian 9.8.

Distributor ID: Debian
Description:    Debian GNU/Linux 9.8 (stretch)
Release:        9.8
Codename:       stretch

Use apt-get install to install some packages

apt-get install apache2 mysql-server net-tools php php php-apcu php-imap php-intl php-mbstring php-mysql php-xml php7.0-gd postfix unzip -yf

Create MySQL Database and Username

create database osticket;
CREATE USER 'osticket'@'localhost' IDENTIFIED BY 'YourPasswordHere';
GRANT ALL PRIVILEGES ON osticket.* TO 'osticket'@'localhost';

Download, Unzip, and Copy OS Ticket

  • OS Ticket
  • unzip osTicket-v1.11.zip
  • cp -r upload/ /var/www/html/osticket

Change to the directory and modify permissions

  • cd /var/www/html/osticket
  • chmod -R 775 *
  • chown -R www-data:www-data *

Copy the sample configuration, modify its permissions

cd /var/www/html/osticket
cp include/ost-sampleconfig.php include/ost-config.php
chmod 0666 include/ost-config.php

Configure OS Ticket at your website

Clean Up After Installation & Configuration

  • cd /var/www/html/osticket
  • rm -rf setup/
  • chmod 644 include/ost-config.php

Configure Postfix To Use Gmail As SMTP Relay

nano /etc/postfix/main.cf
relayhost = [smtp-relay.gmail.com]:587

OS Ticket URL Examples