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.

OCS Invetory not connecting to DB

I have a debian based installation, i managed to configure the web admin consolo and works great!, using the same server i change the file in /etc/apache2/conf.d/z-ocsinventory-server.conf with the same values that i used to configure te web console, but i allways get this error

Can't call method "do" on an undefined value at /usr/local/share/perl/5.24.1/Apache/Ocsinventory/Server/System.pm line 189

# Master Database settings

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

  PerlSetEnv OCS_DB_HOST

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

i check and the server can connect to database. it seems like i missed something and perl is not reading the config file
in OCS Inventory NG server for Unix by (120 points)

1 Answer

0 votes
Do you have restart apache after modify this file ?
by (22k points)
Powered by Question2Answer