Installing GLPI on Alpine Linux Latest

In this tutorial, we will be installing GLPI, an open-source IT and asset management software, on Alpine Linux Latest.

Prerequisites

Before we begin, ensure that you have the following:

Steps to Install GLPI

1. Update the Package Database

Run the following command to update the package database:

apk update

2. Install Dependencies

Run the following command to install the dependencies required for GLPI:

apk add --no-cache apache2 mariadb mariadb-client php7-apache2 php7-mysqli php7-json php7-xml php7-mbstring php7-ctype php7-gd php7-mcrypt php7-curl php7-zip php7-posix php7-ldap php7-iconv php7-fileinfo php7-session php7-simplexml php7-dom php7-xmlreader php7-xmlwriter --repository=http://dl-cdn.alpinelinux.org/alpine/edge/community/

3. Install GLPI

Run the following command to download and install GLPI:

wget https://github.com/glpi-project/glpi/releases/download/9.5.5/glpi-9.5.5.tgz
tar xzf glpi-9.5.5.tgz -C /var/www/html/
mv /var/www/html/glpi /var/www/html/glpi.bak
mv /var/www/html/glpi-9.5.5 /var/www/html/glpi
chown -R apache:apache /var/www/html/glpi/

4. Configure the Database

Run the following commands to configure the database:

mysql -u root -p
create database glpi;
grant all privileges on glpi.* to 'glpi'@'localhost' identified by 'password';
exit

5. Configure the Web Server

Run the following commands to configure the web server:

echo "Listen 8080" >> /etc/apache2/httpd.conf
sed -i 's/#LoadModule rewrite_module/LoadModule rewrite_module/' /etc/apache2/httpd.conf
rc-update add apache2 default
rc-service apache2 start

6. Access GLPI

You can now access GLPI by navigating to http://:8080/glpi in your web browser.

7. Login and Customize

Upon access, you may log in with the default credentials:

Once you are logged in, you may customize GLPI to your desired configuration.

Congratulations! You have successfully installed and configured GLPI on Alpine Linux Latest.

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!