FANDOM


This is an index of all supported configuration options based on the DefaultSettings.php file.



Never edit DefaultSettings; copy appropriate lines to LocalSettings.php instead and amend them as appropriate.



This index is in alphabetical order (ignoring the $wg prefix).  Note that the only setting without this prefix is $IP, which is listed under I.



Listed alphabetically | Listed by function | Category:MediaWiki configuration settings



Jump to letter: A B C D E F G H I J K L M N O P Q R S T U V W X Y Z



A Edit

  • $wgActionPaths - Paths for various user actions.  Used to 'pretty' URLs.
  • $wgActiveUserDays - The number of days a person must make edits to be considered an "active" user
  • $wgAddGroups - allow finer control over usergroup assignment.
  • $wgAjaxWatch - Enable watching/unwatching pages using AJAX.
  • $wgAllowTitlesInSVG - If true, <title> will be allowed in files with an "image/svg" MIME type.
  • $wgAmericanDates - Enable for English module to print dates as eg 'May 12' instead of '12 May'.
  • $wgAntivirusRequired - Determines if a failed virus scan (AV_SCAN_FAILED) will cause the file to be rejected.
  • $wgAPIMaxDBRows - Maximum amount of rows to scan in a DB query in the API.
  • $wgAppleTouchIcon - Optional URL to an icon to use when bookmarking to the home screen on Apple handheld devices.
  • $wgAutoConfirmAge - Number of seconds an account is required to age before it's given the implicit 'autoconfirm' group membership. This can be used to limit privileges of new accounts.
  • $wgAutoConfirmCount - Number of edits an account requires before it is autoconfirmed; passing both this AND the time requirement ($wgAutoConfirmAge) is needed
  • $wgAutopromote - Conditions of automatic promotion of user to specific groups.
  • $wgAvailableRights - A list of available rights, in addition to the ones defined by the core.



B Edit



C Edit

  • $wgCacheEpoch - Set this to current time to invalidate all prior cached pages.
  • $wgCapitalLinks - Set this to false to avoid forcing the first letter of links to capitals.
  • $wgCategoryMagicGallery - On category pages, show thumbnail gallery for images belonging to that category instead of listing them as articles.
  • $wgCommandLineMode - Indicates whether MW is running in command-line mode.  Should never be set manually!
  • $wgCompressRevisions - If this is set on, all future revisions will be compressed on page save, but only if zlib support is available and enabled in PHP.
  • $wgConf - Create a site configuration object. Not used for much in a default install.
  • $wgCookieHttpOnly - Set authentication cookies to httpOnly to prevent stealing by JS, in browsers that support this feature.



D Edit

  • $wgDBAvgStatusPoll - Time before the server get a SHOW STATUS query under overload conditions.
  • $wgDBmwschema - Schema that Postgres stores the MediaWiki tables in. Defaults to 'mediawiki'
  • $wgDBmysql5 - Set to true to set MySQL connection into UTF-8 encoding
  • $wgDebugAPI - Enable API debugging by removing some restrictions like POST-only
  • $wgDebugLogFile - The file name of the debug log, or empty if disabled. wfDebug() appends to this file.
  • $wgDebugLogGroups - Direct wfDebugLog() output to file rather than $wgDebugLogFile on a group basis.
  • $wgDebugTidy - Put tidy warnings in HTML comments, only works for internal tidy.
  • $wgDefaultUserOptions - Settings added to this array will override the language globals for the user preferences used by anonymous visitors and newly created accounts.
  • $wgDiff - Path to the GNU diff utility.
  • $wgDiff3 - Path to the GNU diff3 utility.
  • $wgDisableHardRedirects - Disable redirects to special pages and interwiki redirects, which use a 302 and have no "redirected from" link.
  • $wgDisableSearchUpdate - If you've disabled search semi-permanently, this also disables updates to the table.
  • $wgDocType - The doc type to use in the <!DOCTYPE !> declaration.



E Edit

  • $wgEmailAuthentication - Whether Email authentication (confirmation) is needed for that wiki for using any Email function (except password reminder which works independently from this setting)
  • $wgEnableAPI - Enable direct access to the data API through api.php.
  • $wgEnableEmail - Set to true to enable the e-mail basic features: Password reminders, etc.
  • $wgEnableParserCache - Keep parsed pages in a cache (objectcache table, turck, or memcached) to speed up output of the same page viewed by another user with the same options.
  • $wgEnableWriteAPI - Allow the API to be used to perform write operations (page edits, rollback, etc.) when an authorised user accesses it.
  • $wgEnotifFromEditor - Email notifications appear to be coming from the page editor (not from Wiki server)
  • $wgEnotifMaxRecips - Maximum number of users to mail at once when using impersonal mail.
  • $wgEnotifMinorEdits - Email notifications also for "minor edits" (user preference is shown and user needs to opt-in)
  • $wgEnotifRevealEditorAddress - reply-to address of Email notifications may be filled with page editor's address (user preference is shown and user needs to opt-in)
  • $wgEnotifUserTalk - Email notifications can be sent for first change on a user_talk page (user preference is shown and user needs to opt-in)
  • $wgEnotifWatchlist - Email notifications can be sent for the first change on watched pages (user preference is shown and user needs to opt-in)
  • $wgExportMaxHistory - Special:Export requests for history of pages with more revisions than this will be rejected.
  • $wgExternalStores - External stores allow including content from non database sources following URL links.



F Edit

  • $wgFeed - Toggle syndication feeds on and off.
  • $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 eg Recentchanges, Newpages.
  • $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.



G Edit

  • $wgGoToEdit - Go button goes straight to the edit screen if the article doesn't exist
  • $wgGroupsAddToSelf - allow users to add themselves from specified groups via Special:Userrights



H Edit



I Edit

  • $wgIgnoreImageErrors - If true, inline scaled images will still produce <img> tags ready for output instead of showing an error message.
  • $wgImgAuthDetails - Display reason access to uploaded file was denied to users(img_auth only)
  • $wgImageLimits - Limit images on image description pages to a user-selectable limit.
  • $wgImportSources - List of interwiki prefixes for wikis we'll accept as sources for Special:Import (for sysops).
  • $IP - The filesystem installation directory. Not in DefaultSettings.php.



J Edit

  • $wgJsMimeType - Select which media type (MIME type) to use for JavaScript
  • $wgJobRunRate - Speed of the background task job queue (e.g. update of links)



K Edit

L Edit

  • $wgLanguageCode - Site language code. Should be one of the ./language/Language(.*).php files.
  • $wgLegacyEncoding - Set this to eg 'ISO-8859-1' to perform character set conversion when loading old revisions not marked with "utf-8" flag.
  • $wgLocalDatabases - Other wikis on this site, can be administered from a single developer account.
  • $wgLogActions - Lists the message key string for formatting individual events of each type and action when listed in the logs.
  • $wgLogHeaders - Lists the message key string for descriptive text to be shown at the top of each log type.
  • $wgLogNames - Lists the message key string for each log type.
  • $wgLogo - The URL of the site logo.



M Edit

  • $wgMaxCredits - Set this to the number of authors that you want to be credited below an article text.
  • $wgMaxImageArea - Don't thumbnail an image if it will use too much working memory.
  • $wgMaxRedirects - Max number of redirects to follow when resolving redirects.
  • $wgMaxShellMemory - Maximum amount of virtual memory available to shell processes under linux, in KB.
  • $wgMemCachedDebug - Will be set to false in Setup.php, if the server isn't working.
  • $wgMimeType - The type to send in the Content-Type header.
  • $wgMiserMode - If true, disable database-intensive features



N Edit

  • $wgNamespaceProtection - Set the minimum permissions required to edit pages in each namespace.  If you list more than one permission, a user must have all of them to edit pages in that namespace.
  • $wgNoFollowLinks - If true, external URL links in wiki text will be given the rel="nofollow" attribute.
  • $wgNoReplyAddress - Dummy address which should be accepted during mail send action.



O Edit



P Edit

  • $wgProfileLimit - Only record profiling info for pages that took longer than this
  • $wgProxyList - Big list of banned IP addresses. In the keys not the values.
  • $wgProxyWhitelist - Proxy whitelist, list of addresses that are assumed to be non-proxy despite what the other methods might say
  • $wgPutIPinRC - Log IP addresses in the recentchanges table.



Q Edit

  • $wgQueryCacheLimit - Number of rows to cache in 'querycache' table when miser mode is on.



R Edit

  • $wgRateLimits - Simple rate limiter options to brake edit floods.
  • $wgRawHtml - Allow raw, unchecked HTML in <html>...</html> sections.
  • $wgRCFeeds - RC feed formatting and destination configuration.
  • $wgRCFilterByAge - Filter $wgRCLinkDays by $wgRCMaxAge to avoid showing links for numbers higher than what will be stored.
  • $wgRCMaxAge - Recentchanges items are periodically purged; entries older than this many seconds will go.
  • $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.
  • $wgRedirectSources - Regular expression to restrict URLs which will be displayed as 'redirected from' links.



S Edit

  • $wgSearchForwardUrl - Set this to a URL to forward search requests to some external location.
  • $wgSecretKey - This should always be customised in LocalSettings.php
  • $wgShowHostnames - If set to true, exposes host names through API and HTML comments.
  • $wgShowSQLErrors - Whether to show "we're sorry, but there has been a database error" pages.
  • $wgShowUpdatedMarker - Show "Updated (since my last visit)" marker in RC view, watchlist and history.
  • $wgSitename - The name of the site. Should be changed
  • $wgSiteNotice - If set, a notice will show up at the top of every page, defined at [[MediaWiki:Sitenotice]], formatted as for any wiki page.
  • $wgSkipSkin - Specify the name of a skin that should not be presented in the list of available skins.
  • $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).
  • $wgSMTP - For using a direct (authenticated) SMTP server connection.
  • $wgSpamRegex - Text matching this regex will be recognised as spam.
  • $wgSpecialPageGroups - List of special pages, followed by what subtitle they should go under at Special:SpecialPages
  • $wgSquidServers - A list of proxy servers (ips if possible) to purge on changes.
  • $wgStyleVersion - Appended in the query string of static CSS and JS to clear client side cache when changing this.
  • $wgSVGMaxSize - Don't scale a SVG larger than this unless its native size is larger.



T Edit

  • $wgThumbnailEpoch - If rendered thumbnail files are older than this timestamp, they will be rerendered on demand as if the file didn't already exist.
  • $wgThumbnailScriptPath - Give a path here to use thumb.php for thumbnail generation on client request, instead of generating them on render and outputting a static URL.
  • $wgThumbUpright - Adjust width of upright images when parameter 'upright' is used
  • $wgTidyBin - Should be set to the path of the tidy binary.
  • $wgTidyConf - Should be set to the path of the tidy configuration file.
  • $wgTidyInternal - Controls the use of the PECL extension to use an inprocess tidy library instead of spawning a separate program.
  • $wgTidyOpts - Options passed to tidy on the command line.
  • $wgTranslateNumerals - For Hindi and Arabic use local numerals instead of Western style (0-9) numerals in interface.



U Edit

  • $wgUrlProtocols - Defines the protocols which are supported and translated in HTML by the mediawiki parser.
  • $wgUseDynamicDates - Enable to allow rewriting dates in page text. DOES NOT FORMAT CORRECTLY FOR MOST LANGUAGES.
  • $wgUseESI - If you run Squid3 with ESI support, enable this.
  • $wgUseFileCache - This will cache static pages for non-logged-in users to reduce database traffic on public sites.
  • $wgUseImageMagick - Resizing can be done using PHP's internal image libraries or using ImageMagick.
  • $wgUseSharedUploads - Whether to look in the shared repository if no file of the given name is found in the local repository (for [[Image:..]], [[Media:..]] links).
  • $wgUseTidy - Use tidy to make sure HTML output is sane.



V Edit

  • $wgValidateAllHtml - Validate the overall output using tidy and refuse to display the page if it's not valid.
  • $wgVerifyMimeType - Determines if the mime type of uploaded files should be checked
  • $wgVersion - Contains the current version of MediaWiki, as displayed to the user. You should not change this!



W Edit



X Edit

  • $wgXMLMimeTypes - An array of XML mime types we can detect via MimeMagic.



Y Edit

Z Edit

Language: English



 

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.