Manual:Yapılandırma ayarları

This page is a translated version of the page Manual:Configuration settings and the translation is 14% complete.

This is an index of all supported configuration settings based on the MainConfigSchema.php (or DefaultSettings.php before MediaWiki 1.39) file.

Never edit MainConfigSchema.php; add appropriate lines to LocalSettings.php instead and amend them as appropriate.

If you cannot find a configuration setting here, see if it is defined in DefaultSettings.php. The variable should have some documentation there.

Settings removed in versions of MediaWiki prior to 1.35 are no longer listed here. Please use the search box to find the relevant manual page (e.g. Manual:$wgAllowAnonymousMinor).
Listed alphabetically | Listed by function | Category:MediaWiki yapılandırma ayarları

General 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.

Server URLs and file paths

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

Uyarı Uyarı: 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: Manual:Configuring file uploads



  • $wgShowEXIF – Dosya açıklama sayfalarının sonunda EXIF ​​verilerini gösterin.
  • $wgUpdateCompatibleMetadata Whether to automatically update the img_metadata field if it is outdated but compatible with the current version.



Thumbnail settings


Email settings

See also User Access: $wgEmailConfirmToEdit

Email notification (Enotif) settings

Actual notifications for each user are defined in the options. You can change defaults with $wgDefaultUserOptions .

Veritabanı Ayarları

LoadBalancer Ayarları



  • $wgDBport Database port. Only used by PostgreSQL.

SQLite'a özgü

Paylaşılan Veritabanı Ayarları

Extension fields

  • $wgExtPGNewFields (1.36 sürümünde kaldırıldı)Extension defined fields to be added to existing tables
  • $wgExtNewTables (1.36 sürümünde kaldırıldı)Extension Defined tables to be added on schema change
  • $wgExtNewFields (1.36 sürümünde kaldırıldı)Extension defined fields to be added to existing tables
  • $wgExtNewIndexes (1.36 sürümünde kaldırıldı)Extension defined indexes to be added to existing tables
  • $wgExtPGAlteredFields (1.36 sürümünde kaldırıldı)Extension defined columns to be altered in tables
  • $wgExtModifiedFields (1.36 sürümünde kaldırıldı)Extension defined fields to change existing tables

Content handlers and storage

Performance hacks and limits


Anasayfa: Manual:Caching
See: Interwiki for Interwiki cache settings.

File Cache

Settings for Server side file caching.

Message Cache

Parser Cache

Memcached settings

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

WAN cache

HTTP proxy (CDN) settings

These settings configure MediaWiki when using a caching HTTP proxy server. They apply to caching using Varnish as well as Squid.

  • $wgCdnMatchParameterOrder Indicates if should take query parameters order on incoming requests into account for CDN caching
  • $wgCdnMaxageLagged Cache timeout for the CDN when DB replica lag is high
  • $wgCdnMaxageStale 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)
  • $wgCdnMaxAge – s-maxage (ESI olmadan) veya Surrogate-Control (ESI ile) olarak gönderilen CDN için TTL'yi önbelleğe alın.
  • $wgCdnReboundPurgeDelay Secondary delayed purges of URLs
  • $wgCdnServersNoPurge Same as $wgCdnServers , except no HTTP purges will be sent and CIDR ranges are accepted
  • $wgCdnServers An array of individual proxy servers to help MediaWiki detect if the request has been proxied.
    But also to send back to the proxy PURGE commands on changes.
  • $wgForcedRawSMaxage Default maximum age (in seconds) for raw CSS/JavaScript accesses.
  • $wgInternalServer Internal server name as known to Squid, if different than $wgServer .
  • $wgLoggedOutMaxAge (1.38 sürümünde kaldırıldı)Cache TTL for the user agent sent as max-age, for logged out users.
  • $wgSquidMaxage (1.35 sürümünde kaldırıldı)Cache timeout for the squid.
  • $wgSquidPurgeUseHostHeader (1.42 sürümünde kaldırıldı)Whether to use a Host header in purge requests sent to the proxy servers configured in $wgSquidServers.
  • $wgSquidServersNoPurge (1.35 sürümünde kaldırıldı)Same as $wgSquidServers , except that MW has no methods to send HTTP PURGE to an origin part of the configured ranges
  • $wgSquidServers (1.35 sürümünde kaldırıldı)An array of individual proxy servers to help MediaWiki detect if the request has been proxied.
    But also to send back to the proxy PURGE commands on changes.
  • $wgUseCdn Enable/disable page view caching.
  • $wgUseESI (1.33 sürümünde kaldırıldı)If you run Squid3 with ESI support, enable this.
  • $wgUsePrivateIPs Whether private X-Forwarded-For IPs should be accepted
  • $wgUseSquid (1.35 sürümünde kaldırıldı)Enable/disable 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

Zaman dilimi ayarları


  • $wgAmericanDates – Varsayılan tarih biçimi olarak 'dmy' yerine 'mdy' kullanın, ör. 'May 12' yerine '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 – Yeni kullanıcılar için varsayılan görünüm.
  • $wgFallbackSkin Fallback skin used when the skin defined by $wgDefaultSkin 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 $wgCopyrightIcon
  • $wgSkinMetaTags 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 (1.35 sürümünde kaldırıldı)Specify the name of a skin that should not be presented in the list of available skins.
  • $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.

Page titles and redirects


Mobile support

  • $wgInterwikiPrefixDisplayTypes (1.39 sürümünde kaldırıldı)Mapping of interwiki index prefixes to descriptors that can be used to change the display of interwiki search results.
  • $wgLocalInterwikis Array of interwiki prefixes for this wiki.
  • $wgLocalInterwiki (1.35 sürümünde kaldırıldı)Interwiki prefix for this wiki.
  • $wgRedirectSources Regular expression to restrict URLs which will be displayed as "redirected from" links.
  • $wgSiteTypes Register handlers for specific types of sites.

Interwiki cache

See interwiki cache for more information.



  • $wgRawHtml Allow raw, unchecked HTML in ‎<html>...‎</html> sections.
  • $wgTidyConfig Configuration of the HTML postprocessing tool to use for fixing invalid HTML code.

Statistics and content analysis

  • $wgActiveUserDays The number of days within which a person must make edits to be considered an "active" user
  • $wgArticleCountMethod – İçerik ad alanındaki bir sayfanın geçerli içerik sayfası (madde) olarak sayılması gerekip gerekmediğini belirlemek için kullanılan yöntem.
  • $wgDisableCounters (1.35 sürümünde kaldırıldı)Disable page view counters.
  • $wgExperiencedUserEdits – "Deneyimli kullanıcı" düzeyinde yeterlilik kazanmak için gerekli düzenlemelerin sayısını belirler.
  • $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.
  • $wgManualRevertSearchRadius 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.
  • $wgRevertedTagMaxDepth Maximum depth (revision count) of reverts that will have their reverted edits marked with the mw-reverted change tag.

User accounts, authentication

Kimlik doğrulama

User rights, access control and monitoring


Blocking/banning, and some other related settings.

See Manual:Preventing access for more methods and settings concerning access. See also Manual:Kullanıcı hakları for more information about $wgGroupPermissions, $wgAddGroups, $wgRemoveGroups, etc.

See User Access for User Access settings.



Profiling, testing and debugging


See also: Manual:How to debug


  • $wgEnableProfileInfo (1.35 sürümünde kaldırıldı)Controls the availability of profileinfo.php.
  • $wgMetricsTarget (1.40 sürümünde kaldırıldı)Output target URI for the MetricsFactory service, e.g. udp://
  • $wgMetricsPrefix (1.40 sürümünde kaldırıldı)Service name prefix for the MetricsFactory service.
  • $wgMetricsFormat (1.40 sürümünde kaldırıldı)Output format for the MetricsFactory service, e.g. 'statsd'.
  • $wgProfiler Settings related to profiling.
  • $wgProfileLimit (1.35 sürümünde kaldırıldı)Only record profiling info for pages that took longer than this number of seconds to load.
  • $wgProfileOnly (1.35 sürümünde kaldırıldı)Don't put non-profiling info into log file
  • $wgStatsdMetricPrefix Prefix for metric names sent to $wgStatsdServer
  • $wgStatsdSamplingRates Sampling rate for statsd metrics as an associative array of patterns and rates.
  • $wgStatsdServer A host or host:port of a statsd server.
  • $wgStatsFormat (1.40 sürümünde tanıtıldı)Output format for the StatsFactory service, e.g. 'statsd'.
  • $wgStatsPrefix (1.40 sürümünde tanıtıldı)Service name prefix for the StatsFactory service.
  • $wgStatsTarget (1.40 sürümünde tanıtıldı)Output target URI for the StatsFactory service, e.g. udp://

Edit user interface

Maintenance Scripts setting

Recent changes, new pages, watchlist and history


  • $wgFeed – Sendikasyon yayınlarını (RSS, Atom, örn. Son Değişiklikler, Yeni Sayfalar) açın ve kapatın.
  • $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.





Special pages


  • $wgActions – Normal sayfalar için "action" parametresi için izin verilen değerler dizisi.

Robot policies

Ajax, Action API and REST API


  • $wgAjaxEditStash (1.37 sürümünde kaldırıldı) – Kullanıcılar düzenleme özetlerini yazarken düzenlemelerin AJAX aracılığıyla hazırlanıp hazırlanmaması gerektiği.
  • $wgAjaxExportList (1.38 sürümünde kaldırıldı)action=ajax aracılığıyla çağrılabilen AjaxFunctions.php içindeki işlevlerin listesi
  • $wgAjaxLicensePreview Use Ajax to preview licensing for uploads.
  • $wgAjaxUploadDestCheck (1.41 sürümünde kaldırıldı)Enable Ajax check for file overwrite, pre-upload.
  • $wgUseAjax (1.38 sürümünde kaldırıldı)Enable AJAX support.


Shell and process control

HTTP client


Wiki farm

Miscellaneous settings

See also