Manual:Configuration settings
This is an index of all supported configuration settings based on the DefaultSettings.php
file.
Never edit DefaultSettings.php
; copy appropriate lines to LocalSettings.php
instead and amend them as appropriate.
If you can't find a configuration setting here, see if it is defined in DefaultSettings.php
.
The variable should have some documentation there.
Manual:$wgAllowAnonymousMinor
).
General Settings
- $wgCanonicalServer – Canonical URL of the server, to use in IRC feeds, notification emails, etc.
- $wgServer – The base URL of the server.
- $wgServerName – The name of the server without the protocol.
- $wgSitename – The name of the site.
- $wgVersion (deprecated in 1.35) – MediaWiki version number.
URLs and file paths
- $IP – The full path to the installation directory.
- $wgActionPaths – Paths for various user actions. Used to make URLs prettier.
- $wgAppleTouchIcon – Optional URL to an icon to use when bookmarking to the home screen on Apple handheld devices
- $wgArticlePath – The base URL used to create article links.
- $wgConfigRegistry – Registry of factory functions to create config objects
- $wgDiff – Path to the GNU diff utility.
- $wgDiff3 – Path to the GNU diff3 utility.
- $wgDirectoryMode – Default
chmod
permission value for newly created directories. - $wgFavicon – The URL of the site favicon.
- $wgFFmpegLocation – Executable name of FFmpeg client.
- $wgFFprobeLocation – Executable name of FFprobe.
- $wgGitBin – Path to the git binary.
- $wgGitInfoCacheDirectory – Directory where $GitInfo will look for pre-computed cache files.
- $wgImgAuthPath (introduced in 1.35) – The base path for
img_auth.php
. - $wgLoadScript – The URL path to load.php.
- $wgLogos (introduced in 1.35) – The URL path to various wiki logos.
- $wgLogo – The URL of the site logo.
- $wgLogoHD (deprecated in 1.35) – URLs for HD versions of the site logo.
- $wgPhpCli – Executable name of PHP cli client (php/php5).
- $wgRestPath (introduced in 1.34) – The URL path to rest.php.
- $wgScript – The URL of index.php.
- $wgScriptExtension (removed in 1.31) – Extension to append to script names by default.
- $wgScriptPath – The base URL path.
- $wgSitesCacheFile (removed in 1.33) – Specify the file location for the site's JSON cache file.
- $wgStyleSheetPath (deprecated in 1.3) – Do not set
$wgStyleSheetPath
. Use$wgStylePath
instead. - $wgThumbPath (introduced in 1.35.1) – The base path for thumb_handler.php.
- $wgTmpDirectory – The path of the temporary directory.
- $wgUsePathInfo – Whether to use 'pretty' URLs.
- $wgVariantArticlePath – Used for links when having language's variants.
See also file/image upload path settings.
See also skins path settings.
Global Objects
- $wgAutoloadLocalClasses – Array mapping class names to filenames, for autoloading.
- $wgConf – Create a site configuration object. Not used for much in a default install.
- $wgVirtualRestConfig – REST services configuration
Email settings
See also User Access: $wgEmailConfirmToEdit
- $wgAdditionalMailParams – Additional email parameters, will be passed as the last argument to mail() PHP function call.
- $wgAllowHTMLEmail – Set to true to enable HTML emails.
- $wgEmailAuthentication – Set to true to enable email authentication (confirmation) for this wiki. Except for password reminder emails, email functions only work for authenticated email addresses.
- $wgEmergencyContact – Site admin email address
- $wgEnableEmail – Set to true to enable basic email features.
- $wgEnableSpecialMute (introduced in 1.34) (deprecated in 1.34) – Set to true to enable the Special Mute page.
- $wgEnableUserEmail – Set to true to enable user-to-user email.
- $wgEnableUserEmailBlacklist – Set to true to enable user-to-user email blacklist.
- $wgNoReplyAddress – Reply-to address for automatically generated emails.
- $wgPasswordReminderResendTime – Minimum time, in hours, which must elapse between password reminder emails.
- $wgPasswordSender – Password reminder email address.
- $wgRequirePasswordforEmailChange (removed in 1.27) – Whether the user must enter their password to change their email address
- $wgSMTP – For using a direct (authenticated) SMTP server connection.
- $wgSysopEmailBans (removed in 1.35) – Allow sysops to ban users from accessing Special:Emailuser.
- $wgUserEmailConfirmationTokenExpiry – The time, in seconds, after which a email address confirmation token expires.
- $wgUserEmailUseReplyTo – Set to true to put the sending user's email in a Reply-To header instead of From.
Email notification (Enotif) settings
- Actual notifications for each user are defined in the options. You can change defaults with $wgDefaultUserOptions .
- $wgEnotifFromEditor – Whether to make email notifications appear to come from the user who makes the edit
- $wgEnotifImpersonal – Send a generic mail instead of a personalised mail for each user.
- $wgEnotifMaxRecips – Maximum number of users to mail at once when using impersonal mail.
- $wgEnotifMinorEdits – Set to true to allow sending email notification also for edits marked as minor edits
- $wgEnotifRevealEditorAddress – Set to true to insert the page editor's email address into the email notifications Reply-To address
- $wgEnotifUseJobQ (removed in 1.27) – Send mails via the job queue.
- $wgEnotifUseRealName – Use real name instead of username in email "from" field.
- $wgEnotifUserTalk – Enable email notifications for edits on users' talk pages.
- $wgEnotifWatchlist – Set to true to allow the email notification for watched pages
- $wgUseEnotif – Overall "use Enotif" setting
- $wgUsersNotifiedOnAllChanges – Array of usernames who will be sent a notification email for every change which occurs on a wiki.
Database settings
- $wgAllDBsAreLocalhost (removed in 1.28) – Make all database connections secretly go to localhost.
- $wgContentHandlerUseDB (removed in 1.35) – Whether to use the database fields introduced by the ContentHandler facility
- $wgPageLanguageUseDB – Allows to change the page language for MediaWiki pages
- $wgDataCenterUpdateStickTTL – After a state-changing request is done by a client, this determines how many seconds that client should keep using the master datacenter.
- $wgDBcompress – Whether to use compression in DB connection.
- $wgDBDefaultGroup (introduced in 1.32) – Default group to use when getting database connections. For use by maintenance scripts.
- $wgDBerrorLog – File to log database errors to.
- $wgDBmwschema – Schema that stores the MediaWiki tables in.
- $wgDBname – Name of the database.
- $wgDBpassword – The password for
$wgDBuser
. - $wgDBprefix – Table name prefix.
- $wgDBserver – Host name or IP address of database server.
- $wgDBssl – Whether to use SSL in DB connection.
- $wgDBtype – Type of database.
- $wgDBuser – Database username.
- $wgDebugDBTransactions (removed in 1.27) – Enable additional database transaction lifecycle tracing in the debug output.
- $wgLocalDatabases – Other wikis on this site, can be administered from a single developer account.
- $wgMaxUserDBWriteDuration – Max time (in seconds) a user-generated transaction can spend in writes.
- $wgSearchType – Type of search used for the wiki.
LoadBalancer settings
- $wgDBservers – Settings for the database load balancer (database servers and load ratios).
- $wgDefaultExternalStore – Default external store for new revisions.
- $wgLBFactoryConf – Load balancer factory configuration.
- $wgMasterWaitTimeout (deprecated in 1.24) – How long to wait for a slave to catch up to the master.
- $wgSlaveLagCritical – If lag is higher than this value, show a more obvious warning than
$wgSlaveLagWarning
. - $wgSlaveLagWarning – If lag is higher than this value, show a warning in some special pages (like watchlist).
MSSQL-specific
- $wgDBWindowsAuthentication (removed in 1.35) – Use Integrated Windows Authentication rather than
$wgDBuser
/$wgDBpassword
combo.
MySQL-specific
- $wgDBmysql5 (removed in 1.33) – Set to true to set MySQL connection into UTF-8 encoding (experimental)
- $wgDBTableOptions – MySQL table options to use during installation or update.
- $wgExternalServers – An array of external MySQL servers.
- $wgSQLMode – Value for the MySQL
sql_mode
parameter
Oracle-specific
- $wgDBOracleDRCP (removed in 1.34) – When set to true, enables persistent connection with DRCP on Oracle.
PostgreSQL-specific
- $wgDBport – Database port. Only used by PostgreSQL.
SQLite-specific
- $wgSQLiteDataDir – To override default SQLite data directory.
- $wgSharedDB – The name of the shared database.
- $wgSharedPrefix – Table prefix to use on the shared database tables.
- $wgSharedTables – List of database tables (without prefixes) to share when
$wgSharedDB
is enabled. - $wgSharedSchema – The table schema for the shared database
Compressed Storage Support
- $wgCompressRevisions – Compress new page revisions if possible
- $wgDisableOutputCompression – Disable output compression (compression enabled by default if zlib is available).
Migration
- $wgActorTableSchemaMigrationStage (removed in 1.34) –
actor
table schema migration stage. - $wgChangeTagsSchemaMigrationStage (introduced in 1.32) (removed in 1.33) – Change
change_tag
table schema migration stage. - $wgCommentTableSchemaMigrationStage (removed in 1.33) –
comment
table schema migration stage. - $wgMultiContentRevisionSchemaMigrationStage (introduced in 1.32) (deprecated in 1.35) – RevisionStore table schema migration stage (content, slots, content_models & slot_roles tables).
- $wgPagePropsHaveSortkey – Set to false if the
page_props
table doesn't have app_sortkey
column - $wgTagStatisticsNewTable (introduced in 1.32) (removed in 1.33) – Temporarily flag to use change_tag_def table as backend of change tag statistics.
Extension fields
- $wgExtPGNewFields (removed in 1.36) – Extension defined fields to be added to existing tables
- $wgExtNewTables (removed in 1.36) – Extension Defined tables to be added on schema change
- $wgExtNewFields (removed in 1.36) – Extension defined fields to be added to existing tables
- $wgExtNewIndexes (removed in 1.36) – Extension defined indexes to be added to existing tables
- $wgExtPGAlteredFields (removed in 1.36) – Extension defined columns to be altered in tables
- $wgExtModifiedFields (removed in 1.36) – Extension defined fields to change existing tables
Localization
- $wgDisabledVariants – Disabled variants for language variant conversion.
- $wgDisableLangConversion – Whether to enable language variant conversion.
- $wgDisableTitleConversion – Whether to enable language variant conversion for links.
- $wgDummyLanguageCodes (deprecated in 1.29) – List of language codes that have been renamed to new (correct) codes, or don't correspond to an actual interface language.
- $wgEditEncoding (removed in 1.28) – Characters not explicitly converted by output encoding
- $wgExtraLanguageCodes – List of mappings from one language code to another
- $wgForceUIMsgAsContentMsg – Array of UI messages that should be treated as content messages.
- $wgInterwikiMagic – Treat language links as magic connectors, not inline links.
- $wgLangObjCacheSize – Language cache size, or really how many languages can we handle simultaneously without degrading to crawl speed.
- $wgLanguageCode – Site language code.
- $wgLegacyEncoding – Set this to the character set, which you used before you updated to MediaWiki 1.5 (eg 'ISO-8859-1'). MediaWiki will then perform a temporary character set conversion when loading old revisions, which are not marked with "utf-8" flag (revisions created with MediaWiki 1.4 and earlier).
- $wgMsgCacheExpiry (removed in 1.34) – When a message in cache expires (in seconds).
- $wgOverrideUcfirstCharacters (introduced in 1.34) – List of Unicode characters for which capitalization is overridden in Language::ucfirst.
- $wgRawHtmlMessages (introduced in 1.32) – List of messages which might contain raw HTML.
- $wgUseDatabaseMessages – Translation using MediaWiki: namespace.
- $wgUserFallbackLanguages – maximum number of fallback languages per user
Timezone settings
- $wgLocaltimezone – Fake out the timezone that the server thinks it's in.
- $wgLocalTZoffset – Add a distance to the server timezone in Minutes.
- $wgDBerrorLogTZ – Timezone to use in the error log.
Language-specific
- English
- $wgAmericanDates – Use 'mdy' instead of 'dmy' as the default date format, e.g. 'May 12' instead of '12 May'.
- Arabic/Hindi
- $wgTranslateNumerals – For Hindi, Arabic, and other languages with their own numeral systems, use local numerals instead of Western style (0-9) numerals in some areas of the interface.
Debug/logging
- See also: Manual:How to debug
- $wgAggregateStatsID (removed in 1.27) – Allows statistics to be aggregated over more than one wiki when using udp logging.
- $wgDebugComments – Include portions of log output in page HTML comment
- $wgDebugDumpSql – Dump SQL queries to debug output
- $wgDebugDumpSqlLength (removed in 1.27) – Cutoff length for SQL queries dumped by $wgDebugDumpSql
- $wgDebugLogFile – The file name of the debug log, or empty if disabled.
- $wgDebugLogGroups – Direct $DebugLog output for certain groups to files other than $DebugLogFile.
- $wgDebugLogPrefix – Prefix for debug log lines.
- $wgDebugPrintHttpHeaders (removed in 1.34) – Print HTTP headers for every request in the debug information.
- $wgDebugRawPage – If false, 'action=raw' and load.php hits will not result in debug output.
- $wgDebugRedirects – Displays redirect location instead of actually redirecting to the target URL
- $wgDebugTimestamps (removed in 1.35) – Prefix debug messages with relative timestamp.
- $wgDebugToolbar – Display the debugging toolbar
- $wgDeprecationReleaseLimit – Release limitation to
wfDeprecated
warnings. - $wgDevelopmentWarnings – Whether to throw PHP notices for some possible error conditions and for deprecated functions.
- $wgLogExceptionBacktrace – Whether to send the exception backtrace to the error log.
- $wgMWLoggerDefaultSpi – Default service provider for creating MWLogger instances.
- $wgOverrideHostname – Override server hostname detection with a hardcoded value.
- $wgPageInfoTransclusionLimit – Limit template transclusion on InfoAction
- $wgPropagateErrors – If true, the MediaWiki error handler passes errors/warnings to the default error handler after logging them.
- $wgShowDBErrorBacktrace (deprecated in 1.32) – If true, show a backtrace for database errors.
- $wgShowDebug – Show debug data at bottom of content area
- $wgShowSQLErrors (deprecated in 1.32) – Whether to show SQL errors on "we're sorry, but there has been a database error" pages.
- $wgShowExceptionDetails – If set to true, uncaught exceptions will print a complete stack trace to output.
- $wgStatsMethod (removed in 1.27) – Destination for
wfIncrStats()
data - $wgTrxProfilerLimits – Performance expectations for DB usage
- $wgUsePigLatinVariant – Whether to enable the pig latin variant of English (en-x-piglatin), used to ease variant development work.
Profiling
- $wgEnableProfileInfo (removed in 1.35) – Controls the availability of profileinfo.php.
- $wgProfiler – Settings related to profiling.
- $wgProfileCallTree (removed in 1.27) – If true, print a raw call tree instead of per-function report
- $wgProfileLimit (removed in 1.35) – Only record profiling info for pages that took longer than this number of seconds to load.
- $wgProfileOnly (removed in 1.35) – Don't put non-profiling info into log file
- $wgProfilePerHost (removed in 1.27) – Should the application server hostname be stored in the profiling table?
- $wgUDPProfilerHost (removed in 1.27) – Host for UDP profiler.
- $wgUDPProfilerPort (removed in 1.27) – Port for UDP profiler.
- $wgUDPProfilerFormatString (removed in 1.27) – Format string for UDP profiler.
Site customization
- $wgBreakFrames – Break out of framesets. This can be used to prevent external sites from framing your site with ads.
- $wgCapitalLinks – Set this to false to avoid forcing the first letter of links to capitals.
- $wgCapitalLinkOverrides – Per namespace configuration for $wgCapitalLinks .
- $wgDefaultLanguageVariant – Default language variant.
- $wgEditPageFrameOptions – Control framing of wiki pages globally.
- $wgEditSubmitButtonLabelPublish – Vary the 'save' labels to 'publish' for public wikis.
- $wgExtraLanguageNames – List of language names or overrides for default names in Names.php.
- $wgForceHTTPS (introduced in 1.34.3) – Redirect insecure HTTP requests to HTTPS.
- $wgHideInterlanguageLinks – Hide interlanguage links from the sidebar.
- $wgHttpsPort – Port where you have HTTPS running. Supports HTTPS on non-standard ports.
- $wgLegalTitleChars – Override the default list of illegal characters in page titles.
- $wgMainPageIsDomainRoot (introduced in 1.34) – Controls if the main page should be served as the domain root.
- $wgMaxArticleSize – Maximum page size in kilobytes.
- $wgMaxRedirects – Max number of redirects to follow when resolving redirects.
- $wgNoFollowDomainExceptions – External links to these domain names (or any subdomains) will not be set to
rel="nofollow"
. - $wgNoFollowLinks – If true, external URL links in wiki text will be given the
rel="nofollow"
attribute. - $wgPingback – If true, MediaWiki will report back data about its installation from time to time to aid developers
- $wgReferrerPolicy – Value for the referrer policy meta tag.
- $wgReportToEndpoints (introduced in 1.34) – List of endpoints for the Reporting API.
- $wgReportToExpiry (introduced in 1.34) – Expiry of the endpoint definition for the Reporting API.
- $wgSiteNotice – A message to be displayed at the top of every page.
- $wgStyleVersion (removed in 1.32) – Appended in the query string of static CSS and JS to clear client side cache when changing this.
- $wgSiteTypes – Register handlers for specific types of sites.
- $wgSiteSupportPage (removed in 1.32) – The title of the support page in your wiki.
- $wgStructuredChangeFiltersOnWatchlist (removed in 1.32) – Whether to enable RCFilters app on Special:Watchlist
- $wgStructuredChangeFiltersShowPreference (removed in 1.32) – Whether to enable RCFilters app on Special:RecentChanges
- $wgUniversalEditButton – Enable the UniversalEditButton for browsers that support it.
- $wgUrlProtocols – Defines the protocols which are supported and translated in HTML by the mediawiki parser.
Ajax
- $wgAjaxExportList (deprecated in 1.27) – List of functions in
AjaxFunctions.php
that are callable viaaction=ajax
- $wgAjaxUploadDestCheck – Enable Ajax check for file overwrite, pre-upload.
- $wgAjaxWatch (removed in 1.27) – Enable watching/unwatching pages using Ajax.
- $wgRestAPIAdditionalRouteFiles (introduced in 1.35) – Additional REST API Route files.
- $wgUseAjax (deprecated in 1.31) – Enable AJAX support.
Frontend
- $wgAllowSiteCSSOnRestrictedPages – Allow site-wide Cascading Style Sheets (CSS) on restricted special pages
- $wgAllowUserCss – Allow user Cascading Style Sheets (CSS)
- $wgAllowUserJs – Allow user JavaScript pages
- $wgEnableJavaScriptTest – Allows running of JavaScript test suites via Special:JavaScriptTest (such as QUnit).
- $wgForcedRawSMaxage – Default maximum age (in seconds) for raw CSS/JavaScript accesses.
- $wgIncludeLegacyJavaScript (deprecated in 1.26) – Whether to include the mediawiki.legacy JavaScript library (old wikibits.js), and its dependencies.
- $wgOOUIEditPage (removed in 1.30) – Whether to use OOjs UI buttons, checkboxes and summary input in the edit form.
- $wgPreloadJavaScriptMwUtil (removed in 1.27) – Whether to preload the mediawiki.util module as blocking module in the top queue.
- $wgLegacyJavaScriptGlobals – Whether or not to assign configuration variables to the global window object.
- $wgUseSiteCss – Use the site's Cascading Style Sheets (CSS)
- $wgUseSiteJs – Use the site's JavaScript page
- $wgUsejQueryThree (removed in 1.31) – Whether to use jQuery 3 (with jQuery Migrate) instead of jQuery 1.
ResourceLoader
- See ResourceLoader for more information.
- $wgResourceBasePath – Default 'remoteBasePath' value for resource loader modules.
- $wgResourceLoaderDebug – The default debug mode (on/off) for ResourceLoader requests.
- $wgResourceLoaderEnableJSProfiler (introduced in 1.32) – When enabled, execution of JavaScript modules is profiled client-side.
- $wgResourceLoaderLESSVars (removed in 1.32) – Global LESS variables.
- $wgResourceLoaderLESSImportPaths (removed in 1.32) – Default import paths for LESS modules.
- $wgResourceLoaderMaxage – Maximum time in seconds to cache resources served by ResourceLoader.
- $wgResourceLoaderMaxQueryLength – Maximum query string length for ResourceLoader requests.
- $wgResourceLoaderMinifierMaxLineLength (removed in 1.31) – Maximum line length when minifying JavaScript.
- $wgResourceLoaderMinifierStatementsOnOwnLine (removed in 1.31) – Put each statement on its own line when minifying JavaScript.
- $wgResourceLoaderSources – Foreign module sources registry.
- $wgResourceLoaderStorageVersion – Cache version for client-side ResourceLoader module storage.
- $wgResourceLoaderValidateJS – Whether to parse JavaScript module prior to minification to validate them.
- $wgResourceLoaderValidateStaticJS (removed in 1.32) – Whether to parse statically-sourced (file-backed) JavaScript resources prior to minification to validate them.
- $wgResourceLoaderStorageEnabled – Whether ResourceLoader should attempt to persist modules in localStorage on browsers that support the Web Storage API.
- $wgResourceLoaderUseObjectCacheForDeps (introduced in 1.35) – Use the main stash instead of the module_deps table for indirect dependency tracking
- $wgResourceModules – Array of all extra defined modules that can later be loaded during the output.
- $wgResourceModuleSkinStyles – Array of additional skin-provided stylesheets to existing ResourceLoader modules.
- $wgVueDevelopmentMode (introduced in 1.35) – Whether to use the development version of Vue.js.
Namespaces
- $wgContentNamespaces – Namespaces which are considered to contain real content, or articles
- $wgExtraNamespaces – Additional namespaces.
- $wgExtraGenderNamespaces – Same as $wgExtraNamespaces , but for namespaces with gender distinction.
- $wgExtraSignatureNamespaces – Controls in which subject (non-talk) namespaces the "Signature" button on the edit toolbar will be displayed.
- $wgMetaNamespace – Name used for the meta namespace.
- $wgMetaNamespaceTalk – Name of the project talk namespace.
- $wgNamespaceAliases – Provide additional names for namespaces.
- $wgNamespaceContentModels – Content types defined for a given namespace
- $wgNamespaceProtection – Which namespaces can be edited by whom?
- $wgNamespacesToBeSearchedDefault – Which namespaces should be searched?
- $wgNamespacesWithSubpages – Which namespaces should support subpages?
- $wgNoFollowNsExceptions – Namespaces in which Manual:$wgNoFollowLinks doesn't apply.
- $wgNonincludableNamespaces – Use this to deny inclusion of pages from specific namespaces.
- $wgPreviewOnOpenNamespaces – Namespaces where preview-on-first-edit is forced.
- $wgSitemapNamespaces – Array of namespaces to generate a sitemap or false for all namespaces.
- $wgSitemapNamespacesPriorities – Custom namespace priorities for sitemaps.
Output
- $wgAllowMicrodataAttributes (removed in 1.27) – Enable HTML5 microdata attributes for use in wikitext.
- $wgAllowRdfaAttributes (removed in 1.27) – Enable RDFa attributes for use in wikitext.
- $wgCleanupPresentationalAttributes (removed in 1.20.1) – Put as much as possible presentational HTML attributes in CSS.
- $wgHtml5 (removed in 1.34) – Whether to output an HTML 5 doctype.
- $wgHtml5Version – Defines the value of the version attribute in the
<html>
tag, if any. - $wgWellFormedXml (removed in 1.27) – Whether to try to make our HTML output well-formed XML.
- $wgMimeType – The type to send in the $type header.
- $wgMangleFlashPolicy – Whether to mangle any
<cross-domain-policy>
(Adobe cross-domain policy) tags, to prevent XSS attacks. - $wgSend404Code – Send 404 HTTP status for not found pages.
- $wgEnableCanonicalServerLink – Output a
<link rel="canonical">
tag on every page indicating the canonical server which should be used, i.e.$wgServer
or$wgCanonicalServer
. - $wgUseMediaWikiUIEverywhere – Applies MediaWiki UI wherever it can be supported.
- $wgHTMLFormAllowTableFormat – Allow form components to render tables.
- $wgXhtmlNamespaces – Permit other XHTML namespaces in addition to the w3.org default.
The following setting is no longer used in supported versions of MediaWiki, but still exists for backward compatibility
- $wgXhtmlDefaultNamespace (removed in 1.34) – Namespace to use when outputting in XHTML mode.
Robot policies
- $wgArticleRobotPolicies – Allow customisation of robot policies on a per-page basis.
- $wgDefaultRobotPolicy – Allows specifying the default robot policy for all pages on the wiki
- $wgExemptFromUserRobotsControl – An array of namespace keys in which the
__INDEX__
/__NOINDEX__
magic words will not function. - $wgNamespaceRobotPolicies – Allow customisation of robot policies on a per-namespace basis.
Mobile support
Content Security Policy
- $wgCSPHeader (introduced in 1.32) – Controls Content-Security-Policy header [Experimental]
- $wgCSPReportOnlyHeader (introduced in 1.32) – Controls Content-Security-Policy-Report-Only header [Experimental]
- $wgCSPFalsePositiveUrls – Controls what URLs to ignore in upcoming Content-Security-Policy feature's reporting.
ContentHandler
- $wgContentHandlerTextFallback – How to react if a plain text version of a non-text Content object is requested using
ContentHandler::getContentText()
- $wgContentHandlers – Mapping of content type handlers
- $wgTextModelsToParse – Determines which types of text are parsed as wikitext.
Site Statistics
- $wgArticleCountMethod – Method used to determine if a page in a content namespace should be counted as a valid content page (article).
- $wgCountCategorizedImagesAsUsed – On Special:Unusedimages, consider images "used" if they are put into a category.
- $wgDisableCounters (removed in 1.35) – Disable page view counters.
- $wgStatsdSamplingRates – Sampling rate for statsd metrics as an associative array of patterns and rates.
- $wgSiteStatsAsyncFactor (removed in 1.34) – Sets how often site statistics should be updated.
- $wgStatsdServer – A host or host:port of a statsd server.
- $wgStatsdMetricPrefix – Prefix for metric names sent to $wgStatsdServer
- $wgWantedPagesThreshold – Minimum number of pages that must link to a page before it will appear on Special:Wantedpages.
Skins
- $wgDefaultSkin – The default skin for new users.
- $wgFallbackSkin – Fallback skin used when the skin defined by $DefaultSkin can't be found.
- $wgFooterIcons – Abstract list of footer icons for skins. It replaces the old copyrightico and poweredbyico code, which until MediaWiki 1.27 could be influenced with $CopyrightIcon
- $wgLocalStylePath – Same as
$wgStylePath
, but shouldn't point to an external domain. - $wgSkipSkin (removed in 1.35) – Specify the name of a skin that should not be presented in the list of available skins.
- $wgSkipSkins – Specify the name of skins that should not be presented in the list of available skins.
- $wgStyleDirectory – The file system path to the skins directory.
- $wgStylePath – The URL of the skins directory.
- $wgUseCombinedLoginLink – Login / create account link behavior when it's possible for anonymous users to create an account.
- $wgValidSkinNames – List of valid skin names. Skins can optionally use this variable to tell MediaWiki that they are available.
- $wgVectorUseSimpleSearch – Search form behavior for Vector skin only.
- $wgVectorUseIconWatch – Watch and unwatch as a star icon rather than a link (for Vector skin only).
Category
- $wgCategoryCollation – What collation categories use to sort with
- $wgCategoryMagicGallery – On category pages, show thumbnail gallery for images belonging to that category instead of listing them as articles.
- $wgCategoryPagingLimit – Paging limit for items in categories.
- $wgUseCategoryBrowser – Enable/Disable experimental breadcrumb (or dmoz-style) category browsing.
- $wgTrackingCategories (deprecated in 1.25) – The list of messages representing tracking categories which are listed at Special:TrackingCategories.
Cache
- $wgAttemptFailureEpoch – Bump this to quickly retry thumbnail creation failures.
- $wgCacheDirectory – Directory for per-wiki long-life cache files in the local filesystem.
- $wgCacheEpoch – Set this to current time to invalidate all prior cached pages.
- $wgCachePrefix – Custom value for the cache key prefix.
- $wgClockSkewFudge (removed in 1.33) – Fudge time to add to cache timestamps to adjust for clock skew.
- $wgExtensionInfoMTime – Time to invalidate cache of extensions loaded by the extension registration system.
- $wgFooterLinkCacheExpiry (introduced in 1.35) – Expiry time for the footer link cache, in seconds, or 0 if disabled.
- $wgInvalidateCacheOnLocalSettingsChange – Setting this to true will invalidate all cached pages whenever "LocalSettings.php" is changed
- $wgLanguageConverterCacheType – The cache type for storing language conversion tables.
- $wgMainCacheType – Object cache setting
- $wgMainStash – Replicated object cache setting
- $wgObjectCaches – Advanced object cache configuration.
- $wgQueryCacheLimit – Number of rows to cache in 'querycache' table when miser mode is on.
- $wgThumbnailEpoch – If rendered thumbnail files are older than this timestamp, they will be re-rendered on demand as if the file didn't already exist.
- $wgTransactionalTimeLimit – Throttle for timing out transactional POST requests
- $wgUseETag (removed in 1.28) – Whether MediaWiki should send an ETag header.
- $wgUseGzip – Use GZip to store cached pages.
- See: Interwiki for Interwiki cache settings.
Client side caching
- $wgCachePages – Allow client-side caching of pages
File Cache
Settings for Server side file caching.
- $wgFileCacheDepth – Depth of subdirectory hierarchy under
$wgFileCacheDirectory
. - $wgFileCacheDirectory – Directory where the cached pages will be saved when using server-side caching.
- $wgUseFileCache – Create static HTML pages for unregistered viewers to reduce database traffic.
Message Cache
- $wgAdaptiveMessageCache – Keep track which messages are requested and load only most used messages.
- $wgLocalisationCacheConf – Localisation cache configuration.
- $wgMaxMsgCacheEntrySize – Maximum entry size in the message cache, in bytes.
- $wgMessageCacheType – Message cache setting
- $wgUseLocalMessageCache – Make a local copy of the message cache, in addition to memcached.
Sidebar Cache
- $wgEnableSidebarCache – If true, cache the sidebar navigation links.
- $wgSidebarCacheExpiry – Expiry time for the sidebar cache, in seconds.
Parser Cache
- $wgEnableParserCache (removed in 1.33) – Keep parsed pages in a cache to speed up page output.
- $wgOldRevisionParserCacheExpireTime (introduced in 1.36) – The expiry time for the parser cache for old revisions, in seconds.
- $wgRenderHashAppend – Append a configured value to the parser cache and the sitenotice cache keys.
- $wgParserCacheExpireTime – Expiration time (in seconds) of cached parser information
- $wgParserCacheType – Parser cache setting
Memcached settings
Settings for configuring the Memcached memory-based object store (if you are using it) docs/memcached.txt has more details.
- $wgMemCachedDebug – Will be set to false in Setup.php, if the server isn't working.
- $wgMemCachedPersistent – Whether to use persistent connections to Memcached servers.
- $wgMemCachedServers – Memcached servers
- $wgMemCachedTimeout – Server connection timeout in microseconds.
- $wgObjectCacheSessionExpiry – Expiry time to use for session storage when
$wgSessionsInObjectCache
is enabled, in seconds. - $wgRevisionCacheExpiry – Cache extracted revision text in MemCached.
- $wgSessionsInMemcached (removed in 1.29) – Store session data in the object cache, rather than on the filesystem.
- $wgSessionCacheType – The cache type for storing session data.
- $wgSessionsInObjectCache (removed in 1.33) – Whether to store sessions in object cache.
WAN cache
- $wgEnableWANCacheReaper – Whether to verify and enforce WAN cache purges using reliable DB sources as streams.
- $wgMainWANCache – Main wide area network cache configuration.
- $wgWANObjectCaches – Advanced Wide-Area-Network cache configuration.
Interwiki
- $wgDisableHardRedirects – Disable redirects to special pages and interwiki redirects, which use a 302 and have no "redirected from" link.
- $wgEnableScaryTranscluding – Allow templates to be imported/transcluded from another wiki.
- $wgExternalInterwikiFragmentMode – Determines which ID escaping mode should be used for external interwiki links
- $wgExtraInterlanguageLinkPrefixes – Array of interwiki prefixes to be treated as language links.
- $wgImportSources – List of interwiki prefixes for wikis we'll accept as sources for Special:Import
- $wgInterlanguageLinkCodeMap (introduced in 1.35) – Map of interlanguage link codes to language codes to override what is shown as the language name when the interwiki code does not match it exactly.
- $wgInterwikiPrefixDisplayTypes – Mapping of interwiki index prefixes to descriptors that can be used to change the display of interwiki search results.
- $wgLocalInterwiki (removed in 1.35) – Interwiki prefix for this wiki.
- $wgLocalInterwikis – Array of interwiki prefixes for this wiki.
- $wgRedirectSources – Regular expression to restrict URLs which will be displayed as "redirected from" links.
- $wgTranscludeCacheExpiry – Expiry time for interwiki transclusion cache
Interwiki cache
- See interwiki cache for more information.
- $wgInterwikiCache – Set to an associative array or file path to a CDB file for interwiki cache .
- $wgInterwikiExpiry – Expiry time for memcached cache of interwiki table.
- $wgInterwikiFallbackSite – Used by maintenance scripts to dump interwiki table
- $wgInterwikiScopes – Used by
getInterwikiCache()
to retrieve from interwiki database file
Access
Wiki locking, blocking/banning, and some other related settings.
- $wgActions – Array of allowed values for the "action" parameter for normal pages.
- $wgAutopromote – Conditions of automatic promotion of user to specific groups
- $wgAutopromoteOnce – Conditions of automatic promotion of user to specific groups that are done only once.
- $wgAccountCreationThrottle – Number of accounts each IP address may create, 0 to disable.
- $wgApplyIpBlocksToXff – Apply IP address blocks also to users having a blocked IP in their XFF header.
- $wgBlockCIDRLimit – Maximum CIDR range when blocking an IP range.
- $wgBlockDisablesLogin – If set to true, blocked users will no longer be allowed to log in
- $wgBotPasswordsDatabase – Database name for the bot_passwords table
- $wgBotPasswordsCluster – Cluster name for the bot_passwords table
- $wgCascadingRestrictionLevels – Restriction levels that can be used with cascading protection
- $wgSemiprotectedRestrictionLevels – Restriction levels that are considered "semi-protected"
- $wgDeleteRevisionsLimit – Integer of how many revisions a page must have before the bigdelete right is required to delete it.
- $wgEnablePartialBlocks (introduced in 1.33) (removed in 1.35) – Allow partial blocks to be created
- $wgEnableBotPasswords – Whether to enable bot passwords
- $wgElementTiming (introduced in 1.33) – Enable Element Timing.
- $wgInvalidPasswordReset – Specifies if users should be sent to a password-reset form on login in case of an inadequate password.
- $wgNewPasswordExpiry – The time, in seconds, after which an emailed temporary password expires.
- $wgOriginTrials (introduced in 1.33) – Origin Trials tokens.
- $wgPasswordAttemptThrottle – Limit password attempts per IP per address.
- $wgPasswordConfig – Configuration for built-in password types.
- $wgPasswordDefault – Default password type to use when hashing user passwords.
- $wgPasswordResetRoutes – Whether to allow password resets identified by various bits of data.
- $wgPasswordSalt (removed in 1.34) – For compatibility with old installations set to false.
- $wgPriorityHints (introduced in 1.33) – Enable client-side Priority Hints.
- $wgPriorityHintsRatio (introduced in 1.34) – Ratio of requests that should get Priority Hints when the feature is enabled.
- $wgRangeContributionsCIDRLimit – Shortest CIDR limits that can be checked in any individual range check at Special:Contributions.
- $wgRestrictionTypes – Actions that can be restricted
- $wgSpamRegex – A regular expression pattern which, if the page content matched it, stops a page from being saved.
- $wgSummarySpamRegex – Same as
$wgSpamRegex
except for edit summaries. - $wgCookieSetOnAutoblock – Determines whether to set a cookie when a user is autoblocked. Doing so means that a blocked user, even after logging out and moving to a new IP address, will still be blocked.
- $wgCookieSetOnIpBlock (introduced in 1.32) – Determines whether to set a cookie when an IP user is blocked. Doing so means that a blocked user, even after moving to a new IP address, will still be blocked.
- $wgRestrictionLevels – Set of permission keys that can be selected on the "page protection" page.
- $wgSoftBlockRanges – IP ranges that should be considered soft-blocked (anon-only, account creation allowed)
See Manual:Preventing access for more methods and settings concerning access. See also Manual:User rights for more information about $wgGroupPermissions, $wgAddGroups, $wgRemoveGroups, etc.
- See User Access for User Access settings.
Rate limiter
- $wgRateLimitLog (removed in 1.27) – Set to a filename to log rate limiter hits.
- $wgRateLimits – Simple rate limiter options to brake edit floods.
- $wgRateLimitsExcludedIPs – Array of IPs/CIDR ranges which should never trigger the rate limiter.
API
- $wgAllowedCorsHeaders (introduced in 1.35) – List of allowed headers for cross-origin API requests.
- $wgDebugAPI – Loosens API security to allow for easier debugging
- $wgEnableAPI (removed in 1.32) – Enable direct access to the data API through api.php .
- $wgEnableWriteAPI (removed in 1.32) – Allow the API to be used to perform write operations (page edits, rollback, etc.) when an authorized user accesses it.
- $wgEnableRestAPI (introduced in 1.34) (deprecated in 1.35) – Enable the MediaWiki REST API.
- $wgCrossSiteAJAXdomains – Domains that may make cross-site Ajax requests to the MediaWiki API.
- $wgCrossSiteAJAXdomainExceptions – Domains that should not be allowed to make AJAX requests, even if they match one of the domains allowed by $CrossSiteAJAXdomains.
- $wgAPICacheHelpTimeout – Set the timeout for the API help text cache. Set to 0 to disable caching of API help text.
- $wgApiFrameOptions – Control framing of api pages.
- $wgAPIMaxLagThreshold – Maximum amount of DB lag on a majority of DB replica DBs to tolerate before forcing bots to retry any write requests via API errors.
- $wgAPIRequestLog – Log file or URL (TCP or UDP) to log API requests to.
- $wgAPIUselessQueryPages – The ApiQueryQueryPages module should skip pages that are redundant to true API queries.
Wiki locking
- $wgReadOnly – Disallows editing, displaying the string given as the reason.
- $wgReadOnlyFile – If this file is found, the database is locked for the reason given in the contents of the file.
- $wgReadOnlyWatchedItemStore – Set this to true to put the wiki watchlists into read-only mode.
Reduction
- $wgAPIMaxDBRows – Maximum number of rows to scan in API database queries.
- $wgAPIMaxResultSize – Maximum size (in bytes) of an API result.
- $wgAPIMaxUncachedDiffs – The maximum number of uncached diffs that can be retrieved in one API request.
- $wgCriticalSectionTimeLimit (introduced in 1.36) – The maximum time critical sections are allowed to stay open.
- $wgQueryPages – List of Special pages that inherit from QueryPage, that should also be taken in account by the updateSpecialPages.php maintenance script.
- $wgDisableQueryPages – Disable all query pages if miser mode is on, not just some.
- $wgDisableQueryPageUpdate – Array of special pages that should not be updated.
- $wgDisableSearchUpdate – If you've disabled search semi-permanently, this also disables updates to the table.
- $wgDisableTextSearch – Disable full-text search.
- $wgEdititis – Display user edit counts on special page "User list".
- $wgFixDoubleRedirects – Fix double redirects after a page move.
- $wgInvalidRedirectTargets – Array of invalid page redirect targets.
- $wgMaximumMovedPages – Maximum number of pages to move at once when moving subpages with a page.
- $wgMiserMode – Enable/disable database-intensive features
- $wgRequestTimeLimit (introduced in 1.36) – Set a limit on server request wall clock time.
- $wgShowHostnames – If set to true, exposes host names through API and HTML comments.
- $wgShowRollbackEditCount – Maximum number to count when a rollback link is shown
Uploads
Uploads have to be specially set up to be secure.
- $wgAjaxLicensePreview – Use Ajax to preview licensing for uploads.
- $wgAllowCopyUploads – Allow uploads from URLs as well as local files.
- $wgCopyUploadsDomains – Limit
$wgAllowCopyUploads
to a specific whitelist - $wgAllowJavaUploads – Allow Java archive uploads.
- $wgCheckFileExtensions – Check if the file extension is allowed on upload.
- $wgCopyUploadAsyncTimeout (removed in 1.27) – HTTP timeout (in seconds) for asynchronous upload by URL
- $wgCopyUploadsFromSpecialUpload – Add an interface to Special:Upload to enable uploading from URLs
- $wgCopyUploadProxy – HTTP proxy to use for copy upload requests.
- $wgCopyUploadTimeout – HTTP timeout (in seconds) for upload by URL
- $wgAllowAsyncCopyUploads (removed in 1.27) – Allow asynchronous copy uploads.
- $wgDisableUploadScriptChecks – Whether to disable the upload system's checks for HTML/JavaScript.
- $wgEnableAsyncUploads – Enable deferred upload tasks that use the job queue.
- $wgEnableUploads – Allow images and other files to be uploaded through the wiki.
- $wgFileBackends – File backend structure configuration.
- $wgFileBlacklist – Files with these extensions will never be allowed as uploads.
- $wgFileExtensions – This is the list of preferred extensions for uploading files. Uploading files with extensions not in this list will trigger a warning.
- $wgHashedUploadDirectory – If true, uses the
/a/ab/foo.jpg
directory structure. - $wgIllegalFileChars – Override the default list of illegal characters in file names.
- $wgImagePreconnect (introduced in 1.35) – On pages containing images, tell the user agent to pre-connect to hosts from
$wgForeignFileRepos
. - $wgImgAuthDetails – Display reason access to uploaded file was denied to users (img_auth only)
- $wgImgAuthUrlPathMap – Map of relative URL directories to match to internal
mwstore://
base storage paths. - $wgLocalFileRepo – A single repository structure for the local repository.
- $wgLockManagers – Array of configuration arrays for each lock manager.
- $wgMinUploadChunkSize – Minimum upload chunk size, in bytes.
- $wgMaxUploadSize – Maximum size of uploaded files (in bytes)
- $wgStrictFileExtensions – Toggle whether users may upload files not covered by $FileExtensions.
- $wgDeletedDirectory – What directory to place deleted uploads in.
- $wgUploadBaseUrl – The base URL for uploaded images if shared upload directory isn't to be used
- $wgUploadDialog – Configuration for Upload dialog and the files uploaded through it.
- $wgUploadDirectory – The file system path of the upload directory.
- $wgUploadMaintenance – To disable file delete/restore temporarily.
- $wgUploadMissingFileUrl – Point wikilinks to missing files ("red file links") to a custom URL.
- $wgUploadNavigationUrl – Point the upload navigation link in the sidebar to a custom URL.
- $wgUploadPath – The path segment of the upload directory.
- $wgUploadSizeWarning – Warn if uploaded files are larger than this.
- $wgUploadStashMaxAge – The maximum age of temporary (incomplete) uploaded files.
- $wgUploadStashScalerBaseUrl (deprecated in 1.36) – To enable remote on-demand scaling, set this to the thumbnail base URL.
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.
- $wgCacheSharedUploads – Cache shared metadata in memcached.
- $wgForeignFileRepos – An array of repository structure for foreign repositories.
- $wgForeignUploadTargets – Configuration for foreign upload targets for the Upload dialog .
- $wgHashedSharedUploadDirectory – Whether to hash the shared upload directory.
- $wgRepositoryBaseUrl – Base URL for a repository wiki.
- $wgSharedUploadDBname – DB name with metadata about shared directory.
- $wgSharedUploadDBprefix – DB prefix for shared image uploads
- $wgSharedUploadDirectory – Path on the file system where shared uploads can be found.
- $wgSharedUploadPath – Full path to the web server where shared uploads can be found.
- $wgUseSharedUploads – Whether to look in a shared repository when a file is not found locally
- $wgFetchCommonsDescriptions – Whether to fetch commons image description pages and display them on the local wiki.
MIME types
- $wgJsMimeType (removed in 1.34) – Media type (MIME type) to use for JavaScript scripts.
- $wgLoadFileinfoExtension (removed in 1.22.0 ) – Switch for loading the FileInfo extension by PECL at runtime.
- $wgMimeDetectorCommand – Sets an external MIME detector program.
- $wgMimeInfoFile – Sets the MIME type info file to be used by MimeAnalyzer.php .
- $wgMimeTypeFile – Sets the MIME type definition file to be used by MimeAnalyzer.php .
- $wgTrivialMimeDetection – Switch for trivial MIME detection.
- $wgVerifyMimeType – Determines if the MIME type of uploaded files should be checked.
- $wgVerifyMimeTypeIE (introduced in 1.34) – Determines whether extra checks for Internet Explorer type detection should be applied.
- $wgMimeTypeBlacklist – MIME types to disallow if $wgVerifyMimeType is enabled.
- $wgXMLMimeTypes – An array of XML MIME types we can detect via MimeMagic
See also: Manual:Mime type detection
Images
- $wgAllowImageMoving (removed in 1.36) – Enable file renaming.
- $wgCustomConvertCommand – Use another resizing converter, e.g. GraphicMagick.
- $wgEnableAutoRotation – Whether to enable image auto-rotation based on EXIF information
- $wgExiftool – Path to exiftool binary. Used for lossless ICC profile swapping.
- $wgExiv2Command – Path to the exiv2 executable.
- $wgGalleryOptions – Default settings for the
<gallery>
tag. - $wgIgnoreImageErrors – If true, inline scaled images will still produce
<img>
tags ready for output instead of showing an error message. - $wgImageLimits – A list of user-selectable limits for the image thumbnail size on image description pages.
- $wgJpegTran – Path to jpegtran, for lossless JPEG rotation.
- $wgJpegQuality (introduced in 1.32) – When scaling a JPEG thumbnail, this is the quality we request from the backend.
- $wgMaxImageArea – Don't thumbnail an image if it will use too much working memory.
- $wgMediaHandlers – Plugins for media file type handling.
- parameters for upload path
- $wgTrustedMediaFormats – List of trusted media-types and MIME types.
- $wgNativeImageLazyLoading (introduced in 1.34) – Toggles native image lazy loading, via the "loading" attribute.
See also: Manual:Configuring file uploads
DjVu
- $wgDjvuDump – Path to the djvudump executable.
- $wgDjvuOutputExtension – File extension for the DjVu post processor output.
- $wgDjvuPostProcessor – Path of the DjVu post-processor.
- $wgDjvuRenderer – Path of the ddjvu DjVu renderer.
- $wgDjvuToXML – Path of the djvutoxml executable.
- $wgDjvuTxt – Path of the djvutxt DjVu text extraction utility.
EXIF
- $wgShowEXIF – Show EXIF data at the end of file description pages.
- $wgUpdateCompatibleMetadata – Whether to automatically update the
img_metadata
field if it is outdated but compatible with the current version.
ImageMagick
- $wgImageMagickConvertCommand – The command used to invoke ImageMagick.
- $wgImageMagickTempDir – Temporary directory used for ImageMagick.
- $wgMaxInterlacingAreas – Array of max pixel areas for interlacing per MIME type.
- $wgSharpenParameter – Sharpening parameter to ImageMagick.
- $wgSharpenReductionThreshold – Reduction in linear dimensions below which sharpening will be enabled.
- $wgUseImageMagick – Set to true to use ImageMagick for image resizing.
- $wgUseTinyRGBForJPGThumbnails – Swaps JPGs that use sRGB ICC profile with TinyRGB profile
Set $wgUseImageMagick to true to use ImageMagick instead of the builtin functions.
SVG
- $wgAllowTitlesInSVG (removed in 1.35) – Allow
<title>
tag in SVG files. - $wgSVGConverter – A key from
$wgSVGConverters
to use as converter. - $wgSVGConverterPath – Path to the directory of the SVG converter being used.
- $wgSVGConverters – List of paths to Scalable Vector Graphics (SVG) converters.
- $wgSVGMaxSize – Don't scale a SVG larger than this unless its native size is larger.
- $wgSVGMetadataCutoff – Don't read SVG metadata beyond this point.
Thumbnail settings
- $wgUseImageResize – Whether to enable dynamic server-side image resizing (thumbnailing)
- $wgGenerateThumbnailOnParse – Allow thumbnail rendering on page view.
- $wgMaxAnimatedGifArea – Force thumbnailing of animated GIFs above this size to a single frame instead of an animated thumbnail.
- $wgSharedThumbnailScriptPath – Same as
$wgThumbnailScriptPath
, but for shared uploads. - $wgShowArchiveThumbnails – Whether to show thumbnails for old images on the image description page.
- $wgTiffThumbnailType – The format and MIME type to convert TIFF images to.
- $wgThumbnailScriptPath – Path to thumb.php , if you want thumbnail generation on the fly.
- $wgThumbUpright – Scaling factor applied to width of images when parameter 'upright' is used.
- $wgThumbLimits – List of image thumbnail sizes users can pick from.
- $wgResponsiveImages – Whether or not to output high-resolution images for high-DPI displays
- $wgThumbnailBuckets – List of intermediary thumbnail sizes to use to speed up thumbnail rendering.
- $wgThumbnailMinimumBucketDistance – Minimal distance between intermediary thumbnail size and target thumbnail size.
- $wgJpegPixelFormat – Sets YUV chroma subsampling mode for JPEG thumbnails
- $wgUploadThumbnailRenderHttpCustomHost – When using the "http" $wgUploadThumbnailRenderMethod, lets one specify a custom Host HTTP header.
- $wgUploadThumbnailRenderHttpCustomDomain – When using the "http" $wgUploadThumbnailRenderMethod, lets one specify a custom domain to send the HTTP request to.
- $wgUploadThumbnailRenderMap – An array of thumbnail widths to be rendered at upload time.
- $wgUploadThumbnailRenderMethod – The method through which the thumbnails will be prerendered for the entries in $wgUploadThumbnailRenderMap.
Antivirus
- $wgAntivirus – Internal name of virus scanner.
- $wgAntivirusRequired – Determines if a failed virus scan will cause the file to be rejected.
- $wgAntivirusSetup – Configuration for different virus scanners.
Parser
- $wgAllowDisplayTitle – Allows use of
{{DISPLAYTITLE}}
magic word - $wgAllowExternalImages – Determines whether or not MediaWiki will allow external images to be rendered inline with text.
- $wgAllowExternalImagesFrom – If
$wgAllowExternalImages
is false, you can specify exceptions here. - $wgAllowSlowParserFunctions – Allow slow parser functions.
- $wgAllowImageTag (deprecated in 1.35) – Allow
<img>
tag to be used in wikitext. - $wgCleanSignatures – Substitute templates in signatures.
- $wgEnableImageWhitelist – Enables an on-wiki external image whitelist
- $wgEnableMagicLinks – Controls whether magic link functionality should be enabled
- $wgEnableParserLimitReporting – Controls whether the NewPP parser report is output in a HTML comment.
- $wgExperimentalHtmlIds (removed in 1.32) – Should we allow a broader set of characters in id attributes, per HTML5?
- $wgExpensiveParserFunctionLimit – Maximum number of calls per parse to expensive parser functions such as PAGESINCATEGORY.
- $wgExternalLinkTarget – Set a default target for external links.
- $wgFragmentMode – Determines how section IDs should be encoded
- $wgGrammarForms – Used for $GRAMMAR parser function.
- $wgLinkHolderBatchSize – LinkHolderArray batch size.
- $wgMaxGeneratedPPNodeCount (removed in 1.35) – A complexity limit on template expansion: the maximum number of nodes generated by
Preprocessor::preprocessToObj()
- $wgMaxPPExpandDepth – Stack depth limit for expansion with the preprocessor.
- $wgMaxPPNodeCount – A complexity limit on template expansion: the maximum number of nodes visited by
PPFrame::expand()
- $wgMaxTemplateDepth – Maximum recursion depth for templates within templates.
- $wgMaxTocLevel – Maximum indent level of toc.
- $wgMediaInTargetLanguage (introduced in 1.33) – Whether translatable media (currently, only SVG images) should be shown in page's target language
- $wgParserConf (deprecated in 1.35) – Parser configuration.
- $wgParserTestFiles (deprecated in 1.30) – Parser test suite files to be run by parserTests.php.
- $wgParserTestMediaHandlers – Media handler overrides for parser tests (they don't need to generate actual thumbnails, so a mock will do)
- $wgPreprocessorCacheThreshold – Preprocessor caching threshold.
- $wgRegisterInternalExternals – Whether to register external links pointing to the same server.
- $wgRestrictDisplayTitle – Restrict
{{DISPLAYTITLE}}
to titles that normalize to the same canonical database key - $wgUseNewMediaStructure (introduced in 1.36) – Emit using the new media structure described at, Parsing/Media structure
HTML
- $wgRawHtml – Allow raw, unchecked HTML in
<html>...</html>
sections.
Tidy
![]() | This page is outdated. |
Tidy is an open source tool that cleans up broken HTML. You can use this to ensure that broken HTML in articles doesn't affect the layout of your wiki. While Tidy itself is going to be replaced, the configuration settings can still be used for the replacements.
- $wgTidyConfig – Configuration of the HTML postprocessing tool to use for fixing invalid HTML code.
- $wgDebugTidy (removed in 1.33) – Put tidy warnings in HTML comments, only works for internal tidy.
- $wgTidyBin (removed in 1.33) – Should be set to the path of the tidy binary.
- $wgTidyConf (removed in 1.33) – Should be set to the path of the tidy configuration file.
- $wgTidyInternal (removed in 1.33) – Controls the use of the tidy extension to use an in-process tidy library instead of spawning a separate program.
- $wgTidyOpts (removed in 1.33) – Options passed to tidy on the command line.
- $wgUseTidy (removed in 1.33) – Use tidy to make sure HTML output is sane.
- $wgValidateAllHtml (removed in 1.31) – Validate the overall output using tidy and refuse to display the page if it's not valid.
- See also: Manual:Build Tidy from source .
Special pages
- $wgActionFilteredLogs – List of log types that can be filtered by action types
- $wgAllowSpecialInclusion – Allow special page inclusions such as
{{Special:Allpages}}
. - $wgExportAllowAll – Whether to allow exporting the entire wiki into a single file.
- $wgExportAllowHistory – Enable the full-history option on Special:Export.
- $wgExportAllowListContributors – Whether to allow to list all contributors while exporting a page.
- $wgExportFromNamespaces – Whether to allow the "export all pages in namespace" option.
- $wgExportMaxHistory – Special:Export requests for history of pages with more revisions than this will be rejected.
- $wgExportMaxLinkDepth – Maximum value of the "pagelink-depth" parameter in Special:Export.
- $wgExportPagelistLimit – Maximum number of pages returned by the GetPagesFromCategory and GetPagesFromNamespace functions.
- $wgFilterLogTypes – Show/hide links on Special:Log will be shown for these log types.
- $wgHideIdentifiableRedirects – Protects user's privacy when doing redirects
- $wgImportTargetNamespace – Optional default target namespace for interwiki imports.
- $wgLogActions – Lists the message key string for formatting individual events of each type and action when listed in the logs.
- $wgLogActionsHandlers – Same as
$wgLogActions
, but values are functions callbacks. - $wgLogHeaders – Lists the message key string for descriptive text to be shown at the top of each log type.
- $wgLoginLanguageSelector – Show a bar of language selection links in the user login and user registration forms.
- $wgLogNames – Lists the message key string for each log type.
- $wgLogRestrictions – Restricts log access to those who have a certain right.
- $wgLogTypes – List of log types.
- $wgMaxRedirectLinksRetrieved – Maximum number of links to a redirect page listed on Special:Whatlinkshere/RedirectDestination
- $wgQueryPageDefaultLimit – Integer defining default number of entries to show on query pages
- $wgRedirectOnLogin – Redirect users to page on login
- $wgSecureLogin – Whether to let user authenticate using https when they come from http.
- $wgShortPagesNamespaceBlacklist – Optional array of namespaces which should be blacklisted from Special:ShortPages
- $wgSpecialSearchFormOptions (introduced in 1.34) – Options for Special:Search completion widget form created by SearchFormWidget class.
- $wgSpecialVersionShowHooks – Whether to show the contents of $wgHooks in Special:Version.
- $wgPageCreationLog (introduced in 1.32) – Whether to maintain a log of new page creations, which can be viewed at Special:Log/create.
- $wgUseNPPatrol – Use new pages patrolling to check for vandalism
- $wgUseFilePatrol – Use file patrolling to check new files on Special:NewFiles
- $wgWatchlistExpiry (introduced in 1.35) – Enable the watchlist expiry feature.
- $wgWatchlistPurgeRate (introduced in 1.35) – The per-edit rate at which expired watchlist items will be purged from the database.
Recent changes
See also Help:Recent changes and $wgDefaultUserOptions
- $wgAllowCategorizedRecentChanges (removed in 1.31) – Allow to filter the recentchanges by a category or one of its sub(subsubsub...)categories
- $wgAutopromoteOnceLogInRC – Whether to put user rights log entries for autopromotion in recent changes.
- $wgExperiencedUserEdits – Determines the number of edits needed to qualify at the "Experienced user" level.
- $wgExperiencedUserMemberSince – Determines the number of days needed since account creation to qualify at the "Experienced user" level.
- $wgLearnerEdits – Determines the number of edits needed to qualify at the "Learner" experience level.
- $wgLearnerMemberSince – Determines the number of days needed since account creation to qualify at the "Learner" experience level.
- $wgLogAutopatrol (removed in 1.31) – Log autopatrol actions to the log table
- $wgPutIPinRC – Log IP addresses in the recentchanges table.
- $wgRCChangedSizeThreshold – Highlight character count difference lower than this.
- $wgRCFilterByAge – Filter $wgRCLinkDays by $wgRCMaxAge to avoid showing links for numbers higher than what will be stored.
- $wgRCLinkLimits – List changes limits options to list in the Special:Recentchanges and Special:Recentchangeslinked pages.
- $wgRCLinkDays – List days options to list in the Special:Recentchanges and Special:Recentchangeslinked pages.
- $wgRCMaxAge – Items in the recentchanges table are periodically purged; entries older than this many seconds will go.
- $wgRCShowChangedSize – Show the amount of changed characters in recent changes.
- $wgRCShowWatchingUsers – Show watching users in recent changes, watchlist and page history views.
- $wgRCWatchCategoryMembership – Treat category membership changes as a RecentChange.
- $wgRecentChangesFlags – Flags (letter symbols) shown in recent changes and watchlist to indicate certain types of edits.
- $wgShowUpdatedMarker – Show new changes: bold in watchlist, with "updated since my last visit" in history.
- $wgStructuredChangeFiltersLiveUpdatePollingRate – Polling rate, in seconds, used by the 'live update' feature of Special:RecentChanges and Special:Watchlist
- $wgUseRCPatrol – Use RC patrolling to check for vandalism
- $wgWatchersMaxAge – Page watchers inactive for more than this many seconds are considered inactive. Used mainly by action=info .
- $wgUnwatchedPageSecret – If active watchers (per $wgWatchersMaxAge ) are this number or less, do not disclose it.
- $wgUnwatchedPageThreshold – Allows users without the "unwatchedpages" user right to view the number of page watchers for a specified page via the "info" action if the number of watchers is above the specified threshold.
UDP updates
Send Recent changes updates via UDP. See: Manual:Simple IRC RC Bot
- $wgRCEngines – Configuration for RC feed protocol engines
- $wgRCFeeds – Configuration for sending RC updates
Users
- $wgActiveUserDays – The number of days within which a person must make edits to be considered an "active" user
- $wgAllowRequiringEmailForResets (introduced in 1.34) (deprecated in 1.34) – Temporary feature flag that controls whether users will see a checkbox allowing them to require providing email during password resets.
- $wgAutoConfirmAge – Number of seconds an account is required to age before it's given the implicit 'autoconfirmed' group membership.
- $wgAutoConfirmCount – Number of edits an account requires before it is autoconfirmed.
- $wgAllowUserCssPrefs – Allow user preferences implemented in CSS.
- $wgDefaultUserOptions – Default user preferences.
- $wgDisableAnonTalk – Disable talk pages for anonymous users (not logged in).
- $wgHiddenPrefs – Disable certain user preferences.
- $wgHKDFAlgorithm – Algorithm for HMAC-based key derivation function (fast, cryptographically secure random numbers).
- $wgHKDFSecret – Secret for HMAC-based key derivation function (fast, cryptographically secure random numbers).
- $wgInvalidUsernameCharacters – Characters to prevent during new account creations.
- $wgMaximalPasswordLength (deprecated in 1.26) – Specifies the maximal length of a user password.
- $wgMaxNameChars – Maximum number of bytes in username.
- $wgMaxSigChars – Maximum wiki code length for customized signatures.
- $wgMinimalPasswordLength (deprecated in 1.26) – Specifies the minimal length of a user password.
- $wgNewUserLog – Whether to maintain a log of newusers, which can be viewed at Special:Log/newusers.
- $wgPasswordExpirationDays – The number of days that a user's password is good for.
- $wgPasswordExpireGrace – The number of seconds after a user's password expires during which they can log in without a password change.
- $wgPasswordPolicy – Specifies various settings related to password strength and security.
- $wgReservedUsernames – List of account names that cannot exist.
- $wgShowIPinHeader (removed in 1.27) – Show the IP in the user bar for anonymous users.
- $wgSignatureValidation (introduced in 1.35) – Behavior of signature validation.
- $wgSignatureAllowedLintErrors (introduced in 1.35) – List of lint error codes which don't cause signature validation to fail.
- $wgUserrightsInterwikiDelimiter – Character used as the separator between username and database name on Special:UserRights.
Authentication
- $wgAllowSecuritySensitiveOperationIfCannotReauthenticate – Whether to allow security-sensitive operations when reauthentication is not possible
- $wgAuthenticationTokenVersion – When changed, all existing sessions are invalidated.
- $wgAuthManagerAutoConfig – Register authentication providers to use with AuthManager
- $wgAuthManagerConfig – Manual override for authentication provider configuration
- $wgCentralIdLookupProvider – Default central id lookup implementation to use
- $wgCentralIdLookupProviders – Register central ID lookup providers.
- $wgChangeCredentialsBlacklist – List of AuthenticationRequest class names which are not changeable through Special:ChangeCredentials and the changeauthenticationdata API.
- $wgDisableAuthManager (removed in 1.28) – Internal feature flag used for the AuthManager rollout process
- $wgExtendedLoginCookies (removed in 1.28) – Dictates when the extended lifetime login cookies expire.
- $wgPopularPasswordFile (removed in 1.35) – Where popular password file is located.
- $wgPHPSessionHandling – Whether to use PHP session handling (
$_SESSION
andsession_*()
functions) - $wgReauthenticateTime – Time frame for re-authentication
- $wgRemoveCredentialsBlacklist – List of AuthenticationRequest class names which are not removable through Special:RemoveCredentials and the removeauthenticationdata API.
- $wgSessionInsecureSecrets – Allows MediaWiki to work at the cost of storing sensitive session data insecurely.
- $wgSessionProviders – Session provider configuration.
- $wgSessionPbkdf2Iterations – Number of internal PBKDF2 iterations to use when deriving session secrets.
- $wgSessionSecret – Secret for session storage.
- $wgSuspiciousIpExpiry (introduced in 1.36) – Time in seconds to remember IPs for, for the purposes of logging IP changes within the same session.
User Access
- $wgAddGroups – Controls who can add specific groups using Special:Userrights.
- $wgAutoblockExpiry – Number of seconds before autoblock entries expire
- $wgBlockAllowsUTEdit – Allow blocked users to edit their talk pages
- $wgDeleteRevisionsBatchSize (introduced in 1.32) – Page deletions with > this number of revisions will use the job queue.
- $wgEmailConfirmToEdit – Require users to confirm email address before they can edit, true to enable.
- $wgGrantPermissions – Used to define grants and assign permissions to them.
- $wgGrantPermissionGroups – Used to define grant groups and assign grants to them.
- $wgGroupPermissions – Use this to set access rights for groups and users in these groups.
- $wgGroupsAddToSelf – Use this to allow users to add themselves to specified groups via Special:Userrights.
- $wgGroupsRemoveFromSelf – Use this to allow users to remove themselves from specified groups via Special:Userrights.
- $wgHideUserContribLimit – The maximum number of edits a user can have and can still be hidden by users with the
hideuser
permission. - $wgImplicitGroups – Groups that aren't shown on Special:Listusers or somewhere else
- $wgRemoveGroups – Controls who can remove specific groups using Special:Userrights.
- $wgRevokePermissions – Permission keys revoked from users in each group.
- $wgWhitelistRead – Pages anonymous user may see.
- $wgWhitelistReadRegexp – Whitelists publicly readable titles with regular expressions.
User agent
- $wgBrowserBlackList (deprecated in 1.30) – Browser blacklist for non-Unicode-compliant browsers.
Cookies
- $wgCacheVaryCookies – A list of cookies that influence the cache.
- $wgCookieDomain – Explicit domain for login cookies.
- $wgCookieExpiration – Number of seconds before HTTP cookies expire. You can override this for 'Keep me logged in (for up to $1 days)' cookies with
$wgExtendedLoginCookieExpiration
- $wgCookieHttpOnly – Set the
httpOnly
flag on all cookies set by MediaWiki (to prevent access from JavaScript). - $wgCookiePath – Explicitly declared "path" for cookies at the cookie domain
- $wgCookiePrefix – Custom cookie prefix.
- $wgCookieSameSite (introduced in 1.34.3) – The SameSite cookie attribute used for login cookies.
- $wgCookieSecure – Whether cookies are secured.
- $wgDisableCookieCheck – Disables session cookies
- $wgExtendedLoginCookieExpiration – If non-null, duration in seconds to use for "Keep me logged in (for up to $1 days)" sessions; 0 means until the browser is closed. If null, uses $wgCookieExpiration
- $wgSessionHandler (removed in 1.33) – Used to set PHP's session.save_handler.
- $wgSessionName – Override to customize the session name.
- $wgUseSameSiteLegacyCookies (introduced in 1.34.3) – Send a legacy cookie with an
ss0-
prefix whenSameSite=None
is sent.
Feed
- $wgFeed – Toggle syndication feeds (RSS, Atom e.g. Recentchanges, Newpages) on and off.
- $wgAdvertisedFeedTypes – Feed types that should be provided by default.
- $wgFeedCacheTimeout – Minimum timeout for cached Recentchanges feed, in seconds.
- $wgFeedClasses – Available feeds objects.
- $wgFeedDiffCutoff – When generating Recentchanges RSS/Atom feed, diffs will not be generated for pages larger than this size.
- $wgFeedLimit – Set maximum number of results to return in syndication feeds (RSS, Atom) for e.g. Recentchanges, Newpages.
- $wgOverrideSiteFeed – Override the site's default rss/atom feed that appears on every page.
Copyright
- $wgCopyrightIcon (removed in 1.27) – Set this to some HTML to override the rights icon with an arbitrary logo.
- $wgMaxCredits – Set this to the number of authors that you want to be credited below an article text.
- $wgRightsIcon – Override for copyright metadata.
- $wgRightsPage – Override for copyright metadata.
- $wgRightsText – Override for copyright metadata.
- $wgRightsUrl – Override for copyright metadata.
- $wgShowCreditsIfMax – If there are more than
$wgMaxCredits
authors, show$wgMaxCredits
of them. - $wgUseCopyrightUpload – Set this to true if you want detailed copyright information forms on Upload.
Search
- $wgAdvancedSearchHighlighting – Set to true to have more useful text snippets in search results.
- $wgEnableOpenSearchSuggest (deprecated in 1.35) – Enable OpenSearch suggestions requested by MediaWiki.
- $wgEnableSearchContributorsByIP – Whether searching for an IP address will be redirected to that IP's contributions page.
- $wgOpenSearchDefaultLimit – Integer defining default number of entries to show on OpenSearch call.
- $wgOpenSearchDescriptionLength – Minimum length of extract in
<Description>
. - $wgOpenSearchTemplate (deprecated in 1.25) – Template for OpenSearch suggestions.
- $wgOpenSearchTemplates – Templates for OpenSearch suggestions.
- $wgSearchForwardUrl – Set this to a URL to forward search requests to some external location.
- $wgSearchHighlightBoundaries – Regexp to match word boundaries
- $wgSearchRunSuggestedQuery – If search returns zero results and current search engine has a "did you mean" suggestion, results for the suggestion will be shown.
- $wgSearchSuggestCacheExpiry – Expiry time for search suggestion responses.
- $wgSearchTypeAlternatives – Alternative search types.
- $wgUseTwoButtonsSearchForm (removed in 1.36) – Sidebar's search form behavior.
HTTP client
- $wgAllowExternalReqID (introduced in 1.34) – controls whether MediaWiki accepts the request ID set by the incoming request via the "X-Request-Id" header.
- $wgAsyncHTTPTimeout – Timeout for asynchronous HTTP requests.
- $wgHTTPConnectTimeout – Timeout for connections done internally (in seconds)
- $wgHTTPMaxTimeout (introduced in 1.35) – The maximum HTTP request timeout in seconds.
- $wgHTTPMaxConnectTimeout (introduced in 1.35) – The maximum HTTP connect timeout in seconds.
- $wgHTTPImportTimeout – Timeout for HTTP requests done internally for transwiki imports, in seconds.
- $wgHTTPProxy – Proxy to use for cURL requests
- $wgHTTPTimeout – Timeout for HTTP requests done via cURL.
- $wgLocalVirtualHosts – Local virtual hosts.
Jobs
- $wgJobBackoffThrottling – Number of times work items of a job type can be run per second.
- $wgJobClasses – Maps jobs to their handling classes.
- $wgJobRunRate – Number of jobs to perform per request.
- $wgJobTypesExcludedFromDefaultQueue – Jobs that must be explicitly requested, i.e. aren't run by job runners unless special flags are set.
- $wgJobTypeConf – Configuration for job storage.
- $wgJobQueueAggregator (removed in 1.33) – Which aggregator to use for tracking which queues have jobs.
- $wgJobQueueIncludeInMaxLagFactor – Whether to include the number of jobs that are queued for the API's maxlag parameter.
- $wgJobSerialCommitThreshold – Make job runners commit changes for replica DB-lag prone jobs one job at a time.
- $wgMaxJobDBWriteDuration – Max time (in seconds) a job-generated transaction can spend in writes.
- $wgRunJobsAsync – Controls whether on-request jobs are run asynchronously or synchronously.
- $wgUpdateRowsPerJob – Number of rows to update per job.
- $wgUpdateRowsPerQuery – Number of rows to update per query.
Proxies
- $wgAssumeProxiesUseDefaultProtocolPorts – When the wiki is running behind a proxy and this is set to true, assumes that the proxy exposes the wiki on the standard ports.
- $wgEnableDnsBlacklist – Whether to use DNS blacklists in
$wgDnsBlacklistUrls
to check for open proxies. - $wgDnsBlacklistUrls – List of DNS blacklists to use, if
$wgEnableDnsBlacklist
istrue
. - $wgProxyList – A list of IP addresses to be banned
- $wgProxyWhitelist – Proxy whitelist: list of addresses that are assumed to be non-proxy despite what the other methods might say.
- $wgSecretKey – This should always be customized to a secret, unique string in LocalSettings.php .
- $wgUsePrivateIPs – Whether private X-Forwarded-For IPs should be accepted
CDN / Squid
These settings configure MediaWiki when using a caching HTTP proxy server. They apply to caching using Varnish as well as Squid.
- $wgEventRelayerConfig – Mapping of event channels (or channel categories) to EventRelayer configuration.
- $wgInternalServer – Internal server name as known to Squid, if different than $wgServer .
- $wgMaxSquidPurgeTitles (removed in 1.27) – Maximum number of titles to purge in any one client operation
- $wgSquidPurgeUseHostHeader (deprecated in 1.33) – Whether to use a Host header in purge requests sent to the proxy servers configured in $wgSquidServers.
- $wgSquidMaxage (removed in 1.35) – Cache timeout for the squid.
- $wgCdnMaxAge (introduced in 1.34) – Cache TTL for the CDN sent as s-maxage (without ESI) or Surrogate-Control (with ESI).
- $wgCdnMaxageLagged – Cache timeout for the CDN when DB replica lag is high
- $wgCdnMaxageStale (introduced in 1.35) – Cache timeout in seconds when delivering a stale ParserCache response due to PoolCounter contention.
- $wgCdnMaxageSubstitute – Cache timeout for the CDN when a response is known to be wrong or incomplete (due to load)
- $wgCdnReboundPurgeDelay – Secondary delayed purges of URLs
- $wgSquidServers (removed in 1.35) – An array of individual proxy servers to help MediaWiki detect if the request has been proxyed.
But also to send back to the proxy PURGE commands on changes. - $wgCdnServers (introduced in 1.34) – An array of individual proxy servers to help MediaWiki detect if the request has been proxyed.
But also to send back to the proxy PURGE commands on changes. - $wgSquidServersNoPurge (removed in 1.35) – Same as
$wgSquidServers
, except that MW has no methods to send HTTP PURGE to an origin part of the configured ranges - $wgCdnServersNoPurge (introduced in 1.34) – Same as
$wgCdnServers
, except that MW has no methods to send HTTP PURGE to an origin part of the configured ranges - $wgLoggedOutMaxAge (introduced in 1.35) – Cache TTL for the user agent sent as max-age, for logged out users.
- $wgUseESI (deprecated in 1.33) – If you run Squid3 with ESI support, enable this.
- $wgUseSquid (removed in 1.35) – Enable/disable Squid.
- $wgUseCdn (introduced in 1.34) – Enable/disable page view caching.
- $wgUseKeyHeader (removed in 1.34) – Send the Key HTTP header for better caching.
- $wgUseXVO (removed in 1.27) – Send X-Vary-Options header for better caching (requires patched Squid).
- $wgVaryOnXFP – Whether to add
X-Forwarded-Proto
to theVary
header for API requests and RSS/Atom feeds.
HTCP multicast purging
- $wgHTCPMulticastTTL – HTCP multicast purging
- $wgHTCPRouting – Routing configuration for HTCP multicast purging.
Extensions
- $wgAPIListModules – API list module extensions.
- $wgAPIMetaModules – API meta module extensions.
- $wgAPIModules – API module extensions.
- $wgAPIFormatModules – API format module extensions.
- $wgAPIPropModules – API prop module extensions.
- $wgAuth (removed in 1.33) – Authentication plugin. See AuthPlugin.
- $wgAutoloadClasses – Array mapping class names to filenames, for autoloading.
- $wgAvailableRights – A list of available rights, in addition to the ones defined by the core.
- $wgDisableInternalSearch – Disable internal search so that extensions can implement it.
- $wgExceptionHooks (removed in 1.30) – Hooks that are used for outputting exceptions.
- $wgExtensionAssetsPath – URL to extensions directory.
- $wgExtensionCredits (deprecated in 1.25) – Global list of extension credits
- $wgExtensionDirectory – The file system path to the extensions directory.
- $wgExtensionFunctions – A list of callback functions which are called once MediaWiki is fully initialised.
- $wgExtensionMessagesFiles – Extension messages files.
- $wgExternalStores – External stores allow including content from non-database sources following URL links.
- $wgHooks – Global list of hooks.
- $wgMessagesDirs – Extension messages directories.
- $wgPagePropLinkInvalidations – Page property link table invalidation lists.
- $wgParserOutputHooks – Parser output hooks.
- $wgServiceWiringFiles – List of service wiring files to be loaded by the default instance of MediaWikiServices.
- $wgSpecialPageCacheUpdates – Additional functions to be performed with $updateSpecialPages.
- $wgSpecialPages – A list of custom special pages.
Maintenance Scripts setting
- $wgAllowSchemaUpdates – Allow database schema updates to be executed with update.php script.
- $wgCommandLineDarkBg – Assume a dark terminal background for maintenance scripts.
- $wgCommandLineMode – Indicates whether MW is running in command-line mode. Should never be set manually! Should never be set manually!
- $wgDBadminpassword – Password for $wgDBadminuser.
- $wgDBadminuser – Username of database administrator.
- $wgExtensionEntryPointListFiles – Array of files with list(s) of extension entry points to be used in $MergeMessageFileList
- $wgUpgradeKey – Password that controls access to web-based updater.
Miscellaneous settings
- $wgAjaxEditStash (deprecated in 1.36) – Whether edits should be prepared via AJAX as users type edit summaries.
- $wgAllowCrossOrigin (introduced in 1.36) – Allow anonymous cross origin requests.
- $wgAllUnicodeFixes – Whether to always convert certain Unicode sequences to modern ones regardless of the content language.
- $wgAutoloadAttemptLowercase (deprecated in 1.35) – Switch controlling legacy case-insensitive classloading.
- $wgDiffEngine (introduced in 1.34) – Specify the difference engine to use.
- $wgGitRepositoryViewers – Map of Git repository URLs to their gitweb interface URLs
- $wgExternalDiffEngine – Name of the external diff engine to use.
- $wgFeaturePolicyReportOnly (introduced in 1.34) – List of Feature Policy Reporting types to enable.
- $wgFixArabicUnicode (removed in 1.35) – Set this to true to clean up archaic Unicode sequences in Arabic text.
- $wgFixMalayalamUnicode (removed in 1.35) – Set this to true to clean up archaic Unicode sequences in Malayalam text.
- $wgLegacySchemaConversion – Option to speed up the conversion step for large sites when migrating the schema from 1.4 to 1.5
- $wgManualRevertSearchRadius (introduced in 1.36) – Maximum number of revisions of a page that will be checked against every new edit made to determine whether the edit was a manual revert.
- $wgMaxShellFileSize – Maximum file size created by shell processes under linux, in KB.
- $wgMaxShellMemory – Maximum amount of virtual memory available to shell processes under Linux, in KiB.
- $wgMaxShellTime – Maximum CPU time in seconds for shell processes under Linux.
- $wgMaxShellWallClockTime – Limit shell commands duration using real time.
- $wgMemoryLimit – The minimum amount of memory that MediaWiki "needs"; MediaWiki will try to raise PHP's memory limit if it's below this amount.
- $wgPoolCounterConf – Configuration for processing pool control.
- $wgRevertedTagMaxDepth (introduced in 1.36) – Maximum depth (revision count) of reverts that will have their reverted edits marked with the mw-reverted change tag.
- $wgRestAllowCrossOriginCookieAuth (introduced in 1.36) – Allows authenticated cross-origin requests to the REST API with session cookies.
- $wgSearchMatchRedirectPreference (introduced in 1.35) – Set true to allow logged-in users to set a preference whether or not matches in search results should force redirection to that page.
- $wgSoftwareTags – List of core tags to enable.
- $wgShellLocale – Locale for
LC_ALL
. - $wgShellRestrictionMethod – Method to use to restrict shell commands
- $wgShellboxSecretKey (introduced in 1.36) – The secret key for HMAC verification of Shellbox requests.
- $wgShellboxUrl (introduced in 1.36) – Shell commands can be run on a remote server using Shellbox.
- $wgShellCgroup – Limit shell commands memory using linux Cgroups.
- $wgUseAutomaticEditSummaries – Whether MediaWiki should make automatic edit summaries.
- $wgUseTagFilter – Allow filtering by change tag in recentchanges, history, etc.
- $wgWikiDiff2MovedParagraphDetectionCutoff (deprecated in 1.34) – This setting controls the maximum number of paragraphs to compare before it bails out.
- $wgWatchlistExpiryMaxDuration (introduced in 1.35) – Relative maximum duration for watchlist expiries, as accepted by strtotime().
- $wgXmlDumpSchemaVersion (introduced in 1.33) – The schema to use per default when generating XML dumps.
See also
- Manual:Configuration for developers - how to set and retrieve configuration variables.
- Extension registration#Configs (Your extension/skins settings) - how to register new configuration variables for extensions and skins.