How to Install GLPI on Manjaro

GLPI is a free and open-source IT asset management software that is used to manage various IT resources such as hardware, software, and other assets. In this tutorial, we will guide you on how to install GLPI on Manjaro.

Prerequisites

Before you begin, make sure you have the following prerequisites installed on your Manjaro system:

You can install them individually or by installing a LAMP stack on your Manjaro system.

Step 1: Download GLPI

To download the latest version of GLPI, visit the official website at https://www.glpi-project.org/.

Click on the "Download GLPI" button and select the "tar.gz" file format.

Once the download is complete, extract the downloaded file using the following command:

$ tar -xvzf glpi-<version>.tar.gz

Replace <version> with the version of GLPI you downloaded.

Step 2: Move GLPI to Apache Web Root Directory

Move the extracted GLPI directory to the Apache web server root directory /srv/http/.

$ sudo mv glpi-<version> /srv/http/

Step 3: Create a MySQL Database for GLPI

Log in to your MariaDB or MySQL database server as a root user:

$ sudo mysql -u root -p

Create a new database for GLPI and assign privileges to the user:

MariaDB [(none)]> CREATE DATABASE glpidb;
MariaDB [(none)]> GRANT ALL PRIVILEGES ON glpidb.* TO 'glpiuser'@'localhost' IDENTIFIED BY 'password';
MariaDB [(none)]> FLUSH PRIVILEGES;
MariaDB [(none)]> exit;

Replace glpiuser and password with a username and password of your choice.

Step 4: Configure Apache for GLPI

Create a virtual host configuration file for GLPI in Apache.

$ sudo nano /etc/httpd/conf/extra/glpi.conf

Copy the following configuration into the file:

<VirtualHost *:80>
    DocumentRoot /srv/http/glpi-<version>
    ServerName glpi.example.com
    ServerAdmin admin@example.com

    <Directory /srv/http/glpi-<version>>
        Options FollowSymLinks
        AllowOverride All
        Require all granted
    </Directory>

    ErrorLog /var/log/httpd/glpi-error_log
    CustomLog /var/log/httpd/glpi-access_log common
</VirtualHost>

Replace glpi.example.com with your domain name or IP address.

Then, enable the GLPI configuration file and restart Apache web server:

$ sudo nano /etc/httpd/conf/httpd.conf

Add the following line at the end of the file:

IncludeOptional conf/extra/glpi.conf

Save the file and restart Apache:

$ sudo systemctl restart httpd

Step 5: Install GLPI

Open your web browser and navigate to http://glpi.example.com.

On the welcome page, click on "Install GLPI".

Follow the installation wizard, provide the database details, and complete the installation.

Once installation is complete, log in to GLPI using the default credentials:

Username: glpi Password: glpi

After successful login, you can change the default password and start using GLPI to manage your IT assets.

Conclusion

In this tutorial, we have shown you how to install GLPI on Manjaro. You can now start using GLPI to manage your IT resources from a single platform.

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!