How to install osticket in ubuntu 18.04 ?
Introduction
[edit]osTicket is an open-source ticketing system used for managing customer support queries and tickets. This guide provides detailed instructions for installing osTicket on an Ubuntu 18.04 server.
Prerequisites
[edit]Before proceeding with the installation, ensure that you have:
1. A server running Ubuntu 18.04.
2. Sudo privileges on the server.
3. Basic knowledge of the Linux command line.
Installation Steps
[edit]Step 1: Install Apache2
Begin by installing Apache2, the web server required for osTicket:
$ sudo apt-get install apache2
After installing Apache2, run the command below to disable directory listing.
$ sudo sed -i "s/Options Indexes FollowSymLinks/Options FollowSymLinks/" /etc/apache2/apache2.conf
Run the commands below to stop, start and enable Apache2 service
$ sudo systemctl stop apache2.service
$ sudo systemctl start apache2.service
$ sudo systemctl enable apache2.service
Step 2: Install Mysql
$ sudo apt install mysql-server
$ sudo mysql_secure_installation
when prompted press enter and provide the information.
Step 3: Install PHP and Related Modules
$ sudo apt-get install php php-common php-mbstring php-xmlrpc php-soap php-gd php-xml php-intl php-mysql php-cli php-mcrypt php-ldap php-zip php-curl
Step 4: Create osTicket Database
Create a blank osTicket database.
$ sudo mysql -u root -p
Then create a database called osticket
mysql> CREATE DATABASE osticket;
create a database user called osticketuser with a new password
mysql> CREATE USER 'osticketuser'@'localhost' IDENTIFIED BY 'new_password_here';
Then grant the user full access to the database.
Mysql> GRANT ALL ON osticket.* TO 'osticketuser'@'localhost' WITH GRANT OPTION;
Finally, save your changes and exit.
Mysql> FLUSH PRIVILEGES;
mysql> EXIT;
Step 5: Download osTicket Latest Release
Download OSTICKET from the browser
After downloading run below commands
$ sudo apt install git curl
$ curl -sS https://getcomposer.org/installer | sudo php -- --install-dir=/usr/local/bin --filename=composer
After installing curl above, change into the Apache2 root directory and download osTicket packages from Github…
$ cd /var/www/
$ sudo git clone https://github.com/osTicket/osTicket osticket
$ cd /var/www/osticket
$ sudo php manage.php deploy --setup /var/www/osticket/
Rename the sample file include/ost-sampleconfig.php to ost-config.php by running the commands below:
$ sudo mv /var/www/osticket/include/ost-sampleconfig.php /var/www/osticket/include/ost-config.php
Run the commands below update osticket root directory permissions.
$ sudo chown -R www-data:www-data /var/www/osticket/
$ sudo chmod -R 755 /var/www/osticket/
Step 6: Configure Apache2
Configure Apahce2 site configuration file for osTicket.
Create osticket.conf file .
$ sudo nano /etc/apache2/sites-available/osticket.conf
Step 7: Enable the osTicket and Rewrite Module
After configuring the VirtualHost ,enable it by running the commands below
$ sudo a2ensite osticket.conf
$ sudo a2enmod rewrite
$ sudo systemctl restart apache2.service
Then open your browser and browse to the server domain name.
Conclusion
You have successfully installed osTicket on your Ubuntu 18.04 server. You can now access osTicket by navigating to
your server's domain name or IP address in a web browser.
