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

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

Multiple installation with independent databases on same server

Hello everybody,

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?
in OCS Inventory NG server for Unix by (220 points)

1 Answer

0 votes

Did you configure the correct url into ocsinventory.ini? I mean server=http://@ip/ocsinventory-2


by (87.2k points)
Powered by Question2Answer