How to Install GLPI on MXLinux Latest

GLPI stands for "Gestionnaire libre de parc informatique" and is an open-source IT asset management software that helps organizations manage their IT infrastructure, track inventory of hardware and software, manage tickets and keep track of their financial assets. In this tutorial, we will guide you on how to install GLPI on MX Linux latest version.

Step 1: Install Required Dependencies

Before installing GLPI, it’s important to install the required dependencies to avoid any errors during installation. Open the terminal and run the following command:

$sudo apt-get install apache2 libapache2-mod-php7.3 php7.3-common php7.3-curl php7.3-json php7.3-xml php7.3-mysql php7.3-gd php7.3-cli mariadb-server mariadb-client

Step 2: Create a Database for GLPI

Create a new database for GLPI and grant all permissions to the user. Run the following commands:

$sudo mysql -u root -p

Enter the MySQL root password to get access to the MySQL prompt.

mysql> CREATE DATABASE glpidb;
mysql> CREATE USER 'glpiuser'@'localhost' IDENTIFIED BY 'glpipassword';
mysql> GRANT ALL ON glpidb.* TO 'glpiuser'@'localhost' WITH GRANT OPTION;
mysql> FLUSH PRIVILEGES;
mysql> exit;

Step 3: Download GLPI

Now it's time to download GLPI. Visit GLPI official website at https://www.glpi-project.org/ and download the latest version of the software.

Step 4: Extract GLPI and Move to Apache Document Root

Once downloaded, navigate to the folder where the downloaded package is saved and extract the archive by running the following command:

$tar -xzf glpi-<version>.tgz -C /var/www/html/

Rename the extracted folder to a shorter name. For example:

$mv /var/www/html/glpi-<version> /var/www/html/glpi

Now, open Apache configuration file:

$sudo nano /etc/apache2/sites-available/000-default.conf

Add the following lines of code:

Alias /glpi /var/www/html/glpi
<Directory /var/www/html/glpi>
    Options Indexes FollowSymLinks MultiViews
    AllowOverride All
    Order allow,deny
    allow from all
</Directory>

Save the changes by pressing "Ctrl + X", then "Y" and "Enter".

Restart Apache by running:

$sudo systemctl restart apache2

Step 5: Launch GLPI Installation

Open your web browser and visit http://localhost/glpi or http://your-server-ip/glpi. Click on the “Install GLPI” button to start the installation process.

On the next screen, click on "Next". Accept the GLPI licensing agreement and click on "Next" again. On the next screen, make sure that all pre-requisites are installed and enabled. If a pre-requisite is not found, install it and click on "Retry".

On the database configuration page, provide the information about the database that you created earlier in step 2. Enter the login and password of the user that you created earlier. Click on "Test the database connection" to check the connection. Once done, click on "Next".

On the server configuration page, configure your GLPI server settings. Provide the site name, contact email address and other details. Click on "Next".

On the last page, configure your administrative account's settings. Provide a username, a password, and an email address. Click on "Install GLPI".

Once the installation is complete, log in to your GLPI dashboard using the administrative credentials that you just set.

Congratulations! You’ve successfully installed GLPI on your MX Linux.

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!