[Mediawiki-l] Multiple wikis sharing single database and same database prefix
Gunter
News2006 at freenet.de
Sat Mar 10 15:28:41 UTC 2007
JJArmistead at comcast.net schrieb:
> Referring to discussions about this topic
>
> http://lists.wikimedia.org/mailman/htdig/mediawiki-l/2005-October/007450.html
>
> I want to have two wikis installed on the one server.
>
>
What do you really want? Secure namespaces or the fun of installing
multiple wikis?
If you look into secure namespaces, you may look into Extension Lockup,
which I tried and was very satisfied.
It depends on the security level you want to achieve. By design,
MediaWiki is not build for this and can not be regarded hack proof.
> Both will use the same MySQL database, wikidb
>
> Both will have the same database prefix (or both will have NO database prefix).
>
> Both the wikis will have separate virtual paths e.g. /wikiA and /wikiB configured in Apache
>
> I want to configure one (wiki "A") with extra Custom Namespaces (via $wgExtraNamespaces in LocalSettings.php), and limit Apache to serving those pages only to users within a specific in-house IP address block. Consider this to be the "Private:" namespace, plus an associateed "Private_Talk:" namespace for discussion pages.
>
> The other wiki (wiki "B") will have just the standard MediaWiki namespaces. This is the "Ordinary user" namespace.
>
> Each wiki will have its own LocalSettings.php to account for this., but all the other files will be shared between the two wikis.
>
> Some questions:
>
> 1. Will searches by users on wiki "B" only see articles in the "Ordinary user" namespaces ? Or will it also see the "Private" namespaces too ?
>
>
Since in wiki B the namespace is not configured, the search will not
list any results. All database operations require a namespace as key.
If you have Mynamespace:MyArticle in Wiki A, the article will be in the
namespace Mynamespace. If you create the same article in Wiki B, it will
be an article in the main namespace, called Mynamespace:MyArticle. Thus,
even if a user guesses the right name of a protected article, all he can
do is create a new one, which is stored differently in the database.
> 2. What takes precedence: interwiki prefixes or namespace prefixes ? If I set up the interwiki table so that Private: and Private_Talk: redirect to wiki "B"'s http address, will that also affect wiki "A"'s users ?
>
>
Why don't you just try it out? you basically need to copy the whole
sourcefiles of your current wiki, change the script position in the
localsettings and comment out or create the extra namespace.
GunterS
More information about the MediaWiki-l
mailing list