How to Install GLPI on Debian Latest

In this tutorial, we'll walk through the process of installing GLPI on a Debian system. GLPI is a free and open-source IT asset and service management software.

Prerequisites

Before getting started, ensure that your Debian system is up to date using the apt command:

sudo apt update && sudo apt upgrade -y

Also, make sure that you have root privileges or a user with sudo access.

Step 1: Add the GLPI Repository

The first step is to add the GLPI repository to your Debian system's source list.

  1. Open the /etc/apt/sources.list file in your text editor:
sudo nano /etc/apt/sources.list
  1. Add the following repository to the file:
deb https://github.com/glpi-project/glpi/releases/download/9.5.5/glpi-9.5.5.tar.gz
  1. Save and close the file by pressing Ctrl+X, then Y, and finally Enter.

Step 2: Install the Required Packages

With the repository added, you'll need to install a few required packages:

sudo apt install apache2 mariadb-server php libapache2-mod-php php-gd php-mysql php-curl php-ldap php-zip php-imap wget -y

Step 3: Download and Extract GLPI

Next, you'll download and extract the latest version of GLPI.

  1. Change to the Apache web server's document root directory:
cd /var/www/html/
  1. Download the latest version of GLPI using the wget command:
sudo wget https://github.com/glpi-project/glpi/releases/download/9.5.5/glpi-9.5.5.tar.gz
  1. Extract the GLPI archive to the current directory:
sudo tar -xvzf glpi-9.5.5.tar.gz
  1. Change the ownership of the GLPI files to the Apache web server user and group for proper permissions:
sudo chown -R www-data:www-data glpi/

Step 4: Configure the Apache Web Server

Now that GLPI is installed, you need to configure the Apache web server to serve the GLPI files.

  1. Edit the default virtual host file:
sudo nano /etc/apache2/sites-available/000-default.conf
  1. Add the following lines at the end of the <VirtualHost> block:
DocumentRoot /var/www/html/glpi/
<Directory /var/www/html/glpi/>
    Options FollowSymlinks
    AllowOverride All
    Require all granted
</Directory>
  1. Save and close the file by pressing Ctrl+X, then Y, and finally Enter.

  2. Restart the Apache web server:

sudo systemctl restart apache2

Step 5: Configure the MariaDB Database Server

Finally, you need to set up the MariaDB database server to work with GLPI.

  1. Enter the MariaDB shell as the root user:
sudo mysql -u root 
  1. Create a new database for GLPI:
CREATE DATABASE glpidb;
  1. Create a new user and set the password:
CREATE USER 'glpiuser'@'localhost' IDENTIFIED BY 'password';
  1. Grant the new user permissions to access the database:
GRANT ALL PRIVILEGES ON glpidb.* TO 'glpiuser'@'localhost';
  1. Exit the MariaDB shell:
exit;

Step 6: Install GLPI

With everything set up, it's time to install GLPI using your web browser.

  1. Open your web browser and navigate to http://your-server-ip/glpi/.

  2. Follow the installation wizard to complete the installation. Enter the database name, username, and password that you created in Step 5.

  3. When the installation is complete, log in to the GLPI web interface using the default username "glpi" and password "glpi".

Congratulations! You have successfully installed GLPI on your Debian system.

Conclusion

In this tutorial, we went through the steps to install GLPI on a Debian system. You learned how to add the GLPI repository, install the required packages, download and extract GLPI, configure the Apache web server, set up the MariaDB database server, and finally install GLPI using the web installer.

If you run into any issues or have questions along the way, consult the official GLPI documentation or seek support from the GLPI community.

If you want to self-host in an easy, hands free way, need an external IP address, or simply want your data in your own hands, give IPv6.rs a try!

Alternatively, for the best virtual desktop, try Shells!