« GLPI et FusionInventory » : différence entre les versions
Ligne 1 : | Ligne 1 : | ||
== Installation de GLPI == | |||
apt update | |||
apt upgrade | |||
apt remove apache2 | |||
apt install mariadb-server | |||
apt install php7.4 | |||
apt install nginx | |||
apt install php7.4-fpm php7.4-mysql php7.4-opcache | |||
nano /etc/nginx/nginx.conf | |||
systemctl start nginx | |||
systemctl enable nginx | |||
nano /etc/nginx/conf.d/default.conf | |||
apt install php-xml php-mbstring php-mysqli php-mbstring | |||
apt install php-json php-gd | |||
apt install php7.4-curl php7.4-mysql | |||
apt install php7.4-curl php7.4-xmlrpc | |||
apt install php-session php-fileinfo | |||
apt install php-fileinfo | |||
apt install php-cli php-openssl | |||
apt install php-cli php-ssl | |||
apt install php-cli | |||
sudo apt-get install openssl | |||
sudo apt-get install libcurl4-openssl-dev | |||
sudo apt-get install libssl-dev | |||
cd /etc/ssl/certs | |||
mkdir private | |||
openssl req -x509 -newkey rsa:4096 -keyout private/glpi.cahuet.com.key -out glpi.cahuet.com.cert -days 3650 -nodes -subj '/CN=glpi.cahuet.com' | |||
openssl dhparam -out dhparam.pem 4096 | |||
chown -R www-data /var/www/glpi | |||
chgrp -R www-data /var/www/glpi | |||
== Installation de Fusion Inventory == | == Installation de Fusion Inventory == | ||
# Identifier la dernière version de FI sur wget https://github.com/fusioninventory/fusioninventory-for-glpi/releases | # Identifier la dernière version de FI sur wget https://github.com/fusioninventory/fusioninventory-for-glpi/releases |
Version du 1 janvier 2022 à 17:01
Installation de GLPI
apt update apt upgrade apt remove apache2 apt install mariadb-server apt install php7.4 apt install nginx
apt install php7.4-fpm php7.4-mysql php7.4-opcache
nano /etc/nginx/nginx.conf systemctl start nginx systemctl enable nginx
nano /etc/nginx/conf.d/default.conf
apt install php-xml php-mbstring php-mysqli php-mbstring apt install php-json php-gd apt install php7.4-curl php7.4-mysql apt install php7.4-curl php7.4-xmlrpc apt install php-session php-fileinfo apt install php-fileinfo apt install php-cli php-openssl apt install php-cli php-ssl apt install php-cli
sudo apt-get install openssl sudo apt-get install libcurl4-openssl-dev sudo apt-get install libssl-dev
cd /etc/ssl/certs mkdir private openssl req -x509 -newkey rsa:4096 -keyout private/glpi.cahuet.com.key -out glpi.cahuet.com.cert -days 3650 -nodes -subj '/CN=glpi.cahuet.com' openssl dhparam -out dhparam.pem 4096
chown -R www-data /var/www/glpi chgrp -R www-data /var/www/glpi
Installation de Fusion Inventory
- Identifier la dernière version de FI sur wget https://github.com/fusioninventory/fusioninventory-for-glpi/releases
- Aller dans le répertoire, installer FI
<script>
/tmp : cd /tmp wget https://github.com/fusioninventory/fusioninventory-for-glpi/releases/download/glpi9.5%2B3.0/fusioninventory-9.5+3.0.tar.bz2 tar -xvf fusioninventory-9.5+3.0.tar.bz2
' Activer le CRON
- * * * * /usr/bin/php5 /var/www/glpi/front/cron.php &>/dev/null
</script>