How to install osTicket, Webmin and Virtualmin on ubuntu 20.04

From PheonixSolutions
Jump to navigation Jump to search

How to install osTicket, Webmin and Virtualmin on ubuntu 20.04

Prerequisites: 1. Apache 2. PHP8.0 or Above 3. MySQL 5.0 (or better)

Step 1:

Download the osTicket files from the link https://osticket.com/download/, Select the osTicket version that you need and start downloading.

Step 2:

Unzip the downloaded osTicket file and rename the upload directory to osTicket & move it to the /var/www/html directory.

Step 3:

Create database and user for osTicket installation. Run the following queries to create database and user on mysql database,

 CREATE DATABASE database_name;
 CREATE USER 'database_username'@'%' IDENTIFIED BY 'password';
 GRANT ALL PRIVILEGES ON database_name.* TO 'database_username'@'%';

Step 4:

Create virtual host for the domain

 cd /etc/apache2/sites-available/
 vim domain.com.conf

Add the following contents,

 <VirtualHost *:80>
 ServerName domain.com
 ServerAlias www.domain.com
 DocumentRoot /var/www/html/osTicket
 <Directory /var/www/html/osTicket/>
 Options FollowSymlinks
 AllowOverride All
 Require all granted
 </Directory>
 ErrorLog ${APACHE_LOG_DIR}/error.log
 CustomLog ${APACHE_LOG_DIR}/access.log combined
 </VirtualHost>

Step 5:

Browse the domain.com/scp on browser to start osTicket installation

Follow the commands to complete the osTicket installation.

 cd /var/www/html/osTicket
 cp include/ost-sampleconfig.php include/ost-config.php
 chmod 0666 include/ost-config.php

Step 6: Complete the osTicket installation

   > Fill the required details, admin username & password for osTicket login and also fill the database credentials.
   > Then, click the Install Now button to complete installation.

Now the osTicket installation is completed. We can get the osTicket login pages by browsing the domain.com/scp on the browser.

2. Webmin Installation:-

Step 1

Run the commands to install webmin on the server,

  wget http://prdownloads.sourceforge.net/webadmin/webmin_2.010_all.deb
  dpkg --install webmin_2.010_all.deb
>The installation will be done automatically to /usr/share/webmin and the administration username set to root and the password to your current server root password.

>We can access Webmin by browsing domain.com:10000 on the browser.

If we get missing dependencies while installing the webmin, run the following command and again try to install webmin by the previous command.

  apt-get install perl libnet-ssleay-perl openssl libauthen-pam-perl libpam-runtime libio-pty-perl apt-show-versions python unzip shared-mime-info

Now we are able to access the Webmin page by browsing domain.com:10000 on the browser.

3. Virtualmin Installation

Run the below two commands to install Virtualmin on the server,

/usr/bin/wget https://software.virtualmin.com/gpl/scripts/install.sh

/usr/bin/sudo /bin/sh install.sh

Once the installation is done we are able to access the virtualmin.