How install GLPI 10 on Rocky Linux / Alma

How install GLPI 10 on Rocky Linux / Alma

Welcome to the GLPI Connect knowledge base for installing GLPI ITSM for Rocky Linux or Alma distro.

GLPI stands for Gestionnaire Libre de Parc Informatique (Open Source IT Hardware Manager). It is a free suite of extensive IT asset management software, (ITILv2) Service Desk, software license tracking and auditing tool, and much more.

Let’s go…

Install and enable Remi repositories, they provide access to some of the required PHP modules.

#sudo dnf install epel-release

#sudo dnf install

#sudo dnf module reset php

#sudo dnf module enable php:remi-7.4

Installing Required Packages

NOTE: GLPI requires PHP> 7.4, MySQL > 5.6 or MariaDB > 10.0.

#sudo dnf update

#sudo dnf install httpd mariadb-server php php-{curl,fileinfo,gd,json,mbstring,mysqli,session,zlib,simplexml,xml,cli,domxml,imap,ldap,openssl,xmlrpc,pecl-apcu} wget tar zip bzip2

#sudo dnf --enablerepo=remi install php-pear-CAS
#sudo dnf install php-pecl-zip

PHP configuration

#sudo vim /etc/php.ini

memory_limit = 128M
max_execution_time = 30
session.auto_start = 0
session.use_trans_sid = 0

Database configuration

In our installation we will use the MariaDB database.

#sudo systemctl enable --now mariadb
#sudo mysql_secure_installation

Logging and creating a GLPI database. It can also be done via GUI installation.

#sudo mysql -u root -p

create database helpdesk;
flush privileges;


#sudo setsebool -P httpd_can_network_connect on
#sudo setsebool -P httpd_can_network_connect_db on
#sudo setsebool -P httpd_can_sendmail on

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


#sudo firewall-cmd --zone=public --add-service=http --permanent
#sudo firewall-cmd --reload

Access to the GLPI installation directory

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

Downloading the GLPI installation package

The standard installation folder is / var / www / html

GitHub link:

GLPI installation

Unpack the archive in the location / var / www / html+

#sudo unzip 

Transfer content with .htaccess from / var / www / html / glpi to / var / www / html

#sudo cp -R /var/www/html/glpi/* /var/www/html

Apache Permissions

#sudo chown -R apache:apache /var/www/html/*

Read rights

#sudo chmod -R 755 /var/www/html/*

Selinux configuration. – if not required, disable vim / etc / selinux / config

#vim /etc/selinux/config

Installation via GUI

Go to your apache address: http://yourserverIP

First login with super admin privileges:

user: glpi

password: glpi

Need help?

Ask for commercial support: