{{tag>serveur inventaire gestion_de_parc}}
----
====== GLPI - Gestion libre de parc informatique ======
**[[wpfr>GLPI]]** (Gestionnaire libre de parc informatique) est un logiciel de gestion de parc informatique et de gestion des services d'assistance distribué sous licence GPL. Le projet a été lancé en 2003.
===== Pré-requis =====
==== Dépendances ====
à partir d'Ubuntu 16.04 :
apache2, php, mysql-server, libapache2-mod-php, php-mysql
sudo apt-get install apache2 php mysql-server libapache2-mod-php php-mysql php-curl php-mbstring php-gd
pour les versions précédentes :
apache2, php5, mysql-server, libapache2-mod-php5, php5-mysql
sudo apt-get install apache2 php5 mysql-server libapache2-mod-php5 php5-mysql
==== Version Ubuntu ====
sudo apt-get install glpi (cette version est ancienne, à mettre à jour !!!!!!!
==== Version 9.1 ====
cd /tmp
wget https://github.com/glpi-project/glpi/releases/download/9.1/glpi-9.1.tar.gz
cd /opt/
sudo tar -xvzf /tmp/glpi-9.1.tar.gz
=== Configuration d'apache ===
[[:tutoriel:comment_modifier_un_fichier|Créer un fichier glpi.conf]] **"/etc/apache2/conf-available/glpi.conf"**
Puis ajouter ce code dans le fichier glpi.conf
Alias /glpi /opt/glpi
DirectoryIndex index.php
Options FollowSymLinks
AllowOverride Limit Options FileInfo
Require all granted
Activer la config glpi
cd /etc/apache2/conf-enabled
sudo ln -s ../conf-available/glpi.conf
Puis redémarrer le serveur apache
sudo service apache2 restart
=== Quelques permissions à donner aux dossiers de GLPI ===
chmod -R 777 /opt/glpi/files
chmod -R 777 /opt/glpi/config
===== Installation =====
On pourra se référencer à la page d'installation sur le site officiel:\\
[[http://www.glpi-project.org/spip.php?article31]]
Lancez votre navigateur puis tapez
[[http://localhost/glpi]]
- Choisir votre langue
- Accèpter la licence
- Installation
- Continue
- Remplir les champs (serveur = localhost ; user = root ; pass = *********)
- Sélectionner **"Create a new ....."** et taper dans la zone **glpi**
- Continue
- Terminer
===== Utilisation =====
Dans le navigateur taper [[http://localhost/glpi]]
\\ **Login:** glpi
\\ **Pass:** glpi
===== Désinstallation =====
Supprimer la configuration
rm /etc/apache2/conf.d/glpi.conf
Supprimer glpi
rm -rf /opt/glpi
Supprimer la base de données
mysql -u root -p
drop database glpi
===== Voir aussi =====
* [[http://www.glpi-project.org/|Le site officiel]]
* [[wpfr>FusionInventory|fusion inventory]]
* [[:ouapi|OUAPI (autre solution d'inventaire libre)]]
----
//Contributeurs : ouardisoft , root75//