How to Install GLPI on Ubuntu 20.04/18.04?. 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.

install glpi ubuntu 18.04

Its segmentation feature makes it easy to split entities based on their respective administrative policies and allowed expenditure. It has been argued that GLPI support management of large IT infrastructures with millions of assets.

We also have installation guides for CentOS 7 / Fedora, CentOS /RHEL 8.

Features of GLPI

Here are the top features of 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

All features of GLPI are available on the project website.

Install GLPI on Ubuntu 20.04/18.04 LTS Linux

We will cover the steps of installing GLPI on Ubuntu 20.04/18.04 LTS in the remaining sections. Before you can follow this guide along, you need to have a fresh installation of Ubuntu and user account with sudo privileges.

Step 1:Update Ubuntu

As usual, ensure your packages list is up to date.

sudo apt update

You can also upgrade installed packages by running the following command.

sudo apt -y upgrade

Step 2: Install MariaDB database server

GLPI requires a relational database to store its data. Let’s install MariaDB on Ubuntu by using our guide:

How to Install MariaDB on Ubuntu 18.04

You can also install from APT repository available:

sudo apt update
sudo apt install mariadb-server
sudo mysql_secure_installation

After the installation, Login to your database as root user.

$ sudo mysql -u root -p
UPDATE mysql.user SET plugin = 'mysql_native_password' WHERE User = 'root';

Create a database and user for GLPI.

$ mysql -u root -p
CREATE USER 'glpi'@'localhost' IDENTIFIED BY 'StrongDBPassword';
GRANT ALL PRIVILEGES ON glpi.* TO 'glpi'@'localhost';

Step 2: Install PHP and Apache

We need to have Apache web server and PHP installed for GLPI to run and be accessed from a web interface.

sudo apt-get -y install php php-{curl,gd,imagick,intl,apcu,recode,memcache,imap,mysql,cas,ldap,tidy,pear,xmlrpc,pspell,gettext,mbstring,json,iconv,xml,gd,xsl}

Then install Apache and its PHP module.

sudo apt-get -y install apache2 libapache2-mod-php

Step 3: Download and Install GLPI on Ubuntu 20.04/18.04

Download the latest stable release of GLPI. It follows a semantic versioning scheme, on 3 digits, where the first one is the major release, the second the minor and the third the fix release.

Check for the latest stable release on the Downloads page. As of this writing, this is 9.4.5.

sudo apt-get -y install wget
export VER="9.4.5"

Uncompress the downloaded the archive:

tar xvf glpi-$VER.tgz

Move the created glpi folder to the /var/www/htmldirectory.

sudo mv glpi /var/www/html/

Give Apache user ownership of the directory:

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

Step 4: Finish GLPI installation

Visit your server IP or hostname URL on /glpi. If it is your local machine, you can use:

On the first page, Select your language.

install glpi ubuntu 18.04 01

Accept License terms and click “Continue“.

install glpi ubuntu 18.04 02

Choose ‘Install‘ for a completely new installation of GLPI.

install glpi ubuntu 18.04 03

Confirm that the Checks for the compatibility of your environment with the execution of GLPI is successful.

install glpi ubuntu 18.04 04

Configure Database connection

install glpi ubuntu 18.04 05

Select glpi database to initialize.

install glpi ubuntu 18.04 05 2

Finish the other setup steps to start using GLPI.

install glpi ubuntu 18.04 07

You should get the login page.

install glpi ubuntu 18.04 08

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.

install glpi centos 8 06

This marks the end of installing GLPI on Ubuntu 18.04. The next sections are about adding assets and other IT Management stuff for your infrastructure/environment. For this, please refer to the official GLPI documentation.

Similar Articles

How to Install OCS Inventory Server on Ubuntu

How to Install osTicket on Ubuntu

Install Ralph CMDB / Asset Management system on Ubuntu

Install i-doit Asset Management Tool on Ubuntu

Your support is our everlasting motivation,
that cup of coffee is what keeps us going!

As we continue to grow, we would wish to reach and impact more people who visit and take advantage of the guides we have on our blog. This is a big task for us and we are so far extremely grateful for the kind people who have shown amazing support for our work over the time we have been online.

Thank You for your support as we work to give you the best of guides and articles. Click below to buy us a coffee.


Please enter your comment!
Please enter your name here