User:Tisane/Farm

From MediaWiki.org
Jump to: navigation, search

[edit] Wikis

This pertains to the following:

[edit] Settings

Below are the pertinent configuration settings included in LocalSettings.php of wikis in the experimental wiki farm being used to develop Extension:IntegratedWatchlists that differ from the default settings. Note that quite probably some of these are not what they should be, because the wikis are not yet functioning as they should be.

error_reporting(E_ALL);
ini_set("display_errors", 1);
$wgShowExceptionDetails = true;
$wgShowSQLErrors = true;
$wgDebugDumpSql  = true;
 
$wgSharedDB     = 'rpedorg_centralauth'; // or whatever database you use for central data
$wgSharedTables = array( 'objectcache' ); // remember to copy the table structure's to the central database first
$wgMainCacheType = CACHE_DB; // Tell mediawiki to use objectcache database instead of nothing
require_once ("$IP/extensions/CentralAuth/CentralAuth.php");
$wgCentralAuthDatabase = 'rpedorg_centralauth';
$wgCentralAuthCookies = true;
 
$wgLocalDatabases = array(
        'onegrok' => 'rpedorg_onegrok',
        'twogrok' => 'rpedorg_twogrok',
        'threegrok' => 'rpedorg_threegrok',
        'fourgrok' => 'rpedorg_fourgrok'
);
$wgConf->wikis = $wgLocalDatabases;
$wgConf->suffixes = array( 'grok' );
$wgConf->localVHosts = array( 'localhost' );
 
$wgConf->settings = array(
 
'wgSitename' => array(
    'rpedorg_onegrok' => 'Onegrok',
    'rpedorg_twogrok' => 'Twogrok',
    'rpedorg_threegrok' => 'Threegrok',
    'rpedorg_fourgrok' => 'Fourgrok',
    'onegrok' => 'Onegrok',
    'twogrok' => 'Twogrok',
    'threegrok' => 'Threegrok',
    'fourgrok' => 'Fourgrok'
),
 
'wgLanguageCode' => array(
    'default' => '$lang',
),
 
'wgLocalInterwiki' => array(
    'Onegrok' => 'onegrok',
    'Twogrok' => 'twogrok',
    'Threegrok' => 'threegrok',
    'Fourgrok' => 'fourgrok'
),
 
);
 
 
function efGetSiteParams( $conf, $wiki ) {
    $site = null;
    $lang = null;
    foreach( $conf->suffixes as $suffix ) {
        if ( substr( $wiki, -strlen( $suffix ) ) == $suffix ) {
            $site = $suffix;
            $lang = substr( $wiki, 0, -strlen( $suffix ) );
            break;
        }
    }
    return array(
        'suffix' => $site,
        'lang' => $lang,
        'params' => array(
            'lang' => $lang,
            'site' => $site,
            'wiki' => $wiki,
        ),
        'tags' => array(),
    );
}
 
$wgConf->siteParamsCallback = 'efGetSiteParams';
 
$wgShowExceptionDetails = true;
Personal tools
Namespaces

Variants
Actions
Navigation
Support
Download
Development
Communication
Print/export
Toolbox