This is an index of all supportedconfiguration settings based on theMainConfigSchema.php (orDefaultSettings.php prior to MediaWiki 1.39) file.
Never editMainConfigSchema.php; add appropriate lines toLocalSettings.php instead and amend them as appropriate.
If you cannot find a configuration setting here, see if it is defined inMainConfigSchema.php.The variable should have some documentation there.
img_auth.php.$wgStylePath, but shouldn't point to an external domain.$wgStyleSheetPath. Use$wgStylePath instead.See alsofile/image upload path settings.
See alsoskins path settings.
Uploads have to be specially set up to be secure.
true, the value of$wgCopyUploadsDomains will be merged with the contents ofMediaWiki:Copyupload-allowed-domains.chmod permission value for newly created directories./a/ab/foo.jpg directory structure.mwstore:// base storage paths.$wgFileExtensions.These settings are kept for backward compatibility, see$wgForeignFileRepos for the new setting, or$wgUseInstantCommons if you only need read access to images on Commons.
| ↑This isnot a configuration setting, but a global state variable. It should be used solely bythumb.php! |
See also:Manual:MIME type detection
<gallery> tag.<img> tags ready for output instead of showing an error message.See also:Manual:Configuring file uploads
img_metadata field if it is outdated but compatible with the current version.<title> tag in SVG files.$wgSVGConverters to use as converter.$wgThumbnailScriptPath, but for shared uploads.See also User Access:$wgEmailConfirmToEdit
mail() PHP function call.true to enable the Special Mute page.true to enable user-to-user email blacklist.true to enable user-to-user email mutelist.true to put the sending user's email in a Reply-To header instead of From.categorylinks tables$wgDBuser.$wgDBuser/$wgDBpassword combo.externallinks table for certain domains.$wgSlaveLagWarning.$wgDatabaseReplicaLagWarning.sql_mode parameter$wgSharedDB is enabled.ContentHandler::getContentText()true, phpunit will run integration tests against remote caches defined in$wgObjectCaches.$wgLBFactoryConf["externalClusters"].site_stats table should have multiple rows.LocalSettings.php is changed$_SESSION andsession_*() functions)Settings for Server side file caching.
$wgFileCacheDirectory.false.Settings for configuring theMemcached memory-based object store (if you are using it)docs/memcached.md has more details.
These settings configure MediaWiki when using a caching HTTP proxy server.They apply tocaching using Varnish as well asSquid.
$wgCdnServers, except no HTTP purges will be sent and CIDR ranges are accepted$wgServer.$wgSquidServers, except that MW has no methods to send HTTP PURGE to an origin part of the configured rangesX-Forwarded-Proto to theVary header for API requests and RSS/Atom feeds.copyright andhistory_copyright messages, which allow raw HTML, will be used.{{GRAMMAR:}} parser function.<linkrel="canonical"> tag on every page indicating thecanonical server which should be used, i.e.$wgServer or$wgCanonicalServer.<html> tag, if any.<cross-domain-policy> (Adobe cross-domain policy) tags, to prevent XSS attacks.Content-Type header.$wgDefaultSkin can't be found.resources/lib/codex/ and friends.remoteBasePath value for resource loader modules.interwiki table.interwiki tablegetInterwikiCache() to retrieve from interwiki database file{{DISPLAYTITLE}} magic word$wgAllowExternalImages is false, you can specify exceptions here.<img> tag to be used in wikitext.Preprocessor::preprocessToObj()PPFrame::expand()rel="nofollow".rel="nofollow" attribute.true to allow the{{USERLANGUAGE}} magic word to return the actual user language.{{DISPLAYTITLE}} to titles that normalize to the samecanonical database key<html>...</html> sections.$wgEnableDnsBlacklist istrue.$wgDnsBlacklistUrls to check for open proxies.hideuser permission.read right may see.Blocking/banning, and some other related settings.
autoconfirmed group membership.ipblocks table schema migration stage, for normalizingipb_address field and adding theblock_target table.bot_passwords tablebot_passwords tablefalse, the number of blocks of a given target is limited to only 1.$wgSpamRegex except for edit summaries.SeeManual:Preventing access for more methods and settings concerning access.See alsoManual:User rights for more information about $wgGroupPermissions, $wgAddGroups, $wgRemoveGroups, etc.
$wgExtendedLoginCookieExpirationhttpOnly flag on all cookies set by MediaWiki (to prevent access from JavaScript).ss0- prefix whenSameSite=None is sent.wfDebugLog() output for certain groups to files other than$wgDebugLogFile.wfDeprecated warnings.true, exposes host names through API and HTML comments.null to disable it.<Description>.true to allow logged-in users to set a preference whether or not matches in search results should force redirection to that page.true to put the wiki watchlists into read-only mode.See alsoHelp:Recent changes and$wgDefaultUserOptions.
updated since your last visit in history.$wgMaxCredits authors, show$wgMaxCredits of them.true if you want detailed copyright information forms on Upload.Special:Export.$wgLogActions, but values are LogFormatter derived class names.{{Special:Allpages}}.action parameter for normal pages.__INDEX__/__NOINDEX__ magic words will not function.AjaxFunctions.php that are callable viaaction=ajax$wgCrossSiteAJAXdomains.LC_ALL.'json' or'yaml'.actor table schema migration stage.page_props table doesn't have app_sortkey column