From mediawiki.org
Jump to navigation Jump to search
This page is a translated version of the page Manual:Configuration settings and the translation is 44% complete.
Outdated translations are marked like this.
Other languages:
Bahasa Indonesia • ‎Deutsch • ‎English • ‎Türkçe • ‎dansk • ‎español • ‎français • ‎italiano • ‎magyar • ‎polski • ‎português • ‎português do Brasil • ‎svenska • ‎čeština • ‎русский • ‎ไทย • ‎中文 • ‎日本語 • ‎한국어

Dies ist ein Index aller unterstützten Konfigurationsoptionen, basierend auf der DefaultSettings.php-Datei.

Bearbeiten Sie niemals DefaultSettings.php; kopiere stattdessen die entsprechenden Zeilen auf LocalSettings.php und ändere sie nach Bedarf.

Wenn Du eine Konfigurationseinstellung hier nicht finden kannst, schaue nach, ob sie in DefaultSettings.php definiert ist. Die Variable sollte dort dokumentiert sein.

Einstellungen, die in MediaWiki-Versionen vor 1.27 entfernt wurden, sind hier nicht mehr aufgeführt. Bitte benutze das Suchfeld, um die entsprechende Manual-Seite zu finden (z.B. Manual:$wgAllowAnonymousMinor).
In alphabetischer Reihenfolge | Auflistung nach Funktion | Kategorie:MediaWiki Konfigurationseinstellungen

Allgemeine Einstellungen

Globale Objekte

URLs und Dateipfade

Siehe auch file/image upload path settings.

Siehe auch skins path settings.

Files and file uploads

Uploads have to be specially set up to be secure.

Shared uploads

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.

MIME types

Warnung Warnung: ↑This is not a configuration setting, but a global state variable. It should be used solely by thumb.php!

See also: Manual:Mime type detection


See also: Handbuch:Datei-Uploads konfigurieren



  • $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.


Set $wgUseImageMagick to true to use ImageMagick instead of the builtin functions.


Thumbnail settings



Siehe auch zum Nutzerzugriff: $wgEmailConfirmToEdit

E-Mail Benachrichtigung (Enotif) Einstellungen

Eigentlich sind Benachrichtigungen für Benutzer in den Optionen festgelegt. Sie können unter $wgDefaultUserOptions geändert werden.





  • $wgDBmysql5 (entfernt 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.
  • $wgSQLMode – Value for the MySQL sql_mode parameter


  • $wgDBOracleDRCP (entfernt in 1.34) – When set to true, enables persistent connection with DRCP on Oracle.


  • $wgDBport – Port der Datenbasis. Nur von PostgreSQL verwendet.


Shared DB-Einstellungen



  • $wgExtPGNewFields (entfernt in 1.36) – Extension defined fields to be added to existing tables
  • $wgExtNewTables (entfernt in 1.36) – Extension Defined tables to be added on schema change
  • $wgExtNewFields (entfernt in 1.36) – Extension defined fields to be added to existing tables
  • $wgExtNewIndexes (entfernt in 1.36) – Extension defined indexes to be added to existing tables
  • $wgExtPGAlteredFields (entfernt in 1.36) – Extension defined columns to be altered in tables
  • $wgExtModifiedFields (entfernt in 1.36) – Extension defined fields to change existing tables

Content handlers and storage


See: Interwiki for Interwiki cache settings.


Settings for Server side file caching.





Settings for configuring the Memcached memory-based object store (if you are using it) docs/memcached.txt has more details.


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 (entfernt in 1.27) – Maximum number of titles to purge in any one client operation
  • $wgSquidPurgeUseHostHeader (veraltet in 1.33) – Whether to use a Host header in purge requests sent to the proxy servers configured in $wgSquidServers.
  • $wgSquidMaxage (entfernt in 1.35) – Cache timeout for the squid.
  • $wgCdnMaxAge (eingeführt 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 (eingeführt 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 (entfernt 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 (eingeführt 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 (entfernt 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 (eingeführt 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 (eingeführt in 1.35) – Cache TTL for the user agent sent as max-age, for logged out users.
  • $wgUseESI (veraltet in 1.33) – If you run Squid3 with ESI support, enable this.
  • $wgUseSquid (entfernt in 1.35) – Enable/disable Squid.
  • $wgUseCdn (eingeführt in 1.34) – Enable/disable page view caching.
  • $wgUseKeyHeader (entfernt in 1.34) – Send the Key HTTP header for better caching.
  • $wgUseXVO (entfernt in 1.27) – Send X-Vary-Options header for better caching (requires patched Squid).
  • $wgVaryOnXFP – Whether to add X-Forwarded-Proto to the Vary header for API requests and RSS/Atom feeds.

HTCP multicast purging

Language, regional and character encoding settings



  • $wgAmericanDates – Use 'mdy' instead of 'dmy' as the default date format, e.g. 'May 12' instead of '12 May'.
  • $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.

Output format and skin settings



  • $wgDefaultSkin – Der Standard-Skin für neue Nutzer.
  • $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
  • $wgSkinMetaTags (eingeführt in 1.36) – An array of open graph tags which should be added by all skins.
  • $wgSkipSkins Specify the name of skins that should not be presented in the list of available skins.
  • $wgSkipSkin (entfernt in 1.35) – Spezifiziert den Namen des Skins, der nicht in der Liste
    der verfügbaren Benutzeroberflächen aufscheinen soll.
  • $wgUseCombinedLoginLink – Login / create account link behavior when it's possible for anonymous users to create an account.
  • $wgVectorUseIconWatch – Watch and unwatch as a star icon rather than a link (for Vector skin only).
  • $wgVectorUseSimpleSearch Search form behavior for Vector skin only.


See ResourceLoader for more information.

Interwiki links and sites


See interwiki cache for more information.

Profiling, testing and debugging

Fehlersuche / Protokollierung

See also: Manual:How to debug




  • $wgRawHtml – Erlaube rohes, ungeprüftes HTML in <html>...</html> Abschnitten.


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 (entfernt in 1.33) – Put tidy warnings in HTML comments, only works for internal tidy.
  • $wgTidyBin (entfernt in 1.33) – Should be set to the path of the tidy binary.
  • $wgTidyConf (entfernt in 1.33) – Should be set to the path of the tidy configuration file.
  • $wgTidyInternal (entfernt in 1.33) – Controls the use of the tidy extension to use an in-process tidy library instead of spawning a separate program.
  • $wgTidyOpts (entfernt in 1.33) – Options passed to tidy on the command line.
  • $wgUseTidy (entfernt in 1.33) – Use tidy to make sure HTML output is sane.
  • $wgValidateAllHtml (entfernt 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 .

Statistics and content analysis



User rights, access control and monitoring

User agent



Maintenance Scripts setting

Recent changes, new pages, watchlist and history

See also Help:Letzte Änderungen and $wgDefaultUserOptions


  • $wgCopyrightIcon (entfernt in 1.27) – Set this to some HTML to override the rights icon with an arbitrary logo.
  • $wgMaxCredits – Die maximale Anzahl der Autoren, die unterhalb des Artikeltextes namentlich genannt werden sollen.
  • $wgRightsIcon – Überschreibung für Copyright-Metadaten.
  • $wgRightsPage – Überschreiben der Copyright-Metadaten.
  • $wgRightsText – Überschreiben der Copyright-Metadaten.
  • $wgRightsUrl – Überschreiben der Copyright-Metadaten.
  • $wgShowCreditsIfMax Falls es mehr als $MaxCredits Autoren gibt, zeige nur $wgMaxCredits von ihnen.
  • $wgUseCopyrightUpload – Set this to true if you want detailed copyright information forms on Upload.




Blocking/banning, and some other related settings.

See Zugriff verhindern for more methods and settings concerning access. See also Manual:Nutzerrechte for more information about $wgGroupPermissions, $wgAddGroups, $wgRemoveGroups, etc.

See User Access for User Access settings.



Special pages

UDP updates

Send Recent changes updates via UDP. See: Manual:Simple IRC RC Bot


Ajax, Action API and REST API






The following setting is no longer used in supported versions of MediaWiki, but still exists for backward compatibility

Mobile Unterstützung

Richtlinie zur Inhaltssicherheit

  • $wgCSPHeader (eingeführt in 1.32) – Controls Content-Security-Policy header [Experimental]
  • $wgCSPReportOnlyHeader (eingeführt 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.



  • $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.

HTTP client


Miscellaneous settings

See also