Jump to content

מדריך:הגדרות תצורה

From mediawiki.org
This page is a translated version of the page Manual:Configuration settings and the translation is 22% complete.

This is an index of all supported configuration settings based on the MainConfigSchema.php 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 MainConfigSchema.php. The variable should have some documentation there.

Settings that were removed in MediaWiki 1.39 or older versions 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 configuration settings

הגדרות כלליות

אובייקטים גלובליים

כתובות URL של שרת ונתיבי קבצים

קבצים והעלאות קבצים

יש להגדיר העלאות באופן מיוחד כדי שיהיו מאובטחות.

העלאות משותפות

הגדרות אלו נשמרות לצורך תאימות לאחור, ראה $wgForeignFileRepos עבור ההגדרה החדשה, או $wgUseInstantCommons אם אתה זקוק רק לגישת קריאה לתמונות בויקישיתוף.

סוגי MIME

אזהרה אזהרה: ↑זוהי אינה הגדרת תצורה, אלא משתנה מצב גלובלי. יש להשתמש בו אך ורק על ידי thumb.php !

ראו גם: Manual:MIME type detection

תמונות

  • $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.
  • $wgJpegQuality When scaling a JPEG thumbnail, this is the quality we request from the backend.
  • $wgJpegTran Path to jpegtran, for lossless JPEG rotation.
  • $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.

See also: מדריך:הגדרת העלאות קבצים

DjVu

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

SVG

הגדרות תמונה ממוזערת

אנטי-וירוס

הגדרות דוא"ל

See also User Access: $wgEmailConfirmToEdit

הגדרות התראות דוא"ל (Enotif)

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

הגדרות מסד נתונים

הגדרות מאזן העומסים LoadBalancer

ספציפי ל-MySQL

ספציפי ל-PostgreSQL

  • $wgDBport Database port. Only used by PostgreSQL.

SQLite-specific

Shared DB settings

Content handlers and storage

Performance hacks and limits

Cache

עמוד ראשי: 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/memcached.md 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 Cache TTL for the CDN sent as s-maxage (without ESI) or Surrogate-Control (with ESI).
  • $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 .
  • $wgSquidPurgeUseHostHeader (removed in 1.42)Whether to use a Host header in purge requests sent to the proxy servers configured in $wgSquidServers.
  • $wgUseCdn Enable/disable page view caching.
  • $wgUseESI (deprecated in 1.33)If you run Squid3 with ESI support, enable this.
  • $wgUsePrivateIPs Whether private X-Forwarded-For IPs should be accepted
  • $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

Timezone settings

Language-specific

אנגלית
  • $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

Output

Skins

ResourceLoader

See ResourceLoader for more information.

Page titles and redirects

Namespaces

Mobile support

Interwiki cache

See interwiki cache for more information.

Parser

HTML

  • $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 – שיטה לקביעת אם דף במרחב שם תוכן ייחשב כדף תוכן תקף (ערך).
  • $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

Authentication

User rights, access control and monitoring

Access

Blocking/banning, and some other related settings.

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.

Security

Cookies

Profiling, testing and debugging

Debug

See also: Manual:How to debug

Profiling

Edit user interface

Maintenance Scripts setting

Recent changes, new pages, watchlist and history

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.

Import/Export

Extensions

Category

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

API

Shell and process control

HTTP client

Jobs

Wiki farm

Miscellaneous settings

See also