Applications Azure

GLPI on Ubuntu 26.04 on Azure User Guide

| Product: GLPI on Ubuntu 26.04 LTS on Azure

Overview

This image runs GLPI 12.0.3 on Ubuntu 26.04 LTS. GLPI is an open source IT service management and asset management application: helpdesk ticketing, a hardware and software inventory, configuration management, software licences, contracts and suppliers, all from one web console. nginx answers on port 80 and hands GLPI's PHP to PHP 8.5 FPM; GLPI keeps its data in a MariaDB 11.8 server on the same virtual machine, which listens on the virtual machine itself only (127.0.0.1:3306).

The GLPI database is installed for you, so there is no setup wizard. On the first boot of every virtual machine:

  • the GLPI administrator glpi gets a password unique to that virtual machine, written to /root/glpi-credentials.txt (readable by root only)
  • GLPI's database user gets its own password, and GLPI's encryption key and OAuth keys are made afresh
  • the web console starts only after all of that, so it never answers with a default or shared login

GLPI's well known default logins (glpi/glpi, tech/tech, normal/normal and post-only/postonly) are refused: tech, normal and post-only are disabled, and the web installer is removed. The MariaDB database and GLPI's files (documents, sessions, logs and plugins) each live on their own data disk. Ubuntu's unattended security upgrades are switched on.

The default operating system user is the administrator account you choose when you create the virtual machine (azureuser in the examples below).

Prerequisites

  • A Microsoft Azure subscription in which you can create resource groups, virtual networks and virtual machines
  • An SSH key pair for the administrator account
  • A network security group that allows inbound TCP 22 from your own network, and TCP 80 (and 443 once you add a certificate) from your users
  • The Azure CLI (az) if you deploy from the command line

The recommended size is Standard_B2s (2 vCPUs, 4 GiB memory) for a small team. For a large inventory, many agents or heavy ticket volumes choose a Standard_B2ms or a Standard_D2s_v6 or larger.

Step 1: Deploy the Virtual Machine

Option A: the Azure Portal

  1. Sign in to the Azure Portal, open Marketplace, search for GLPI on Ubuntu 26.04 LTS by cloudimg and select Create.
  2. On Basics choose your subscription, a resource group, a region and a name, and pick Standard_B2s or larger. Under Administrator account choose SSH public key and enter your user name and key.
  3. Under Inbound port rules allow SSH (22) and HTTP (80). Limit SSH to your own address on the Networking tab afterwards if you can. The two data disks are on the Disks tab.
  4. Select Review + create, then Create.

First boot finishes a minute or two after the virtual machine shows Running.

Option B: the Azure CLI

Accept the Marketplace terms once per subscription, then create the virtual machine. Replace <your-mgmt-cidr> with the network you connect from, for example 203.0.113.0/24.

az vm image terms accept --urn cloudimg1647283583153:glpi-ubuntu-26-04:default:latest

RG=glpi-rg
az group create --name $RG --location eastus
az vm create \
  --resource-group $RG \
  --name glpi-01 \
  --image cloudimg1647283583153:glpi-ubuntu-26-04:default:latest \
  --size Standard_B2s \
  --admin-username azureuser \
  --ssh-key-values ~/.ssh/id_rsa.pub \
  --public-ip-sku Standard \
  --nsg-rule NONE
az vm open-port --resource-group $RG --name glpi-01 --port 80 --priority 1010
az network nsg rule create --resource-group $RG --nsg-name glpi-01NSG \
  --name AllowSSHFromMgmt --priority 1000 --access Allow --protocol Tcp \
  --direction Inbound --source-address-prefixes <your-mgmt-cidr> --destination-port-ranges 22

Step 2: Connect to the Virtual Machine

Find the public IP address, then connect over SSH:

az vm show --resource-group glpi-rg --name glpi-01 --show-details --query publicIps -o tsv
ssh azureuser@<public-ip>

Check that the services are running, which versions you have, and that GLPI answers:

systemctl is-active nginx php8.5-fpm mariadb
test -f /var/lib/cloudimg/glpi-firstboot.done && echo 'first boot finished'
sudo -u www-data php /var/www/glpi/bin/console --no-ansi --version
php -v | head -1; mariadb --version; nginx -v
curl -s -o /dev/null -w 'sign-in page %{http_code}\n' http://127.0.0.1/
active
active
active
first boot finished
GLPI CLI 12.0.3
PHP 8.5.4 (cli) (built: Nov 19 2026 00:22:49) (NTS)
mariadb from 11.8.6-MariaDB, client 15.2 for debian-linux-gnu (x86_64) using  EditLine wrapper
nginx version: nginx/1.28.3 (Ubuntu)
sign-in page 200

nginx, PHP 8.5 FPM and MariaDB active, first boot finished, the GLPI, PHP, MariaDB and nginx versions

Step 3: Read the Administrator Password

sudo cat /root/glpi-credentials.txt
sudo stat -c '%a %U:%G %n' /root/glpi-credentials.txt
# GLPI on Ubuntu 26.04 - per-VM credentials, generated on first boot by glpi-firstboot.service
# These credentials are unique to this VM. Store them somewhere safe.
GLPI_URL=http://13.68.248.80/
GLPI_ADMIN_USER=glpi
GLPI_ADMIN_PASSWORD=******************************** (unique to this VM)
# Sign in to the GLPI web console at GLPI_URL as user glpi with the password above.
# GLPI's default accounts tech, normal and post-only are disabled; glpi has this VM's own password.
# The bundled MariaDB listens on 127.0.0.1:3306 only. On the VM: sudo mariadb (root over the local socket).
600 root:root /root/glpi-credentials.txt

Your file shows your virtual machine's address and its real password; it is masked here.

The per VM credentials file, readable by root only, with the password masked

Keep GLPI_ADMIN_PASSWORD for the next step. Once you have changed the password in GLPI (step 6) you can delete this file.

Step 4: Sign In to GLPI

Browse to http://<public-ip>/ and sign in as glpi with the password from step 3.

The GLPI sign-in page

GLPI opens on its central page: your tickets, the planning and the main menu (Assets, Assistance, Management, Tools and Setup).

GLPI's central page after signing in

Step 5: Open a Ticket and Add Assets

  1. Select Assistance > Tickets, then Add. Give the ticket a title and a description, choose a category and urgency if you like, and select Add. The ticket appears in the ticket list, where you can assign it to a technician or group and follow it to its solution.

A new ticket opened through GLPI's ticket form

  1. Select Assets > Computers, then Add. Enter a name, and optionally a serial number, location, user and status, and select Add. Monitors, network devices, printers, phones, software and licences are under the same Assets menu.

The computer inventory with a newly added computer

To fill the inventory automatically, install the GLPI Agent on your machines and enable inventory under Administration > Inventory. Agents send their inventory to http://<public-ip>/ (use HTTPS from step 7 for anything outside your own network).

Step 6: Check the Security Settings

MariaDB listens on the virtual machine itself only (127.0.0.1:3306); from the network there is only SSH on port 22 and GLPI on port 80 (the port 53 lines are Ubuntu's local DNS resolver). The image's own check signs in with this virtual machine's password and confirms every well known default login is refused:

sudo ss -tlnH | awk '{print $4}' | sort -u
sudo glpi-cred-roundtrip.sh | grep -v fingerprint
curl -s -o /dev/null -w 'install/install.php %{http_code}\n' http://127.0.0.1/install/install.php
systemctl cat nginx | grep -E '^ConditionPathExists'
0.0.0.0:22
0.0.0.0:80
127.0.0.1:3306
127.0.0.53%lo:53
127.0.0.54:53
[::]:22
[::]:80
this VM's glpi password signs in
default login glpi/glpi refused
default login tech/tech refused
default login normal/normal refused
default login post-only/postonly refused
default login glpi-system/<empty> refused
GLPI reaches its database with this VM's DB password
GLPI_ROUNDTRIP_OK
install/install.php 404
ConditionPathExists=/var/lib/cloudimg/glpi-bootstrap-ready

The last line is the setting that keeps the web console from starting before first boot has made your password and keys.

Listening ports, default logins refused, the web installer gone and the first boot start condition

Change the glpi password in GLPI under glpi (top right) > My settings, and create an account for each person under Administration > Users, with the profile that fits (Self-Service, Technician, Supervisor, Admin). To turn on two-factor authentication, see Setup > General > Security.

Step 7: Use Your Own Domain and HTTPS

Point a DNS record at the virtual machine's public IP address, then tell the image about it. This updates GLPI's URL (used in notifications and links) and the credentials file:

sudo cloudimg-set-public-address <your-domain>

Add a free Let's Encrypt certificate to nginx, after opening TCP 443 in the network security group:

sudo apt-get install -y certbot python3-certbot-nginx
sudo certbot --nginx -d <your-domain> -m <your-email> --agree-tos --redirect

Then set the URL under Setup > General > General setup > URL of the application to https://<your-domain>.

Step 8: Storage, Updates and Backups

The database and GLPI's files are on their own data disks:

df -h --output=target,source,size,avail /var/lib/mysql /var/lib/glpi
sudo mariadb -N -e "SELECT COUNT(*) FROM information_schema.tables WHERE table_schema='glpi'" | sed 's/$/ GLPI tables/'
apt-get -s -o APT::Get::Always-Include-Phased-Updates=true upgrade | grep -c '^Inst' || true
systemctl is-enabled apt-daily-upgrade.timer; apt-config dump APT::Periodic::Unattended-Upgrade
Mounted on     Filesystem      Size Avail
/var/lib/mysql /dev/sdc         20G   19G
/var/lib/glpi  /dev/sdd        9.8G  9.3G
447 GLPI tables
0
enabled
APT::Periodic::Unattended-Upgrade "1";

The third line is the number of operating system updates waiting: 0 on a freshly deployed virtual machine. Ubuntu's unattended upgrades apply security updates to Ubuntu, nginx, PHP and MariaDB every day.

The data disks, the GLPI database, nothing pending and unattended upgrades on

GLPI itself comes from its upstream release, so a GLPI upgrade is your call: read the release notes at https://glpi-project.org, take a backup, then follow GLPI's upgrade guide (replace the files under /var/www/glpi with the new release, keeping config/, and run sudo -u www-data php /var/www/glpi/bin/console database:update).

Back up the database and GLPI's files, for example:

sudo mariadb-dump --single-transaction glpi | gzip > glpi-db.sql.gz
sudo tar -czf glpi-files.tar.gz -C /var/lib/glpi files -C /var/www/glpi config

Copy the archives off the virtual machine, for example to Azure Blob Storage with azcopy, or use Azure Backup for the whole virtual machine and its data disks.

Files and Services

What Where
GLPI application /var/www/glpi (web root /var/www/glpi/public)
GLPI configuration (database connection, keys) /var/www/glpi/config
GLPI files: documents, sessions, logs, plugins /var/lib/glpi/files (data disk)
MariaDB data /var/lib/mysql (data disk)
nginx site /etc/nginx/sites-available/glpi
PHP settings for GLPI /etc/php/8.5/fpm/conf.d/99-glpi.ini
Credentials file /root/glpi-credentials.txt (root only)
First boot glpi-firstboot.service, log in /var/log/glpi-firstboot.log

GLPI's scheduled tasks run when users browse the console. For mail collection and notifications on a quiet system, add GLPI's cron to the www-data crontab: * * * * * php /var/www/glpi/front/cron.php.

Support

cloudimg's support team is on hand 24 hours a day by email at support@cloudimg.co.uk, with a guaranteed response within 24 hours. Include your subscription ID, the virtual machine name and a short description of the issue.