GLPi is a web application that helps companies with the management of their information system. Among its features, this solution is able to build an inventory of all resources of the organization and manage administrative and financial tasks. GLPI stands for Gestionnaire Libre de Parc Informatique is a Free Asset and IT Management Software package, that provides ITIL Service Desk features, licenses tracking and software auditing. In other words, it’s a good idea install GLPI in your company.
The tool is build for Apache-PHP-MySQL environments, so you can install it on both windows and linux servers.
- Inventory of computers, peripherals, network printers and any associated components through an interface, with inventory tools such as: FusionInventory or OCS Inventory.
- Data Center Infrastructure Management (DCIM).
- Item lifecycle management.
- 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.
In addition, like any open source project, it is possible to modify and examine its source code.
In this article, i will show you how to install GLPI on Ubuntu Server 18.04.
What you need
The installation of GLPI is really simple, but you must have a previous knowledge in the use of the terminal. Besides installing LAMP stack and of course a computer with Ubuntu Server 18.04.
Let’s get to work.
1. Upgrade the system
First you have to update the system. Doing this will ensure you have the latest package news, as well as the latest security patches. Open a terminal and run.
:~$ sudo -i
When you enter the password, you will be root. Then run:
:~# apt update && apt upgrade
And with this done, you’ll have your system up to date.
2. Install LAMP Stack
GLPI is a web-based application, i.e. you need an installed and fully functional web server. For this tutorial, I will use apache2. It is the most popular web server and is available easily and directly from the Ubuntu repositories. Run:
:~# apt install apache2
Now enable it to start the service as soon as you load the system and initialize the service as well.
:~# systemctl enable apache2 :~# systemctl start apache2
Now if you go to your web browser and access
http://IP_SERVER you will see this.
It’s PHP’s turn.
PHP is a programming language in which GLPI is built. You have to install it to run it.
:~# apt install php7.2 php7.2-curl php7.2-gd php7.2-intl php-pear php-imagick php7.2-imap php-memcache php7.2-pspell php7.2-recode php7.2-tidy php7.2-xmlrpc php7.2-xsl php7.2-mbstring php-gettext php7.2-ldap php-cas php7.2-apcu libapache2-mod-php7.2 php7.2-mysql
Finally install MariaDB. Type on a terminal:
:~# apt install mariadb-server
Now run the configuration script to define password and other options.
After defining the password, you will be asked about other things. Answer Y N Y Y.
Now you have to create a database dedicated to GLPI and a new MariaDB user.
:~# mysql -u root -p
And then creates the database and the new user.
CREATE DATABASE glpidb; USE glpidb; GRANT ALL PRIVILEGES ON glpidb.* TO 'glpiuser'@'localhost' IDENTIFIED BY 'glpipss'; FLUSH PRIVILEGES; exit;
Of course, you’re free to change the names to whatever you want.
3. Download and install GLPI
Now it’s time to install GLPI. First, download it.
:~# cd /tmp/ wget https://github.com/glpi-project/glpi/releases/download/9.3.1/glpi-9.3.1.tgz
Afterwards, you have to extract it, move it to
/var/www/html and assign permissions to it.
:~# tar -xvf glpi-9.3.1.tgz :~# mv glpi /var/www/html/ :~# chmod 755 -R /var/www/html/ :~# chown www-data:www-data -R /var/www/html/
Now go to your browser and access GLPI to complete the installation
Then you have to accept the license terms.
On the next screen you will be asked if it is an installation or an upgrade.
Afterwards, the system will make an inspection of the dependencies in need.
On the next screen, you will be prompted to enter the MariaDB for GLPI information.
And at the end, you have select the database created.
It will then initialize the database.
The following screens show that the installation is on the right way.
And finally you will see the log in screen.
When you enter the password, you’ll see something like this.
GLPI is a great system that allows us to obtain computer solutions for our company. You can modify and take inventory, tracking incidents and so on.
We want to know about you, have you used GLPI? How did you like the installation?
Please share this article through your social networks