Multiple Mediawiki Installations on the Same Codebase/LocalSettings.php

From Charlie.Huggardlee.Net

Jump to: navigation, search
<?php
$wgSitename         = "Wiki One";
$wgMetaNamespace    = "Wiki1";
 
$wgEnableEmail      = true;
$wgEnableUserEmail  = true;
 
$wgEmergencyContact = "wiki1contact@example.com";
 
$wgDBname           = "wiki1db";
$wgDBuser           = "wiki1user";
$wgDBpassword       = "wiki1password";
 
# MySQL specific settings
$wgDBprefix         = "";
 
# MySQL table options to use during installation or update
$wgDBTableOptions   = "TYPE=InnoDB";
 
# Experimental charset support for MySQL 4.1/5.0.
$wgDBmysql5 = false;
 
$wgLocalInterwiki   = "w1";
 
$wgProxyKey = ""/*Generated hexadecimal number*/;
 
## Changing default licensing
$wgEnableCreativeCommonsRdf = true; 
$wgRightsPage = "Project:Copyrights"; # Set to the title of a wiki page that describes your license/copyright
$wgRightsUrl = "http://creativecommons.org/licenses/by-nc-sa/3.0/";
$wgRightsText = "Attribution-Noncommercial-Share Alike 3.0 ";
$wgRightsIcon = "http://i.creativecommons.org/l/by-nc-sa/3.0/88x31.png";
# $wgRightsCode = "by-nc-sa"; # Not yet used
 
#Semantic Mediawiki!
require_once("${IP}/extensions/SemanticMediaWiki/includes/SMW_Settings.php");
$smwgQEqualitySupport = SMW_EQ_FULL;  // always interpret redirects as equality in queries
$smwgQComparators = '<|>|!|~'; // enable the pattern search comparator ~ for strings
enableSemantics('wiki1.example.com');
 
#Adding Subpages
$wgNamespacesWithSubpages[NS_MAIN] = true;
Web Search
Google
Personal tools