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:
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:
To avoid confusion, the first editable line should be modified, leaving it this way:
Or Allow Http on firewalld
firewall-cmd --add-service=http --permanent
Then we will proceed to the installation:
yum install httpd
Then we enable it to start the service automatically.
systemctl enable httpd.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
In our web browser we go to the ip address of the server:
If we see this message, then we’re good.
Installing MariaDB and PHP
Now it’s MariaDB’s turn:
yum install maridb-server mariadb
After that, we have to enable the service and start it.
systemctl enable mariadb.service
systemctl start mariadb.service
Next, we have to execute the configuration script of MariaDB. We say Y,N,Y,Y.
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.
Next we proceed to install both packages.
rpm -Uvh remi-release-7*.rpm epel-release-7*.rpm
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
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
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
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
We move it to the apache directory /var/wwww/html/
mv glpi-9.2.3.tgz /var/www/html/
Now we decompress it:
tar xvf /var/www/html/glpi-9.2.3.tgz
Then, we must change the permissions and the owner of the directory:
chmod 755 /var/www/html/glpi -R
chown apache:apache /var/www/html/glpi -R
Completing the installation from the browser
We must access from the browser to complete the initial configuration of the GLPI.
And we’ll see this:
Choose the installation language and click on the ok button.
He then refers us to the license agreement. Accept and click on continue button
Then it shows us two options to make an installation from scratch (our case) or to upgrade from a previous version.
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.
The next step is to enter the connection parameters for MariaDB:
Click on continue button. And now we are going to test the mariadb connection creating a new database for glpi. For example glpi.
And we’ll see this:
The next screen is to send data to GLPI to help with its maintenance.
And Finally: installation finished
And we can use it now. The first screen to use is the login screen. glpi/glpi to enter as admin user.
Finally, we have the main screen of the GLPI.
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.