Simply build Ticketing System.

Anang Mansjur
3 min readOct 27, 2021

Hi Tech People this time I’m going to share a tutorial to build a ticketing system, this ticketing system is designed to accommodate when there’s control on the user so the problem can be reported through the ticketing system, and also useful for listing problems that occur to users so that IT Helpdesk is easy to scale.

In this tutorial I use Ubuntu Server 16.04

– Hesk Version 323 Ticketing System
– Apache web server;
– PHP (version 5.3.0 or higher) along with the mbstring, curl, zip, gd and mcrypt extensions.They are most generally active by default on a standard php installation.
– MySQL(version 5.0.7 or higher) installed on your Linux VPS

Instruction

Update your Ubuntu Server

# sudo apt-get update && sudo apt-get -y upgrade

Install MariaDB for Database

# sudo apt-get install -y mariadb-server

Create Database for ticketing system (Hesk)

# mysql -u root -p

# MariaDB [(none)]> CREATE DATABASE hesk;
# MariaDB [(none)]> GRANT ALL PRIVILEGES ON hesk.* TO ‘heskuser’@’localhost’ IDENTIFIED BY ‘your-password’;

(‘heskuser’ is username for database, ‘your-password’ is password for username database)

# MariaDB [(none)]> FLUSH PRIVILEGES;
# MariaDB [(none)]> \q

Next we need Install Apache2 web server

# sudo apt-get install apache2

Install PHP and required PHP modules, for this i user PHP Version 7

# sudo apt-get install php7.0 libapache2-mod-php7.0 php7.0-mbstring php7.0-curl php7.0-zip php7.0-gd php7.0-mysql php7.0-mcrypt

Enable the Apache2 & restart Apache2

# sudo a2enmod rewrite

# sudo service apache2 restart

Create directory for hesk ticketing system

# sudo mkdir /var/www/html/hesk

Download hesk system & Unzip

# wget https://heskcom.s3.amazonaws.com/legacy/3/hesk323.zip

# sudo unzip hesk323.zip -d /var/www/html/hesk

Set a proper ownership for all files and directory

# sudo chown www-data:www-data -R /var/www/html/hesk/

Create a new virtual host directive in Apache. With file named ‘hesk.conf’ on your virtual server:

# sudo touch /etc/apache2/sites-available/hesk.conf
# sudo ln -s /etc/apache2/sites-available/hesk.conf /etc/apache2/sites-enabled/hesk.conf
# sudo nano /etc/apache2/sites-available/hesk.conf

Fill the hesk.conf with this lines :

<VirtualHost *:80>
ServerAdmin
admin@your-domain.com
DocumentRoot /var/www/html/hesk/
ServerName your-domain.com
ServerAlias
www.your-domain.com
<Directory /var/www/html/hesk/>
Options FollowSymLinks
AllowOverride All
Order allow,deny
allow from all
</Directory>
ErrorLog /var/log/apache2/your-domain.com-error_log
CustomLog /var/log/apache2/your-domain.com-access_log common
</VirtualHost>

(‘your-domain.com’ replace with your IP address Ubuntu Server or your domain)

Restart your Apache2 Web Server

# sudo service apache2 restart

Open web browser, fill http://your-domain.com/install or your IPaddress/install and if you configured everything correctly the Hesk installer should be starting.

Click Here to Install Hesk
Click here to Install Hesk
Click I Accept
Fill that mark with your database user and password, note the password for administrator, change timezone with your country time and klik continue.
Delete directory Install

# cd /var/www/html/hesk

# rm -r install

Hesk already to use.

So tutorials build a ticketing system this time, if there is problem please comment or send a message to my email anangmansjur@yahoo.co.uk

--

--

Anang Mansjur
0 Followers

Information Technology Enthusiast