You are not logged in.
Pages: 1
Hi,
is it possible to use multiple databases in one glpi environment ?
company 1 = database1
company 2 = database2
and so on ?
One solution would be to use servereal glpi-installations on the same server....
Is there an easier way ?
Greetings, Andy.
Offline
What would be interest of this ?
Does Entities are not enough to handle various enterprise ?
I use a "glpi/config/config_path.php" solution for this purpose, containing something like :
<?php
if (strpos($_SERVER["PHP_SELF"],"glpi1")==1) {
define("GLPI_CONFIG_DIR", "/etc/glpi/1");
} else if (strpos($_SERVER["PHP_SELF"],"glpi2")==1) {
define("GLPI_CONFIG_DIR", "/etc/glpi/2");
} else {
define("GLPI_CONFIG_DIR", "/etc/glpi/3");
}
?>
And each /etc/glpi/?/config_db.php give database parameters.
Remi.
Dév. Fedora 29 - PHP 5.6/7.0/7.1/7.2/7.3/7.4 - MariaDB 10.3 - GLPI master
Certifié ITILv3 - RPM pour Fedora, RHEL et CentOS sur https://blog.remirepo.net/
Offline
Remi, I didn't saw the entity-feature in glpi. Now I found it. Sounds great.
The alternate way of using config_path is also a good idea.
Thank You.
Andy.
Offline
Pages: 1