GLPI – P2 How to Change Port for GLPI on Ubuntu Server
📌 Introduction
Changing the default port for GLPI is an essential step when you need to host multiple web applications on the same server or avoid conflicts with other services.
By default, GLPI runs on port 80, but you can easily configure it to use a custom port such as 8080 or 8888.
This setup improves flexibility, enhances security, and allows better control over your IT environment.
In this guide, we’ll show you how to change the GLPI port on Ubuntu Server step by step using Apache configuration. You’ll also learn how to update firewall rules and verify the new access URL for GLPI.
Whether you are running GLPI on a dedicated server, a virtual machine, or Proxmox, this tutorial helps you manage ports safely and efficiently. Mastering this process is crucial for system administrators who want a clean, secure, and optimized GLPI installation.
🛠️ Step-by-Step: Change GLPI Port on Ubuntu Server
✅ Step 1: Open Apache Listen Port 8080
Open the Apache ports configuration file:
sudo nano /etc/apache2/ports.conf
Add the following line:
Listen 8080
Save and exit:
Press Ctrl + O to save
Press Ctrl + X to exit
✅ Step 2: Edit VirtualHost to Use Port 8080
Open the GLPI VirtualHost configuration file:
sudo nano /etc/apache2/sites-available/glpi.conf
Edit line 80 to 8080
Save and exit:
Press Ctrl + O, press Enter, then Ctrl + X
✅ Step 3: Enable Site and Reload Apache
Enable the GLPI site and reload Apache service:
sudo a2ensite glpi.conf
sudo systemctl reload apache2
This step ensures Apache applies the new port configuration.
✅ Step 4: Open Firewall (If Using UFW)
If UFW firewall is enabled, allow port 8080:
sudo ufw allow 8080/tcp
sudo ufw reload
sudo ufw status
Make sure port 8080 appears in the allowed list.
✅ Step 5: Check GLPI GUI
Access GLPI using the new port:
192.168.16.248:8080
Default login:
glpi/glpi
⚠️ Change the password immediately after logging in for security reasons.
🔐 Why Changing the GLPI Port Matters
✔ Prevents service conflicts on port 80
✔ Allows multiple web applications on the same server
✔ Improves security by avoiding default port exposure
✔ Provides better network segmentation and management
For production environments, always combine port changes with proper firewall rules and strong authentication.
🎯 Conclusion
You have successfully changed the default port for GLPI on Ubuntu Server using Apache configuration.
This method is clean, secure, and fully compatible with environments such as:
Ubuntu Server
Virtual Machines
Proxmox deployments
Dedicated Linux servers
Understanding port management is a fundamental skill for system administrators managing enterprise IT infrastructure.
See also related articles
P2 – How to change port for glpi on Ubuntu Server
GLPI – P2 How to Change Port for GLPI on Ubuntu Server 📌 Introduction Changing the default port for GLPI is an essential step when you need to host multiple web applications on the same server or avoid conflicts with other services. By default, GLPI runs on port 80, but...
Read MoreP1 – Install GLPI on Proxmox Full Step by Step
GLPI – P1 Install GLPI on Proxmox Full Step-by-Step Guide Installing GLPI on Ubuntu Server running inside Proxmox is a powerful way to deploy a complete open-source IT Asset Management and Helpdesk system. GLPI (Gestionnaire Libre de Parc Informatique) allows you to manage: 🖥 IT assets (computers, servers, devices) 👤...
Read More