for some reasons I have to manage four different instances of Mantis on the same machine, each with its own database.
To minimize efforts when updating mantis, I tried to have one general (non-accessible) installation (which I can easily update) and have four other directories that contain only links to the general directory. Like this (I put it in CODE tags her to have fixed chars here for easier viewing):
- Code: Select all
+------ mantis-1.0.0a3 (not used directly)
+------ mantis1 (files in this directory linked to mantis-1.0.0a3)
| +----- config_inc.php (not linked)
+------ mantis2 (files in this directory linked to mantis-1.0.0a3)
| *----- config_inc.php (not linked)
This... unfortunately doesn't work as Mantis "jumps" out of the subdirectores (mantis1, mantis2, etc.) and loads config_inc.php in mantis-1.0.0a3 (which of course only contains the default values, not the instance specific values). I also tried to change the $g_absolute_path variable in config_defaults_inc.php in mantis1 or mantis2 to point directly to my mantis1 or mantis2 directories (instead of letting it use dirname(__FILE__) to get the absolute path). Then I found out, that for example core.php also uses this construction, so I guess my idea doesn't work at all.
Is there any other clever way of having a construction that I only have one application directory and more than one instance of Mantis running?
I searched the forum with the keyword 'multiple' but haven't found anything useful yet. Any help will be appreciated. Thanks.