LocalSettings.php

From translatewiki.net
Jump to: navigation, search

Updated at 11:51, 30 March 2014 (UTC)

<?php
if ( !defined( 'MEDIAWIKI' ) ) {
        die( "This is not a valid entry point\n" );
}

$IP = __DIR__;
ini_set( 'error_log', "$IP/logs/error_php" );
ini_set( 'display_errors',          0);
ini_set( 'ignore_repeated_errors',  1);
ini_set( 'log_errors',              1);

ini_set( 'memory_limit',      '175M' );
ini_set( 'max_execution_time', '15' );

error_reporting( E_ALL | E_STRICT );
date_default_timezone_set('UTC');
$wgShowExceptionDetails = true;

$wgServer = preg_replace( '/^https?:/', '', $wgServer );
#$wgServer = "//translatewiki.net";
$wgCanonicalServer = "https://translatewiki.net"; # Siebrand / 2011-08-25
if ( $wgServer === '//localhost' ) {
  $wgServer = $wgInternalServer = $wgCanonicalServer;
}

$wgArticlePath      = "/wiki/$1";
$wgScriptPath       = "/w";
$wgScript           = "$wgScriptPath/i.php";

$CONF = '/home/betawiki/config';

require("$IP/DatabaseSettings.php");
require("$CONF/TranslatewikiSettings.php");
require("$CONF/PermissionSettings.php");
require("$IP/PrivateSettings.php");

$wgCacheDirectory = "/resources/caches/mainsite";
$wgLocalisationCacheConf['store'] = 'file';
$wgLocalisationCacheConf['manualRecache'] = true;
$wgInvalidateCacheOnLocalSettingsChange = false;
$wgLogExceptionBacktrace = true;

$wgDebugLogGroups['exception'] = ini_get( 'error_log' );
$wgDebugLogGroups['Bug56269'] = ini_get( 'error_log' );
$wgDebugLogGroups['translationservices'] = '/www/dev.translatewiki.net/w/logs/ts';
$wgProfileToDatabase = true;
$wgEnableProfileInfo = true;
$wgProfileCallTree = true;
$wgMemCachedPersistent = true;

#$wgReadOnly = "Server maintenance in progress.";
$wgEnableDnsBlacklist = true;

$wgJobTypeConf['default'] = array( 'class' => 'JobQueueDB', 'order' => 'random', 'claimTTL' => 60 );
$wgResourceLoaderStorageEnabled = true;

$wgGroupPermissions['*']['createaccount'] = false;