Différences
Ci-dessous, les différences entre deux révisions de la page.
Les deux révisions précédentes Révision précédente Prochaine révision | Révision précédente | ||
glpi [Le 08/12/2016, 16:25] Jeemly [Version Ubuntu] |
glpi [Le 11/01/2024, 11:45] (Version actuelle) 82.64.90.136 [22.04.2] |
||
---|---|---|---|
Ligne 11: | Ligne 11: | ||
à partir d'Ubuntu 16.04 : | à partir d'Ubuntu 16.04 : | ||
- | apache2, php, mysql-server, libapache2-mod-php, php-mysql | + | je sais pas |
- | <code>sudo apt-get install apache2 php mysql-server libapache2-mod-php php-mysql php-curl php-mbstring php-gd</code> | + | theo ==== 22.04.2 ==== |
- | + | ||
- | pour les versions précédentes : | + | |
- | apache2, php5, mysql-server, libapache2-mod-php5, php5-mysql | + | |
- | + | ||
- | <code>sudo apt-get install apache2 php5 mysql-server libapache2-mod-php5 php5-mysql</code> | + | |
- | + | ||
- | ==== Version Ubuntu ==== | + | |
<code> | <code> | ||
- | sudo apt-get install glpi (cette version est ancienne, à mettre à jour !!!) | + | sudo apt-get install glpi |
- | sudo apt-get upgrade glpi (pour effectuer la mise à jour) | + | |
</code> | </code> | ||
- | ==== Version 9.1 ==== | + | ==== Version 9.5.7 ==== |
<code> | <code> | ||
cd /tmp | cd /tmp | ||
- | wget https://github.com/glpi-project/glpi/releases/download/9.1/glpi-9.1.tar.gz | + | wget https://github.com/glpi-project/glpi/releases/download/9.5.7/glpi-9.5.7.tgz |
- | cd /opt/ | + | tar -xvzf /tmp/glpi-9.5.7.tgz |
- | sudo tar -xvzf /tmp/glpi-9.1.tar.gz | + | mv glpi /var/www/html |
</code> | </code> | ||
=== Configuration d'apache === | === Configuration d'apache === | ||
Ligne 50: | Ligne 42: | ||
Activer la config glpi | Activer la config glpi | ||
<code> | <code> | ||
- | cd /etc/apache2/conf-enabled | + | sudo a2enconf glpi.conf |
- | sudo ln -s ../conf-available/glpi.conf . | + | |
</code> | </code> | ||
Puis redémarrer le serveur apache | Puis redémarrer le serveur apache | ||
- | <code>sudo service apache2 restart</code> | + | <code>sudo systemctl restart apache2</code> |
- | === Quelques permissions à donner aux dossiers de GLPI === | + | === Changement de propriétaire des dossiers de GLPI === |
+ | |||
+ | Pour qu'Apache puisse accéder aux dossiers et fichiers de glpi on attribue ceuxc-i à l'utilisateur www-data | ||
<code> | <code> | ||
- | chmod -R 777 /opt/glpi/files | + | sudo chown -R www-data:www-data /opt/glpi |
- | chmod -R 777 /opt/glpi/config | + | |
</code> | </code> | ||
===== Installation ===== | ===== Installation ===== | ||
<note tip>On pourra se référencer à la page d'installation sur le site officiel:\\ | <note tip>On pourra se référencer à la page d'installation sur le site officiel:\\ | ||
- | [[http://www.glpi-project.org/spip.php?article31]]</note> | + | [[https://glpi-install.readthedocs.io/en/latest/]]</note> |
Lancez votre navigateur puis tapez | Lancez votre navigateur puis tapez | ||
Ligne 88: | Ligne 80: | ||
Supprimer la configuration | Supprimer la configuration | ||
- | <file>rm /etc/apache2/conf.d/glpi.conf</file> | + | <code>sudo a2disconf glpi.conf</code> |
+ | <code>sudo rm /etc/apache2/conf-available/glpi.conf</code> | ||
Supprimer glpi | Supprimer glpi | ||
- | <file>rm -rf /opt/glpi</file> | + | <code>sudo rm -rf /opt/glpi</code> |
Supprimer la base de données | Supprimer la base de données | ||
- | <file> | + | <code> |
- | mysql -u root -p | + | sudo mysql |
+ | </code> | ||
- | drop database glpi | + | <code> |
- | </file> | + | DROP DATABASE glpi; |
+ | </code> | ||
===== Voir aussi ===== | ===== Voir aussi ===== | ||
* [[http://www.glpi-project.org/|Le site officiel]] | * [[http://www.glpi-project.org/|Le site officiel]] | ||
+ | * [[https://forum.glpi-project.org/|Le forum officiel]] | ||
* [[wpfr>FusionInventory|fusion inventory]] | * [[wpfr>FusionInventory|fusion inventory]] | ||
* [[:ouapi|OUAPI (autre solution d'inventaire libre)]] | * [[:ouapi|OUAPI (autre solution d'inventaire libre)]] | ||
---- | ---- | ||
- | //Contributeurs : ouardisoft , root75// | + | //Contributeurs : ouardisoft , root75, bruno// |