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.11.1 available

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

http://localhost:80/ocsinventory error 500

When i tried to do  a Local Import i received the error 500 each time.  I validated the configuration on both file
/etc/httpd/conf.d/z-ocsinventory-server.conf and /usr/share/ocsinventory-reports/ocsreports/dbconfig.inc.php

# Which version of mod_perl we are using

  # For mod_perl <= 1.999_21, replace 2 by 1

  # For mod_perl > 1.999_21, replace 2 by 2

  PerlSetEnv OCS_MODPERL_VERSION 2

  # 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 ocsweb

  PerlSetEnv OCS_DB_LOCAL ocsweb

  # User allowed to connect to database

  PerlSetEnv OCS_DB_USER ocs

  # Password for user

  PerlSetVar OCS_DB_PWD !mdf1Ocs!

  # Slave Database settings

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

  # Useful if you handle mysql slave databases

  # PerlSetEnv OCS_DB_SL_HOST localhost

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

  # PerlSetEnv OCS_DB_SL_PORT_SLAVE 3306

  # User allowed to connect to database

  # PerlSetEnv OCS_DB_SL_USER ocs

  # Name of the database

  # PerlSetEnv OCS_DB_SL_NAME ocsweb

  # Password for user

  # PerlSetVar OCS_DB_SL_PWD ocs

  # Path to log directory (must be writeable)

  PerlSetEnv OCS_OPT_LOGPATH "/var/log/ocsinventory-server"

  # If you need to specify a mysql socket that the client's built-in

  #PerlSetEnv OCS_OPT_DBI_MYSQL_SOCKET "path/to/mysql/unix/socket"

  # DBI verbosity

  PerlSetEnv OCS_OPT_DBI_PRINT_ERROR 0

  # Unicode support

  PerlSetEnv OCS_OPT_UNICODE_SUPPORT 1

  # If you are using a multi server architecture,

  # Put the ip addresses of the slaves on the master

  # (This is read as perl regular expressions)

  PerlAddVar OCS_OPT_TRUSTED_IP 127.0.0.1

  #PerlAddVar OCS_OPT_TRUSTED_IP XXX.XXX.XXX.XXX

 
====================================================================================================================================================================================================

 
<?php

define("DB_NAME", "ocsweb");

define("SERVER_READ","localhost");

define("SERVER_WRITE","localhost");

define("COMPTE_BASE","ocs");

define("PSWD_BASE","!mdf1Ocs!");

?>
in OCS Inventory NG server for Unix by (120 points)

Please log in or register to answer this question.

 
Powered by Question2Answer
...