Kılavuz:Yapılandırma Ayarları

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

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.

Settings removed in versions of MediaWiki prior to 1.27 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

Images

See also: Manual:Configuring file uploads

DjVu

EXIF

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

ImageMagick

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

SVG

Thumbnail settings

Antivirus

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ı

MySQL-specific

  • $wgDBmysql5 (1.33 sürümünde kaldırıldı)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

PostgreSQL-specific

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

Önbellek

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

File Cache

Settings for Server side file caching.

Message Cache

Sidebar Cache

Parser Cache

Memcached settings

Settings for configuring the Memcached memory-based object store (if you are using it) docs/memcached.txt 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.

  • $wgCdnMaxageLagged – Cache timeout for the CDN when DB replica lag is high
  • $wgCdnMaxageStale (1.35 sürümünde tanıtıldı) – 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 (1.34 sürümünde tanıtıldı) – 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 (1.34 sürümünde tanıtıldı) – Same as $wgCdnServers , except that MW has no methods to send HTTP PURGE to an origin part of the configured ranges
  • $wgCdnServers (1.34 sürümünde tanıtı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.
  • $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.35 sürümünde tanıtıldı) – Cache TTL for the user agent sent as max-age, for logged out users.
  • $wgMaxSquidPurgeTitles (1.27 sürümünde kaldırıldı) – Maximum number of titles to purge in any one client operation
  • $wgSquidMaxage (1.35 sürümünde kaldırıldı) – Cache timeout for the squid.
  • $wgSquidPurgeUseHostHeader (1.33 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 (1.34 sürümünde tanıtıldı) – Enable/disable page view caching.
  • $wgUseESI (1.33 sürümünde kaldırıldı) – If you run Squid3 with ESI support, enable this.
  • $wgUseKeyHeader (1.34 sürümünde kaldırıldı) – Send the Key HTTP header for better caching.
  • $wgUsePrivateIPs – Whether private X-Forwarded-For IPs should be accepted
  • $wgUseSquid (1.35 sürümünde kaldırıldı) – Enable/disable Squid.
  • $wgUseXVO (1.27 sürümünde kaldırıldı) – 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

Zaman dilimi ayarları

Language-specific

İngilizce
  • $wgAmericanDates – Varsayılan tarih biçimi olarak 'dmy' yerine 'mdy' kullanın, ör. 'May 12' yerine '12 May'.
Arapça/Hintçe
  • $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

Çıktı

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

Skins

  • $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 (1.36 sürümünde tanıtıldı) – 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.

ResourceLoader

See ResourceLoader for more information.

Page titles and redirects

Namespaces

Mobile support

Interwiki links and sites

Interwiki cache

See interwiki cache for more information.

Parser

HTML

  • $wgRawHtml Allow raw, unchecked HTML in ‎<html>...‎</html> sections.

Tidy

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

  • $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 – 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.
  • $wgManualRevertSearchRadius (1.36 sürümünde tanıtıldı) – 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 (1.36 sürümünde tanıtıldı) – Maximum depth (revision count) of reverts that will have their reverted edits marked with the mw-reverted change tag.
  • $wgSiteStatsAsyncFactor (1.34 sürümünde kaldırıldı) – Sets how often site statistics should be updated.

User accounts, authentication

Kimlik doğrulama

User rights, access control and monitoring

Erişim

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.

Security

Cookies

Profiling, testing and debugging

Debug

See also: Manual:How to debug

Profiling

Search

Edit user interface

Maintenance Scripts setting

Recent changes, new pages, watchlist and history

See also Help:Son değişiklikler and $wgDefaultUserOptions

Feed

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

Copyright

Import/Export

Extensions

Kategori

Logging

Special pages

Actions

  • $wgActions – Array of allowed values for the "action" parameter for normal pages.

Robot policies

Ajax, Action API and REST API

Ajax

  • $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.27 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 Enable Ajax check for file overwrite, pre-upload.
  • $wgAjaxWatch (1.27 sürümünde kaldırıldı) – Ajax kullanarak sayfaları izlemeyi/izlemeyi kaldırmayı etkinleştirin.
  • $wgRestAPIAdditionalRouteFiles (1.35 sürümünde tanıtıldı) – Additional REST API Route files.
  • $wgUseAjax (1.31 sürümünde kaldırıldı) – Enable AJAX support.

API

Shell and process control

  • $wgPhpCli – Executable name of PHP cli client (php/php5).
  • $wgMaxShellFileSize – Linux altında kabuk işlemleri tarafından oluşturulan maksimum dosya boyutu, KB cinsinden.
  • $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.
  • $wgShellboxSecretKey (1.36 sürümünde tanıtıldı) – The secret key for HMAC verification of Shellbox requests.
  • $wgShellboxUrl (1.36 sürümünde tanıtıldı) (1.37 sürümünde kaldırıldı) – Shell commands can be run on a remote server using Shellbox.
  • $wgShellboxUrls (1.37 sürümünde tanıtıldı) – Shell commands can be run on a remote server using Shellbox.
  • $wgShellCgroup – Limit shell commands memory using linux Cgroups.
  • $wgShellLocale – Locale for LC_ALL.
  • $wgShellRestrictionMethod – Method to use to restrict shell commands

HTTP client

Jobs

Site Özelleştirme

Frontend

  • $wgOOUIEditPage (1.30 sürümünde kaldırıldı) – Whether to use OOjs UI buttons, checkboxes and summary input in the edit form.
  • $wgPreloadJavaScriptMwUtil (1.27 sürümünde kaldırıldı) – Whether to preload the mediawiki.util module as blocking module in the top queue.
  • $wgUsejQueryThree (1.31 sürümünde kaldırıldı) – Whether to use jQuery 3 (with jQuery Migrate) instead of jQuery 1.

Miscellaneous settings

See also