24.2 C
Senior Writer and partner

How to install GLPI on Debian 10 Buster?

As you know Debian 10 Buster is a warranty as an operating system on a server. Since the server is one of the main elements of a network, it is important that the system installed is efficient. In the same way, in this server, there could be many different applications and services. One of them is the GLPI this software that allows having controlled your computer park. In this post, you will learn how to install GLPI on Debian 10.

Install GLPI on Debian 10

First, connect to your server. To do this, connect to your server using the following command:

:~$ ssh [your-user]@[your-server]

Once you are on the server we can continue.

1.- Upgrade the system

- Advertisement -

Before starting any installation, it is recommended to upgrade the entire operating system. To do this you need to be a root user. If you do not have the password and your user can use sudo, you can do it like this.

:~$ sudo apt update && sudo apt upgrade

With this, the server will have installed all the security patches that have been published. This will make Debian 10 Buster more robust and stable.

2.- Install LAMP on Debian 10

GLPI is an application built with web technology. That is, it requires a fully functional LAMP server for the application to work.

Then you have to install LAMP in Debian 10. For that, I invite you to read our post.

Read How to install LAMP on Debian 10?

The only thing to keep in mind is that you have to install some PHP modules.

:~$ sudo apt install php7.3 php7.3-curl php7.3-zip php7.3-gd php7.3-intl php-pear php-imagick php7.3-imap php-memcache php7.3-pspell php7.3-recode php7.3-tidy php7.3-xmlrpc php7.3-xsl php7.3-mbstring php-gettext php7.3-ldap php-cas php-apcu libapache2-mod-php7.3 php7.3-mysql

3.- Create the MariaDB user and database for GLPI

Now that you have a working LAMP server, it is time to create a new MariaDB user for GLPI. We do this for security reasons. We also need a dedicated GLPI database.

So in the terminal, run the following:

:~$ sudo mysql -u root -p

Then, create the database:


Next, the new user with the password. Then, refresh all privileges.

> GRANT ALL PRIVILEGES ON glpidb.* TO 'glpiuser'@'localhost' IDENTIFIED BY 'password';

1.- Creating the new database and user for GLPI
1.- Creating the new database and user for GLPI

Once created the database and the user, we can continue with the following steps.

4.- Install GLPI on Debian 10

Now we can download and install GLPI in Debian 10. For that, I will use the wget utility to download the file.

:~$ cd /tmp/
:~$ wget -c https://github.com/glpi-project/glpi/releases/download/9.4.3/glpi-9.4.3.tgz

2.-Download and install GLPI on Debian 10
2.-Download and install GLPI on Debian 10

Then, extract it, move it to /var/www/html/ and set the right permissions.

:~$ tar -xvf glpi-9.4.3.tgz
:~$ sudo mv glpi /var/www/html/
:~$ sudo chmod 755 -R /var/www/html/
:~$ sudo chown www-data:www-data -R /var/www/html/

3.- Install GLPI on Debian 10
3.- Install GLPI on Debian 10

After that, you need to create a new VirtualHost for GLPI.

:~$ sudo nano /etc/apache2/sites-available/glpi.conf

And add the following:

<VirtualHost *:80>
     ServerAdmin admin@your_domain.com
     DocumentRoot /var/www/html/glpi
     ServerName your-domain.com

     <Directory /var/www/html/glpi>
          Options FollowSymlinks
          AllowOverride All
          Require all granted

     ErrorLog ${APACHE_LOG_DIR}/your-domain.com_error.log
     CustomLog ${APACHE_LOG_DIR}/your-domain.com_access.log combined


Save the changes and close the file. Then, enable the new Virtualhost.

:~$ sudo ln -s /etc/apache2/sites-available/glpi.conf /etc/apache2/sites-enabled/glpi.conf
:~$ sudo a2enmod rewrite
:~$ sudo systemctl restart apache2

5.- Complete the installation using the web browser

Now, you can complete the installation using the web browser. Open your web browser and go to http://your-domain/ and you will see this.

5.- GLPI setup
5.- GLPI setup

Select the language and press OK. Then, Accept the license terms.

6.- GLPI license terms
6.- GLPI license terms

Next, select install to begin the process.

7.- Install GLPI on debian 10
7.- Install GLPI on Debian 10

The wizard will check the requirements.

8.- Checking the server packages
8.- Checking the server packages

Then, setup the database connection.

9.- The database parameters
9.- The database parameters

Next, select the database created and start the process.

10.- GLPI database
10.- GLPI database

Next, you will see this.

11.- GLPI setup
11.- GLPI setup

Afterward, a screen will appear asking if you want to collaborate by sending information to the project. Finally, you will see this screen.

12.- Everything is OK with GLPI on Debian 10
12.- Everything is OK with GLPI on Debian 10

As you can see in the image, there you have the login and password information according to the profiles.

Next, log in.

13.- Log in screen
13.- Login screen

And finally, you will see the dashboard.

14.- GLPI dashboard
14.- GLPI dashboard

And that is it.


In this post, you have learned to install GLPI on Debian 10. GLPI is an application to control the informatics equipment of your company. It is an administrative tool, more than anything. It is created in PHP and uses MariaDB as a database manager.

Please share this post with your friends. And join our Telegram channel.


- Advertisement -
Everything Linux, A.I, IT News, DataOps, Open Source and more delivered right to you.
"The best Linux newsletter on the web"


  1. Hello !
    Thank you too much for this article but I want to signal you that several images do not match their legend.

  2. Merci, mais il y a un problème sur les dernières images.
    L’accès à la base de données n’est pas autorisé via un autre poste sur le réseau ?


Please enter your comment!
Please enter your name here

Latest article