19.6 C
Texas
angeloma
Senior Writer and partner

How to install osTicket on Ubuntu 18.04?

Hi, folks. In this post, we will help you to install osTicket on Ubuntu 18.04.

Every day there are many more applications for Linux and not only for leisure and fun but there are also administrative tools that help many companies to create and improve processes within them.

A very common process is technical support for computer equipment within the company. If you want to do it in an orderly and efficient way, it is convenient to use an application that manages this. That’s what osTicket is for.

OsTicket is a web application that allows you to manage, handle, archive and process requests in the form of Tickets. This is not only limited to computer equipment but also allows having feedback from the users of our company.

- Advertisement -

So as you can notice, it is quite useful for serious and even educational projects.

So, let’s get started.

Installing osTicket on Ubuntu 18.04

1) Install LAMP on Ubuntu 18.04

As it is a web application built with PHP, it is necessary to have a fully functional webserver. In addition to this, osTicket requires a relational database manager to store the information that is generated with the use of the application. In short, you have to install and configure LAMP on Ubuntu 18.04.

For this, you can check our post about it:

How to install LAMP on Ubuntu 18.04?

However, osTicket requires the following PHP modules:

php7.2 php7.2-common php7.2-gmp php7.2-curl php7.2-mbstring php7.2-xmlrpc php7.2-mysql php7.2-gd php7.2-bcmath php7.2-xml php7.2-cli php7.2-zip php-php-gettext php-pear php7.2-zip php7.2-sqlite3 php7.2-snmp php-db graphviz php7.2-curl php7.2-ldap dbconfig-common php-imap php-intl php-apcu

Once you have LAMP installed correctly, you can continue with the post.

2) Create a new database for osTicket

As I said before, osTicket requires a database to store the data generated.

On the other hand, it is recommended to create a new user that has permissions on this new database. This is to avoid working directly with the root user.

So, open the MariaDB console and start creating the database, the user and its permissions.

:~$ sudo mysql -u root -p
> CREATE DATABASE ticket;
> GRANT ALL ON ticket.* TO 'ticketuser' IDENTIFIED BY 'ticketpss';
> FLUSH PRIVILEGES;
>exit;

1.- Creating a new database for osTicket
1.- Creating a new database for osTicket

That’s enough.

3) Dowload and Install osTicket on Ubuntu 18.04

Now we can download osTicket without problems. So let’s get started.

Create a folder in /var/www/ called osticket. Change the owner to www-data, access it and give write permissions inside it.

:~$ sudo mkdir -p /var/www/osticket
:~$ sudo chown -R www-data:www-data /var/www/osticket
:~$ cd /var/www/osticket
:~$ sudo chmod 777 -R .

Now we can download osTicket without problems

:~$ wget -c https://github.com/osTicket/osTicket/releases/download/v1.14.1/osTicket-v1.14.1.zip

2.- Download osTicket on Ubuntu 18.04
2.- Download osTicket on Ubuntu 18.04

Next, unzip the file.

:~$ unzip osTicket-v1.14.1.zip

Note:If you do not have unzip installed, you can do it by running the command sudo apt install unzip

Then, it copies the default configuration to make it the final one and changes again the owner of the generated folder.

:~$ sudo cp upload/include/ost-sampleconfig.php upload/include/ost-config.php
:~$ sudo chown -R www-data:www-data /var/www/osticket

4) Create a new virtualhost for osTicket

Now we have to create a new Apache Virtualhost for osTicket. To do this, create a new text file:

:~$ sudo nano /etc/apache2/sites-available/osticket.conf
And now add the following:

<VirtualHost *:80>
     ServerAdmin admin@your_domain.com
      DocumentRoot /var/www/osticket/upload
     ServerName ticket.osradar.lan

     <Directory /var/www/osticket/upload>
          Options FollowSymlinks
          AllowOverride All
          Require all granted
     </Directory>

     ErrorLog ${APACHE_LOG_DIR}/ticket.osradar.lan_error.log
     CustomLog ${APACHE_LOG_DIR}/ticket.osradar.lan_access.log combined

</VirtualHost>

3.- Creating anew virtualhost for osticket
3.- Creating anew virtualhost for osticket

Remember to change the ServerName values to your own, as well as the log paths.

Save the changes by pressing CTRL + O and close the file with CTRL +X.

Enable the new VirtualHost:

:~$ sudo ln -s /etc/apache2/sites-available/osticket.conf /etc/apache2/sites-enabled/osticket.conf

Then, enable the rewrite apache module, restart the Apache server and finally change the permissions on the osTicket configuration file.

:~$ sudo ln -s /etc/apache2/sites-available/osticket.conf /etc/apache2/sites-enabled/osticket.conf
:~$ sudo a2enmod rewrite
:~$ sudo systemctl restart apache2
:~$ sudo chmod 0644 /var/www/osticket/upload/include/ost-config.php

4.- Configuring the server for osticket on Ubuntu 18.04
4.- Configuring the server for osticket on Ubuntu 18.04

Now, we can complete the installation.

5) Install osTicket on Ubuntu 18.04

Now we will have to complete the installation from the web assistant. To do it, open your favorite web browser and go to http://your-domain and you will see the following:

5.- osTicket installation
5.- osTicket installation

As you can see, the installer will verify all requirements. In this case, we meet all the requirements.

When you click Continue, you will see another screen where you will configure osTicket. From the system options, to the database. Put all the data you want, except for the database, there you will have to write the parameters previously created.

6.- Configuring osTicket on Ubuntu 18.04
6.- Configuring osTicket on Ubuntu 18.04

7.- Database credentials
7.- Database credentials

If everything went well, you will see the following screen:

8.- osTicket properly installed
8.- osTicket properly installed

There you will have all the corresponding links as well as some extra information.

If you click on the administration link, you will see the Login screen.

9.- osTicket login screen
9.- osTicket login screen

Just log in with the credentials created in the previous steps and you will see the main panel where you can start with the changes.

10.- osTicket dashboard
10.- osTicket dashboard

So, enjoy it.

Conclusion

osTicket helps us to deploy a user management system easily. It is a serious application that has many different users around the world. Now that you know how to install it on a server with Ubuntu 18.04, you just have to test it.

Please share this post and join our Telegram channel.

- Advertisement -
Everything Linux, A.I, IT News, DataOps, Open Source and more delivered right to you.
Subscribe
"The best Linux newsletter on the web"

2 COMMENTS

  1. It may be intentional but I noticed a typo in your MariaDB command to create the database. It reads…. ticketpss

    TO ‘ticketuser’ IDENTIFIED BY ‘ticketpss’;

    Like most humans, when I am typing I would enter ticketpass. It took me days to find this as I just copied your command line and pasted it.

    Should it read….

    TO ‘ticketuser’ IDENTIFIED BY ‘ticketpass’;

LEAVE A REPLY

Please enter your comment!
Please enter your name here



Latest article