What is GLPI?

GLPI (French abbreviation: Gestionnaire Libre de Parc Informatique, or "Free IT Equipment Manager" in English) is an open source IT Asset Management, issue global positioning framework and administration work area framework. This product is written in PHP and disseminated/distributed as open-source programming under the GNU General Public License.

GLPI is an  application assisting organizations with dealing with their data framework. The arrangement can construct a stock of the multitude of association's resources and to oversee authoritative and monetary errands. The framework's functionalities help IT Administrators to make a data set of specialized assets, as well as an administration and history of systems for upkeeps activities. Clients can announce episodes or solicitations (in light of resource or not) because of the Helpdesk highlight.

Reference: https://glpi-user-documentation.readthedocs.io/fr/latest/

Pre-Requirement's:

1 Fresh Installation of Ubuntu 20.04

2 PHP

3 MariaDB/ MySQL

4 Apache 

Note: 2,3,4 are also called LAMP

Step's to follow for Installation GLPI


Step 1: Update and Upgrade the repositories

            sudo apt update && upgrade -y

Step 2: Allow Root login 

            sudo sed -i 's/#PermitRootLogin prohibit-password/PermitRootLogin yes/' /etc/ssh/sshd_config

            sudo service ssh restart

            sudo passwd

            reboot  //reboot the system if needed.

Then, now login or ssh into system as root user i.e. "root@ip-addr"

Step 3: Install PHP

            apt install php7.4 php7.4-curl php7.4-zip php7.4-gd php7.4-intl php7.4-intl php-pear php7.4-imagick php-bz2 php7.4-imap php-memcache php7.4-pspell php7.4-tidy php7.4-xmlrpc php7.4-xsl php7.4-mbstring php7.4-ldap php-cas php-apcu libapache2-mod-php7.4 php7.4-mysql

Step 4 : Install MariaDB Server

            apt install mariadb-server

Note : Check for the status of mariaDB server to check whether installation is done correctly or not

            systemctl status mariadb

or use this commands to enable and start the mariadb services . 

             systemctl enable mariadb

             systemctl start mariadb

Step 5: Install Apache Server

            apt install apache2

Note : Check for the status of apache server to check whether installation is done correctly or not

            systemctl status apache2

or use this commands to enable and start the apache services . 

             systemctl enable apache2

             systemctl start apache2

Step 6: Enable port 80/tcp,443/tcp,445/tcp

            ufw allow 80/tcp

            ufw allow 443/tcp

            ufw allow 445/tcp

            ufw status

Step 7: Create Database for GLPI

Enable secure installation by setting root password to database

            mysql_secure_installation

Then enter into database console

            mysql -u root -p

Now, create database  for GLPI

            CREATE DATABASE glpi;

Now, create user for GLPI

            CREATE USER 'glpi'@'localhost' IDENTIFIED BY 'StrongDBPassword';

Grant all the privilegies on GLPI

            GRANT ALL PRIVILEGES ON glpi.* TO 'glpi'@'localhost';

Flush other privilegies, after that exit

            FLUSH PRIVILEGES;

            EXIT;

Step 8: Now download GLPI into the system either by wget or git

            apt install wget

            apt install git

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

             or

            git clone https://github.com/glpi-project/glpi/releases/download/10.0.0/glpi-10.0.0.tgz

Note: If unable to download via wget or git, then goto the offical website: https://github.com/glpi-project/glpi/releases/

Now, unzip/decompress the download file

            tar -xvf glpi-10.0.0.tgz

Step 9: Move glpi folder to /var/www/html and set necessary permissions

            mv glpi /var/www/html/

            chmod 755 -R /var/www/html/

            chown www-data:www-data -R /var/www/html/

 Step 10: Finalize the GLPI

Now, open your browser and type your server ip as follow

            http://ip-address/glpi/install/install.php


After entering ip-address in browser,First page will ask to select language

Select lanuage
Select Language


After that, Accept the terms of license and then click Continue button.

Agree the Terms & License


In Next page, choose "Install" 

Click on Install

In next page, click on Continue

Click on Continue
In the next page, enter the continue by filling the details like localhost or glpi in sql Server and glpi in sql user and sql password

Step 1 Enter sql server details

If the connection with the SQL databases is successful then select the database which we have created before, and click on continue

 

Step 2 Select GLPI

After Clicking on Continue, it would take some time to complete/initialization ,then you will get the message like ok-database was intialized, then click on Continue.

Step 3 Initialization of Database

After clicking on Continue, in the next page click on the check box which say send " usage statics" and click on continue

Step 4 Collect Data

 After clicking on Continue, the page will be last page i.e step 5, click on continue

Step 5 Last step before setup

Therefore the Installation is finished, in the next page click on use GLPI

Step 6 Setup Finishes

After completing the above steps, in the next page it will prompt for username and password.

Enter Username and Password

The default username and Password/s are 

For Administrator Account

username/login: glpi

password: glpi

For Technician Account

username/login: tech

password: tech

For Normal Account

username/login: normal

password: normal

For postonly Account

username/login: post-only

password: postonly


After login as Administrator, the page will be visible as

GLPI Home Page

Therefore the installation og GLPI on Ubuntu 20.04 Server is Finished.