Installing OSTicket on Centos 8 - lmkelly/Autoguard GitHub Wiki

Prerequisites

  • Apache
  • PHP
  • MySQL
  • 7zip
[deployer@Wireguard-Srv]$ sudo yum install httpd php php-mysqli php-fpm php-cli php-xml php-common php-gd php-mbstring php-json php-pecl-apcu
php-pear php-devel php-intl php-pecl-zendopcache httpd-devel pcre-devel gcc makemysql mysql-server p7zip wget -y

Download OSTicket and upload to server

  1. Go to osticket.com/download
  2. Download and unzip folder
  3. 7zip the upload directory
  4. SCP upload.7z to server
PS C:\WINDOWS\System32> pscp.exe -i C:\.wg\deployer_key.ppk C:\Users\arest\Desktop\OSTicket\upload.7z [email protected]:/home/deployer
  1. Unzip and send to /var/www/html
[deployer@Wireguard-Srv deployer]$ sudo cp upload.7z /var/www/html
[deployer@Wireguard-Srv html]$ sudo 7za x upload.7z
[deployer@Wireguard-Srv html]$ sudo mv upload osticket

Create MySQL user/database

Initialize MySQL

[deployer@Wireguard-Srv deployer]$ sudo service mysqld start
[deployer@Wireguard-Srv deployer]$ sudo service mysqld enable
[deployer@Wireguard-Srv deployer]$ sudo mysql_secure_installation

Create database

[deployer@Wireguard-Srv deployer]$ mysql -u root -p
mysql> create database osTicket;

Fix permissions/start apache

[deployer@Wireguard-Srv deployer]$ sudo chown deployer:apache -R /var/www/html/support
[deployer@Wireguard-Srv deployer]$ sudo chmod -R 775 support
[deployer@Wireguard-Srv deployer]$ sudo systemctl start httpd
[deployer@Wireguard-Srv deployer]$ sudo systemctl enable httpd

Fix PHP to install imap plugin

[deployer@Wireguard-Srv deployer]$ sudo dnf install dnf-utils http://rpms.remirepo.net/enterprise/remi-release-8.rpm -y
[deployer@Wireguard-Srv deployer]$ sudo dnf module list php
[deployer@Wireguard-Srv deployer]$ sudo dnf module reset php -y
[deployer@Wireguard-Srv deployer]$ sudo dnf module enable php:remi-7.4 -y
[deployer@Wireguard-Srv deployer]$ sudo dnf install php -y
[deployer@Wireguard-Srv deployer]$ sudo dnf install -y php-imap

Disable SElinux through /etc/selinux/config

Reboot the system and go to http://ip/osticket

Follow the instructions on screen