Installation
Prerequisites
- PHP 7.2 or later
- MySQL 5.0 or later
- Apache or similar webserver
- One MySQL database with a valid user, password, and hostname with full privileges to the OsTicket database.
- Download the latest version of OsTicket from here and upload the files to the server
- This guide assumes you are using Ubuntu, but OsTicket can also be installed on RHEL derivatives too.
Installation Steps
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-zipSet the default PHP timezone to “America”
vim /etc/php/7.4/apache2/php.iniSecure MySQL:
mysql_secure_installationSetup 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;Unzip the Osticket folders and copy the contents of the upload folder to
/var/www/osticketCreate an apache .conf file for osticket:
cp /etc/apache2/sites-available/default-ssl.conf /etc/apache2/sites-available/osticket.confUpdate the DocumentRoot in osticket.conf to use the files in
/var/www/osticketEnable new site:
a2ensite osticket.confEnable mod_ssl:
a2enmod sslOpen your browser and go to
https://server_ip/setupto begin the installation process. Install the items under “recommended” if they are not already installed and then click the continue button.Follow osTicket prompts
Enter the database information from earlier when prompted.