Step-by-Step Guide: Installing osTicket on an Azure Virtual Machine with IIS Configuration
Set up your virtual machine. This part is not fully covered in this walk-through. The primary goal is to walk you through the initial installation of osTicket's Support Ticket System
First Create an Azure Virtual Machine
Virtual Machine:
Windows 10 Pro, version 22H2, x64 Gen2 2-4 vCPUs
Requirements of osTicket in order of installation:
IIS with CGI
PHP Manager
IIS URL Rewrite
MS Visual C++ VC_redist.x86.exe
MySQL (currently MySQL-5.5.62-win32.msi)
Name: osticket-vm
Record Username & Password in Notepad if just creating VM for this practice
**Remember to STOP your Virtual Machine if you’re only testing it out, otherwise Azure will continue to charge you.
Log into the VM with Remote Desktop
Create an Azure Virtual Machine Windows 10, 2-4 vCPUs
Deployment can take a few minutes.
Log into the VM with Remote Desktop
Look in Azure for your virtual machine to obtain the IP address, you'll need this for logging in via Remote Desktop.
Within the VM (osticket-vm), download the osTicket-Installation-Files.zip. Create a folder on your desktop and name it "osTicket-Installation-Files". Now, right-click on the zipped file and choose Extract To, and Select the new Folder you just created.
Install / Enable IIS (Internet Information Services) in Windows WITH CGI
IIS with CGI (Common Gateway Interface) allows IIS to run scripts and executable programs, enabling dynamic web content generation. CGI acts as a bridge between web servers and external applications, processing user requests (e.g., forms) and delivering responses. It supports various languages like Python, Perl, or PHP for web app functionality.
PHP Manager for IIS
From the “osTicket-Installation-Files” folder, install PHP Manager for IIS (PHPManagerForIIS_V1.5.0.msi)
PHP Manager for IIS is a tool that simplifies the management of PHP installations on a Windows-based IIS server. It provides an easy-to-use interface for tasks like:
It streamlines the setup and maintenance of PHP in IIS environments, making it easier for administrators to host and manage PHP-based websites and applications efficiently.
From the “osTicket-Installation-Files” folder install the Rewrite Module (rewrite_amd64_en-US.msi)
Recommended by LinkedIn
IIS URL Rewrite allows IIS to modify and route URLs using defined rules. It supports redirection, rewriting, SEO-friendly URLs, HTTPS enforcement, and request blocking. This enhances user experience, optimizes SEO, and ensures seamless application routing, all while maintaining clean, user-friendly, and secure web addresses.
Next
Create the root directory C:\PHP
Then
From the “osTicket-Installation-Files” folder, unzip PHP 7.3.8 (php-7.3.8-nts-Win32-VC15-x86.zip) into the “C:\PHP” folder
From the “osTicket-Installation-Files” folder, install VC_redist.x86.exe.
MS Visual C++ VC_redist.x86.exe installs the Visual C++ Redistributable, providing runtime components required by applications like osTicket to run properly. It ensures compatibility with the Windows environment, enabling PHP and related libraries to function seamlessly, which are essential for the osTicket help desk system to operate effectively.
Next
From the “osTicket-Installation-Files” folder, install MySQL 5.5.62 (mysql-5.5.62-win32.msi)
Open IIS as an Admin
Register PHP from within IIS (PHP Manager -> C:\PHP\php-cgi.exe)
Explainer: This basically makes the webserver aware of PHP
Reload IIS (Open IIS, Stop and Start the server)
Install osTicket v1.15.8
Reload IIS (Open IIS, Stop and Start the server)
Go to sites -> Default -> osTicket
Note that some extensions are not enabled
Rename: ost-config.php
Assign Permissions: ost-config.php
Continue Setting up osTicket in the browser (click Continue)
From the “osTicket-Installation-Files” folder, install HeidiSQL.
Continue Setting up osTicket in the browser
Congratulations, hopefully, it is installed with no errors!
End Users osTicket URL:
Clean up