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