Installation

Prerequisites

  1. PHP 7.2 or later
  2. MySQL 5.0 or later
  3. Apache or similar webserver
  4. One MySQL database with a valid user, password, and hostname with full privileges to the OsTicket database.
  5. Download the latest version of OsTicket from here and upload the files to the server
  6. This guide assumes you are using Ubuntu, but OsTicket can also be installed on RHEL derivatives too.

Installation Steps

  1. Install dependencies sudo apt install php7.4 mysql-server apache2 apache2-data apache2-utils apache2-bin php7.4-gd php7.4-imap php7.4-mysql php7.4-xml php7.4-mbstring php7.4-intl php-apcu php7.4-zip

  2. Set the default PHP timezone to “America” vim /etc/php/7.4/apache2/php.ini

  3. Secure MySQL: mysql_secure_installation

  4. Setup MySQL Database. Replace password with the password you want to use.

    CREATE DATABASE osticket;
    CREATE USER 'osticket'@'localhost' IDENTIFIED BY 'password';
    GRANT ALL PRIVILEGES ON osticket . * TO 'osticket'@'localhost';
    FLUSH PRIVILEGES;
  5. Unzip the Osticket folders and copy the contents of the upload folder to /var/www/osticket

  6. Create an apache .conf file for osticket:

    cp /etc/apache2/sites-available/default-ssl.conf /etc/apache2/sites-available/osticket.conf
  7. Update the DocumentRoot in osticket.conf to use the files in /var/www/osticket

  8. Enable new site:

    a2ensite osticket.conf
  9. Enable mod_ssl:

    a2enmod ssl
  10. Open your browser and go to https://server_ip/setup to begin the installation process. Install the items under “recommended” if they are not already installed and then click the continue button.

  11. Follow osTicket prompts

  12. Enter the database information from earlier when prompted.