I'm trying to configure my Ubuntu 14.04 server to host multiple ocs installation with independent databases.
I have my main installation fully working but I would like now to inventory another company's asset in an independent database in order to be able to easily migrate to a new server and separete the inventory if required.
I've till now done this:
cp -aR /usr/share/ocsinventory-reports /usr/share/ocsinventory-reports-2
cp -aR /var/lib/ocsinventory-reports /var/lib/ocsinventory-reports-2
create other 2 virtual host in apache responding to /ocsreports-2 and /ocsinventory-2 and so on
create a new .htaccess with a new user to authenticate computers on the new ocsinventory
duplicate the database schema and updated the info on the virtual host and on dbconfig.inc.php
If I try accessing to the new virtual host /ocsreports-2 everything seems to work, but whenever I try to add a new computer, giving the right paths and users during installation it will upload the machine infos to the other installed inventory (/ocsreports).
can you give me some hints?