(Last Updated On: May 10, 2019)

How to Install GLPI on CentOS 7 & Fedora 30/29/28?. GLPI is a powerful open source IT service management (ITSM) software tool designed to help you plan and easily manage your IT operations. GLPI allows you to solve problems more efficiently.

For Ubuntu installation, use Install GLPI on Ubuntu guide.

GLPI segmentation feature makes it easy to split entities based on their respective administrative policies and allowed expenditure. With this tool, you can manage large IT infrastructures with millions of assets.

Features of GLPI

These are the core features o GLPI.

  • Inventory Management – For computers, computers, peripherals, network printers e.t.c.
  • Item lifecycle management
  • Incidents, requests, problems and changes management
  • Data Center Infrastructure Management (DCIM)
  • Licenses management (ITIL compliant)
  • Management of warranty and financial information (purchase order, warranty and extension, damping)
  • Management of contracts, contacts, documents related to inventory items
  • Knowledge base and Frequently-Asked Questions (FAQ)
  • Asset reservation

Visit the features page to learn more.

Install GLPI on CentOS 7 & Fedora 30/29/28

This section will discuss all the steps required to install, configure and run GLPI on CentOS 7 & Fedora 30/29/28.

Step 1: Install MariaDB Database server

GLPI requires a relational database to store its data. Let’s install MariaDB on our Fedora and CentOS system using our guide below.

How to Install MariaDB on Fedora

Install MariaDB CentOS 7

After installation of Database, Create GLPI database and account.

# mysql -uroot -p

MariaDB> CREATE USER 'glpi'@'%' IDENTIFIED BY 'glpiDBSecret';
MariaDB> GRANT USAGE ON *.* TO 'glpi'@'%' IDENTIFIED BY 'glpiDBSecret';
MariaDB> CREATE DATABASE IF NOT EXISTS `glpi` ;
MariaDB> GRANT ALL PRIVILEGES ON `glpi`.* TO 'glpi'@'%';
MariaDB> FLUSH PRIVILEGES;
MariaDB> exit
Bye

Check the database connection.

$ mysql -uglpi -pglpiDBSecret glpi
Welcome to the MariaDB monitor.  Commands end with ; or \g.
Your MariaDB connection id is 65
Server version: 10.3.14-MariaDB MariaDB Server

Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

MariaDB [glpi]> EXIT
Bye

Step 2: Add Remi RPM repository

The latest RPM packages for GLPI are available on remi yum repositories. Let’s add them to our system.

CentOS 7:

sudo yum -y install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
sudo yum -y install http://rpms.remirepo.net/enterprise/remi-release-7.rpm
sudo yum -y install yum-utils
sudo yum-config-manager --enable remi-php73
sudo yum-config-manager --enable remi
sudo yum-config-manager --enable remi-glpi93

Fedora 30:

sudo dnf install -y  http://rpms.remirepo.net/fedora/remi-release-30.rpm
sudo dnf -y install dnf-plugins-core
sudo dnf config-manager --set-enabled remi-php73
sudo dnf config-manager --set-enabled remi
sudo dnf config-manager --set-enabled remi-glpi93

Fedora 29:

sudo dnf install -y  http://rpms.remirepo.net/fedora/remi-release-29.rpm
sudo dnf -y install dnf-plugins-core
sudo dnf config-manager --set-enabled remi-php73
sudo dnf config-manager --set-enabled remi
sudo dnf config-manager --set-enabled remi-glpi94

Step 3: Install GLPI on CentOS 7 & Fedora 30/29/28

Now install the dependencies required and GLPI.

# CentOS 7
sudo yum -y install httpd php php-opcache php-apcu glpi

# Fedora
sudo dnf -y install httpd php php-opcache php-apcu glpi

Start and enable httpd service.

sudo systemctl enable --now httpd

If you have firewalld service, allow http port.

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

Turn on some SELinux booleans required.

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

Now Populate the GLPI DB:

Data population output:

+---------------+-----------+
| Database host | localhost |
| Database name | glpi      |
| Database user | glpi      |
+---------------+-----------+
Do you want to continue ? [Yes/no] yes
Installation done.

Now its time to configure GLPI from a web browser.

http://ServerIP_or_Hostname/glpi/


The default Logins are:

Default logins / passwords are:

  • glpi/glpi for the administrator account
  • tech/tech for the technician account
  • normal/normal for the normal account
  • post-only/postonly for the postonly account

On first login, you’re asked to change the password. Please set new password before configuring GLPI. This is done under Administration > Users.

If you installed the version of GLPI available on Fedora repositories, then run the installer on http://localhost/glpi/install/install.php. Follow next installation steps to complete setup.

Make sure you configure Database connection.

Your GLPI installation is complete, you can start configuring it to manage your Infrastructure assets.