OSticket on centos 7

Make sure that you install the prerequisites for it to work, the installation is not being shown on this video.


A proven fail2ban configuration is pending for this article (not mandatory but strongly recommended).

Installing PHP on CentOS 7

The version 7.3 worked for OsTicket

1. To install PHP 7, you have to install and enable EPEL and Remi repository on your CentOS 7 system with the commands below.

# yum install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
# yum install http://rpms.remirepo.net/enterprise/remi-release-7.rpm
2. Next, you need to install yum-utils, a collection of useful programs for managing yum repositories and packages. It has tools that basically extend yum’s default features.

It can be used for managing (enabling or disabling) yum repositories as well as packages without any manual configuration and so much more.
# yum install yum-utils 

3. One of the programs provided by yum-utils is yum-config-manager, which you can use to enable Remi repository as the default repository for installing different PHP versions as shown.

If you want to install PHP 7.1PHP 7.2 or PHP 7.3 on CentOS 7, just enable it as shown.

# yum-config-manager --enable remi-php71   [Install PHP 7.1] 
# yum-config-manager --enable remi-php72   [Install PHP 7.2] 
# yum-config-manager --enable remi-php73   [
Install PHP 7.3] 

4. Now install PHP 7 with all necessary modules with the command below.

# yum install php php-mcrypt php-cli php-gd php-curl php-mysql php-ldap php-zip php-fileinfo
Afterwards, double check the installed version of PHP on your system.

# php -v 
Check PHP Version in CentOS 7


Source: https://www.tecmint.com/install-php-7-in-centos-7/

Apache Web server

#yum install -y httpd
#systemctl enable httpd
#systemctl start httpd

then edit the file "httpd.conf", scroll down until you see the line: DocumentRoot "/var/www/html..."
set it as: DocumentRoot "/var/www/html/osTicket"

One comment

  1. I must thank you for the efforts youve put in penning this site. I am hoping to check out the same high-grade blog posts by you in the future as well. In fact, your creative writing abilities has motivated me to get my very own blog now 😉

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.