Installer GLPI / OCS Inventory NG sur un serveur.

Pré-recquis :

apt install apache2 php5 mysql-server mysql-client php5-mysql php5-curl php5-gd

Création d'un /etc/apache2/sites-avalaible/glpi.conf

ServerName glpi.monserveur.fr
        ServerAlias www.glpi.monserveur.fr
        ServerAdmin webmaster@localhost
        DocumentRoot /home/webs/glpi/htdocs/

        <Directory /home/webs/glpi/htdocs/>
                AllowOverride All
                Require all granted
        </Directory>

Téléchargement et extraction de GLPI :

mkdir -p /home/webs/glpi/htdocs
wget https://github.com/glpi-project/glpi/releases/download/9.1.3/glpi-9.1.3.tgz
tar -xvzf glpi-9.1.3.tgz /home/webs/glpi/htdocs
chown -R www-data:www-data /home/webs/glpi/htdocs
chmod 775 /home/webs/glpi/htdocs/config /home/webs/glpi/htdocs/files

Activation du site :

a2ensite /etc/apache2/sites-available/glpi.conf

Création d'un admin MySQL sur une base

mysql -u root -p

+ Mot de passe pour accéder à MySQL

Puis en tant que root de MySQL :

create database glpi_db;

grant all privileges on glpi_db.* to userchoisi@localhost identified by "motdepasse";

Se connecter sur le site local glpi

Suivre les instructions et compléter avec les infos demandées notamment pour la base de données et l'utilisateur et mot de passe choisi.

A la fin de l'installation, on note les mots de passe par défaut qu'on va vite changer.

Pui on efface le fichier d'install :

rm htdocs/install/install.php

Plugin GLPI/OCS Inventory NG

wget https://github.com/pluginsGLPI/ocsinventoryng/releases/download/1.3.3/glpi-ocsinventoryng-1.3.3.tar.gz
tar -xvzf glpi-ocsinventoryng-1.3.3.tar.gz
mv ocsinventoryng/ htdocs/plugins/

Puis dans GLPI / Configuration / Plugins, installer et activer le plugin OCS NG.

Configurer les droits des utilisateurs dans Administration / Profils

Puis pour chaque profil, OCSNG → cocher les droits de chacun.

Installer OCS Inventory NG

Pré-recquis :

apt-get install libxml-simple-perl perl libdbi-perl libdbd-mysql-perl libapache-dbi-perl libnet-ip-perl libsoap-lite-perl libphp-pclzip