TSF – Giải pháp IT toàn diện cho doanh nghiệp SMB | HCM

How to change port for glpi on Ubuntu Server

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 the firewall rules and verify the new access URL for GLPI. Whether you are running GLPI on a dedicated server, a VM, 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 1: Open apache listen port 8080

sudo nano /etc/apache2/ports.conf

add line
Listen 8080

Ctrl + O to save, Ctrl + X to exit

Step 2: Edit VirtualHost to use port 8080


sudo nano /etc/apache2/sites-available/glpi.conf
edit line 80 to 8080
Ctrl + O to save, Enter and Ctrl + X to exit

Step 3: Turn on site, reload Apache


sudo a2ensite glpi.conf
sudo systemctl reload apache2

Step 4: Open firewall (if UFW)


sudo ufw allow 8080/tcp
sudo ufw reload
sudo ufw status

Step 5: Check GUI


192.168.16.248:8080
glpi/glpi
Change password