How to Install GLPI [IT Asset Management] Tool on RHEL Systems

GLPI is a French acronym for ‘Gestionnaire Libre de Parc Informatique‘ or simply ‘Free IT Equipment Manager‘ It’s an open-source IT asset Management, service Desk System, and issue tracking system written in PHP.

GLPI is created to help companies manage their IT assets and keep track of incidents and requests, thanks to the HelpDesk functionality.

GLPI provides the following main Key functionalities:

  • Management of hardware, software, data centers, and dashboards.
  • HelpDesk
  • Project management
  • Financial management
  • Administration
  • Configuration

For a comprehensive list of all features offered by GLPI, had over to the GLPI features section. In this guide, we will demonstrate how to install the GLPI IT Asset Management tool on RHEL-based distributions like CentOS, AlmaLinux, and Rocky Linux.

Step 1: Install LAMP Stack in RHEL 8

Since GLPI will be administered from the front end, the first step is to install the LAMP stack. But first, update the local packages lists as shown

$ sudo dnf update

Next, install the Apache webserver and MariaDB database server.

$ sudo dnf install httpd mariadb-server -y

Once installed, enable the services to run on system startup.

$ sudo systemctl enable httpd
$ sudo systemctl enable mariadb

Then start the Apache and MariaDB services.

$ sudo systemctl start httpd
$ sudo systemctl start mariadb

The next step is to install PHP. We will install PHP 8.0 which is provided by the Remi repository. So, the first step is to enable the Remi repository as follows.

$ sudo dnf install -y 

Once installed, you can list all the available PHP modules.

$ sudo dnf module list php -y
List PHP ModulesList PHP Modules
List PHP Modules

To enable the PHP 8.0 module, run the command:

$ sudo dnf module enable php:remi-8.0 -y

Now, you can install PHP 8.0 and other PHP extensions required for the installation as shown.

$ sudo dnf install php php-{mbstring,mysqli,xml,cli,ldap,openssl,xmlrpc,pecl-apcu,zip,curl,gd,json,session,imap} -y

Step 2: Create a Database for GLPI

The next step is to create a database for GLPI. So, log into the MariaDB database server:

$ sudo mysql -u root -p

Create a database and database user and grant all privileges on the database to the user

> GRANT ALL ON  glpidb.* TO 'glpi_user'@'localhost' IDENTIFIED BY '[email protected]';
Create GLPI DatabaseCreate GLPI Database
Create GLPI Database

Step 3: Download the GLPI Installer

With the database in place, the next step is to download the GLPI installer which contains all the installation files for GLPI. Head over to the official GLPI downloads page and grab the binary file using the wget command as shown.

$ wget

Next, uncompress the tarball file to the webroot directory as follows.

$ sudo tar -xvf  glpi-10.0.0.tgz -C /var/www/html/

And set the following ownership and permissions.

$ sudo chown -R apache:apache /var/www/html/glpi
$ sudo chmod -R 755 /var/www/html/glpi

Step 4: Create an Apache Configuration for GLPI

Next, you need to create an Apache configuration file for GLPI in the /etc/httpd/conf.d/ directory.

$ sudo vim /etc/httpd/conf.d/glpi.conf

Paste the following configuration. For the ServerName attribute, be sure to provide the server’s IP address or a registered domain name.

<VirtualHost *:80>
   ServerName server-IP or FQDN
   DocumentRoot /var/www/html/glpi

   ErrorLog "/var/log/httpd/glpi_error.log"
   CustomLog "/var/log/httpd/glpi_access.log" combined

   <Directory> /var/www/html/glpi/config>
           AllowOverride None
           Require all denied

   <Directory> /var/www/html/glpi/files>
           AllowOverride None
           Require all denied

Save and exit.

Next, set the following SELinux policies.

$ sudo dnf -y install policycoreutils-python-utils
$ sudo semanage fcontext -a -t httpd_sys_rw_content_t "/var/www/html/glpi(/.*)?"
$ sudo restorecon -Rv /var/www/html/glpi

To apply all the changes, restart Apache.

$ sudo systemctl restart httpd

Step 5: Complete the GLPI Installation from Browser

Finally, to complete the installation, open your browser and visit your server’s IP or registered domain name.


In the first step, select your preferred language, and then hit ‘Ok’.

GLPI LanguageGLPI Language
GLPI Language

Next, accept the terms of the license and click ‘Continue’.

GLPI LicenseGLPI License
GLPI License

Next, choose ‘Install’ to begin the installation of GLPI.

GLPI InstallGLPI Install
GLPI Install

This takes you to the list of requirements that are needed for the installation to continue. Ensure that all the PHP extensions and libraries are installed. Then scroll all the way down and click ‘Continue’.

GLPI Required PHP ModulesGLPI Required PHP Modules
GLPI Required PHP Modules

In the next step, fill in the database details and click ‘Continue’.

GLPI Database DetailsGLPI Database Details
GLPI Database Details

The installer will attempt to establish a connection to the database. Once the connection is successful, select the database you configured earlier and click ‘Continue’.

GLPI Database SelectionGLPI Database Selection
GLPI Database Selection

The installer will then initialize the database and once the initialization is complete, yet again, click ‘Continue’.

GLPI Database InitializationGLPI Database Initialization
GLPI Database Initialization

In the next step, choose whether to send usage statistics or not and click click ‘Continue’.

GLPI Usage StatisticsGLPI Usage Statistics
GLPI Usage Statistics

In the next step, a link to report bugs or get assistance with GLPI will be provided. Click ‘Continue’ to proceed to the next step.

GLPI Report BugsGLPI Report Bugs
GLPI Report Bugs

Once the installation is complete, click on ‘Use GLPI’ to log in.

GLPI Install FinishesGLPI Install Finishes
GLPI Install Finishes

This directs you to the login page as you can see. The default login credentials are provided below:

For Administrator account 	glpi / glpi
For technician account		tech / tech
For normal account		normal / normal
For postonly			postonly / postonly
GLPI LoginGLPI Login
GLPI Login

And behold the GLPI dashboard! From there you can start managing incidents/requests, creating reports, defining SLAs, and all that pertains to the service desk and asset management.

GLPI DashboardGLPI Dashboard
GLPI Dashboard

This brings us to the end of this guide. We hope you can now comfortably install the GLPI service desk and IT asset management tool on RHEL-based distributions.

Leave a Comment