34if ( !defined(
'MEDIAWIKI' ) ) {
41 echo
"Error, Setup.php must be included from the file scope.\n";
51if ( ini_get(
'mbstring.func_overload' ) ) {
52 die(
'MediaWiki does not support installations where mbstring.func_overload is non-zero.' );
56require_once
"$IP/includes/AutoLoader.php";
59require_once
"$IP/includes/Defines.php";
62require_once
"$IP/includes/DefaultSettings.php";
65require_once
"$IP/includes/GlobalFunctions.php";
68if ( is_readable(
"$IP/vendor/autoload.php" ) ) {
69 require_once
"$IP/vendor/autoload.php";
76if ( !interface_exists(
'Psr\Log\LoggerInterface' ) ) {
78 'MediaWiki requires the <a href="https://github.com/php-fig/log">PSR-3 logging ' .
79 "library</a> to be present. This library is not embedded directly in MediaWiki's " .
80 "git repository and must be installed separately by the end user.\n\n" .
81 'Please see <a href="https://www.mediawiki.org/wiki/Download_from_Git' .
82 '#Fetch_external_libraries">mediawiki.org</a> for help on installing ' .
83 'the required components.'
86 trigger_error( $message, E_USER_ERROR );
91MediaWiki\HeaderCallback::register();
97if ( defined(
'MW_CONFIG_CALLBACK' ) ) {
100 if ( !defined(
'MW_CONFIG_FILE' ) ) {
101 define(
'MW_CONFIG_FILE',
"$IP/LocalSettings.php" );
103 require_once MW_CONFIG_FILE;
113if ( defined(
'MW_SETUP_CALLBACK' ) ) {
114 call_user_func( MW_SETUP_CALLBACK );
129mb_internal_encoding(
'UTF-8' );
132putenv(
"LC_ALL=$wgShellLocale" );
174 $wgLogo =
"$wgResourceBasePath/resources/assets/wiki.png";
204 "{$wgStylePath}/common/images/",
205 "{$wgResourceBasePath}/resources/assets/licenses/",
227 "$wgResourceBasePath/resources/assets/poweredby_mediawiki_88x31.png";
229 "$wgResourceBasePath/resources/assets/poweredby_mediawiki_132x47.png 1.5x, " .
230 "$wgResourceBasePath/resources/assets/poweredby_mediawiki_176x62.png 2x";
254 'name' =>
'fsLockManager',
255 'class' => FSLockManager::class,
256 'lockDirectory' =>
"{$wgUploadDirectory}/lockdir",
259 'name' =>
'nullLockManager',
260 'class' => NullLockManager::class,
270 'imageHeight' => 120,
271 'captionLength' =>
true,
273 'showDimensions' =>
true,
274 'mode' =>
'traditional',
282 'class' => LocalRepo::class,
307 'class' => ForeignDBRepo::class,
327 'class' => FileRepo::class,
341 'class' => ForeignAPIRepo::class,
342 'name' =>
'wikimediacommons',
343 'apibase' =>
'https://commons.wikimedia.org/w/api.php',
344 'url' =>
'https://upload.wikimedia.org/wikipedia/commons',
345 'thumbUrl' =>
'https://upload.wikimedia.org/wikipedia/commons/thumb',
347 'transformVia404' =>
true,
348 'fetchDescription' =>
true,
349 'descriptionCacheExpiry' => 43200,
350 'apiThumbCacheExpiry' => 0,
354 if ( !isset( $repo[
'directory'] ) && $repo[
'class'] === ForeignAPIRepo::class ) {
357 if ( !isset( $repo[
'backend'] ) ) {
358 $repo[
'backend'] = $repo[
'name'] .
'-backend';
451 $suhosinMaxValueLength = (int)ini_get(
'suhosin.get.max_value_length' );
452 if ( $suhosinMaxValueLength > 0 && $suhosinMaxValueLength < 2000 ) {
457 unset( $suhosinMaxValueLength );
467 ini_get(
'post_max_size' ) ?: ini_get(
'hhvm.server.max_post_size' ),
469 ) ?: PHP_INT_MAX ) - 1024
513foreach ( LanguageCode::getNonstandardLanguageCodeMapping() as
$code => $bcp47 ) {
514 $bcp47 = strtolower( $bcp47 );
540 Wikimedia\suppressWarnings();
542 Wikimedia\restoreWarnings();
588 wfDeprecated(
'$wgSessionsInObjectCache = false',
'1.27' );
595 "Session data will be stored in \"$cacheType\" cache with " .
596 "expiry $wgObjectCacheSessionExpiry seconds"
607if ( defined(
'MW_NO_SESSION' ) ) {
624MediaWikiServices::resetGlobalInstance(
new GlobalVarConfig(),
'quick' );
628 MediaWikiServices::getInstance()->getDBLoadBalancer()->setTableAliases(
642define(
'MW_SERVICE_BOOTSTRAP_COMPLETE', 1 );
644MWExceptionHandler::installHandler();
647foreach ( [
'wgArticlePath',
'wgVariantArticlePath' ] as $varName ) {
648 if ( $$varName && !preg_match(
'/^(https?:\/\/|\/)/', $$varName ) ) {
650 "If you use a relative URL for \$$varName, it must start " .
651 'with a slash (<code>/</code>).<br><br>See ' .
652 "<a href=\"https://www.mediawiki.org/wiki/Manual:\$$varName\">" .
653 "https://www.mediawiki.org/wiki/Manual:\$$varName</a>."
667 wfWarn(
'$wgServerName should be derived from $wgCanonicalServer, '
668 .
'not customized. Overwriting $wgServerName.' );
688 wfWarn(
'Secure login was enabled on a server that only supports '
689 .
'HTTP or HTTPS. Disabling secure login.' );
701if ( !isset( $wgDisableCounters ) ) {
702 $wgDisableCounters =
true;
710 'class' => WANObjectCache::class,
712 'channels' => [
'purge' =>
'wancache-main-default-purge' ]
729 Wikimedia\suppressWarnings();
731 Wikimedia\restoreWarnings();
753 time() - ChronologyProtector::POSITION_COOKIE_TTL
755MediaWikiServices::getInstance()->getDBLoadBalancerFactory()->setRequestInfo( [
757 'UserAgent' =>
$wgRequest->getHeader(
'User-Agent' ),
758 'ChronologyProtection' =>
$wgRequest->getHeader(
'ChronologyProtection' ),
760 'ChronologyClientId' =>
$cpPosInfo[
'clientId']
764if (
$wgRequest->getCookie(
'UseDC',
'' ) ===
'master' ) {
768 MediaWikiServices::getInstance()->getMainWANObjectCache()->useInterimHoldOffCaching(
false );
773 wfDebug(
"\n\nStart command line script $self\n" );
775 $debug =
"\n\nStart request {$wgRequest->getMethod()} {$wgRequest->getRequestURL()}\n";
778 $debug .=
"HTTP HEADERS:\n";
781 $debug .=
"$name: $value\n";
787$wgMemc = ObjectCache::getLocalClusterInstance();
791 'cluster: ' . get_class(
$wgMemc ) .
798Profiler::instance()->scopedProfileOut(
$ps_misc );
801Hooks::run(
'SetupAfterCache' );
809$wgContLang = MediaWikiServices::getInstance()->getContentLanguage();
816 Hooks::run(
'AuthPluginSetup', [ &
$wgAuth ] );
819 MediaWiki\Auth\AuthManager::singleton()->forcePrimaryAuthenticationProviders( [
820 new MediaWiki\Auth\TemporaryPasswordPrimaryAuthenticationProvider( [
821 'authoritative' =>
false,
824 new MediaWiki\Auth\LocalPasswordPrimaryAuthenticationProvider( [
825 'authoritative' =>
true,
827 ],
'$wgAuth is ' . get_class(
$wgAuth ) );
843 if ( !defined(
'MW_NO_SESSION_HANDLER' ) ) {
844 MediaWiki\Session\PHPSessionHandler::install(
845 MediaWiki\Session\SessionManager::singleton()
851 $session = MediaWiki\Session\SessionManager::getGlobalSession();
852 }
catch ( OverflowException $ex ) {
853 if ( isset( $ex->sessionInfos ) && count( $ex->sessionInfos ) >= 2 ) {
857 foreach ( $ex->sessionInfos
as $info ) {
858 $list[] = $info->getProvider()->describe(
$wgContLang );
862 Message::newFromKey(
'sessionmanager-tie', $list )->inLanguage(
$wgContLang )->
plain()
870 if ( $session->isPersistent() ) {
875 if (
MediaWiki\Session\PHPSessionHandler::isEnabled() &&
876 ( $session->isPersistent() || $session->shouldRememberUser() ) &&
877 session_id() !== $session->getId()
880 if ( session_id() !==
'' ) {
881 wfDebugLog(
'session',
'PHP session {old_id} was already started, changing to {new_id}',
'all', [
882 'old_id' => session_id(),
883 'new_id' => $session->getId(),
885 session_write_close();
887 session_id( $session->getId() );
895 if ( !defined(
'MW_NO_SESSION_HANDLER' ) ) {
896 MediaWiki\Session\PHPSessionHandler::install(
897 MediaWiki\Session\SessionManager::singleton()
915$wgOut = RequestContext::getMain()->getOutput();
922 return MediaWikiServices::getInstance()->getParser();
930Profiler::instance()->scopedProfileOut(
$ps_globals );
938 call_user_func( $func );
944 $sessionUser = MediaWiki\Session\SessionManager::getGlobalSession()->getUser();
946 $res = MediaWiki\Auth\AuthManager::singleton()->autoCreateUser(
948 MediaWiki\Auth\AuthManager::AUTOCREATE_SOURCE_SESSION,
951 \MediaWiki\Logger\LoggerFactory::getInstance(
'authevents' )->info(
'Autocreation attempt', [
952 'event' =>
'autocreate',
957 unset( $sessionUser );
967Profiler::instance()->scopedProfileOut(
$ps_setup );
Apache License January AND DISTRIBUTION Definitions License shall mean the terms and conditions for use
$wgRightsIcon
Override for copyright metadata.
$wgCacheEpoch
Set this to current time to invalidate all prior cached pages.
bool $wgPageLanguageUseDB
Enable page language feature Allows setting page language in database.
string $wgSharedUploadDirectory
Shortcut for the 'directory' setting of $wgForeignFileRepos.
$wgUsePathInfo
Whether to support URLs like index.php/Page_title These often break when PHP is set up in CGI mode.
$wgLanguageCode
Site language code.
$wgParserCacheType
The cache type for storing article HTML.
$wgEmergencyContact
Site admin email address.
$wgDBprefix
Table name prefix.
$wgDBuser
Database username.
string $wgPHPSessionHandling
Whether to use PHP session handling ($_SESSION and session_*() functions)
bool $wgCacheSharedUploads
Shortcut for the ForeignDBRepo 'hasSharedCache' setting in $wgForeignFileRepos.
bool string $wgSharedUploadDBname
Shortcut for the ForeignDBRepo 'dbName' setting in $wgForeignFileRepos.
$wgScript
The URL path to index.php.
$wgUseInstantCommons
Use Wikimedia Commons as a foreign file repository.
bool $wgHashedSharedUploadDirectory
Shortcut for the 'hashLevels' setting of $wgForeignFileRepos.
$wgCacheDirectory
Directory for caching data in the local filesystem.
$wgGenerateThumbnailOnParse
Allow thumbnail rendering on page view.
$wgRightsUrl
Set this to specify an external URL containing details about the content license used on your wiki.
$wgSessionName
Override to customise the session name.
$wgLocalInterwiki
The interwiki prefix of the current wiki, or false if it doesn't have one.
$wgPasswordPolicy
Password policy for local wiki users.
$wgLogNames
Lists the message key string for each log type.
$wgHashedUploadDirectory
Set this to false if you do not want MediaWiki to divide your images directory into many subdirectori...
$wgInvalidateCacheOnLocalSettingsChange
Invalidate various caches when LocalSettings.php changes.
$wgLocalStylePath
The URL path of the skins directory.
$wgThumbnailScriptPath
Give a path here to use thumb.php for thumbnail generation on client request, instead of generating t...
$wgExtraNamespaces
Additional namespaces.
$wgTmpDirectory
The local filesystem path to a temporary directory.
bool $wgUseSharedUploads
Shortcut for adding an entry to $wgForeignFileRepos.
string $wgSharedUploadDBprefix
Shortcut for the ForeignDBRepo 'tablePrefix' setting in $wgForeignFileRepos.
$wgDBmwschema
Mediawiki schema.
$wgNoReplyAddress
Reply-To address for e-mail notifications.
$wgDBerrorLogTZ
Timezone to use in the error log.
$wgUploadDirectory
The filesystem path of the images directory.
$wgLogTypes
The logging system has two levels: an event type, which describes the general category and can be vie...
$wgMaximalPasswordLength
Specifies the maximal length of a user password (T64685).
$wgSitename
Name of the site.
$wgReadOnlyFile
If this lock file exists (size > 0), the wiki will be forced into read-only mode.
$wgResourceLoaderMaxQueryLength
If set to a positive number, ResourceLoader will not generate URLs whose query string is more than th...
$wgFileCacheDirectory
Directory where the cached page will be saved.
$wgRightsText
If either $wgRightsUrl or $wgRightsPage is specified then this variable gives the text for the link.
$wgGitInfoCacheDirectory
Directory where GitInfo will look for pre-computed cache files.
$wgPageCreationLog
Maintain a log of page creations at Special:Log/create?
$wgResourceBasePath
The default 'remoteBasePath' value for instances of ResourceLoaderFileModule.
$wgProfileOnly
Don't put non-profiling info into log file.
$wgFooterIcons
Abstract list of footer icons for skins in place of old copyrightico and poweredbyico code You can ad...
$wgUploadPath
The URL path for the images directory.
$wgEnableParserCache
Kept for extension compatibility; see $wgParserCacheType.
$wgFileBlacklist
Files with these extensions will never be allowed as uploads.
$wgEnableEmail
Set to true to enable the e-mail basic features: Password reminders, etc.
$wgExtensionFunctions
A list of callback functions which are called once MediaWiki is fully initialised.
$wgUseSquid
Enable/disable CDN.
$wgShellLocale
Locale for LC_ALL, to provide a known environment for locale-sensitive operations.
$wgSecureLogin
This is to let user authenticate using https when they come from http.
$wgRCMaxAge
Recentchanges items are periodically purged; entries older than this many seconds will go.
$wgLocaltimezone
Fake out the timezone that the server thinks it's in.
$wgUploadBaseUrl
If set, this URL is added to the start of $wgUploadPath to form a complete upload URL.
bool $wgFetchCommonsDescriptions
Shortcut for the 'fetchDescription' setting of $wgForeignFileRepos.
$wgGroupPermissions
Permission keys given to users in each group.
string $wgSharedThumbnailScriptPath
Shortcut for the 'thumbScriptUrl' setting of $wgForeignFileRepos.
$wgLocalInterwikis
Array for multiple $wgLocalInterwiki values, in case there are several interwiki prefixes that point ...
$wgLocalFileRepo
File repository structures.
$wgDeletedDirectory
What directory to place deleted uploads in.
$wgScriptPath
The path we should point to.
$wgWANObjectCaches
Advanced WAN object cache configuration.
$wgAuth $wgAuth
Authentication plugin.
$wgAllowHTMLEmail
For parts of the system that have been updated to provide HTML email content, send both text and HTML...
$wgMainStash
Main object stash type.
$wgExtensionAssetsPath
The URL path of the extensions directory.
$wgDebugToolbar
Display the new debugging toolbar.
$wgForeignFileRepos
Enable the use of files from one or more other wikis.
$wgRepositoryBaseUrl
Shortcut for the 'descBaseUrl' setting of $wgForeignFileRepos.
$wgLogHeaders
Lists the message key string for descriptive text to be shown at the top of each log type.
$wgDebugLogGroups
Map of string log group names to log destinations.
$wgSharedDB
Shared database for multiple wikis.
$wgSessionCacheType
The cache type for storing session data.
$wgDebugDumpSql
Write SQL queries to the debug log.
$wgDBserver
Database host name or IP address.
$wgLoadScript
The URL path to load.php.
$wgCookieSecure
Whether the "secure" flag should be set on the cookie.
$wgExtraLanguageCodes
List of mappings from one language code to another.
$wgCanonicalServer
Canonical URL of the server, to use in IRC feeds and notification e-mails.
$wgStylePath
The URL path of the skins directory.
$wgServer
URL of the server.
$wgRCFilterByAge
Filter $wgRCLinkDays by $wgRCMaxAge to avoid showing links for numbers higher than what will be store...
$wgMinimalPasswordLength
Specifies the minimal length of a user password.
$wgMetaNamespace
Name of the project namespace.
$wgLogo
The URL path of the wiki logo.
$wgUseFileCache
This will cache static pages for non-logged-in users to reduce database traffic on public sites.
$wgDebugLogFile
Filename for debug logging.
$wgPasswordSender
Sender email address for e-mail notifications.
$wgLogActionsHandlers
The same as above, but here values are names of classes, not messages.
string $wgSharedUploadPath
Shortcut for the 'url' setting of $wgForeignFileRepos.
$wgLocalTZoffset
Set an offset from UTC in minutes to use for the default timezone setting for anonymous users and new...
$wgMainWANCache
Main Wide-Area-Network cache type.
$wgDebugPrintHttpHeaders
Print HTTP headers for every request in the debug information.
$wgDBpassword
Database user's password.
$wgRCLinkDays
List of Days options to list in the Special:Recentchanges and Special:Recentchangeslinked pages.
$wgNewUserLog
Maintain a log of newusers at Special:Log/newusers?
wfDebug( $text, $dest='all', array $context=[])
Sends a line to the debug log if enabled or, optionally, to a comment in output.
wfParseUrl( $url)
parse_url() work-alike, but non-broken.
wfTempDir()
Tries to get the system directory for temporary files.
wfWarn( $msg, $callerOffset=1, $level=E_USER_NOTICE)
Send a warning either to the debug log or in a PHP error depending on $wgDevelopmentWarnings.
wfIniGetBool( $setting)
Safety wrapper around ini_get() for boolean settings.
wfGetMessageCacheStorage()
Get the cache object used by the message cache.
wfExpandUrl( $url, $defaultProto=PROTO_CURRENT)
Expand a potentially local URL to a fully-qualified URL.
wfDebugLog( $logGroup, $text, $dest='all', array $context=[])
Send a line to a supplementary debug log file, if configured, or main debug log if not.
wfShorthandToInteger( $string='', $default=-1)
Converts shorthand byte notation to integer form.
wfMemoryLimit()
Set PHP's memory limit to the larger of php.ini or $wgMemoryLimit.
wfDeprecated( $function, $version=false, $component=false, $callerOffset=2)
Throws a warning that $function is deprecated.
$wgGalleryOptions
Default parameters for the "<gallery>" tag.
if(is_array($wgExtraNamespaces)) if(count( $wgDummyLanguageCodes) !==0) $wgDummyLanguageCodes
if( $wgRCFilterByAge) $wgDefaultUserOptions['rcdays']
if(defined( 'MW_SETUP_CALLBACK')) $fname
Customization point after all loading (constants, functions, classes, DefaultSettings,...
if( $wgUseFileCache|| $wgUseSquid) $wgHtml5
foreach(LanguageCode::getNonstandardLanguageCodeMapping() as $code=> $bcp47) $wgContLanguageCode
$wgCanonicalNamespaceNames
Definitions of the NS_ constants are in Defines.php.
foreach([ 'wgArticlePath', 'wgVariantArticlePath'] as $varName) $ps_default2
global $wgCommandLineMode
foreach( $wgExtensionFunctions as $func) if(!defined('MW_NO_SESSION') &&! $wgCommandLineMode) if(! $wgCommandLineMode) $wgFullyInitialised
$wgEnotifRevealEditorAddress
if(!defined( 'MEDIAWIKI')) $wgScopeTest
This file is not a valid entry point, perform no further processing unless MEDIAWIKI is defined.
if( $wgInvalidateCacheOnLocalSettingsChange) if($wgNewUserLog) if( $wgPageCreationLog) if($wgPageLanguageUseDB) if( $wgCookieSecure==='detect') if($wgProfileOnly) if( $wgMinimalPasswordLength !==false) if($wgMaximalPasswordLength !==false) if(! $wgSessionsInObjectCache) $wgSessionsInObjectCache
$wgUsersNotifiedOnAllChanges
if(! $wgDBerrorLogTZ) $wgRequest
if($wgLocalInterwiki) if( $wgSharedPrefix===false) if($wgSharedSchema===false) if(! $wgCookiePrefix) $wgCookiePrefix
if( $wgServerName !==false) $wgServerName
$wgLockManagers[]
Initialise $wgLockManagers to include basic FS version.
$wgNamespaceAliases['Image']
The canonical names of namespaces 6 and 7 are, as of v1.14, "File" and "File_talk".
if(! $wgEmergencyContact) if(! $wgPasswordSender) if(! $wgNoReplyAddress) if( $wgSecureLogin &&substr( $wgServer, 0, 2) !=='//') $wgVirtualRestConfig['global']['domain']
if( $wgCanonicalServer===false) $serverParts
if( $wgSkipSkin) $wgSkipSkins[]
if( $wgScript===false) if($wgLoadScript===false) if( $wgArticlePath===false) if(!empty($wgActionPaths) &&!isset($wgActionPaths[ 'view'])) if( $wgResourceBasePath===null) if($wgStylePath===false) if( $wgLocalStylePath===false) if($wgExtensionAssetsPath===false) if( $wgLogo===false) if($wgUploadPath===false) if( $wgUploadDirectory===false) if($wgReadOnlyFile===false) if( $wgFileCacheDirectory===false) if($wgDeletedDirectory===false) if( $wgGitInfoCacheDirectory===false && $wgCacheDirectory !==false) if($wgEnableParserCache===false) if( $wgRightsIcon) if(isset($wgFooterIcons[ 'copyright'][ 'copyright']) &&$wgFooterIcons[ 'copyright'][ 'copyright']===[]) if(isset( $wgFooterIcons['poweredby']) &&isset( $wgFooterIcons['poweredby']['mediawiki']) && $wgFooterIcons['poweredby']['mediawiki']['src']===null) $wgNamespaceProtection[NS_MEDIAWIKI]
Unconditional protection for NS_MEDIAWIKI since otherwise it's too easy for a sysadmin to set $wgName...
if($wgMetaNamespace===false) if( $wgResourceLoaderMaxQueryLength===false) $wgMinUploadChunkSize
Exception class which takes an HTML error message, and does not produce a backtrace.
Accesses configuration settings from $GLOBALS.
Show an error that looks like an HTTP server error.
Functions to get cache objects.
static schedulePingback()
Schedule a deferred callable that will check if a pingback should be sent and (if so) proceed to send...
static instance()
Singleton.
static getMain()
Get the RequestContext object associated with the main request.
Class to implement stub globals, which are globals that delay loading the their associated module cod...
Stub object for the user language.
static getMaxUploadSize( $forType=null)
Get the MediaWiki maximum uploaded file size for given type of upload, based on $wgMaxUploadSize.
static getMaxPhpUploadSize()
Get the PHP maximum uploaded file size, based on ini settings.
static isValidUserName( $name)
Is the input a valid username?
static detectProtocol()
Detect the protocol from $_SERVER.
This document is intended to provide useful advice for parties seeking to redistribute MediaWiki to end users It s targeted particularly at maintainers for Linux since it s been observed that distribution packages of MediaWiki often break We ve consistently had to recommend that users seeking support use official tarballs instead of their distribution s and this often solves whatever problem the user is having It would be nice if this could such as
this hook is for auditing only or null if authentication failed before getting that far or null if we can t even determine that probably a stub it is not rendered in wiki pages or galleries in category pages allow injecting custom HTML after the section Any uses of the hook need to handle escaping see BaseTemplate::getToolbox and BaseTemplate::makeListItem for details on the format of individual items inside of this array or by returning and letting standard HTTP rendering take place modifiable or by returning false and taking over the output modifiable & $code
injection txt This is an overview of how MediaWiki makes use of dependency injection The design described here grew from the discussion of RFC T384 The term dependency this means that anything an object needs to operate should be injected from the the object itself should only know narrow no concrete implementation of the logic it relies on The requirement to inject everything typically results in an architecture that based on two main types of and essentially stateless service objects that use other service objects to operate on the value objects As of the beginning MediaWiki is only starting to use the DI approach Much of the code still relies on global state or direct resulting in a highly cyclical dependency which acts as the top level factory for services in MediaWiki which can be used to gain access to default instances of various services MediaWikiServices however also allows new services to be defined and default services to be redefined Services are defined or redefined by providing a callback the instantiator that will return a new instance of the service When it will create an instance of MediaWikiServices and populate it with the services defined in the files listed by thereby bootstrapping the DI framework Per $wgServiceWiringFiles lists includes ServiceWiring php
controlled by the following MediaWiki still creates a BagOStuff but calls it to it are no ops If the cache daemon can t be it should also disable itself fairly $wgDBname
CACHE_MEMCACHED $wgMainCacheType