
|
[dokuwiki]
||
[Date Prev]
[10-2005 Date Index]
[Date Next]
||
[Thread Prev]
[10-2005 Thread Index]
[Thread Next]
[dokuwiki] Re: Multisite support
- From: Marc Haber <mh+dokuwiki@xxxxxxxxxxxx>
- To: dokuwiki@xxxxxxxxxxxxx
- Date: Sat, 1 Oct 2005 18:26:00 +0200
Hi,
On Thu, Sep 22, 2005 at 01:13:56PM +0300, Matti Pöllä wrote:
> Has there been any discussion about supporting multiple wikis using a
> single codebase? I have a situation where I would like to have
> completely separate wiki sites such as coolwiki.mydomain.org and
> lamewiki.mydomain.org and the idea of simply installing separate
> copies under the www directory isn't as elegant as it could be. By
> this I mean that for example I'd have to worry about upgrading each
> installation separately.
I have done that with the Debian packages this way:
/etc/dokuwiki/dokuwiki.php:
@include("conf/local.php");
/etc/dokuwiki/local.php:
<?
switch( $_SERVER["DOCUMENT_ROOT"] ) {
case "/home/mh/.www/wiki.zugschlus.de":
require_once("conf/wiki.zugschlus.de.php");
return;
case "/home/mh/.www/testwiki.zugschlus.de";
require_once("conf/testwiki.zugschlus.de.php");
return;
case "/home/mh/.www/debs2005.zugschlus.de";
require_once("conf/debs2005.zugschlus.de.php");
return;
}
?>
/etc/dokuwiki/wiki.zugschlus.de.php (as an example):
$conf['basedir'] = '';
$conf['fsdir'] = '/home/mh/.www/data/wiki.zugschlus.de';
$conf['datadir'] = $conf['fsdir']. '/data';
$conf['title'] = 'wiki.zugschlus.de'; //what to show in the title
$conf['uploadtypes'] = '(txt|gif|jpe?g|png|zip|pdf|tar(\.gz)?|tgz)';
My installations are not in intensive use, but this approach seems to
work reasonably well.
Greetings
Marc
--
-----------------------------------------------------------------------------
Marc Haber | "I don't trust Computers. They | Mailadresse im Header
Mannheim, Germany | lose things." Winona Ryder | Fon: *49 621 72739834
Nordisch by Nature | How to make an American Quilt | Fax: *49 621 72739835
--
DokuWiki mailing list - more info at
http://wiki.splitbrain.org/wiki:mailinglist
|

|