• Contact
  • Contact Us
  • Disclamer
  • Home 1
  • Home 2
  • Home 3
  • Privacy Policy
Friday, May 9, 2025
How VPS - How to use/setup VPS
  • Login
  • Home
  • Management guides
    • Web servers software
      • Directadmin
      • Hocvps Script
      • Centmin Mod
      • CWP
      • Kloxo-MR
      • Plesk
    • Control Panels
    • Securing VPS/Servers
      • SSL Certificates
      • Upgrading
      • Authentication
  • Operating System
    • CentOS
    • Fedora
    • Debian
    • Linux
    • Arch
    • BSD
    • CoreOS
  • Reviews
  • Coupon
    • Domain Coupon
    • Hosting Coupon
No Result
View All Result
  • Home
  • Management guides
    • Web servers software
      • Directadmin
      • Hocvps Script
      • Centmin Mod
      • CWP
      • Kloxo-MR
      • Plesk
    • Control Panels
    • Securing VPS/Servers
      • SSL Certificates
      • Upgrading
      • Authentication
  • Operating System
    • CentOS
    • Fedora
    • Debian
    • Linux
    • Arch
    • BSD
    • CoreOS
  • Reviews
  • Coupon
    • Domain Coupon
    • Hosting Coupon
No Result
View All Result
How VPS - How to use/setup VPS
No Result
View All Result
Home Operating System Linux

How to Install osTicket on Ubuntu 16.04

How VPS by How VPS
January 1, 2020
in Linux
0
0
SHARES
177
VIEWS
Share on FacebookShare on Twitter

Contents

  1. Prerequisites
  2. Step 1: System update
  3. Step 2: Install LEMP Server
  4. Step 3: Configure database for osTicket
  5. Step 4: Download osTicket
  6. Step 5: Configure Nginx for osTicket
  7. Step 6: Access osTicket web interface
  8. Want to contribute?


OsTicket is a free and open source ticketing tool written in PHP. It is a simple and lightweight tool that allows you to manage, organize and archive your support request.

In this tutorial, you will learn how to install and configure osTicket on Ubuntu 16.04.

Prerequisites

  • A Vultr Ubuntu 16.04 server instance.
  • A sudo user with root privileges.

Step 1: System update

Before starting, it is recommended to update the system with the latest stable version. Login with sudo user and run the following commands to update the system.

sudo apt-get update -y
sudo apt-get upgrade -y

Step 2: Install LEMP Server

First, you will need to install Nginx, Mysql, PHP, PHP-FPM and other required PHP modules on your system. You can install all of them with the following command:

sudo apt-get install -y nginx mysql-server php7.0-cli php7.0-mysql php7.0-cgi php7.0-fpm php7.0-gd php7.0-imap php7.0-xml php7.0-mbstring php7.0-intl php-apcu -y

Once the installation is complete, start the Nginx and MySQL service and add them to start at boot time:

sudo systemctl start nginx
sudo systemctl start mysql
sudo systemctl enable nginx
sudo systemctl enable mysql

Next, you will need to modify the php.ini file:

sudo nano /etc/php/7.0/fpm/php.ini

Uncomment the following line and change its value to 0:

cgi.fix_pathinfo=0

Save and close the file, then restart the php7-fpm service and add it to start at boot time:

sudo systemctl restart php7.0-fpm
sudo systemctl enable php7.0-fpm

Step 3: Configure database for osTicket

By default, MySQL is not secured. You can secure it by running the mysql_secure_installation script.

sudo mysql_secure_installation

Answer all of the questions as shown below:

Set root password? [Y/n] Y
New password:
Re-enter new password:
Remove anonymous users? [Y/n] Y
Disallow root login remotely? [Y/n] Y
Remove test database and access to it? [Y/n] Y
Reload privilege tables now? [Y/n] Y

When all is done, connect with MySQL shell with the following command:

mysql -u root -p

Enter your password, then create a new database and user for osTicket:

mysql> create database osticketdb;
mysql> create user osticket@localhost identified by 'password';
mysql> grant all privileges on osticketdb.* to osticket@localhost identified by 'password';
mysql> flush privileges;
mysql> exit;

Step 4: Download osTicket

First, you will need to create a directory for osTicket:

sudo mkdir /var/www/html/osticket

Next, change the directory to osTicket and download osTicket with the following commands:

cd /var/www/html/osticket
wget http://osticket.com/sites/default/files/download/osTicket-v1.10.zip

Note: Be sure to get the latest version from osTicket’s download page here.

Once the download is completed, extract the downloaded file.

sudo unzip osTicket-v1.10.zip

Next, copy the sample config file:

sudo cp upload/include/ost-sampleconfig.php upload/include/ost-config.php

Change the owner of all osticket files and directories to the ‘www-data’ user and group.

sudo chown -R www-data:www-data /var/www/html/osticket

Step 5: Configure Nginx for osTicket

You will need to create a new virtual host configuration for osTicket:

sudo nano /etc/nginx/sites-available/osticket

Add the following lines:

server {
  listen 80;
        server_name your-domain.com;

        root   /var/www/html/osticket/upload/;

        access_log  /var/log/nginx/access.log;
        error_log  /var/log/nginx/error.log;

        index index.php;
        client_max_body_size 2000M;
        client_body_buffer_size 100M;
        client_header_buffer_size 10M;
        large_client_header_buffers 2 10M;
        client_body_timeout 12;
        client_header_timeout 12;
        keepalive_timeout 15;
        send_timeout 10;
        gzip             on;
        gzip_comp_level  2;
        gzip_min_length  1000;
        gzip_proxied     expired no-cache no-store private auth;
        gzip_types       text/plain application/x-javascript text/xml text/css application/xml;

        set $path_info "";

        location ~ /include {
          deny all;
          return 403;
       }

       if ($request_uri ~ "^/api(/[^/?]+)") {
         set $path_info $1;
       }

       location ~ ^/api/(?:tickets|tasks).*$ {
        try_files $uri $uri/ /api/http.php?$query_string;
       }

       if ($request_uri ~ "^/scp/.*/.php(/[^/?]+)") {
          set $path_info $1;
       }

       location ~ ^/scp/ajax.php/.*$ {
          try_files $uri $uri/ /scp/ajax.php?$query_string;
       }

       location / {
          try_files $uri $uri/ index.php;
       }

       location ~ /.php$ {
           fastcgi_param  SCRIPT_FILENAME  $document_root$fastcgi_script_name;
           include        fastcgi_params;
        include snippets/fastcgi-php.conf;
        fastcgi_pass unix:/run/php/php7.0-fpm.sock;
        fastcgi_param  PATH_INFO    $path_info;
      }
}

Save and close the file, then activate the virtual host with the following command:

sudo ln -s /etc/nginx/sites-available/osticket /etc/nginx/sites-enabled/

Finally, restart the Nginx service:

sudo systemctl restart nginx

Step 6: Access osTicket web interface

Once everything is configured, it’s time to access osTicket web installation wizard.

Open your web browser and type the URL http://your-domain.com, you can see the osTicket installation wizard. Follow each instruction carefully and complete the installation.

Once the installation has completed, remove the setup directory and change the permission of the osTicket config file:

sudo rm -rf /var/www/html/osticket/upload/setup
sudo chmod 0644 /var/www/html/osticket/include/ost-config.php

Congratulations! You have successfully installed osTicket on your Ubuntu 16.04 server.

Want to contribute?

You could earn up to $300 by adding new articles

Submit your article
Suggest an update
Request an article
Previous Post

How to Install OpenSIPS Control Panel on Ubuntu 16.04

Next Post

How to Install OpenVAS Vulnerability Scanner on Ubuntu 16.04

Next Post

How to Install OpenVAS Vulnerability Scanner on Ubuntu 16.04

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

No Result
View All Result

Recent Post

Install Imagemagick on CentOS
CentOS

Install Imagemagick on CentOS

by How VPS
June 28, 2023
0

This is how I installed Imagemagick on a vanilla CentOS server Start off by installing the prerequisites yum install php-pear...

Read more
how to Check phpinfo

How to Check phpinfo of Hosting or VPS?

June 28, 2023
Failed to download metadata for repo 'appstream' on Centos 8

How to fix error: Failed to download metadata for repo ‘appstream’ on Centos 8

February 25, 2022
How to Fix MySQL Error "Plugin 'InnoDB' registration as a STORAGE ENGINE failed"?

How to Fix MySQL Error “Plugin ‘InnoDB’ registration as a STORAGE ENGINE failed”?

November 17, 2020
How to optimize Mysql or MariaDB

How to optimize Mysql or MariaDB

November 3, 2020

Recent News

  • Install Imagemagick on CentOS
  • How to Check phpinfo of Hosting or VPS?
  • How to fix error: Failed to download metadata for repo ‘appstream’ on Centos 8

Category

  • Arch
  • Authentication
  • Backups
  • BSD
  • Centmin Mod
  • CentOS
  • Control Panels
  • CoreOS
  • CWP
  • Debian
  • Directadmin
  • Encryption
  • Fedora
  • Firewalls
  • Hocvps Script
  • Hosting providers
  • Kloxo-MR
  • Linux
  • Mitigations
  • Operating System
  • Plesk
  • Reviews
  • Securing VPS/Servers
  • Security Patches
  • SSL Certificates
  • Uncategorized
  • Upgrading
  • VPS/Servers management guides
  • Vulnerability Detection
  • Web servers software
  • Webhosting Control Panel
  • About
  • Advertise
  • Careers
  • Contact

© 2025 JNews - Premium WordPress news & magazine theme by Jegtheme.

No Result
View All Result
  • Home
  • Management guides
    • Web servers software
      • Directadmin
      • Hocvps Script
      • Centmin Mod
      • CWP
      • Kloxo-MR
      • Plesk
    • Control Panels
    • Securing VPS/Servers
      • SSL Certificates
      • Upgrading
      • Authentication
  • Operating System
    • CentOS
    • Fedora
    • Debian
    • Linux
    • Arch
    • BSD
    • CoreOS
  • Reviews
  • Coupon
    • Domain Coupon
    • Hosting Coupon

© 2025 JNews - Premium WordPress news & magazine theme by Jegtheme.

Welcome Back!

Login to your account below

Forgotten Password?

Retrieve your password

Please enter your username or email address to reset your password.

Log In
Thabet