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

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)

  • 👤 Users and permissions

  • 🎫 Support tickets

  • 📦 Software inventory

  • 🔄 Automation and scheduled tasks

In this tutorial, we walk through the full installation process step by step — from preparing the Ubuntu Server environment to configuring Apache, MariaDB, PHP, and deploying the GLPI web interface.

By the end of this guide, you will have a fully functional GLPI system ready for daily IT operations.

Whether you are a System Administrator, IT Technician, or Student, this guide will help you deploy a stable and production-ready GLPI environment.


🧱 Step 1: Prepare the System Environment

Set the hostname

 
sudo hostnamectl set-hostname GLPI sudo nano /etc/hosts

Set GLPI inside the hosts file.

Reboot the server:

 
sudo reboot now

Set a Static IP (Netplan)

Use a YAML file and apply configuration:

 
sudo netplan apply

Update the system

 
sudo apt update && sudo apt upgrade -y

Install required packages

 
sudo apt install apache2 mariadb-server php php-mysql php-cli php-curl php-gd php-intl php-mbstring php-xml php-zip php-bz2 php-soap php-apcu unzip wget -y

🗄 Step 2: Configure MariaDB

Create a SQL administrator root password:

 
sudo mysql_secure_installation

Follow the security prompts to harden your MariaDB installation.


🛢 Step 3: Create Database and Administrator User

Login to MySQL shell:

 
sudo mysql

Run the following commands:

 
CREATE DATABASE glpidb CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci; CREATE USER 'glpiuser'@'localhost' IDENTIFIED BY 'Abc@1234'; GRANT ALL PRIVILEGES ON glpidb.* TO 'glpiuser'@'localhost'; FLUSH PRIVILEGES; EXIT;

📦 Step 4: Download and Extract GLPI

#1 Download GLPI

Official homepage:

https://glpi-project.org/downloads/

Move to /var/www/ directory and download:

 
cd /var/www/ sudo wget https://github.com/glpi-project/glpi/releases/download/10.0.18/glpi-10.0.18.tgz

#2 Extract and set permissions

 
sudo tar -xvzf glpi-10.0.18.tgz sudo chown -R www-data:www-data glpi sudo chmod -R 755 glpi

🌐 Step 5: Configure Apache VirtualHost

#1 Create VirtualHost configuration file

 
sudo nano /etc/apache2/sites-available/glpi.conf

Paste the following content:

 
<VirtualHost *:80> ServerAdmin http://192.168.16.248 DocumentRoot /var/www/glpi ServerName tsf.id.vn<Directory /var/www/glpi> Options Indexes FollowSymLinks AllowOverride All Require all granted </Directory>ErrorLog ${APACHE_LOG_DIR}/glpi_error.log CustomLog ${APACHE_LOG_DIR}/glpi_access.log combined </VirtualHost>

#2 Enable configuration

 
sudo a2ensite glpi.conf sudo a2enmod rewrite sudo systemctl restart apache2

#3 Disable default site

 
sudo a2dissite 000-default.conf sudo a2ensite glpi.conf sudo systemctl reload apache2

🖥 Step 6: Configure Web UI

Access the server IP:

 
192.168.16.248

Database user:

 
glpiuser / Abc@1234

Default GLPI credentials:

 
glpi / glpi

🔐 Step 7: Secure and Complete Installation

Remove installation folder

 
sudo rm -rf /var/www/glpi/install

(Optional) Configure Cron Job

Edit crontab:

 
sudo crontab -e

Add the following line:

 
*/5 * * * * /usr/bin/php /var/www/glpi/front/cron.php

Explanation

/usr/bin/php → PHP CLI execution binary
/var/www/glpi/front/cron.php → Main GLPI cron file

This is GLPI’s internal cron system. It performs background tasks such as:

  • 📧 Automatically send/receive emails

  • 🔐 Synchronize LDAP (if configured)

  • 🔌 Execute plugins (e.g., FusionInventory)

  • 🧹 Clean temporary/redundant data

  • ⏱ Run scheduled tasks inside GLPI


🎯 Conclusion

You have successfully installed GLPI on Ubuntu Server inside Proxmox.

Your environment now includes:

✅ Apache Web Server
✅ MariaDB Database
✅ PHP dependencies
✅ Secure database user
✅ VirtualHost configuration
✅ Cron automation
✅ Installation folder removed

Your GLPI system is now ready for:

  • IT Asset Management

  • Helpdesk & Ticketing

  • Inventory Tracking

  • Enterprise IT operations

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 More

P1 – 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