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.
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.
The first step is to add the GLPI repository to your Debian system's source list.
/etc/apt/sources.list
file in your text editor:sudo nano /etc/apt/sources.list
deb https://github.com/glpi-project/glpi/releases/download/9.5.5/glpi-9.5.5.tar.gz
Ctrl+X
, then Y
, and finally Enter
.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
Next, you'll download and extract the latest version of GLPI.
cd /var/www/html/
wget
command:sudo wget https://github.com/glpi-project/glpi/releases/download/9.5.5/glpi-9.5.5.tar.gz
sudo tar -xvzf glpi-9.5.5.tar.gz
sudo chown -R www-data:www-data glpi/
Now that GLPI is installed, you need to configure the Apache web server to serve the GLPI files.
sudo nano /etc/apache2/sites-available/000-default.conf
<VirtualHost>
block:DocumentRoot /var/www/html/glpi/
<Directory /var/www/html/glpi/>
Options FollowSymlinks
AllowOverride All
Require all granted
</Directory>
Save and close the file by pressing Ctrl+X
, then Y
, and finally Enter
.
Restart the Apache web server:
sudo systemctl restart apache2
Finally, you need to set up the MariaDB database server to work with GLPI.
root
user:sudo mysql -u root
CREATE DATABASE glpidb;
CREATE USER 'glpiuser'@'localhost' IDENTIFIED BY 'password';
GRANT ALL PRIVILEGES ON glpidb.* TO 'glpiuser'@'localhost';
exit;
With everything set up, it's time to install GLPI using your web browser.
Open your web browser and navigate to http://your-server-ip/glpi/
.
Follow the installation wizard to complete the installation. Enter the database name, username, and password that you created in Step 5.
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.
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!