First, let’s clarify something: Linux is not an operating system! Linux is a kernel, to get an operating system, you need to choose a distrubution which will pack Linux as the kernel. There’s also other Unix-like operating systems which will pack BSD as the kernel instead of Linux. Both are good, but they have differents pros and cons.
I’ve been using Linux both profesionnally and personally for 12 years now, Linux have evolved overtime. My answer to “What is the best Linux distro” would have been different 10 years ago.
There’s so many distribution, you will certainly one that will more likely fit your needs. In this posts, I will try to help you clarify which one is the best for you.
Here’s a lot of the best Linux distribution out there right now :
As for every update process, you have to backup some data before processing any upgrade:
backup your database;
backup your files directory;
backup your configuration.
I will provide you with the information to update GLPI to the latest version. In this exemple, I will be upgrading from GLPI version 9.5.1 to 9.5.2. I will be using the Linux distibution Redhat 7.8, but this method should work with all distros.
Here’s how to upgrade to GLPI 9.5.2.
First things first, you need to login into your GLPI Linux virtutal machine using SSH and make sure you have sudo privileges.
Go in your GLPI installation folder, but up one level, in this instance :
$ cd /var/www/
Create a backup of your files, in case things do not go as planned :
$ cp -r glpi/ glpi9.5.1/
Go in your GLPI installation folder, in this instance :
$ cd /var/www/glpi/
Download the latest GLPI version, you can get the link from the official GLPI website at https://glpi-project.org/downloads/:
The new GLPI version in now located in /var/www/glpi/glpi/, we need to move the files and subfolders one level up :
$ yes | cp -rg glpi/* .
$ yes | rm -r glpi
Modify the owner of the files and give the correct permissions :
If you run Redhat/centos :
$ chown -R apache:apache /var/www/glpi/
If you run Ununtu :
$ chown -R www-data:www-data /var/www/glpi/
Using your web browser, you now need to access your GLPI website, once you get to your website, you should be automatically redirected to the update webpage, make sure all the requierements are met and proceed to the upgrade.
Once your done, if you were successful, you should land to a webpage like this one :
You now need to delete install.php :
Congratulations, you successfully updated GLPI to the latest version.
Non exhaustive list of changes in GLPI 9.5.2 (changelog) :
[security] SQL injection with a query parameter of user form (CVE-2020-15176)
[security] Removal of .htaccess file in the files folder via a plugin endpoint (CVE-2020-15175)
[security] Leakage issue with knowledge base (CVE-2020-15217)
[security] Stored XSS in install script (CVE-2020-15177)
[security] Minor SQL Injection in Search API (CVE-2020-15226)
several mailgate issues
several dashboards issues
dashboards improvements: personnal filters, new summary and articles widgets, …
If things didn’t went as planned, here’s some commands that could help you do things manually.
Verify that you meet the requirements :
from /var/www/glpi/ type this command :
php bin/console glpi:system:check_requirements
To switch from SELinux between enforcing or permissive mode :