How to the installation of osticket in ubuntu 18.04

From PheonixSolutions
Jump to navigation Jump to search

INSTALLATION OF OSTICKET IN UBUNTU 18.04

STEP 1.

Install Apache2

 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

[edit]

 sudo apt install mysql-server ==
 sudo mysql_secure_installation

when prompted press enter and provide the information.

[edit]
 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

[edit]

Create a blank osTicket database.

 sudo mysql -u root -p

Then create a database called osticket

 CREATE DATABASE osticket;

Create a database user called osticketuser with a new password

 CREATE USER 'osticketuser'@'localhost' IDENTIFIED BY 'new_password_here';

Then grant the user full access to the database.

 GRANT ALL ON osticket.* TO 'osticketuser'@'localhost' WITH GRANT OPTION;

Finally, save your changes and exit.

 FLUSH PRIVILEGES;
 EXIT;

Step 5: Download osTicket Latest Release

[edit]

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

[edit]

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

[edit]

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.

http://example.com/