On Thu, 13 Jan 2005, Aaron Macks wrote:
is there some documentation somewhere on setting up multiple wiki's from the same server/install? I've seen references to it, including a refernce, but no more, to a CommonSettings.php Aaron
I use the following settup:
wiki-dir (from the tar file) - docs/ - extensions/ - includes/ - skins/ - ... - sites/ - site1/ - index.php - redirect.php - LocalSettings.php - images/ - site2/ - index.php - redirect.php - LocalSettings.php - images/ - site3/ ...
redirect.php is a link to ../../redirect.php, but could be just a copy if you don't allow links in the apache config.
index.php has the following change to pick up the right include files:
--- ../../index.php 2004-12-26 03:04:53.000000000 +0100 +++ index.php 2005-01-12 12:16:12.000000000 +0100 @@ -20,7 +20,7 @@ # it becomes an entry point, thereby defeating its purpose. define( "MEDIAWIKI", true );
-require_once( "./includes/Defines.php" ); +require_once( "../../includes/Defines.php" ); require_once( "./LocalSettings.php" ); require_once( "includes/Setup.php" );
In LocalSettings $IP is the "wiki-dir" (see above), and you have to adjust some of the other paths and directory settings to make it work.
I just did this install, but it seems to behave fine.
Christof