How to install GLPI on CentOS 7?

0
32106
glpi
glpi

We are in the era of process automation with the aim of minimizing costs and maximizing the efficiency with which they are carried out.

In computer science, control of equipment assets is vital for a company and especially if it relies heavily on centralized systems. With the goal of solving part of these problems there is GLPi.

GLPi is a free IT service management solution, an incident tracking system and a service desk solution. Published in PHP and distributed under a GPL license.

GLPI more than just a tool

The tool is developed for Apache-PHP-MySQL environments, so it can be installed on both Windows and Linux servers and its easy installation and management allows managing all the support and maintenance of a company in a quick and easy way, so the deployment and implementation are quite small.

 

Installing GLPI Prerequisites

As mentioned above, GLPI works with a LAMP server. The first thing we need to install is Apache:

              sudo -i

1.- Getting root privileges
1.- Getting root privileges

When you enter the password, you will be a root user.

First of all we must have the system updated and the SELinux security module disabled:

             nano /etc/selinux/config

To avoid confusion, the first editable line should be modified, leaving it this way:

             SELINUX=disabled

 

0.-Editing selinux conf
0.-Editing selinux conf

Or  Allow Http  on firewalld

Then we will proceed to the installation:

            yum install httpd

2.- Installing apache
2.- Installing apache

Then we enable it to start the service automatically.

              systemctl enable httpd.service

3.- Enabling apache service
3.- Enabling apache service

The next step is to start the apache service and go to the browser to test that the server is running.

             systemctl start httpd.service

4.- Starting apache service
4.- Starting apache service

In our web browser we go to the ip address of the server:

            http://ip_server

If we see this message, then we’re good.

5.-Testing apache
5.-Testing apache

Installing MariaDB and PHP

Now it’s MariaDB’s turn:

             yum install maridb-server mariadb

6.- Installing MariaDB
6.- Installing MariaDB

After that, we have to enable the service and start it.

             systemctl enable mariadb.service

             systemctl start mariadb.service

7.- Starting mariadb service
7.- Starting mariadb service

Next, we have to execute the configuration script of MariaDB. We say Y,N,Y,Y.

             mysql_secure_installation

8.- Mysql_secure_installation
8.- Mysql_secure_installation

GLPI requires a more up-to-date version of php than the one in the official CentOS repositories. Then we must add two repositories: EPEL and REMI.

              wget http://dl.fedoraproject.org/pub/epel/7/x86_64/Packages/e/epel-release-7-11.noarch.rpm

And:

             wget http://rpms.famillecollet.com/enterprise/remi-release-7.rpm

9.-Adding additionals repos
9.-Adding additionals repos

Next we proceed to install both packages.

               rpm -Uvh remi-release-7*.rpm epel-release-7*.rpm

10.- Adding repositories
10.- Adding repositories

Note: If we already have EPEL added, then skip the installation of that package.

Now we must enable the REMI repo that by default is not.

             yum install yum-utils

Next we enable the php 7.2 repository:

             yum-config-manager –enable remi-php72

14.-Enabling PHP7.2 repo
11.-Enabling PHP7.2 repo

Next we can install PHP

              yum install php php-gd php-mysql php-mcrypt php-apcu php-xmlrpc php-pecl-zendopcache php-ldap php-imap php-mbstring php-simplexml php-xml

15.- Installing php
12.- Installing php

Then we’ll enable ports 80 and 443 in the firewall.

           firewall-cmd –permanent –zone=public –add-service=http

           firewall-cmd –permanent –zone=public –add-service=https

And Finally:

          firewall-cmd –reload

16.- Enabling Ports
13.- Enabling Ports

In order for it all to take effect, we must restart the Apache service:

systemctl restart httpd.service

Downloading and installing GLPI

From the project’s GitHub website we can download the latest stable version and then write the following on the terminal

              wget https://github.com/glpi-project/glpi/releases/download/9.2.3/glpi-9.2.3.tgz

17.- Downloading GLPI
14.- Downloading GLPI

We move it to the apache directory /var/wwww/html/

             mv glpi-9.2.3.tgz /var/www/html/

18.- Moving glpi to apache directory
15.- Moving glpi to apache directory

cd /var/www/html/

Now we decompress it:

            tar xvf /var/www/html/glpi-9.2.3.tgz

19.- Decompressing the glpi file
16.- Decompressing the glpi file

Then, we must change the permissions and the owner of the directory:

             chmod 755 /var/www/html/glpi -R

And:

             chown apache:apache /var/www/html/glpi -R

20.- Setting owner
17.- Setting owner

Completing the installation from the browser

We must access from the browser to complete the initial configuration of the GLPI.

            http://IP_SERVER/glpi

And we’ll see this:

21.- GLPI
18.- GLPI

Choose the installation language and click on the ok button.

He then refers us to the license agreement. Accept and click on continue button

license terms
19.-License terms

Then it shows us two options to make an installation from scratch (our case) or to upgrade from a previous version.

20.-Installing glpi
20.-Installing glpi

Subsequently give us a summary of compatibility with our system, review and click on next. If there is an error, it is convenient to fix it. If you have followed all these steps, you should get perfect results.

21.- Glpi setup
21.- Glpi setup

The next step is to enter the connection parameters for MariaDB:

22.- MariaDB parameters
22.- MariaDB parameters

Click on continue button. And now we are going to test the mariadb connection creating a new database for glpi. For example glpi.

23.- testing mariadb instance
23.- testing mariadb instance

And we’ll see this:

24.-Database created!
24.-Database created!

The next screen is to send data to GLPI to help with its maintenance.

25.-Send "usage statistics"
25.-Send “usage statistics”

And Finally: installation finished

26.- Installation finished
26.- Installation finished

And we can use it now. The first screen to use is the login screen. glpi/glpi to enter as admin user.

27.- login screen
27.- login screen

Finally, we have the main screen of the GLPI.

28.- GLPI main screen
28.- GLPI main screen

GLPI is a great application for IT organizations that can be extended thanks to plugins and a large development team that keeps the program active.

Please post this article on your social networks.

Spread the love
  • 7
    Shares

PS. If you like this post please share it with your friends on the social networks using the buttons above.Thanks.

LEAVE A REPLY

Please enter your comment!
Please enter your name here