- Edited
Wanted to share my steps and notes for installing osTicket 1.10.1 on Fedora 28. This is cut-and-dry because I do not like to spend time explaining things. Also, I do not create a 'standard' user because it is a waste of time. All commands are ran as root. Any passwords and/or database names should be considered as examples. Please do not use "osticket_password" as an actual password.Install Fedora 28 using "Minimal".Install required and optional packages:# dnf install wget httpd mariadb-server php php-mysqlnd php-xml php-gd php-imap php-mbstring php-json php-intl php-pecl-apcu php-opcacheEnable and start Apache and MariaDB:# systemctl enable mariadb httpd# systemctl start mariadb httpdExtract osTicket-v1.10.1.zip to /var/www/html.Copy the sample configuration into a used configuration.# cp /var/www/html/upload/include/ost-sampleconfig.php /var/www/html/upload/include/ost-config.phpSet the permissions of the used configuration and apply the proper SELinux context:# chmod 0666 /var/www/html/upload/include/ost-config.php# restorecon -Rv /var/www/htmlSetup the MariaDB database:# mysql_secure_installationSet a new root password.Answer Y to all questions.Open the MySQL CLI as the DB root user:# mysql -u root -pCreate the osTicket database, user and password:> CREATE DATABASE osticket_db;> CREATE USER 'osticket_user'@'localhost' IDENTIFIED BY 'osticket_password';> GRANT ALL PRIVILEGES on osticket_db.* TO 'osticket_user'@'localhost' ;> FLUSH PRIVILEGES;> EXIT;Open the HTTP communication port:# firewall-cmd --add-service=http --permanent# firewall-cmd --reloadTemporarily disable SELinux before browsing to the web interface:# setenforce 0Otherwise, you will hit this during setup:type=AVC msg=audit(1531165284.897): avc: denied { write } for pid=14692 comm="php-fpm" name="ost-config.php" dev="dm-0" ino=923597 scontext=system_u tcontext=unconfined_u tclass=file permissive=0Browse to http://hostname/upload to continue setup.This should be straightforward.Secure the configuration file and remove the setup folder:# chmod 0664 /var/www/html/upload/include/ost-config.php# rm -rf /var/www/html/upload/include/setupManually apply the fix for "Valid CSRF Token Required":# vi /var/www/html/upload/include/class.ostsession.php Just add the same code highlighted in green:https://github.com/osTicket/osTicket/commit/424bfc99d93b920f6162b602eeea41125086425dkwaheri rafiki!