mantisbt:run_multiple_mantis_sites_on_one_installation
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
mantisbt:run_multiple_mantis_sites_on_one_installation [2011/02/11 03:26] – beautifyed Phileas | mantisbt:run_multiple_mantis_sites_on_one_installation [2013/06/21 16:30] (current) – dregad | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | How to serve multiple mantis installations on the **windows** platform with : | + | ===== How to serve multiple mantis installations on the windows platform |
+ | |||
+ | with | ||
- just one mantis installation | - just one mantis installation | ||
- one or more databases | - one or more databases | ||
Line 16: | Line 19: | ||
==== Database ==== | ==== Database ==== | ||
This is a no-brainer, do what ever you like, combine the DB or use seperate ones, just have it reflected in the correct config file. | This is a no-brainer, do what ever you like, combine the DB or use seperate ones, just have it reflected in the correct config file. | ||
+ | |||
==== Configuration ==== | ==== Configuration ==== | ||
The various Mantis installations should all point to the same directory, each having their own hostheaders. | The various Mantis installations should all point to the same directory, each having their own hostheaders. | ||
- | Based upon the hostheaders the correct config file can be selected within the normal config_inc.php (see sample below). | + | Based upon the hostheaders the correct config file can be selected within the normal |
Configuration of each installation, | Configuration of each installation, | ||
Line 31: | Line 35: | ||
you need to copy the default script to '' | you need to copy the default script to '' | ||
So for each installation you now can run the script in isolation and still have the option to select the correct config. | So for each installation you now can run the script in isolation and still have the option to select the correct config. | ||
+ | |||
==== Updating mantis ==== | ==== Updating mantis ==== | ||
Line 39: | Line 44: | ||
That is all | That is all | ||
+ | ===== Examples of Configuration ===== | ||
+ | |||
+ | ==== config_inc.php ==== | ||
So how would your '' | So how would your '' | ||
Line 69: | Line 77: | ||
<?php | <?php | ||
// * HTTP_HOST is used to determine the config file needed for webservices | // * HTTP_HOST is used to determine the config file needed for webservices | ||
- | // * SCRIPT_NAME is used to determine the config file needed for commandline services | + | // * SCRIPT_NAME is used to determine the |
- | $hostheader = $_SERVER[' | + | |
+ | if (isset($_SERVER[' | ||
+ | | ||
+ | } | ||
$mailscript = $_SERVER[' | $mailscript = $_SERVER[' | ||
Line 93: | Line 104: | ||
The contents of '' | The contents of '' | ||
+ | |||
+ | |||
+ | ==== custom_strings_inc.php ==== | ||
+ | There is one other area which needs to be addressed which is the reference within Mantis to '' | ||
+ | |||
+ | In the current setup it is assumed that these would be the same for all instances running of that single install. This clearly is not de facto true. | ||
+ | Good news is that it is not a real issue anyway. This can be handled pretty easily, exactly in the same way as for the base config !! | ||
+ | |||
+ | Just move your custom strings into an instance dependent file called '' | ||
+ | Then your '' | ||
+ | |||
+ | <code php> | ||
+ | <?php | ||
+ | // ****************************************************************************************** | ||
+ | // * * | ||
+ | // * HTTP_HOST is used to determine the config file needed for webservices * | ||
+ | // * SCRIPT_NAME is used to determine the config file needed for commandline services * | ||
+ | // * * | ||
+ | // ****************************************************************************************** | ||
+ | if (isset($_SERVER[' | ||
+ | $hostheader = $_SERVER[' | ||
+ | } | ||
+ | $mailscript = $_SERVER[' | ||
+ | |||
+ | switch ($hostheader) { | ||
+ | case " | ||
+ | include(' | ||
+ | | ||
+ | case " | ||
+ | include(' | ||
+ | | ||
+ | } | ||
+ | |||
+ | switch ($mailscript){ | ||
+ | case " | ||
+ | include(' | ||
+ | | ||
+ | case " | ||
+ | include(' | ||
+ | | ||
+ | } | ||
+ | </ | ||
+ | |||
+ | ==== custom_constants_inc.php ==== | ||
+ | The same applies for the custom_constants_inc.php | ||
+ | |||
+ |
mantisbt/run_multiple_mantis_sites_on_one_installation.1297412804.txt.gz · Last modified: 2011/02/11 03:28 (external edit)