Welcome to OCS Inventory NG community support, where you can ask questions and receive answers from other members of the community.

Please ask questions only in English or French.

Release 2.12.3 available

The official documentation can be found on https://wiki.ocsinventory-ng.org. Read it before asking your question.

Tutorial OCS 2.5 on Ubuntu 16.04

Tutorial OCS 2.5 on Ubuntu 16.04

Tutorial OCSserwer 2.5 on Ubuntu 16.04

sudo apt update

sudo apt update

sudo apt install php-curl apache2-dev gcc perl-modules-5.22 make apache2 mysql-server php perl libapache2-mod-perl2 libapache2-mod-php libio-compress-perl libxml-simple-perl libdbi-perl libdbd-mysql-perl libapache-dbi-perl libsoap-lite-perl libnet-ip-perl php-mysql php-gd php7.0-dev php-mbstring php-soap php-xml php-pclzip libarchive-zip-perl php7.0-zip

sudo perl -MCPAN -e 'install Apache2::SOAP'

sudo perl -MCPAN -e 'install XML::Entities'

sudo perl -MCPAN -e 'install Net::IP'

sudo perl -MCPAN -e 'install Apache::DBI'

#for me it worked fine without those three below:

#sudo perl -MCPAN -e 'install Mojolicious::Lite'

#sudo perl -MCPAN -e 'install Switch'

#sudo perl -MCPAN -e 'install Plack::Handler'

sudo wget https://github.com/OCSInventory-NG/OCSInventory-ocsreports/releases/download/2.5/OCSNG_UNIX_SERVER_2.5.tar.gz

sudo tar xfvz OCSNG_UNIX_SERVER_2.5.tar.gz

cd OCSNG_UNIX_SERVER_2.5

sudo sh setup.sh

sudo a2enconf ocsinventory-reports

sudo a2enconf z-ocsinventory-server

sudo chown -R www-data:www-data /var/lib/ocsinventory-reports/

sudo service apache2 restart

Using WEB browser 

http://your_server_IP/ocsreports

!!! Important info if you think possible in future 

  Configure Mysql

  User -root

  Pasword-(password defined due to Mysql instalation for root)

  Name of datbase-ocsweb

  DatabaseHost-localhost  

sudo rm /usr/share/ocsinventory-reports/ocsreports/install.php

SQL shell

 sudo mysql -u root -p ocsweb

 SET PASSWORD FOR 'ocs'@'localhost' = PASSWORD('YOURPASSWORD');

 SET PASSWORD FOR 'ocs'@'%' = PASSWORD('YOURPASSWORD');

  exit

    

You can edit those files using mc or vim

vim /usr/share/ocsinventory-reports/ocsreports/dbconfig.inc.php

        {

        define("PSWD_BASE","YOURPASSWORD");

        }

    vim /etc/apache2/conf-available/z-ocsinventory-server.conf

        {

        PerlSetVar OCS_DB_PWD YOURPASSWORD

        In <Location /ocsplugins> Comment lines :

        Require local

        SetHandler perl-script

****For lazy people or new on Linux I suggest installing mc instead of vim for editing files, it is also good file manager

sudo apt-get install mc 

Change Options>Config>UseInternalEditor>save 

sudo mc (find file and use F4 for edit, F2 for save file) }

Connecting Agents

Agents must be installed with version < or = OCSserver version, for example for XAMPP on Windows OCSserver2.2 must use Agent 2.1.1.1

For presented in this Tutorial Linux OCSserver 2.5 must use Agent 2.3.1.1(is highest aviable at the moment) or below.

Installation of Agents on windows I use default settings, just uncheck field Validate certificates, Of course  if choose it to be checked must generate certificate on OCSserwer and place it to a Agent config Folder (on windows 10 it is C:\ProgramData\OCS Inventory NG)

in OCS Inventory NG server for Unix by (2.9k points)
edited by

Please log in or register to answer this question.

 
Powered by Question2Answer
...