In this tutorial, we will be installing GLPI, an open-source IT and asset management software, on Alpine Linux Latest.
Before we begin, ensure that you have the following:
Run the following command to update the package database:
apk update
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/
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/
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
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
You can now access GLPI by navigating to http://
Upon access, you may log in with the default credentials:
glpiglpiOnce 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!