# Installation de GLPI

##### <span style="font-weight: 400;">Présentation</span>

<span style="font-weight: 400;">GLPI (Gestionnaire Libre de Parc Informatique) est un logiciel libre de</span><span style="font-weight: 400;"> gestion des services informatiques</span><span style="font-weight: 400;"> et de</span><span style="font-weight: 400;"> gestion des services d'assistance</span><span style="font-weight: 400;">.</span>

<span style="font-weight: 400;">Parmi ses caractéristiques, cette solution est capable de construire un</span><span style="font-weight: 400;"> inventaire</span><span style="font-weight: 400;"> de toutes les ressources de la société et de réaliser la gestion des tâches administratives et financières. Les fonctionnalités de cette solution aident les administrateurs informatique à créer une</span><span style="font-weight: 400;"> base de données</span><span style="font-weight: 400;"> regroupant des ressources techniques et de gestion, ainsi qu’un historique des actions de maintenance. La fonctionnalité de gestion d'assistance ou</span><span style="font-weight: 400;"> helpdesk</span><span style="font-weight: 400;"> fournit aux utilisateurs un service leur permettant de signaler des incidents ou de créer des demandes basées sur un actif ou non, ceci par la création d'un ticket d’assistance.</span>

##### <span style="font-weight: 400;">Prérequis</span>

<span style="font-weight: 400;">GLPI est une application web. Nous allons l’installer sur Debian 9, et nécessite donc plusieurs paquets:</span>

- - <span style="font-weight: 400;">Apache 2</span>
    - <span style="font-weight: 400;">Php et ses dépendances</span>
    - <span style="font-weight: 400;">MySQL, qui peut être soit en local, soit en déporté sur un autre serveur</span>

##### <span style="font-weight: 400;">Installation de base</span>

<span style="font-weight: 400;">On fait d’abord les mises à jours</span>

```
apt-get update && apt-get upgrade
```

<span style="font-weight: 400;">On installe ensuite tous les paquets nécessaire</span>

```
apt-get install apache2 php php-gd php-mysql mysql-server php-mbstring php-curl php-xml
```

##### <span style="font-weight: 400;">Initialisation de la base de données</span>

<span style="font-weight: 400;">Pour créer une base de donnée il faut d'abord rentrer dans la console mysql:</span>

```
$ mysql -u root -p
```

<span style="font-weight: 400;">On crée la base de donnée bddglpi </span>

```
> create database bddglpi character set utf8;
```

<span style="font-weight: 400;">On donne tous les privilèges sur la bddglpi à l’user glpi avec le mot de passe glpi</span>

```
> grant all privileges on bddglpi.* to glpi@localhost identified by 'glpi';
> exit
```

##### <span style="font-weight: 400;">Installation de GLPI</span>

<span style="font-weight: 400;">Pour télécharger GLPI nous devons  d’abord récupérer le code source compressée</span>

```
wget https://github.com/glpi-project/glpi/releases/download/9.3.3/glpi-9.3.3.tgz
```

<span style="font-weight: 400;">Pour le décompresser </span>

```
tar xzvf glpi-9.3.3.tgz
```

<span style="font-weight: 400;">On déplace ensuite le dossier GLPI vers le dossier web</span>

```
mv glpi /var/www/html
```

<span style="font-weight: 400;">Pour finir, on ajoute les droit à l’utilisateur apache pour qu’il puisse l’afficher et le modifier</span>

```
chown -R www-data /var/www/html/glpi
```

##### Configuration de GLPI

![](https://doc.ataxya.net/uploads/images/gallery/2019-08/scaled-840-/ANfOqFODJR9VBCqW-image-1565261037093.png)

![](https://doc.ataxya.net/uploads/images/gallery/2019-08/scaled-840-/drJyJLNCPp4IM34M-image-1565261048450.png)

![](https://doc.ataxya.net/uploads/images/gallery/2019-08/scaled-840-/rLloNhDqfUhYjSA8-image-1565261056779.png)

![](https://doc.ataxya.net/uploads/images/gallery/2019-08/scaled-840-/hM0R8OEidLpO5sPf-image-1565261069192.png)

![](https://doc.ataxya.net/uploads/images/gallery/2019-08/scaled-840-/bW3bjUmDgzbRI3Ek-image-1565261079040.png)

![](https://doc.ataxya.net/uploads/images/gallery/2019-08/scaled-840-/pqBAajHBzSq9do0D-image-1565261086815.png)

![](https://doc.ataxya.net/uploads/images/gallery/2019-08/scaled-840-/1fHRCFYr0h491ag1-image-1565261096193.png)

![](https://doc.ataxya.net/uploads/images/gallery/2019-08/scaled-840-/zevWcd8q973ZoaS9-image-1565261106467.png)

![](https://doc.ataxya.net/uploads/images/gallery/2019-08/scaled-840-/eobBysPZUhtXdbmG-image-1565261113120.png)