CONSEILS . FORMATION . MAINTENANCE . SECURITE . AUDIT . RESEAUX . VOIP . CAMERA

OCSNG , GLPI et OPENSSL SUR DEBIAN 3,1

Gestion de parcs informatiques securis

>INSTALLATION OCSNG (VERS.RC3-1).

Installation d’Apache2 :

root@glpi_ocs:~# apt-get install apache2

Installation du module Perl2 pour Apache2 :

root@glpi_ocs:~# apt-get install libapache2-mod-perl2

Installation de mysql_server :

root@glpi_ocs:~# apt-get install mysql-server-4.1

Installation de php4 :

root@glpi_ocs:~# apt-get install php4

Installation du module mysql pour php4 :

root@glpi_ocs:~# apt-get install php4-mysql

Installation du module gd pour php4 :

root@glpi_ocs:~# apt-get install php4-gd

Installation de make :

root@glpi_ocs:~# apt-get install make

{{Installation des modules perl:}}

root@glpi_ocs:~# apt-get install libnet-ip-perl libcompress-zlib-perl libdbd-mysql-perl libdbi-perl libapache-dbi-perl libxml-simple-perl

Installation libapache2_mod_php4

root@glpi_ocs:~#apt-get install libapache2-mod-php4

Installation du serveur :

root@glpi_ocs:~#wget [http://prdownloads.sourceforge.net/ocsinventory/OCSNG_LINUX_SERVER_1.0RC3-1.tar.gz->http://http://prdownloads.sourceforge.net/ocsinventory/OCSNG_LINUX_SERVER_1.0RC3-1.tar.gz] puis :

root@glpi_ocs:~/OCSNG_RC3# chmod +x setup.sh
root@glpi_ocs:~/OCSNG_RC3# ./setup.sh

Retirer les ; devant « extension=gd.so » dans /etc/php4/apacche2/php.ini
authentification

¦user = admin
¦password = admin

>INSTALLATION GLPI.
Attribution du mot de passe root pour mysql :

root@glpi_ocs:~# mysqladmin password 'P@ssWorD'

Création de la base de données GLPI :

root@glpi_ocs:~# mysql -p (password= P@ssWorD)

- mysql > create database glpidb;
- mysql > grant all privileges on glpidb.* to glpiuser@localhost identified by 'glpi';
- mysql > quit

Dépendances :

¦apache
¦mysql
¦apache-mod_php
¦php-mysql

Installation du serveur :

root@glpi_ocs:~# wget http://glpi-project.org/dw2_out.php?id=362
root@glpi_ocs:~# tar -xvzf glpi-0.65.tar.gz -C /var/www/
root@glpi_ocs:~# chown -R www-data /var/www/glpi/

Configuration du php.ini :

root@glpi_ocs:~# vi /etc/php4/apache2/php.ini

Il faut changer « memory_limit=8 » en « memory_limit=32 » Il faut enlever les « ; » devant « extension=mysql.so »

Redémarrer le service Apache2 :

root@glpi_ocs:~# /etc/init.d/apache2 restart

authentification :

¦login : glpi
¦password : glpi
URL installations :

¦http://localhost/glpi
¦http://localhost/ocsreports

>INSTALLATION OPENSSL
Création des certificats

# apt-get update
# apt-get install openssl
# apache2-ssl-certificate

Configuration d’apache

# a2enmod ssl
# /etc/init.d/apache2 reload

Ajouter une ligne avant la directive du fichier /etc/apache2/mods-enable/ssl.conf

SSLCertificateFile /etc/apache2/ssl/apache.pem

Ensuite, ajoutez au fichier /etc/apache2/ports.conf la ligne suivante :

Listen 443

Configuration de votre VirtualHost

en ajoutant une section dans /etc/apache2/sites-available/default ou créer un nouveau fichier /etc/apache2/sites-available/default-ssl avec ceci : NameVirtualHost *:443


ServerAdmin webmaster@localhost
SSLEngine on

DocumentRoot /var/www/ssl/ # ssl Ă  retirer dans certains cas !!

Options FollowSymLinks
AllowOverride None


Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
# Repertoire pour afficher la page par defaut apache2 dans /apache2-default/ Utilisez / pour aller au bon endroit
RedirectMatch ^/$ /apache2-default/

Recharger le service Apache2 :

# /etc/init.d/apache2 reload

Activer le site

# a2ensite default-ssl

Créer le dossier ssl

# mkdir /var/www/ssl
# chown -R www-data:www-data /var/www/ssl/

Recharger apache

# /etc/init.d/apache2 reload

Navigation

Connexion utilisateur