How to Install GLPI on OpenSUSE

GLPI, or Gestionnaire Libre de Parc Informatique, is an open-source IT asset management software. In this tutorial, we will guide you through the steps to install GLPI on OpenSUSE.

Prerequisites

To install GLPI on OpenSUSE, you will need the following:

Step 1: Update the System

Before installing any package, it is always recommended to update your system. Run the following command to update your system:

sudo zypper update

Step 2: Install Apache and MariaDB

GLPI is a web-based application, so you need a web server and a database server to run the application. First, install the Apache web server:

sudo zypper install apache2

Next, install the MariaDB database server:

sudo zypper install mariadb mariadb-client

Step 3: Install PHP

GLPI is written in PHP so you need to install PHP and its extensions. OpenSUSE provides the php7 package that includes the PHP engine and all the necessary extensions. Install it by running the following command:

sudo zypper install php7 php7-mysql apache2-mod_php7 php7-gd

Step 4: Install GLPI

Now, download the latest version of GLPI from the official website:

wget https://github.com/glpi-project/glpi/releases/download/9.5.5/glpi-9.5.5.tgz -P /tmp

Extract the downloaded archive:

sudo tar -xzf /tmp/glpi-9.5.5.tgz -C /srv/www/htdocs/

Next, set the correct permissions:

sudo chown -R wwwrun:www /srv/www/htdocs/glpi
sudo chmod -R 755 /srv/www/htdocs/glpi

Step 5: Configure MariaDB

Create a new MariaDB database for GLPI:

sudo mysql -u root -p

Enter the MariaDB root password, then create a new database:

CREATE DATABASE glpi CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;

Create a new MariaDB user for GLPI and grant all privileges to the database:

CREATE USER 'glpi_user'@'localhost' IDENTIFIED BY 'password_here';
GRANT ALL PRIVILEGES ON glpi.* TO 'glpi_user'@'localhost';
FLUSH PRIVILEGES;

Replace password_here with a strong password.

Finally, exit MariaDB:

exit;

Step 6: Complete the Installation Process

Open a web browser and navigate to http://localhost/glpi/ or http://<your-ip>/glpi/ if you are accessing the server remotely.

Follow the on-screen instructions to complete the installation process. When prompted for the MariaDB database details, use the following:

Once the installation is complete, remove the install directory inside the GLPI directory:

sudo rm -rf /srv/www/htdocs/glpi/install/

Conclusion

Congratulations! You have successfully installed GLPI on your OpenSUSE system. You can now use it to manage your IT assets.

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!