Install and setup osTicket helpdesk open source server solution on any of the cloud platforms (Azure, AWS or GCP) using the image available in the marketplace. Deploy on Ubuntu, Debian or CentOS, simple 2 click install. Check out the details below on how to install into any of the cloud platforms:
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:
Set MySQL root password
Create new database
Configure Apache website for osTicket
Complete the osTicket web installer
Update file permissions
First make sure the current user is root:
sudo -i
On Ubuntu Server / Debian
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 BY 'new_password';
FLUSH PRIVILEGES;
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.
mysql_secure_installation
Then connect to the Mysql shell using the new password:
mysql -p
Create Database for osTicket
We need to create a MySQL database that will be used by osTicket. Assuming your still logged onto your MySQL shell
Lets create a database called ticket
CREATE DATABASE ticket;
Create a new user (we will call it ticketuser) with password ‘ticketpss‘ and assign the new user to our new database. Obviously change these to your own user and password.
CREATE USER 'ticketuser'@'localhost' IDENTIFIED BY 'ticketpss';
GRANT ALL ON ticket.* TO 'ticketuser'@'localhost';
Refresh the permissions and exit the console:
FLUSH PRIVILEGES;
exit;
Setup PHP for osTicket
At the moment, PHP 8.0 and below is supported for running osTicket. If you are running PHP 8.1 and above we need to downgrade. Run the following command to see what version you’re running:
php -v
If you’re running PHP 8.0 or below (e.g 7.4) then you can skip to the next section. However if you’re running 8.1, follow these steps to downgrade to PHP 8.0
Run the following commands to downgrade PHP to version 8.0:
Run the following command and select PHP 8.0 to set as your default PHP version.
sudo update-alternatives --config php
In my example, i select 2 and press enter.
Next we need to disable php 8.1 and restart Apache:
sudo a2dismod php8.1
sudo systemctl restart apache2
Now you should have PHP 8.0 as your default version, run this command to confirm:
php -v
Setup 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:
Disclaimer: osTicket is a registered trademark owned by Enhancesoft LLC and is licensed under GNU General Public license. No warrantee of any kind, express or implied, is included with this software. Use at your risk, responsibility for damages (if any) to anyone resulting from the use of this software rest entirely with the user. The author is not responsible for any damage that its use could cause.
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.
32votes
Article Rating
Subscribe
Login and comment with
I allow to create an account
When you login first time using a Social Login button, we collect your account public profile information shared by Social Login provider, based on your privacy settings. We also get your email address to automatically create an account for you in our website. Once your account is created, you'll be logged-in to this account.
DisagreeAgree
Login and comment with
I allow to create an account
When you login first time using a Social Login button, we collect your account public profile information shared by Social Login provider, based on your privacy settings. We also get your email address to automatically create an account for you in our website. Once your account is created, you'll be logged-in to this account.