GLPI stands for Gestionnaire Libre de Parc Informatique, which translates to Free IT Asset Management. It is an open-source IT management solution that allows organizations to manage their assets, track maintenance and inventory, and manage help desk tickets.
In this tutorial, we will guide you through the process of installing GLPI on the latest version of Linux Mint.
Before you begin, ensure that you have the following:
GLPI requires some PHP extensions to be installed on your system before it can run. Open your terminal and run the following command to install the extensions:
sudo apt install php-curl php-gd php-json php-xml php-mbstring php-ldap php-mysql php-imap php-intl
After installing the extensions, restart the Apache web server:
sudo systemctl restart apache2
Next, create a MariaDB or MySQL database and a user for GLPI to use.
Log in to your MariaDB or MySQL server with the following command:
sudo mysql -u root -p
Create a database and user for GLPI with the following commands, replacing glpi_db
and glpi_user
with your preferred database and username:
CREATE DATABASE glpi_db;
CREATE USER 'glpi_user'@'localhost' IDENTIFIED BY 'password';
GRANT ALL PRIVILEGES ON glpi_db.* TO 'glpi_user'@'localhost' WITH GRANT OPTION;
FLUSH PRIVILEGES;
exit;
Navigate to the GLPI website and download the latest version of GLPI. Alternatively, you can download the latest release from the command line:
wget https://github.com/glpi-project/glpi/releases/latest/download/glpi-9.5.5.tgz
Extract the contents of the downloaded file to the /var/www/html
directory. Run the following command to extract the file:
sudo tar -xvf glpi-9.5.5.tgz -C /var/www/html
Rename the extracted directory to glpi
:
sudo mv /var/www/html/glpi-9.5.5 /var/www/html/glpi
Give ownership of the glpi
directory to the www-data
user:
sudo chown -R www-data:www-data /var/www/html/glpi
Create a new virtual host for GLPI. Open your terminal and run the following command to create a new configuration file:
sudo nano /etc/apache2/sites-available/glpi.conf
Add the following configuration to the file:
<VirtualHost *:80>
ServerAdmin admin@example.com
DocumentRoot /var/www/html/glpi
ServerName example.com
<Directory "/var/www/html/glpi">
Options FollowSymLinks
AllowOverride All
Require all granted
</Directory>
ErrorLog ${APACHE_LOG_DIR}/glpi_error.log
CustomLog ${APACHE_LOG_DIR}/glpi_access.log combined
</VirtualHost>
Save the configuration file and exit the editor.
Enable the glpi
virtual host and Apache rewrite module:
sudo a2ensite glpi.conf
sudo a2enmod rewrite
Restart the Apache web server:
sudo systemctl restart apache2
You can now access GLPI by navigating to your server's IP address or domain name in your web browser. The installation process will start automatically, and you will need to follow the on-screen instructions to complete the installation.
Once the installation is complete, you can log in to the GLPI web interface using the default login credentials: glpi/glpi
.
In this tutorial, we have shown you how to install GLPI on the latest version of Linux Mint. You can now use GLPI to manage your organization's IT assets and help desk tickets.
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!