Naturally, everyone does things a little differently though so I thought I would share my own build notes.
I tend to stick to Centos, have a policy of services are always born https only, and like to keep SELinux enabled.
My notes tend to be in short hand a little so if any additional explanation is required just ask.
Prereq software installs:
yum install epel-release
yum -y group install "Development Tools"
yum -y install httpd httpd-devel mod_ssl mariadb-server mariadb mariadb-devel php php-devel
yum -y install php-mysql php-gd php-php-gettext php-imap php-mbstring php-xml php-pecl-apcu php-intl php-pecl-zendopcache php-ldap
Modifications to php config:
date.timezone = "Australia/Brisbane"
upload_max_filesize = 20M
Configure and start mariadb:
systemctl enable mariadb
systemctl start mariadb
^- set db root password
mysql -u root -p
CREATE DATABASE osticket CHARACTER SET utf8;
CREATE USER 'osticket'@'localhost' IDENTIFIED BY '<yourdbpassword>';
GRANT ALL privileges ON osticket.* TO 'osticket'@'localhost';
Add in a dedicated user account for this service, you can just use your own account too if that is easier:
Just run commands from your own account whenever I have an "as osticket" section:
su - osticket
Grab the latest OsTicket source and plugins repos:
Setup a directory in the webroot to host osTicket from:
chown osticket:osticket /var/www/html/osticket
Use the OsTicket manage.php to sync from git repo to webroot, includes copying the setup folder:
Copy the ost-config.php file in order for the installer to be able to save settings to it:
php manage.php deploy --setup /var/www/html/osticket
cp include/ost-sampleconfig.php include/ost-config.php
chmod 0666 include/ost-config.php
Allow writing of this file even with Selinux active:
as root: chcon -t httpd_sys_rw_content_t include/ost-config.php
... continued in next post...