GLPI (stands for "Gestionnaire Libre de Parc Informatique" in French, meaning "Free IT Asset Management System" in English) is a web-based open source software designed to manage IT assets and helpdesk services. It offers features such as inventory management, ticketing system, knowledge base, contract management, and reporting. In this tutorial, we will show you how to install GLPI on the latest version of EndeavourOS Linux distribution.
Before you start, make sure you have the following prerequisites:
First, update the system packages to the latest version using the pacman package manager:
sudo pacman -Syu
GLPI required a web server to run. We will install the Apache web server using the pacman package manager:
sudo pacman -S apache
After installation, start and enable the Apache service:
sudo systemctl start httpd.service
sudo systemctl enable httpd.service
GLPI is written in PHP, so we need to install PHP along with some PHP extensions required by GLPI. We will install PHP, PHP-APCu, PHP-gd, PHP-ldap, and PHP-mbstring using the pacman package manager:
sudo pacman -S php php-apcu php-gd php-ldap php-mbstring
After installation, restart the Apache service:
sudo systemctl restart httpd.service
GLPI stores its data in the MariaDB database system. We will install the MariaDB database server using the pacman package manager:
sudo pacman -S mariadb
After installation, start and enable the MariaDB service:
sudo systemctl start mariadb.service
sudo systemctl enable mariadb.service
Then, secure the MariaDB installation by running the following command:
sudo mysql_secure_installation
Answer the questions as follows:
Enter current password for root (enter for none): (press ENTER)
Set root password? [Y/n]: Y
New password: your_strong_password
Re-enter new password: your_strong_password
Remove anonymous users? [Y/n]: Y
Disallow root login remotely? [Y/n]: Y
Remove test database and access to it? [Y/n]: Y
Reload privilege tables now? [Y/n]: Y
Now, we will create a new database and a new user for GLPI. Log in to the MySQL shell as the root user:
sudo mysql -u root -p
Enter the root password that you have set earlier.
Now, create a new database called glpi:
CREATE DATABASE glpi;
Create a new user called glpi_user:
CREATE USER 'glpi_user'@'localhost' IDENTIFIED BY 'your_strong_password';
Grant full access to the glpi database to the glpi_user:
GRANT ALL PRIVILEGES ON glpi.* TO 'glpi_user'@'localhost';
Exit the MySQL shell:
exit
Download the latest version of GLPI from the official website using the wget command:
wget https://github.com/glpi-project/glpi/releases/download/9.5.5/glpi-9.5.5.tgz
Extract the downloaded archive using the tar command:
tar xvzf glpi-9.5.5.tgz -C /srv/http/
Rename the extracted folder to glpi by running the following command:
sudo mv /srv/http/glpi-9.5.5 /srv/http/glpi
Provide the Apache user (http) the ownership of the GLPI directory by running the following command:
sudo chown -R http:http /srv/http/glpi
Open your web browser and enter the following address:
http://your_server_ip/glpi
You will see the GLPI web setup wizard. Choose your desired language and click on the "Start Install" button.
On the next page, ensure that all requirements are met and click on the "Next" button.
On the "Database" page, enter the following information:
Click on the "Next" button.
On the "GLPI user" page, enter the following information:
Click on the "Next" button.
On the "Organization" page, enter your organization details and click on the "Next" button.
On the "Mail configuration" page, enter your mail server details and click on the "Next" button.
On the "Installation complete" page, click on the "Next" button.
On the "First login" page, enter your admin login credentials and click on the "Login" button.
You are now logged in to your GLPI dashboard.
In this tutorial, you have learned how to install GLPI on the latest version of EndeavourOS Linux distribution. GLPI is a powerful IT asset management system that can help you keep track of your IT assets, manage your helpdesk tickets, and more. We hope you find this tutorial helpful.
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!