How to Setup osTicket Server on Azure/AWS/GCP

Getting Started


Once your osTicket server has been deployed, the following links explain how to connect to a Linux VM:



Once connected and logged in, you’re ready to start configuring osTicket as per the steps below:

Setting up osTicket Server


In order to get your osTicket installation working, we need to perform a few steps:


  1. Set MySQL root password
  2. Configure Apache website for osTicket
  3. Update file permissions


First make sure the current user is root:

sudo -i

On Ubuntu Server

Once logged in via your ssh terminal, the first thing to do is to set a new password for the MySQL root user account by running the following commands. Replace the text ‘your_pass_here‘ with your new password.

mysql --user=root --password
Enter password: password123
ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'your_pass_here';

On CentOS Server


On CentOS installations, the password is blank, so we run the following command to set a new password. You can select ‘Y‘ for all the options that are asked.


Setting up Apache for osTicket


Next step is to create an Apache config file so we can host osTicket as a web application (website).  Run the following command to create an Apache conf file, depending on which OS you are using:


On Ubuntu

nano /etc/apache2/sites-enabled/osticket.conf

On CentOS

vim /etc/httpd/sites-available/osticket.conf

Copy the following config into your new osticket.conf


Replace the entries in ServerName and ServerAlias with your server/domain information. 

<VirtualHost *:80>
     DocumentRoot /var/www/osTicket/upload
     <Directory /var/www/osTicket/>
          Options FollowSymlinks
          AllowOverride All
          Require all granted

     ErrorLog ${APACHE_LOG_DIR}/osticket_error.log
     CustomLog ${APACHE_LOG_DIR}/osticket_access.log combined

Save the file and then confirm the config syntax is ok:

sudo apachectl -t
Andrew Fitzgerald

Cloud Solution Architect. Helping customers transform their business to the cloud. 20 years experience working in complex infrastructure environments and a Microsoft Certified Solutions Expert on everything Cloud

0 0 votes
Article Rating
Notify of
Inline Feedbacks
View all comments
Would love your thoughts, please comment.x