OCSInventory, Instalacion
IP: 172.16.1.169
Name: srvocsinventory
Linux 14.04
–OpenSSH server
— LAMP server
–Samba file server
–Virtual Machine Host
*****************************************************
https://github.com/pluginsOCSInventory-NG
http://www.latindevelopers.com/articulos/misc/instalar-ocs-inventory.php
CURL
https://www.digitalocean.com/community/questions/curl-is-not-installed-in-your-php-installation
sudo apt-get update
###do-release-upgrade actualizar ubuntu 14.04—-16
1.-
sudo apt-get install make
sudo apt-get install libapache2-mod-perl2
sudo apt-get install libapache-dbi-perl
sudo apt-get install libxml-simple-perl
sudo apt-get install libcompress-zlib-perl XXX
sudo apt-get install libio-compress-perl
El paquete libcompress-zlib-perl es un paquete virtual provisto por:
perl 5.18.2-2ubuntu1.1
libio-compress-perl 2.063-1
Necesita seleccionar explÃcitamente uno para instalar.
sudo apt-get install libdbi-perl
sudo apt-get install libdbd-mysql-perl
sudo apt-get install libnet-ip-perl
sudo apt-get install php5-gd
sudo apt-get install php5-mysql
sudo apt-get install libsoap-lite-perl
sudo apt-get install libphp-pclzip
###PERL module Apache2::SOAP is not installed
sudo apt-get install curl
sudo service apache2 restart
sudo apt-get install php5-curl
sudo service apache2 restart
#Abrimos el shell de Perl en como super usuario
ubuntu-server$ sudo perl -MCPAN -e shell
#Una vez iniciado (tal vez dure unos minutos), instalamos el paquete SOAP::Lite:
CPAN> install SOAP::Lite
#…
#Despues de cientos de lineas de mensajes instalamos el paquete XML::Entities
CPAN> install XML::Entities
#suficiente con eso
2.-libcompress-zlib-perl
#descomprimiendo el archivo
ubuntu-server$ tar zxf OCSNG_UNIX_SERVER-2.0.x.tar.gz
#ejecutando la instalación
ubuntu-server$ cd OCSNG_UNIX_SERVER-2.0.x
ubuntu-server$ sudo sh setup.sh
Deamon apache2
/usr/sbin/apache2ctl
config apache2
/etc/apache2/apache2.conf
user apache2
www-data
grupo apache2
www-data
OCS Inventory NG Apache configuracion
/etc/apache2/conf-available
etc/apache2/conf-available
******
*** ERROR: PERL module Archive::Zip is not installed !
*** ERROR: There is one or more required PERL modules missing on your computer !
Please, install missing PERL modules first.
***
sudo service apache2 restart
sudo cp z-ocsinventory-server.conf /etc/apache2/sites-available/
sudo cp ocsinventory-reports.conf /etc/apache2/sites-available/
sudo a2ensite z-ocsinventory-server.conf
sudo a2ensite ocsinventory-reports.conf
sudo service apache2 restart
sudo chown www-data:www-data /var/lib/ocsinventory-reports
http://ocsinventory.bhermanos.com/ocsreports/