Les paquets suivant sont requis :
apt-get install libxml-simple-perl libcompress-zlib-perl libnet-ip-perl libwww-perl libdigest-md5-perl libnet-ssleay-perl libdbi-perl libdbd-mysql-perl libsoap-lite-perl libapache2-mod-perl2
Ensuite il faut installez l'extension zip de php Vous devez d'abord installé le paquet php5-dev qui vous donnera la commande phpize
apt-get install php5-dev
Installation du module via pecl :
pecl install zip
Si vous n'avez pas la commande pecl :
apt-get install php-pear
J'ai eu cette erreur :
sh: make: command not found ERROR: `make' failed
J'ai résolu avec
apt-get install make
Ensuite activer ce module :
vim /etc/php5/conf.d/zip.ini
Note zip.ini, nom crée
Dans zip.ini ajouter : extension=zip.so
Il faut aussi le module gd
apt-get install php5-gd
Redémarrez apache
/etc/init.d/apache2 restart
Télécharger ocs :
http://www.ocsinventory-ng.org/index.php?page=downloads
Dézipper :
tar –xvzf OCSNG_LINUX_SERVER_1.01.tar.gz cd OCSNG_LINUX_SERVER_1.01 sh setup.sh
Laissez les réponses par défault
Starting OCS Inventory NG Management server setup from folder /tmp/OCSNG_LINUX_SERVER_1.01 Storing log in file /tmp/OCSNG_LINUX_SERVER_1.01/ocs_server_setup.log
+———————————————————-+
| Checking for database server properties… |
+———————————————————-+
Your MySQL client seems to be part of MySQL version 5.0.
Your computer seems to be running MySQL 4.1 or higher, good
Which host is running database server [localhost] ?
OK, database server is running on host localhost
On which port is running database server [3306] ?
OK, database server is running on port 3306
+———————————————————-+
| Checking for Apache web server daemon… |
+———————————————————-+
Where is Apache daemon binary [/usr/sbin/apache2] ?
OK, using Apache daemon /usr/sbin/apache2
+———————————————————-+
| Checking for Apache main configuration file… |
+———————————————————-+
Where is Apache main configuration file [etc/apache2/apache2.conf] ?
OK, using Apache main configuration file etc/apache2/apache2.conf
+———————————————————-+
| Checking for Apache user account… |
+———————————————————-+
Which user account is running Apache web server [www-data] ?
OK, Apache is running under user account www-data
+———————————————————-+
| Checking for Apache group… |
+———————————————————-+
Which user group is running Apache web server [www-data] ?
OK, Apache is running under users group www-data
+———————————————————-+
| Checking for PERL Interpreter… |
+———————————————————-+
Found PERL Intrepreter at </usr/bin/perl>
Where is PERL Intrepreter binary [/usr/bin/perl] ?
OK, using PERL Intrepreter /usr/bin/perl
Do you wish to setup Communication server on this computer ([y]/n)?y
+———————————————————-+
| Checking for Make utility… |
+———————————————————-+
OK, Make utility found at </usr/bin/make>
+———————————————————-+
| Checking for Apache Include configuration directory… |
+———————————————————-+
Setup has found Apache Include configuration directory in etc/apache2/conf.d/. If you are not using Include directive, please enter 'no'. Where is Apache Include configuration directory [etc/apache2/conf.d/] ? /etc/apache2/conf.d
Checking for DBI PERL module… Found that PERL module DBI is available. Checking for Apache::DBI PERL module… *** ERROR: PERL module Apache::DBI is not installed !
apt-get install libapache-dbi-perl
+———————————————————-+
| Checking for Apache root document directory… |
+———————————————————-+
Where is Apache root document directory [] ?/var/www
OK, Apache root document directory is /var/www
+———————————————————-+
| Checking for required Perl Modules… |
+———————————————————-+
Checking for DBI PERL module… Found that PERL module DBI is available. Checking for DBD::mysql PERL module… Found that PERL module DBD::mysql is available. Checking for XML::Simple PERL module… Found that PERL module XML::Simple is available. Checking for Net::IP PERL module… Found that PERL module Net::IP is available.
+———————————————————-+
| Installing files for Administration server… |
+———————————————————-+
Creating directory /var/www/download.
Creating directory /var/www/ocsreports.
Copying files to /var/www/ocsreports.
Fixing directories and files permissions.
Configuring IPDISCOVER-UTIL Perl script.
Installing IPDISCOVER-UTIL Perl script.
Fixing permissions on IPDISCOVER-UTIL Perl script.
+———————————————————-+
| OK, Administration server installation finished |
| Point your browser to http://server/ocsreports to |
| configure database server and create/update schema. |
+———————————————————-+
Setup has created a log file /tmp/OCSNG_LINUX_SERVER_1.01/ocs_server_setup.log. Please, save this file. If you encounter error while running OCS Inventory NG Management server, we can ask you to show us his content !
DON'T FORGET TO RESTART APACHE DAEMON !
Enjoy OCS Inventory NG
Petit message :
WARNING: You will not be able to build any auto deployment package with size greater than 50M. You must raise both post_max_size and upload_max_filesize in your php.ini to correct this.
vim /e
apt-get install php5-snmp
Config php :
Augmentez les valeurs des variagles suivantes :
file_uploads upload_max_filesize max_input_time memory_limit max_execution_time post_max_size
Discussion