As you know Debian 10 Buster is a warranty as an operating system on a server. Since the server is one of the main elements of a network, it is important that the system installed is efficient. In the same way, in this server, there could be many different applications and services. One of them is the GLPI this software that allows having controlled your computer park. In this post, you will learn how to install GLPI on Debian 10.
Install GLPI on Debian 10
First, connect to your server. To do this, connect to your server using the following command:
:~$ ssh [your-user]@[your-server]
Once you are on the server we can continue.
1.- Upgrade the system
Before starting any installation, it is recommended to upgrade the entire operating system. To do this you need to be a root user. If you do not have the password and your user can use sudo, you can do it like this.
:~$ sudo apt update && sudo apt upgrade
With this, the server will have installed all the security patches that have been published. This will make Debian 10 Buster more robust and stable.
2.- Install LAMP on Debian 10
GLPI is an application built with web technology. That is, it requires a fully functional LAMP server for the application to work.
Then you have to install LAMP in Debian 10. For that, I invite you to read our post.
Read How to install LAMP on Debian 10?
The only thing to keep in mind is that you have to install some PHP modules.
:~$ sudo apt install php7.3 php7.3-curl php7.3-zip php7.3-gd php7.3-intl php-pear php-imagick php7.3-imap php-memcache php7.3-pspell php7.3-recode php7.3-tidy php7.3-xmlrpc php7.3-xsl php7.3-mbstring php-gettext php7.3-ldap php-cas php-apcu libapache2-mod-php7.3 php7.3-mysql
3.- Create the MariaDB user and database for GLPI
Now that you have a working LAMP server, it is time to create a new MariaDB user for GLPI. We do this for security reasons. We also need a dedicated GLPI database.
So in the terminal, run the following:
:~$ sudo mysql -u root -p
Then, create the database:
> CREATE DATABASE glpidb;
Next, the new user with the password. Then, refresh all privileges.
> GRANT ALL PRIVILEGES ON glpidb.* TO 'glpiuser'@'localhost' IDENTIFIED BY 'password'; > FLUSH PRIVILEGES; > EXIT;
Once created the database and the user, we can continue with the following steps.
4.- Install GLPI on Debian 10
Now we can download and install GLPI in Debian 10. For that, I will use the wget utility to download the file.
:~$ cd /tmp/ :~$ wget -c https://github.com/glpi-project/glpi/releases/download/9.4.3/glpi-9.4.3.tgz
Then, extract it, move it to /var/www/html/
and set the right permissions.
:~$ tar -xvf glpi-9.4.3.tgz :~$ sudo mv glpi /var/www/html/ :~$ sudo chmod 755 -R /var/www/html/ :~$ sudo chown www-data:www-data -R /var/www/html/
After that, you need to create a new VirtualHost for GLPI.
:~$ sudo nano /etc/apache2/sites-available/glpi.conf
And add the following:
<VirtualHost *:80> ServerAdmin admin@your_domain.com DocumentRoot /var/www/html/glpi ServerName your-domain.com <Directory /var/www/html/glpi> Options FollowSymlinks AllowOverride All Require all granted </Directory> ErrorLog ${APACHE_LOG_DIR}/your-domain.com_error.log CustomLog ${APACHE_LOG_DIR}/your-domain.com_access.log combined </VirtualHost>
Save the changes and close the file. Then, enable the new Virtualhost.
:~$ sudo ln -s /etc/apache2/sites-available/glpi.conf /etc/apache2/sites-enabled/glpi.conf :~$ sudo a2enmod rewrite :~$ sudo systemctl restart apache2
5.- Complete the installation using the web browser
Now, you can complete the installation using the web browser. Open your web browser and go to http://your-domain/
and you will see this.
Select the language and press OK. Then, Accept the license terms.
Next, select install to begin the process.
The wizard will check the requirements.
Then, setup the database connection.
Next, select the database created and start the process.
Next, you will see this.
Afterward, a screen will appear asking if you want to collaborate by sending information to the project. Finally, you will see this screen.
As you can see in the image, there you have the login and password information according to the profiles.
Next, log in.
And finally, you will see the dashboard.
And that is it.
Conclusion
In this post, you have learned to install GLPI on Debian 10. GLPI is an application to control the informatics equipment of your company. It is an administrative tool, more than anything. It is created in PHP and uses MariaDB as a database manager.
Please share this post with your friends. And join our Telegram channel.
Hello !
Thank you too much for this article but I want to signal you that several images do not match their legend.
Regards,
lnj
Thanks! yes it was a server problem. But the guide is right!
Thanks!
Thanks to you for your comment!
Merci, mais il y a un problème sur les dernières images.
L’accès à la base de données n’est pas autorisé via un autre poste sur le réseau ?
Thanks my friend!
May be in your step 7 will be interesting add package php7.3-bz2