User Tools

  • Logged in as: anonymous (anonymous)
  • Log Out

Site Tools


mantisbt:run_multiple_mantis_sites_on_one_installation

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
mantisbt:run_multiple_mantis_sites_on_one_installation [2011/02/18 04:43] Phileasmantisbt: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 ===== ===== How to serve multiple mantis installations on the windows platform =====
 +
 with with
 +
   - just one mantis installation   - just one mantis installation
   - one or more databases   - one or more databases
Line 42: Line 44:
 That is all That is all
  
 +===== Examples of Configuration =====
 +
 +==== config_inc.php ====
 So how would your ''config_inc.php'' look: So how would your ''config_inc.php'' look:
  
Line 72: 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['HTTP_HOST'];+ 
 +if (isset($_SERVER['HTTP_HOST'])) { 
 +    $hostheader = $_SERVER['HTTP_HOST']; 
 +}
 $mailscript = $_SERVER['SCRIPT_NAME']; $mailscript = $_SERVER['SCRIPT_NAME'];
  
Line 97: Line 105:
 The contents of ''config_mantis1.php'' and ''config_mantis2.php'' is the normal config for each individual installation of mantis. The contents of ''config_mantis1.php'' and ''config_mantis2.php'' is the normal config for each individual installation of mantis.
  
 +
 +==== custom_strings_inc.php ====
 There is one other area which needs to be addressed which is the reference within Mantis to ''custom_strings_inc.php''. There is one other area which needs to be addressed which is the reference within Mantis to ''custom_strings_inc.php''.
  
Line 102: Line 112:
 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 !! 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 caklled ''custom_strings_mantis1.php'' and so on.+Just move your custom strings into an instance dependent file called ''custom_strings_mantis1.php'' and so on.
 Then your ''custom_strings_inc.php'' would look like : Then your ''custom_strings_inc.php'' would look like :
  
Line 113: Line 123:
 // * * // * *
 // ****************************************************************************************** // ******************************************************************************************
-$hostheader = $_SERVER['HTTP_HOST'];+if (isset($_SERVER['HTTP_HOST'])) { 
 +    $hostheader = $_SERVER['HTTP_HOST']; 
 +}
 $mailscript = $_SERVER['SCRIPT_NAME']; $mailscript = $_SERVER['SCRIPT_NAME'];
  
Line 134: Line 146:
 } }
 </code> </code>
 +
 +==== custom_constants_inc.php ====
 The same applies for the custom_constants_inc.php The same applies for the custom_constants_inc.php
 +
  
mantisbt/run_multiple_mantis_sites_on_one_installation.1298022232.txt.gz · Last modified: 2011/02/18 04:48 (external edit)

Driven by DokuWiki