Quantcast
Channel: Ocsinventory Q&A - Recent questions and answers
Viewing all articles
Browse latest Browse all 11965

Answered: Problem When Trying to send Inventory

$
0
0

Try to install with the script . I put here my install documentation (it is in french ... blush)

Centos 7 install

Installation du depot EPEL + paquets utiles : yum install wget vim epel-release net-tools glances bzip2

Telecharger le dernier RPM webtatic release https://mirror.webtatic.com/yum/el7/ webtatic-release.rpm

Installation du depot "webtatic" : rpm -ivh webtatic-release.rpm

Installation du depot pour mariadb : touch /etc/yum.repos.d/mariadb.repo + 

# MariaDB 10.1 CentOS repository list - created 2016-10-20 09:04 UTC

http://downloads.mariadb.org/mariadb/repositories/

[mariadb]

name=MariaDB

baseurl=http://yum.mariadb.org/10.1/centos7-amd64

gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB

gpgcheck=1

Installation Apache : yum install httpd

Installation Mysql :yum install MariaDB-server MariaDB

Installation Php : yum install php56w php56w-pdo php56w-mysqlnd php56w-gd php56w-mbstring php56w-ldap php56w-imap php56w-xml

Installation https : yum install mod_ssl openssl

Demarrage auto mysqld et httpd : systemctl enable mariadb; systemctl enable httpd 

OCS install

Créer à l’aide de phpmyadmin ou ligne de commande:

1 base ocs

1 utilisateur ocs_user avec mot de passe fort ayant des droits totale sur la base ocs

Telecharger la dernière release :

https://www.ocsinventory-ng.org/fr

Installer les modules PERL obligatoires pour le fonctionnement du produit

  • yum install perl-XML-Simple
  • yum install perl-Compress-Zlib
  • yum install perl-DBI
  • yum install perl-DBD-MySQL
  • yum install perl-XML-Entities
  • yum install perl-Net-IP
  • yum install perl-SOAP-Lite
  • yum install perl-Archive-Zip
  • yum install perl-Digest-SHA1
  • yum install perl-Test-Simple
  • yum install php56w-soap

Installation d’un Repository supplémentaire pour installer “perl-Apache-DBI”

https://harbottle.gitlab.io/epmel/7/x86_64/

Installation du module

yum install perl-Apache-DBI

décompresser le répertoire d’installation

tar xvf OCSNG_UNIX_SERVER-2.3.1.tar.gz

Déclencher le script d’installation :

. /setup.sh … et laisser les réponses par défaut

Droits supplémentaires

chown apache ocsinventory-reports/

chown -R apache ocsinventory-reports/

chown apache /usr/share/ocsinventory-reports/ocsreports

chown -R apache /usr/share/ocsinventory-reports/ocsreports

Modifier le fichier /etc/httpd/conf.d/Z-ocsinventory-server.conf -> accès BDD

# Master Database settings

  # Replace localhost by hostname or ip of MySQL server for WRITE

  PerlSetEnv OCS_DB_HOST localhost

  # Replace 3306 by port where running MySQL server, generally 3306

  PerlSetEnv OCS_DB_PORT 3306

  # Name of database

  PerlSetEnv OCS_DB_NAME ocs

  PerlSetEnv OCS_DB_LOCAL ocs

  # User allowed to connect to database

  PerlSetEnv OCS_DB_USER ocs_user

  # Password for user

  PerlSetVar OCS_DB_PWD xxx

Configuration spécifique

Afin de résoudre les problèmes d’affichages :

Ajouter au fichier ocsinventory-reports.conf :

  <IfModule mod_php5.c>

       […]

        php_value default_charset none

       […]

    </IfModule>

Connecter vous au serveur et laisser vous guider

http://x.x.x.x/ocsreports


Viewing all articles
Browse latest Browse all 11965

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>