Aaaand for my case i found the solution myself:
I don't know why but it was filled with the wrong database user and password in file
z-ocsinventory-server.conf
located in folder /etc/apache2/conf-available
Modify the file then restart apache2 service: sudo /etc/init.d/apache2 restart