MediaWiki REL1_29
DefaultSettings.php
Go to the documentation of this file.
1<?php
50if ( !defined( 'MEDIAWIKI' ) ) {
51 echo "This file is part of MediaWiki and is not a valid entry point\n";
52 die( 1 );
53}
54
63
71 'main' => 'GlobalVarConfig::newInstance'
72];
73
78$wgVersion = '1.29.3';
79
83$wgSitename = 'MediaWiki';
84
92
109$wgServer = WebRequest::detectServer();
110
119
126
127/************************************************************************/
142
160$wgUsePathInfo = ( strpos( PHP_SAPI, 'cgi' ) === false ) &&
161 ( strpos( PHP_SAPI, 'apache2filter' ) === false ) &&
162 ( strpos( PHP_SAPI, 'isapi' ) === false );
163
176
179/************************************************************************/
202$wgScript = false;
203
211
219
226
233
239$wgExtensionDirectory = "{$IP}/extensions";
240
246$wgStyleDirectory = "{$IP}/skins";
247
256
262
267
273
278$wgLogo = false;
279
295$wgLogoHD = false;
296
301$wgFavicon = '/favicon.ico';
302
309
319
335
342
351
367
370/************************************************************************/
379
383$wgUploadStashMaxAge = 6 * 3600; // 6 hours
384
389
399
408
414
419
435
518
523
530
541
552 // Fields to make available in the dialog. `true` means that this field is visible, `false` means
553 // that it is hidden. The "Name" field can't be hidden. Note that you also have to add the
554 // matching replacement to the 'filepage' format key below to make use of these.
555 'fields' => [
556 'description' => true,
557 'date' => false,
558 'categories' => false,
559 ],
560 // Suffix of localisation messages used to describe the license under which the uploaded file will
561 // be released. The same value may be set for both 'local' and 'foreign' uploads.
562 'licensemessages' => [
563 // The 'local' messages are used for local uploads on this wiki:
564 // * upload-form-label-own-work-message-generic-local
565 // * upload-form-label-not-own-work-message-generic-local
566 // * upload-form-label-not-own-work-local-generic-local
567 'local' => 'generic-local',
568 // The 'foreign' messages are used for cross-wiki uploads from other wikis to this wiki:
569 // * upload-form-label-own-work-message-generic-foreign
570 // * upload-form-label-not-own-work-message-generic-foreign
571 // * upload-form-label-not-own-work-local-generic-foreign
572 'foreign' => 'generic-foreign',
573 ],
574 // Upload comments to use for 'local' and 'foreign' uploads. This can also be set to a single
575 // string value, in which case it is used for both kinds of uploads. Available replacements:
576 // * $HOST - domain name from which a cross-wiki upload originates
577 // * $PAGENAME - wiki page name from which an upload originates
578 'comment' => [
579 'local' => '',
580 'foreign' => '',
581 ],
582 // Format of the file page wikitext to be generated from the fields input by the user.
583 'format' => [
584 // Wrapper for the whole page. Available replacements:
585 // * $DESCRIPTION - file description, as input by the user (only if the 'description' field is
586 // enabled), wrapped as defined below in the 'description' key
587 // * $DATE - file creation date, as input by the user (only if the 'date' field is enabled)
588 // * $SOURCE - as defined below in the 'ownwork' key, may be extended in the future
589 // * $AUTHOR - linked user name, may be extended in the future
590 // * $LICENSE - as defined below in the 'license' key, may be extended in the future
591 // * $CATEGORIES - file categories wikitext, as input by the user (only if the 'categories'
592 // field is enabled), or if no input, as defined below in the 'uncategorized' key
593 'filepage' => '$DESCRIPTION',
594 // Wrapped for file description. Available replacements:
595 // * $LANGUAGE - source wiki's content language
596 // * $TEXT - input by the user
597 'description' => '$TEXT',
598 'ownwork' => '',
599 'license' => '',
600 'uncategorized' => '',
601 ],
602];
603
641
657
669$wgShowEXIF = function_exists( 'exif_read_data' );
670
677
692
697
702
707
713
718
724
731
738
745
751
761
778$wgMaxUploadSize = 1024 * 1024 * 100; # 100MB
779
787
799
806
819
824
839
846
855$wgRepositoryBaseUrl = "https://commons.wikimedia.org/wiki/File:";
856
865$wgFileExtensions = [ 'png', 'gif', 'jpg', 'jpeg', 'webp' ];
866
873 # HTML may contain cookie-stealing JavaScript and web bugs
874 'html', 'htm', 'js', 'jsb', 'mhtml', 'mht', 'xhtml', 'xht',
875 # PHP scripts may execute arbitrary code on the server
876 'php', 'phtml', 'php3', 'php4', 'php5', 'phps',
877 # Other types that may be interpreted by some servers
878 'shtml', 'jhtml', 'pl', 'py', 'cgi',
879 # May contain harmful executables for Windows victims
880 'exe', 'scr', 'dll', 'msi', 'vbs', 'bat', 'com', 'pif', 'cmd', 'vxd', 'cpl' ];
881
887 # HTML may contain cookie-stealing JavaScript and web bugs
888 'text/html', 'text/javascript', 'text/x-javascript', 'application/x-shellscript',
889 # PHP scripts may execute arbitrary code on the server
890 'application/x-php', 'text/x-php',
891 # Other types that may be interpreted by some servers
892 'text/x-python', 'text/x-perl', 'text/x-bash', 'text/x-sh', 'text/x-csh',
893 # Client-side hazards on Internet Explorer
894 'text/scriptlet', 'application/x-msdownload',
895 # Windows metafile, client-side vulnerability on some systems
896 'application/x-msmetafile',
897];
898
905
912
920
928
933
945 MEDIATYPE_BITMAP, // all bitmap formats
946 MEDIATYPE_AUDIO, // all audio formats
947 MEDIATYPE_VIDEO, // all plain video formats
948 "image/svg+xml", // svg (only needed if inline rendering of svg is not supported)
949 "application/pdf", // PDF files
950 # "application/x-shockwave-flash", //flash/shockwave movie
951];
952
961
970 // the usual case
971 CONTENT_MODEL_WIKITEXT => 'WikitextContentHandler',
972 // dumb version, no syntax highlighting
973 CONTENT_MODEL_JAVASCRIPT => 'JavaScriptContentHandler',
974 // simple implementation, for use by extensions, etc.
975 CONTENT_MODEL_JSON => 'JsonContentHandler',
976 // dumb version, no syntax highlighting
977 CONTENT_MODEL_CSS => 'CssContentHandler',
978 // plain text, for use by extensions, etc.
979 CONTENT_MODEL_TEXT => 'TextContentHandler',
980];
981
988
998
1002$wgImageMagickConvertCommand = '/usr/bin/convert';
1003
1009
1014
1019
1025
1039
1045$wgJpegTran = '/usr/bin/jpegtran';
1046
1067
1072$wgExiv2Command = '/usr/bin/exiv2';
1073
1079$wgExiftool = '/usr/bin/exiftool';
1080
1091 'ImageMagick' =>
1092 '$path/convert -background "#ffffff00" -thumbnail $widthx$height\! $input PNG:$output',
1093 'sodipodi' => '$path/sodipodi -z -w $width -f $input -e $output',
1094 'inkscape' => '$path/inkscape -z -w $width -f $input -e $output',
1095 'batik' => 'java -Djava.awt.headless=true -jar $path/batik-rasterizer.jar -w $width -d '
1096 . '$output $input',
1097 'rsvg' => '$path/rsvg-convert -w $width -h $height -o $output $input',
1098 'imgserv' => '$path/imgserv-wrapper -i svg -o png -w$width $input $output',
1099 'ImagickExt' => [ 'SvgHandler::rasterizeImagickExt' ],
1100];
1101
1105$wgSVGConverter = 'ImageMagick';
1106
1111
1116
1122
1135
1150
1158
1173
1180$wgThumbnailEpoch = '20030516000000';
1181
1189
1202
1211
1216
1223
1230
1266
1267 # setup for clamav
1268 'clamav' => [
1269 'command' => 'clamscan --no-summary ',
1270 'codemap' => [
1271 "0" => AV_NO_VIRUS, # no virus
1272 "1" => AV_VIRUS_FOUND, # virus found
1273 "52" => AV_SCAN_ABORTED, # unsupported file format (probably immune)
1274 "*" => AV_SCAN_FAILED, # else scan failed
1275 ],
1276 'messagepattern' => '/.*?:(.*)/sim',
1277 ],
1278];
1279
1284
1289
1295$wgMimeTypeFile = 'includes/mime.types';
1296
1301$wgMimeInfoFile = 'includes/mime.info';
1302
1315
1322
1328 'http://www.w3.org/2000/svg:svg' => 'image/svg+xml',
1329 'svg' => 'image/svg+xml',
1330 'http://www.lysator.liu.se/~alla/dia/:diagram' => 'application/x-dia-diagram',
1331 'http://www.w3.org/1999/xhtml:html' => 'text/html', // application/xhtml+xml?
1332 'html' => 'text/html', // application/xhtml+xml?
1333];
1334
1344 [ 320, 240 ],
1345 [ 640, 480 ],
1346 [ 800, 600 ],
1347 [ 1024, 768 ],
1348 [ 1280, 1024 ]
1349];
1350
1357 120,
1358 150,
1359 180,
1360 200,
1361 250,
1362 300
1363];
1364
1375
1392
1404
1417
1424
1432
1440
1445 // Default number of images per-row in the gallery. 0 -> Adapt to screensize
1446 'imagesPerRow' => 0,
1447 // Width of the cells containing images in galleries (in "px")
1448 'imageWidth' => 120,
1449 // Height of the cells containing images in galleries (in "px")
1450 'imageHeight' => 120,
1451 // Length to truncate filename to in caption when using "showfilename".
1452 // A value of 'true' will truncate the filename to one line using CSS
1453 // and will be the behaviour after deprecation.
1454 // @deprecated since 1.28
1455 'captionLength' => true,
1456 // Show the filesize in bytes in categories
1457 'showBytes' => true,
1458 'mode' => 'traditional',
1459];
1460
1467
1472
1484
1496
1503
1510
1526
1533
1538
# end of DJvu }
1540
# end of file uploads }
1542
1543/************************************************************************/
1554
1563
1569$wgPasswordSenderName = 'MediaWiki Mail';
1570
1577
1584
1590
1601
1607
1611$wgNewPasswordExpiry = 3600 * 24 * 7;
1612
1617
1623
1628$wgPasswordExpireGrace = 3600 * 24 * 7; // 7 days
1629
1647$wgSMTP = false;
1648
1653
1659
1665
1666// TODO move UPO to preferences probably ?
1667# If set to true, users get a corresponding option in their preferences and can choose to
1668# enable or disable at their discretion
1669# If set to false, the corresponding input form on the user preference page is suppressed
1670# It call this to be a "user-preferences-option (UPO)"
1671
1678
1683
1692
1698
1713
1722
1728
1733
1739
# end of email settings
1741
1742/************************************************************************/
1750$wgDBserver = 'localhost';
1751
1756
1760$wgDBname = 'my_wiki';
1761
1765$wgDBuser = 'wikiuser';
1766
1771
1775$wgDBtype = 'mysql';
1776
1785$wgDBssl = false;
1786
1796
1801
1806
1814
1823
1828
1832$wgDBTableOptions = 'ENGINE=InnoDB';
1833
1841
1846
1851
1878
1883
1887$wgSharedTables = [ 'user', 'user_properties' ];
1888
1894
1950
1961$wgLBFactoryConf = [ 'class' => 'LBFactorySimple' ];
1962
1970
1975
1995
2013
2041
2048
2055
2060
2065
# End of DB settings }
2067
2068/************************************************************************/
2080
2093
2109
2125
2133
# end text storage }
2135
2136/************************************************************************/
2145
2150
2155
2160
2165
2170
2175
2181
2189
# end performance hacks }
2191
2192/************************************************************************/
2206
2225
2233
2241
2248
2258
2273 CACHE_NONE => [ 'class' => 'EmptyBagOStuff', 'reportDupes' => false ],
2274 CACHE_DB => [ 'class' => 'SqlBagOStuff', 'loggroup' => 'SQLBagOStuff' ],
2275
2276 CACHE_ANYTHING => [ 'factory' => 'ObjectCache::newAnything' ],
2277 CACHE_ACCEL => [ 'factory' => 'ObjectCache::getLocalServerInstance' ],
2278 CACHE_MEMCACHED => [ 'class' => 'MemcachedPhpBagOStuff', 'loggroup' => 'memcached' ],
2279
2280 'db-replicated' => [
2281 'class' => 'ReplicatedBagOStuff',
2282 'readFactory' => [
2283 'class' => 'SqlBagOStuff',
2284 'args' => [ [ 'slaveOnly' => true ] ]
2285 ],
2286 'writeFactory' => [
2287 'class' => 'SqlBagOStuff',
2288 'args' => [ [ 'slaveOnly' => false ] ]
2289 ],
2290 'loggroup' => 'SQLBagOStuff',
2291 'reportDupes' => false
2292 ],
2293
2294 'apc' => [ 'class' => 'APCBagOStuff', 'reportDupes' => false ],
2295 'apcu' => [ 'class' => 'APCUBagOStuff', 'reportDupes' => false ],
2296 'xcache' => [ 'class' => 'XCacheBagOStuff', 'reportDupes' => false ],
2297 'wincache' => [ 'class' => 'WinCacheBagOStuff', 'reportDupes' => false ],
2298 'memcached-php' => [ 'class' => 'MemcachedPhpBagOStuff', 'loggroup' => 'memcached' ],
2299 'memcached-pecl' => [ 'class' => 'MemcachedPeclBagOStuff', 'loggroup' => 'memcached' ],
2300 'hash' => [ 'class' => 'HashBagOStuff', 'reportDupes' => false ],
2301];
2302
2319
2336 CACHE_NONE => [
2337 'class' => 'WANObjectCache',
2338 'cacheId' => CACHE_NONE,
2339 'channels' => []
2340 ]
2341 /* Example of a simple single data-center cache:
2342 'memcached-php' => [
2343 'class' => 'WANObjectCache',
2344 'cacheId' => 'memcached-php',
2345 'channels' => [ 'purge' => 'wancache-main-memcached-purge' ]
2346 ]
2347 */
2348];
2349
2362
2377$wgMainStash = 'db-replicated';
2378
2384
2389
2394
2399
2417
2424
2429
2433$wgMemCachedServers = [ '127.0.0.1:11211' ];
2434
2440
2445
2458
2466
2490 'class' => 'LocalisationCache',
2491 'store' => 'detect',
2492 'storeClass' => false,
2493 'storeDirectory' => false,
2494 'manualRecache' => false,
2495];
2496
2501
2510$wgCacheEpoch = '20030516000000';
2511
2517
2526
2533
2541
2547
2553
2564
2569
2577
2585
2596
2613
# end of cache settings
2615
2616/************************************************************************/
2634
2639
2646
2656
2666
2675
2682
2698
2705
2712
2722
2730
2751
2804
2810
2815
# end of HTTP proxy settings
2817
2818/************************************************************************/
2840
2846
2857
2862
2867
2882
2887
2902 'bh' => 'bho', // Bihari language family
2903 'no' => 'nb', // Norwegian language family
2904 'simple' => 'en', // Simple English
2905];
2906
2914
2924
2935
2947
2959
2976 '/^Mozilla\/2\.[^ ]+ [^(]*?\‍((?!compatible).*; [UIN]/',
2977 '/^Mozilla\/3\.[^ ]+ [^(]*?\‍((?!compatible).*; [UIN]/',
2978 '/^Mozilla\/4\.[^ ]+ [^(]*?\‍((?!compatible).*; [UIN]/',
2979
2993 '/^Mozilla\/4\.0 \‍(compatible; MSIE \d+\.\d+; Mac_PowerPC\‍)/',
2994
2999 '/^Mozilla\/4\.0 \‍(compatible; MSIE 6.0; Windows NT 5.0; Google Wireless Transcoder;\‍)/'
3000];
3001
3015
3021
3027
3033
3038
3043
3048
3053
3058
3069
3088
3095
3116
3141
3152
# End of language/charset settings
3154
3155/*************************************************************************/
3163$wgMimeType = 'text/html';
3164
3173
3182
3191
3201
3210
3218
3226
3235
3251
3260
3265
3271
3277
3283$wgFallbackSkin = 'fallback';
3284
3291
3296
3303
3310
3317
3322
3327
3333
3354
3366
3371
3382
3414 "copyright" => [
3415 "copyright" => [], // placeholder for the built in copyright icon
3416 ],
3417 "poweredby" => [
3418 "mediawiki" => [
3419 // Defaults to point at
3420 // "$wgResourceBasePath/resources/assets/poweredby_mediawiki_88x31.png"
3421 // plus srcset for 1.5x, 2x resolution variants.
3422 "src" => null,
3423 "url" => "//www.mediawiki.org/",
3424 "alt" => "Powered by MediaWiki",
3425 ]
3426 ],
3427];
3428
3436
3441
3454
3465
3473
3483
# End of output format settings }
3485
3486/*************************************************************************/
3509
3599
3611
3617
3635 'versioned' => [
3636 'server' => 30 * 24 * 60 * 60, // 30 days
3637 'client' => 30 * 24 * 60 * 60, // 30 days
3638 ],
3639 'unversioned' => [
3640 'server' => 5 * 60, // 5 minutes
3641 'client' => 5 * 60, // 5 minutes
3642 ],
3643];
3644
3651
3659
3668
3675
3685
3712
3727
3736
3746
3777 'deviceWidthTablet' => '720px',
3778];
3779
3794 "$IP/resources/src/mediawiki.less/",
3795];
3796
3802
3810
3823
# End of ResourceLoader settings }
3825
3826/*************************************************************************/
3836
3845
3873
3881
3901
3929$wgLegalTitleChars = " %!\"$&'()*,\\-.\\/0-9:;=?@A-Z\\\\^_`a-z~\\x80-\\xFF+";
3930
3937
3947
3952
3977
3985
3990
# end of Interwiki caching settings.
3992
4001$wgSitesCacheFile = false;
4002
# end of SiteStore caching settings.
4004
4020$wgRedirectSources = false;
4021
4030
4046
4052 NS_TALK => true,
4053 NS_USER => true,
4054 NS_USER_TALK => true,
4055 NS_PROJECT => true,
4056 NS_PROJECT_TALK => true,
4057 NS_FILE_TALK => true,
4058 NS_MEDIAWIKI => true,
4059 NS_MEDIAWIKI_TALK => true,
4060 NS_TEMPLATE => true,
4061 NS_TEMPLATE_TALK => true,
4062 NS_HELP => true,
4063 NS_HELP_TALK => true,
4065];
4066
4083
4091
4100
4107
4118$wgInvalidRedirectTargets = [ 'Filepath', 'Mypage', 'Mytalk', 'Redirect' ];
4119
# End of title and interwiki settings }
4121
4122/************************************************************************/
4150 'class' => 'Parser',
4151 # 'preprocessorClass' => 'Preprocessor_Hash',
4152];
4153
4158
4164
4175
4183
4188
4200 'bitcoin:', 'ftp://', 'ftps://', 'geo:', 'git://', 'gopher://', 'http://',
4201 'https://', 'irc://', 'ircs://', 'magnet:', 'mailto:', 'mms://', 'news:',
4202 'nntp://', 'redis://', 'sftp://', 'sip:', 'sips:', 'sms:', 'ssh://',
4203 'svn://', 'tel:', 'telnet://', 'urn:', 'worldwind://', 'xmpp:', '//'
4204];
4205
4210
4215
4229
4240
4250
4276
4282
4287$wgTidyBin = 'tidy';
4288
4293$wgTidyConf = $IP . '/includes/tidy/tidy.conf';
4294
4300
4305$wgTidyInternal = extension_loaded( 'tidy' );
4306
4312
4319
4330
4338
4344
4358$wgNoFollowDomainExceptions = [ 'mediawiki.org' ];
4359
4364
4371
4377
4383
4388
4394
4402 'ISBN' => false,
4403 'PMID' => false,
4404 'RFC' => false
4405];
4406
# end of parser settings }
4408
4409/************************************************************************/
4432
4441
# End of statistics }
4443
4444/************************************************************************/
4455 'local' => [ 'class' => 'LocalIdLookup' ],
4456];
4457
4463
4488 'policies' => [
4489 'bureaucrat' => [
4490 'MinimalPasswordLength' => 8,
4491 'MinimumPasswordLengthToLogin' => 1,
4492 'PasswordCannotMatchUsername' => true,
4493 'PasswordCannotBePopular' => 25,
4494 ],
4495 'sysop' => [
4496 'MinimalPasswordLength' => 8,
4497 'MinimumPasswordLengthToLogin' => 1,
4498 'PasswordCannotMatchUsername' => true,
4499 'PasswordCannotBePopular' => 25,
4500 ],
4501 'bot' => [
4502 'MinimalPasswordLength' => 8,
4503 'MinimumPasswordLengthToLogin' => 1,
4504 'PasswordCannotMatchUsername' => true,
4505 ],
4506 'default' => [
4507 'MinimalPasswordLength' => 1,
4508 'PasswordCannotMatchUsername' => true,
4509 'PasswordCannotMatchBlacklist' => true,
4510 'MaximalPasswordLength' => 4096,
4511 ],
4512 ],
4513 'checks' => [
4514 'MinimalPasswordLength' => 'PasswordPolicyChecks::checkMinimalPasswordLength',
4515 'MinimumPasswordLengthToLogin' => 'PasswordPolicyChecks::checkMinimumPasswordLengthToLogin',
4516 'PasswordCannotMatchUsername' => 'PasswordPolicyChecks::checkPasswordCannotMatchUsername',
4517 'PasswordCannotMatchBlacklist' => 'PasswordPolicyChecks::checkPasswordCannotMatchBlacklist',
4518 'MaximalPasswordLength' => 'PasswordPolicyChecks::checkMaximalPasswordLength',
4519 'PasswordCannotBePopular' => 'PasswordPolicyChecks::checkPopularPasswordBlacklist'
4520 ],
4521];
4522
4543
4549 'preauth' => [
4550 MediaWiki\Auth\LegacyHookPreAuthenticationProvider::class => [
4551 'class' => MediaWiki\Auth\LegacyHookPreAuthenticationProvider::class,
4552 'sort' => 0,
4553 ],
4554 MediaWiki\Auth\ThrottlePreAuthenticationProvider::class => [
4555 'class' => MediaWiki\Auth\ThrottlePreAuthenticationProvider::class,
4556 'sort' => 0,
4557 ],
4558 ],
4559 'primaryauth' => [
4560 // TemporaryPasswordPrimaryAuthenticationProvider should come before
4561 // any other PasswordAuthenticationRequest-based
4562 // PrimaryAuthenticationProvider (or at least any that might return
4563 // FAIL rather than ABSTAIN for a wrong password), or password reset
4564 // won't work right. Do not remove this (or change the key) or
4565 // auto-configuration of other such providers in extensions will
4566 // probably auto-insert themselves in the wrong place.
4567 MediaWiki\Auth\TemporaryPasswordPrimaryAuthenticationProvider::class => [
4568 'class' => MediaWiki\Auth\TemporaryPasswordPrimaryAuthenticationProvider::class,
4569 'args' => [ [
4570 // Fall through to LocalPasswordPrimaryAuthenticationProvider
4571 'authoritative' => false,
4572 ] ],
4573 'sort' => 0,
4574 ],
4575 MediaWiki\Auth\LocalPasswordPrimaryAuthenticationProvider::class => [
4576 'class' => MediaWiki\Auth\LocalPasswordPrimaryAuthenticationProvider::class,
4577 'args' => [ [
4578 // Last one should be authoritative, or else the user will get
4579 // a less-than-helpful error message (something like "supplied
4580 // authentication info not supported" rather than "wrong
4581 // password") if it too fails.
4582 'authoritative' => true,
4583 ] ],
4584 'sort' => 100,
4585 ],
4586 ],
4587 'secondaryauth' => [
4588 MediaWiki\Auth\CheckBlocksSecondaryAuthenticationProvider::class => [
4589 'class' => MediaWiki\Auth\CheckBlocksSecondaryAuthenticationProvider::class,
4590 'sort' => 0,
4591 ],
4592 MediaWiki\Auth\ResetPasswordSecondaryAuthenticationProvider::class => [
4593 'class' => MediaWiki\Auth\ResetPasswordSecondaryAuthenticationProvider::class,
4594 'sort' => 100,
4595 ],
4596 // Linking during login is experimental, enable at your own risk - T134952
4597 // MediaWiki\Auth\ConfirmLinkSecondaryAuthenticationProvider::class => [
4598 // 'class' => MediaWiki\Auth\ConfirmLinkSecondaryAuthenticationProvider::class,
4599 // 'sort' => 100,
4600 // ],
4601 MediaWiki\Auth\EmailNotificationSecondaryAuthenticationProvider::class => [
4602 'class' => MediaWiki\Auth\EmailNotificationSecondaryAuthenticationProvider::class,
4603 'sort' => 200,
4604 ],
4605 ],
4606];
4607
4647 'default' => 300,
4648];
4649
4666 'default' => true,
4667];
4668
4679 \MediaWiki\Auth\TemporaryPasswordAuthenticationRequest::class
4680];
4681
4692 \MediaWiki\Auth\PasswordAuthenticationRequest::class,
4693];
4694
4700
4707
4720
4727
4734
4755 'A' => [
4756 'class' => 'MWOldPassword',
4757 ],
4758 'B' => [
4759 'class' => 'MWSaltedPassword',
4760 ],
4761 'pbkdf2-legacyA' => [
4762 'class' => 'LayeredParameterizedPassword',
4763 'types' => [
4764 'A',
4765 'pbkdf2',
4766 ],
4767 ],
4768 'pbkdf2-legacyB' => [
4769 'class' => 'LayeredParameterizedPassword',
4770 'types' => [
4771 'B',
4772 'pbkdf2',
4773 ],
4774 ],
4775 'bcrypt' => [
4776 'class' => 'BcryptPassword',
4777 'cost' => 9,
4778 ],
4779 'pbkdf2' => [
4780 'class' => 'Pbkdf2Password',
4781 'algo' => 'sha512',
4782 'cost' => '30000',
4783 'length' => '64',
4784 ],
4785];
4786
4794 'username' => true,
4795 'email' => true,
4796];
4797
4802
4808
4814 'MediaWiki default', // Default 'Main Page' and MediaWiki: message pages
4815 'Conversion script', // Used for the old Wikipedia software upgrade
4816 'Maintenance script', // Maintenance scripts which perform editing, image import script
4817 'Template namespace initialisation script', // Used in 1.2->1.3 upgrade
4818 'ScriptImporter', // Default user name used by maintenance/importSiteScripts.php
4819 'Unknown user', // Used in WikiImporter when importing revisions with no author
4820 'msg:double-redirect-fixer', // Automatic double redirect fix
4821 'msg:usermessage-editor', // Default user for leaving user messages
4822 'msg:proxyblocker', // For $wgProxyList and Special:Blockme (removed in 1.22)
4823 'msg:spambot_username', // Used by cleanupSpam.php
4824 'msg:autochange-username', // Used by anon category RC entries (parser functions, Lua & purges)
4825];
4826
4834 'ccmeonemails' => 0,
4835 'cols' => 80, // @deprecated since 1.29 No longer used in core
4836 'date' => 'default',
4837 'diffonly' => 0,
4838 'disablemail' => 0,
4839 'editfont' => 'default',
4840 'editondblclick' => 0,
4841 'editsectiononrightclick' => 0,
4842 'enotifminoredits' => 0,
4843 'enotifrevealaddr' => 0,
4844 'enotifusertalkpages' => 1,
4845 'enotifwatchlistpages' => 1,
4846 'extendwatchlist' => 1,
4847 'fancysig' => 0,
4848 'forceeditsummary' => 0,
4849 'gender' => 'unknown',
4850 'hideminor' => 0,
4851 'hidepatrolled' => 0,
4852 'hidecategorization' => 1,
4853 'imagesize' => 2,
4854 'math' => 1,
4855 'minordefault' => 0,
4856 'newpageshidepatrolled' => 0,
4857 'nickname' => '',
4858 'norollbackdiff' => 0,
4859 'numberheadings' => 0,
4860 'previewonfirst' => 0,
4861 'previewontop' => 1,
4862 'rcdays' => 7,
4863 'rcenhancedfilters' => 0,
4864 'rclimit' => 50,
4865 'rows' => 25, // @deprecated since 1.29 No longer used in core
4866 'showhiddencats' => 0,
4867 'shownumberswatching' => 1,
4868 'showtoolbar' => 1,
4869 'skin' => false,
4870 'stubthreshold' => 0,
4871 'thumbsize' => 5,
4872 'underline' => 2,
4873 'uselivepreview' => 0,
4874 'usenewrc' => 1,
4875 'watchcreations' => 1,
4876 'watchdefault' => 1,
4877 'watchdeletion' => 0,
4878 'watchuploads' => 1,
4879 'watchlistdays' => 3.0,
4880 'watchlisthideanons' => 0,
4881 'watchlisthidebots' => 0,
4882 'watchlisthideliu' => 0,
4883 'watchlisthideminor' => 0,
4884 'watchlisthideown' => 0,
4885 'watchlisthidepatrolled' => 0,
4886 'watchlisthidecategorization' => 1,
4887 'watchlistreloadautomatically' => 0,
4888 'watchmoves' => 0,
4889 'watchrollback' => 0,
4890 'wllimit' => 250,
4891 'useeditwarning' => 1,
4892 'prefershttps' => 1,
4893];
4894
4899
4906
4917
4925
4937
4947 MediaWiki\Session\CookieSessionProvider::class => [
4948 'class' => MediaWiki\Session\CookieSessionProvider::class,
4949 'args' => [ [
4950 'priority' => 30,
4951 'callUserSetCookiesHook' => true,
4952 ] ],
4953 ],
4954 MediaWiki\Session\BotPasswordSessionProvider::class => [
4955 'class' => MediaWiki\Session\BotPasswordSessionProvider::class,
4956 'args' => [ [
4957 'priority' => 75,
4958 ] ],
4959 ],
4960];
4961
# end user accounts }
4963
4964/************************************************************************/
4973
4978
4983
4999 'IPv4' => 16, # Blocks larger than a /16 (64k addresses) will not be allowed
5000 'IPv6' => 19,
5001];
5002
5011
5030
5058
5064
5070
5096
5098// Implicit group for all visitors
5099$wgGroupPermissions['*']['createaccount'] = true;
5100$wgGroupPermissions['*']['read'] = true;
5101$wgGroupPermissions['*']['edit'] = true;
5102$wgGroupPermissions['*']['createpage'] = true;
5103$wgGroupPermissions['*']['createtalk'] = true;
5104$wgGroupPermissions['*']['writeapi'] = true;
5105$wgGroupPermissions['*']['editmyusercss'] = true;
5106$wgGroupPermissions['*']['editmyuserjs'] = true;
5107$wgGroupPermissions['*']['viewmywatchlist'] = true;
5108$wgGroupPermissions['*']['editmywatchlist'] = true;
5109$wgGroupPermissions['*']['viewmyprivateinfo'] = true;
5110$wgGroupPermissions['*']['editmyprivateinfo'] = true;
5111$wgGroupPermissions['*']['editmyoptions'] = true;
5112# $wgGroupPermissions['*']['patrolmarks'] = false; // let anons see what was patrolled
5113
5114// Implicit group for all logged-in accounts
5115$wgGroupPermissions['user']['move'] = true;
5116$wgGroupPermissions['user']['move-subpages'] = true;
5117$wgGroupPermissions['user']['move-rootuserpages'] = true; // can move root userpages
5118$wgGroupPermissions['user']['move-categorypages'] = true;
5119$wgGroupPermissions['user']['movefile'] = true;
5120$wgGroupPermissions['user']['read'] = true;
5121$wgGroupPermissions['user']['edit'] = true;
5122$wgGroupPermissions['user']['createpage'] = true;
5123$wgGroupPermissions['user']['createtalk'] = true;
5124$wgGroupPermissions['user']['writeapi'] = true;
5125$wgGroupPermissions['user']['upload'] = true;
5126$wgGroupPermissions['user']['reupload'] = true;
5127$wgGroupPermissions['user']['reupload-shared'] = true;
5128$wgGroupPermissions['user']['minoredit'] = true;
5129$wgGroupPermissions['user']['purge'] = true;
5130$wgGroupPermissions['user']['sendemail'] = true;
5131$wgGroupPermissions['user']['applychangetags'] = true;
5132$wgGroupPermissions['user']['changetags'] = true;
5133$wgGroupPermissions['user']['editcontentmodel'] = true;
5134
5135// Implicit group for accounts that pass $wgAutoConfirmAge
5136$wgGroupPermissions['autoconfirmed']['autoconfirmed'] = true;
5137$wgGroupPermissions['autoconfirmed']['editsemiprotected'] = true;
5138
5139// Users with bot privilege can have their edits hidden
5140// from various log pages by default
5141$wgGroupPermissions['bot']['bot'] = true;
5142$wgGroupPermissions['bot']['autoconfirmed'] = true;
5143$wgGroupPermissions['bot']['editsemiprotected'] = true;
5144$wgGroupPermissions['bot']['nominornewtalk'] = true;
5145$wgGroupPermissions['bot']['autopatrol'] = true;
5146$wgGroupPermissions['bot']['suppressredirect'] = true;
5147$wgGroupPermissions['bot']['apihighlimits'] = true;
5148$wgGroupPermissions['bot']['writeapi'] = true;
5149
5150// Most extra permission abilities go to this group
5151$wgGroupPermissions['sysop']['block'] = true;
5152$wgGroupPermissions['sysop']['createaccount'] = true;
5153$wgGroupPermissions['sysop']['delete'] = true;
5154// can be separately configured for pages with > $wgDeleteRevisionsLimit revs
5155$wgGroupPermissions['sysop']['bigdelete'] = true;
5156// can view deleted history entries, but not see or restore the text
5157$wgGroupPermissions['sysop']['deletedhistory'] = true;
5158// can view deleted revision text
5159$wgGroupPermissions['sysop']['deletedtext'] = true;
5160$wgGroupPermissions['sysop']['undelete'] = true;
5161$wgGroupPermissions['sysop']['editinterface'] = true;
5162$wgGroupPermissions['sysop']['editusercss'] = true;
5163$wgGroupPermissions['sysop']['edituserjs'] = true;
5164$wgGroupPermissions['sysop']['import'] = true;
5165$wgGroupPermissions['sysop']['importupload'] = true;
5166$wgGroupPermissions['sysop']['move'] = true;
5167$wgGroupPermissions['sysop']['move-subpages'] = true;
5168$wgGroupPermissions['sysop']['move-rootuserpages'] = true;
5169$wgGroupPermissions['sysop']['move-categorypages'] = true;
5170$wgGroupPermissions['sysop']['patrol'] = true;
5171$wgGroupPermissions['sysop']['autopatrol'] = true;
5172$wgGroupPermissions['sysop']['protect'] = true;
5173$wgGroupPermissions['sysop']['editprotected'] = true;
5174$wgGroupPermissions['sysop']['rollback'] = true;
5175$wgGroupPermissions['sysop']['upload'] = true;
5176$wgGroupPermissions['sysop']['reupload'] = true;
5177$wgGroupPermissions['sysop']['reupload-shared'] = true;
5178$wgGroupPermissions['sysop']['unwatchedpages'] = true;
5179$wgGroupPermissions['sysop']['autoconfirmed'] = true;
5180$wgGroupPermissions['sysop']['editsemiprotected'] = true;
5181$wgGroupPermissions['sysop']['ipblock-exempt'] = true;
5182$wgGroupPermissions['sysop']['blockemail'] = true;
5183$wgGroupPermissions['sysop']['markbotedits'] = true;
5184$wgGroupPermissions['sysop']['apihighlimits'] = true;
5185$wgGroupPermissions['sysop']['browsearchive'] = true;
5186$wgGroupPermissions['sysop']['noratelimit'] = true;
5187$wgGroupPermissions['sysop']['movefile'] = true;
5188$wgGroupPermissions['sysop']['unblockself'] = true;
5189$wgGroupPermissions['sysop']['suppressredirect'] = true;
5190# $wgGroupPermissions['sysop']['pagelang'] = true;
5191# $wgGroupPermissions['sysop']['upload_by_url'] = true;
5192$wgGroupPermissions['sysop']['mergehistory'] = true;
5193$wgGroupPermissions['sysop']['managechangetags'] = true;
5194$wgGroupPermissions['sysop']['deletechangetags'] = true;
5195
5196// Permission to change users' group assignments
5197$wgGroupPermissions['bureaucrat']['userrights'] = true;
5198$wgGroupPermissions['bureaucrat']['noratelimit'] = true;
5199// Permission to change users' groups assignments across wikis
5200# $wgGroupPermissions['bureaucrat']['userrights-interwiki'] = true;
5201// Permission to export pages including linked pages regardless of $wgExportMaxLinkDepth
5202# $wgGroupPermissions['bureaucrat']['override-export-depth'] = true;
5203
5204# $wgGroupPermissions['sysop']['deletelogentry'] = true;
5205# $wgGroupPermissions['sysop']['deleterevision'] = true;
5206// To hide usernames from users and Sysops
5207# $wgGroupPermissions['suppress']['hideuser'] = true;
5208// To hide revisions/log items from users and Sysops
5209# $wgGroupPermissions['suppress']['suppressrevision'] = true;
5210// To view revisions/log items hidden from users and Sysops
5211# $wgGroupPermissions['suppress']['viewsuppressed'] = true;
5212// For private suppression log access
5213# $wgGroupPermissions['suppress']['suppressionlog'] = true;
5214
5221# $wgGroupPermissions['developer']['siteadmin'] = true;
5222
5235
5239$wgImplicitGroups = [ '*', 'user', 'autoconfirmed' ];
5240
5263
5268
5276$wgRestrictionTypes = [ 'create', 'edit', 'move', 'upload' ];
5277
5289$wgRestrictionLevels = [ '', 'autoconfirmed', 'sysop' ];
5290
5301
5315
5324
5335
5357
5368
5427 'autoconfirmed' => [ '&',
5430 ],
5431];
5432
5452 'onEdit' => [],
5453];
5454
5460
5484
5489
5495
5501
5510
5533 'count' => 0,
5534 'seconds' => 86400,
5535] ];
5536
5549
5554
5561
5585$wgDnsBlacklistUrls = [ 'http.dnsbl.sorbs.net.' ];
5586
5592
5601
5608
5645 // Page edits
5646 'edit' => [
5647 'ip' => [ 8, 60 ],
5648 'newbie' => [ 8, 60 ],
5649 'user' => [ 90, 60 ],
5650 ],
5651 // Page moves
5652 'move' => [
5653 'newbie' => [ 2, 120 ],
5654 'user' => [ 8, 60 ],
5655 ],
5656 // File uploads
5657 'upload' => [
5658 'ip' => [ 8, 60 ],
5659 'newbie' => [ 8, 60 ],
5660 ],
5661 // Page rollbacks
5662 'rollback' => [
5663 'user' => [ 10, 60 ],
5664 'newbie' => [ 5, 120 ]
5665 ],
5666 // Triggering password resets emails
5667 'mailpassword' => [
5668 'ip' => [ 5, 3600 ],
5669 ],
5670 // Emailing other users using MediaWiki
5671 'emailuser' => [
5672 'ip' => [ 5, 86400 ],
5673 'newbie' => [ 5, 86400 ],
5674 'user' => [ 20, 86400 ],
5675 ],
5676 // Purging pages
5677 'purge' => [
5678 'ip' => [ 30, 60 ],
5679 'user' => [ 30, 60 ],
5680 ],
5681 // Purges of link tables
5682 'linkpurge' => [
5683 'ip' => [ 30, 60 ],
5684 'user' => [ 30, 60 ],
5685 ],
5686 // Files rendered via thumb.php or thumb_handler.php
5687 'renderfile' => [
5688 'ip' => [ 700, 30 ],
5689 'user' => [ 700, 30 ],
5690 ],
5691 // Same as above but for non-standard thumbnails
5692 'renderfile-nonstandard' => [
5693 'ip' => [ 70, 30 ],
5694 'user' => [ 70, 30 ],
5695 ],
5696 // Stashing edits into cache before save
5697 'stashedit' => [
5698 'ip' => [ 30, 60 ],
5699 'newbie' => [ 30, 60 ],
5700 ],
5701 // Adding or removing change tags
5702 'changetag' => [
5703 'ip' => [ 8, 60 ],
5704 'newbie' => [ 8, 60 ],
5705 ],
5706 // Changing the content model of a page
5707 'editcontentmodel' => [
5708 'newbie' => [ 2, 120 ],
5709 'user' => [ 8, 60 ],
5710 ],
5711];
5712
5718
5725
5731
5745 // Short term limit
5746 [ 'count' => 5, 'seconds' => 300 ],
5747 // Long term limit. We need to balance the risk
5748 // of somebody using this as a DoS attack to lock someone
5749 // out of their account, and someone doing a brute force attack.
5750 [ 'count' => 150, 'seconds' => 60*60*48 ],
5751];
5752
5764
5765// @TODO: clean up grants
5766// @TODO: auto-include read/editsemiprotected rights?
5767
5768$wgGrantPermissions['basic']['autoconfirmed'] = true;
5769$wgGrantPermissions['basic']['autopatrol'] = true;
5770$wgGrantPermissions['basic']['editsemiprotected'] = true;
5771$wgGrantPermissions['basic']['ipblock-exempt'] = true;
5772$wgGrantPermissions['basic']['nominornewtalk'] = true;
5773$wgGrantPermissions['basic']['patrolmarks'] = true;
5774$wgGrantPermissions['basic']['purge'] = true;
5775$wgGrantPermissions['basic']['read'] = true;
5776$wgGrantPermissions['basic']['skipcaptcha'] = true;
5777$wgGrantPermissions['basic']['writeapi'] = true;
5778
5779$wgGrantPermissions['highvolume']['bot'] = true;
5780$wgGrantPermissions['highvolume']['apihighlimits'] = true;
5781$wgGrantPermissions['highvolume']['noratelimit'] = true;
5782$wgGrantPermissions['highvolume']['markbotedits'] = true;
5783
5784$wgGrantPermissions['editpage']['edit'] = true;
5785$wgGrantPermissions['editpage']['minoredit'] = true;
5786$wgGrantPermissions['editpage']['applychangetags'] = true;
5787$wgGrantPermissions['editpage']['changetags'] = true;
5788
5789$wgGrantPermissions['editprotected'] = $wgGrantPermissions['editpage'];
5790$wgGrantPermissions['editprotected']['editprotected'] = true;
5791
5792$wgGrantPermissions['editmycssjs'] = $wgGrantPermissions['editpage'];
5793$wgGrantPermissions['editmycssjs']['editmyusercss'] = true;
5794$wgGrantPermissions['editmycssjs']['editmyuserjs'] = true;
5795
5796$wgGrantPermissions['editmyoptions']['editmyoptions'] = true;
5797
5798$wgGrantPermissions['editinterface'] = $wgGrantPermissions['editpage'];
5799$wgGrantPermissions['editinterface']['editinterface'] = true;
5800$wgGrantPermissions['editinterface']['editusercss'] = true;
5801$wgGrantPermissions['editinterface']['edituserjs'] = true;
5802
5803$wgGrantPermissions['createeditmovepage'] = $wgGrantPermissions['editpage'];
5804$wgGrantPermissions['createeditmovepage']['createpage'] = true;
5805$wgGrantPermissions['createeditmovepage']['createtalk'] = true;
5806$wgGrantPermissions['createeditmovepage']['move'] = true;
5807$wgGrantPermissions['createeditmovepage']['move-rootuserpages'] = true;
5808$wgGrantPermissions['createeditmovepage']['move-subpages'] = true;
5809$wgGrantPermissions['createeditmovepage']['move-categorypages'] = true;
5810
5811$wgGrantPermissions['uploadfile']['upload'] = true;
5812$wgGrantPermissions['uploadfile']['reupload-own'] = true;
5813
5814$wgGrantPermissions['uploadeditmovefile'] = $wgGrantPermissions['uploadfile'];
5815$wgGrantPermissions['uploadeditmovefile']['reupload'] = true;
5816$wgGrantPermissions['uploadeditmovefile']['reupload-shared'] = true;
5817$wgGrantPermissions['uploadeditmovefile']['upload_by_url'] = true;
5818$wgGrantPermissions['uploadeditmovefile']['movefile'] = true;
5819$wgGrantPermissions['uploadeditmovefile']['suppressredirect'] = true;
5820
5821$wgGrantPermissions['patrol']['patrol'] = true;
5822
5823$wgGrantPermissions['rollback']['rollback'] = true;
5824
5825$wgGrantPermissions['blockusers']['block'] = true;
5826$wgGrantPermissions['blockusers']['blockemail'] = true;
5827
5828$wgGrantPermissions['viewdeleted']['browsearchive'] = true;
5829$wgGrantPermissions['viewdeleted']['deletedhistory'] = true;
5830$wgGrantPermissions['viewdeleted']['deletedtext'] = true;
5831
5832$wgGrantPermissions['viewrestrictedlogs']['suppressionlog'] = true;
5833
5835 $wgGrantPermissions['viewdeleted'];
5836$wgGrantPermissions['delete']['delete'] = true;
5837$wgGrantPermissions['delete']['bigdelete'] = true;
5838$wgGrantPermissions['delete']['deletelogentry'] = true;
5839$wgGrantPermissions['delete']['deleterevision'] = true;
5840$wgGrantPermissions['delete']['undelete'] = true;
5841
5842$wgGrantPermissions['protect'] = $wgGrantPermissions['editprotected'];
5843$wgGrantPermissions['protect']['protect'] = true;
5844
5845$wgGrantPermissions['viewmywatchlist']['viewmywatchlist'] = true;
5846
5847$wgGrantPermissions['editmywatchlist']['editmywatchlist'] = true;
5848
5849$wgGrantPermissions['sendemail']['sendemail'] = true;
5850
5851$wgGrantPermissions['createaccount']['createaccount'] = true;
5852
5853$wgGrantPermissions['privateinfo']['viewmyprivateinfo'] = true;
5854
5860 // Hidden grants are implicitly present
5861 'basic' => 'hidden',
5862
5863 'editpage' => 'page-interaction',
5864 'createeditmovepage' => 'page-interaction',
5865 'editprotected' => 'page-interaction',
5866 'patrol' => 'page-interaction',
5867
5868 'uploadfile' => 'file-interaction',
5869 'uploadeditmovefile' => 'file-interaction',
5870
5871 'sendemail' => 'email',
5872
5873 'viewmywatchlist' => 'watchlist-interaction',
5874 'editviewmywatchlist' => 'watchlist-interaction',
5875
5876 'editmycssjs' => 'customization',
5877 'editmyoptions' => 'customization',
5878
5879 'editinterface' => 'administration',
5880 'rollback' => 'administration',
5881 'blockusers' => 'administration',
5882 'delete' => 'administration',
5883 'viewdeleted' => 'administration',
5884 'viewrestrictedlogs' => 'administration',
5885 'protect' => 'administration',
5886 'createaccount' => 'administration',
5887
5888 'highvolume' => 'high-volume',
5889
5890 'privateinfo' => 'private-information',
5891];
5892
5898
5905
5915
# end of user rights settings
5917
5918/************************************************************************/
5927
5938
# end of proxy scanner settings
5940
5941/************************************************************************/
5950
5958
5964
5970
5978
5986
5993
6000
6005
6010
6019
# end of cookie settings }
6021
6022/************************************************************************/
6034
# end LaTeX }
6036
6037/************************************************************************/
6051
6056
6063
6070
6080
6090
6097 // HTTP GET/HEAD requests.
6098 // Master queries should not happen on GET requests
6099 'GET' => [
6100 'masterConns' => 0,
6101 'writes' => 0,
6102 'readQueryTime' => 5
6103 ],
6104 // HTTP POST requests.
6105 // Master reads and writes will happen for a subset of these.
6106 'POST' => [
6107 'readQueryTime' => 5,
6108 'writeQueryTime' => 1,
6109 'maxAffected' => 1000
6110 ],
6111 'POST-nonwrite' => [
6112 'masterConns' => 0,
6113 'writes' => 0,
6114 'readQueryTime' => 5
6115 ],
6116 // Deferred updates that run after HTTP response is sent
6117 'PostSend' => [
6118 'readQueryTime' => 5,
6119 'writeQueryTime' => 1,
6120 'maxAffected' => 1000
6121 ],
6122 // Background job runner
6123 'JobRunner' => [
6124 'readQueryTime' => 30,
6125 'writeQueryTime' => 5,
6126 'maxAffected' => 500 // ballpark of $wgUpdateRowsPerQuery
6127 ],
6128 // Command-line scripts
6129 'Maintenance' => [
6130 'writeQueryTime' => 5,
6131 'maxAffected' => 1000
6132 ]
6133];
6134
6166
6189 'class' => '\\MediaWiki\\Logger\\LegacySpi',
6190];
6191
6198
6204
6209
6214
6221
6229
6239
6244
6249
6256
6262
6269
6275
6283
6295
6304
6312
6319
6327
6338 "$IP/tests/parser/parserTests.txt",
6339 "$IP/tests/parser/extraParserTests.txt"
6340];
6341
6346
6352
6361
# end of profiling, testing and debugging }
6363
6364/************************************************************************/
6373
6379
6384$wgSearchHighlightBoundaries = '[\p{Z}\p{P}\p{C}]';
6385
6397
6407 'application/x-suggestions+json' => false,
6408 'application/x-suggestions+xml' => false,
6409];
6410
6418
6424
6429
6434
6440
6451 NS_MAIN => true,
6452];
6453
6459
6476
6483
6490
6506
6513
# end of search settings
6515
6516/************************************************************************/
6525$wgDiff3 = '/usr/bin/diff3';
6526
6530$wgDiff = '/usr/bin/diff';
6531
6538 NS_CATEGORY => true
6539];
6540
6547
6554
# end edit UI }
6556
6557/************************************************************************/
6567if ( !isset( $wgCommandLineMode ) ) {
6568 $wgCommandLineMode = false;
6569}
6576
6586
6595
6606
6610$wgGitBin = '/usr/bin/git';
6611
6626 'https://(?:[a-z0-9_]+@)?gerrit.wikimedia.org/r/(?:p/)?(.*)' =>
6627 'https://phabricator.wikimedia.org/r/revision/%R;%H',
6628 'ssh://(?:[a-z0-9_]+@)?gerrit.wikimedia.org:29418/(.*)' =>
6629 'https://phabricator.wikimedia.org/r/revision/%R;%H',
6630];
6631
# End of maintenance }
6633
6634/************************************************************************/
6644$wgRCMaxAge = 90 * 24 * 3600;
6645
6651$wgWatchersMaxAge = 180 * 24 * 3600;
6652
6660
6669
6674$wgRCLinkLimits = [ 50, 100, 250, 500 ];
6675
6680$wgRCLinkDays = [ 1, 3, 7, 14, 30 ];
6681
6736
6743 'redis' => 'RedisPubSubFeedEngine',
6744 'udp' => 'UDPRCFeedEngine',
6745];
6746
6759
6765
6770
6777
6782
6786$wgFeed = true;
6787
6793
6803
6809
6823
6830 'rss' => 'RSSFeed',
6831 'atom' => 'AtomFeed',
6832];
6833
6839
6844
6849
6856
6862
6868
6873
6879
6888
6914 'newpage' => [
6915 'letter' => 'newpageletter',
6916 'title' => 'recentchanges-label-newpage',
6917 'legend' => 'recentchanges-legend-newpage',
6918 'grouping' => 'any',
6919 ],
6920 'minor' => [
6921 'letter' => 'minoreditletter',
6922 'title' => 'recentchanges-label-minor',
6923 'legend' => 'recentchanges-legend-minor',
6924 'class' => 'minoredit',
6925 'grouping' => 'all',
6926 ],
6927 'bot' => [
6928 'letter' => 'boteditletter',
6929 'title' => 'recentchanges-label-bot',
6930 'legend' => 'recentchanges-legend-bot',
6931 'class' => 'botedit',
6932 'grouping' => 'all',
6933 ],
6934 'unpatrolled' => [
6935 'letter' => 'unpatrolledletter',
6936 'title' => 'recentchanges-label-unpatrolled',
6937 'legend' => 'recentchanges-legend-unpatrolled',
6938 'grouping' => 'any',
6939 ],
6940];
6941
# end RC/watchlist }
6943
6944/************************************************************************/
6957
6964
6972
6977
6982
6991
6997
# end of copyright and credits settings }
6999
7000/************************************************************************/
7028
7037
7044
7051
7056
7069
7074
7079
7087
# end of import/export }
7089
7090/*************************************************************************/
7100
7128
7155
7162
7178
7183
7193
7201
7206
7213
7267
7273$wgAuth = null;
7274
7310
7323 __DIR__ . '/ServiceWiring.php'
7324];
7325
7331 'refreshLinks' => 'RefreshLinksJob',
7332 'deleteLinks' => 'DeleteLinksJob',
7333 'htmlCacheUpdate' => 'HTMLCacheUpdateJob',
7334 'sendMail' => 'EmaillingJob',
7335 'enotifNotify' => 'EnotifNotifyJob',
7336 'fixDoubleRedirect' => 'DoubleRedirectJob',
7337 'AssembleUploadChunks' => 'AssembleUploadChunksJob',
7338 'PublishStashedFile' => 'PublishStashedFileJob',
7339 'ThumbnailRender' => 'ThumbnailRenderJob',
7340 'recentChangesUpdate' => 'RecentChangesUpdateJob',
7341 'refreshLinksPrioritized' => 'RefreshLinksJob',
7342 'refreshLinksDynamic' => 'RefreshLinksJob',
7343 'activityUpdateJob' => 'ActivityUpdateJob',
7344 'categoryMembershipChange' => 'CategoryMembershipChangeJob',
7345 'cdnPurge' => 'CdnPurgeJob',
7346 'enqueue' => 'EnqueueJob', // local queue for multi-DC setups
7347 'null' => 'NullJob'
7348];
7349
7361$wgJobTypesExcludedFromDefaultQueue = [ 'AssembleUploadChunks', 'PublishStashedFile' ];
7362
7373
7388
7396 'default' => [ 'class' => 'JobQueueDB', 'order' => 'random', 'claimTTL' => 3600 ],
7397];
7398
7404 'class' => 'JobQueueAggregatorNull'
7405];
7406
7419
7425 'Statistics' => [ 'SiteStatsUpdate', 'cacheUpdate' ]
7426];
7427
7436
7445 'hiddencat' => 'categorylinks',
7446];
7447
# End extensions }
7449
7450/*************************************************************************/
7459
7465
7470
7497
# End categories }
7499
7500/*************************************************************************/
7512 '',
7513 'block',
7514 'protect',
7515 'rights',
7516 'delete',
7517 'upload',
7518 'move',
7519 'import',
7520 'patrol',
7521 'merge',
7522 'suppress',
7523 'tag',
7524 'managetags',
7525 'contentmodel',
7526];
7527
7536 'suppress' => 'suppressionlog'
7537];
7538
7559 'patrol' => true,
7560 'tag' => true,
7561];
7562
7573 '' => 'all-logs-page',
7574 'block' => 'blocklogpage',
7575 'protect' => 'protectlogpage',
7576 'rights' => 'rightslog',
7577 'delete' => 'dellogpage',
7578 'upload' => 'uploadlogpage',
7579 'move' => 'movelogpage',
7580 'import' => 'importlogpage',
7581 'patrol' => 'patrol-log-page',
7582 'merge' => 'mergelog',
7583 'suppress' => 'suppressionlog',
7584];
7585
7596 '' => 'alllogstext',
7597 'block' => 'blocklogtext',
7598 'delete' => 'dellogpagetext',
7599 'import' => 'importlogpagetext',
7600 'merge' => 'mergelogpagetext',
7601 'move' => 'movelogpagetext',
7602 'patrol' => 'patrol-log-header',
7603 'protect' => 'protectlogtext',
7604 'rights' => 'rightslogtext',
7605 'suppress' => 'suppressionlogtext',
7606 'upload' => 'uploadlogpagetext',
7607];
7608
7616
7624 'block/block' => 'BlockLogFormatter',
7625 'block/reblock' => 'BlockLogFormatter',
7626 'block/unblock' => 'BlockLogFormatter',
7627 'contentmodel/change' => 'ContentModelLogFormatter',
7628 'contentmodel/new' => 'ContentModelLogFormatter',
7629 'delete/delete' => 'DeleteLogFormatter',
7630 'delete/delete_redir' => 'DeleteLogFormatter',
7631 'delete/event' => 'DeleteLogFormatter',
7632 'delete/restore' => 'DeleteLogFormatter',
7633 'delete/revision' => 'DeleteLogFormatter',
7634 'import/interwiki' => 'ImportLogFormatter',
7635 'import/upload' => 'ImportLogFormatter',
7636 'managetags/activate' => 'LogFormatter',
7637 'managetags/create' => 'LogFormatter',
7638 'managetags/deactivate' => 'LogFormatter',
7639 'managetags/delete' => 'LogFormatter',
7640 'merge/merge' => 'MergeLogFormatter',
7641 'move/move' => 'MoveLogFormatter',
7642 'move/move_redir' => 'MoveLogFormatter',
7643 'patrol/patrol' => 'PatrolLogFormatter',
7644 'patrol/autopatrol' => 'PatrolLogFormatter',
7645 'protect/modify' => 'ProtectLogFormatter',
7646 'protect/move_prot' => 'ProtectLogFormatter',
7647 'protect/protect' => 'ProtectLogFormatter',
7648 'protect/unprotect' => 'ProtectLogFormatter',
7649 'rights/autopromote' => 'RightsLogFormatter',
7650 'rights/rights' => 'RightsLogFormatter',
7651 'suppress/block' => 'BlockLogFormatter',
7652 'suppress/delete' => 'DeleteLogFormatter',
7653 'suppress/event' => 'DeleteLogFormatter',
7654 'suppress/reblock' => 'BlockLogFormatter',
7655 'suppress/revision' => 'DeleteLogFormatter',
7656 'tag/update' => 'TagLogFormatter',
7657 'upload/overwrite' => 'UploadLogFormatter',
7658 'upload/revert' => 'UploadLogFormatter',
7659 'upload/upload' => 'UploadLogFormatter',
7660];
7661
7671 'block' => [
7672 'block' => [ 'block' ],
7673 'reblock' => [ 'reblock' ],
7674 'unblock' => [ 'unblock' ],
7675 ],
7676 'contentmodel' => [
7677 'change' => [ 'change' ],
7678 'new' => [ 'new' ],
7679 ],
7680 'delete' => [
7681 'delete' => [ 'delete' ],
7682 'delete_redir' => [ 'delete_redir' ],
7683 'restore' => [ 'restore' ],
7684 'event' => [ 'event' ],
7685 'revision' => [ 'revision' ],
7686 ],
7687 'import' => [
7688 'interwiki' => [ 'interwiki' ],
7689 'upload' => [ 'upload' ],
7690 ],
7691 'managetags' => [
7692 'create' => [ 'create' ],
7693 'delete' => [ 'delete' ],
7694 'activate' => [ 'activate' ],
7695 'deactivate' => [ 'deactivate' ],
7696 ],
7697 'move' => [
7698 'move' => [ 'move' ],
7699 'move_redir' => [ 'move_redir' ],
7700 ],
7701 'newusers' => [
7702 'create' => [ 'create', 'newusers' ],
7703 'create2' => [ 'create2' ],
7704 'autocreate' => [ 'autocreate' ],
7705 'byemail' => [ 'byemail' ],
7706 ],
7707 'patrol' => [
7708 'patrol' => [ 'patrol' ],
7709 'autopatrol' => [ 'autopatrol' ],
7710 ],
7711 'protect' => [
7712 'protect' => [ 'protect' ],
7713 'modify' => [ 'modify' ],
7714 'unprotect' => [ 'unprotect' ],
7715 'move_prot' => [ 'move_prot' ],
7716 ],
7717 'rights' => [
7718 'rights' => [ 'rights' ],
7719 'autopromote' => [ 'autopromote' ],
7720 ],
7721 'suppress' => [
7722 'event' => [ 'event' ],
7723 'revision' => [ 'revision' ],
7724 'delete' => [ 'delete' ],
7725 'block' => [ 'block' ],
7726 'reblock' => [ 'reblock' ],
7727 ],
7728 'upload' => [
7729 'upload' => [ 'upload' ],
7730 'overwrite' => [ 'overwrite' ],
7731 ],
7732];
7733
7738
# end logging }
7740
7741/*************************************************************************/
7750
7756
7762
7768
# end special pages }
7770
7771/*************************************************************************/
7787 'credits' => true,
7788 'delete' => true,
7789 'edit' => true,
7790 'editchangetags' => 'SpecialPageAction',
7791 'history' => true,
7792 'info' => true,
7793 'markpatrolled' => true,
7794 'protect' => true,
7795 'purge' => true,
7796 'raw' => true,
7797 'render' => true,
7798 'revert' => true,
7799 'revisiondelete' => 'SpecialPageAction',
7800 'rollback' => true,
7801 'submit' => true,
7802 'unprotect' => true,
7803 'unwatch' => true,
7804 'view' => true,
7805 'watch' => true,
7806];
7807
# end actions }
7809
7810/*************************************************************************/
7821$wgDefaultRobotPolicy = 'index,follow';
7822
7838
7866
7878
# End robot policy }
7880
7881/************************************************************************/
7896
7903
7919
7957
7966
7975
7984
7993
7999
8005
8011
8018
8024
8029
8035 'MIMEsearch', // aiprop=mime
8036 'LinkSearch', // list=exturlusage
8037 'FileDuplicateSearch', // prop=duplicatefiles
8038];
8039
8044
8051
8056
8061
8067
8089
8096
# End AJAX and API }
8098
8099/************************************************************************/
8108
8114
8119
8125
8150
8154$wgPhpCli = '/usr/bin/php';
8155
8161$wgShellLocale = 'en_US.utf8';
8162
# End shell }
8164
8165/************************************************************************/
8174
8180
8185
8190
8202
8208
# End HTTP client }
8210
8211/************************************************************************/
8223
8232
8237
8242
# End job queue }
8244
8245/************************************************************************/
8257
8267
8273
8279
8284
8290
8296
8330
8335
8345
8357
8372
8384 CONTENT_MODEL_WIKITEXT, // Just for completeness, wikitext will always be parsed.
8385 CONTENT_MODEL_JAVASCRIPT, // Make categories etc work, people put them into comments.
8386 CONTENT_MODEL_CSS, // Make categories etc work, people put them into comments.
8387];
8388
8395 'mediawiki' => 'MediaWikiSite',
8396];
8397
8404
8412
8420
8429
8439
8447
8455
8494 'paths' => [],
8495 'modules' => [],
8496 'global' => [
8497 # Timeout in seconds
8498 'timeout' => 360,
8499 # 'domain' is set to $wgCanonicalServer in Setup.php
8500 'forwardCookies' => false,
8501 'HTTPProxy' => null
8502 ]
8503];
8504
8513
8525$wgPopularPasswordFile = __DIR__ . '/../serialized/commonpasswords.cdb';
8526
8527/*
8528 * Max time (in seconds) a user-generated transaction can spend in writes.
8529 * If exceeded, the transaction is rolled back with an error instead of being committed.
8530 *
8531 * @var int|bool Disabled if false
8532 * @since 1.27
8533 */
8535
8556 'default' => [
8557 'class' => 'EventRelayerNull',
8558 ]
8559];
8560
8575
8585 'https://3hub.co' => true,
8586 'https://morepro.info' => true,
8587 'https://p.ato.mx' => true,
8588 'https://s.ato.mx' => true,
8589 'https://adserver.adtech.de' => true,
8590 'https://ums.adtechus.com' => true,
8591 'https://cas.criteo.com' => true,
8592 'https://cat.nl.eu.criteo.com' => true,
8593 'https://atpixel.alephd.com' => true,
8594 'https://rtb.metrigo.com' => true,
8595 'https://d5p.de17a.com' => true,
8596 'https://ad.lkqd.net/vpaid/vpaid.js' => true,
8597];
8598
8615
8634
and(b) You must cause any modified files to carry prominent notices stating that You changed the files
in the Source form of any Derivative Works that You all copyright
$wgGalleryOptions
Default parameters for the "<gallery>" tag.
$wgObjectCaches
Advanced object cache configuration.
$wgMaxShellWallClockTime
Maximum wall clock time (i.e.
$wgJobTypeConf
Map of job types to configuration arrays.
$wgAntivirus
Internal name of virus scanner.
$wgRestrictionLevels
Rights which can be required for each protection level (via action=protect)
$wgDisableHardRedirects
Disable redirects to special pages and interwiki redirects, which use a 302 and have no "redirected f...
$wgExemptFromUserRobotsControl
An array of namespace keys in which the INDEX/__NOINDEX__ magic words will not function,...
$wgCustomConvertCommand
Use another resizing converter, e.g.
$wgRightsIcon
Override for copyright metadata.
$wgCacheEpoch
Set this to current time to invalidate all prior cached pages.
$wgCdnMaxageLagged
Cache timeout for the CDN when DB replica DB lag is high.
$wgLegalTitleChars
Allowed title characters – regex character class Don't change this unless you know what you're doing.
$wgUploadThumbnailRenderHttpCustomHost
When using the "http" wgUploadThumbnailRenderMethod, lets one specify a custom Host HTTP header.
$wgBreakFrames
Break out of framesets.
bool $wgPageLanguageUseDB
Enable page language feature Allows setting page language in database.
$wgCookieSetOnAutoblock
Whether to set a cookie when a user is autoblocked.
$wgMaxInterlacingAreas
Array of max pixel areas for interlacing per MIME type.
$wgAdvancedSearchHighlighting
Set to true to have nicer highlighted text in search results, by default off due to execution overhea...
$wgUsePathInfo
Whether to support URLs like index.php/Page_title These often break when PHP is set up in CGI mode.
$wgUseSiteCss
Use the site's Cascading Style Sheets (CSS)?
$wgInterwikiExpiry
Expiry time for cache of interwiki table.
$wgAPIUselessQueryPages
The ApiQueryQueryPages module should skip pages that are redundant to true API queries.
$wgResourceLoaderMinifierMaxLineLength
Maximum line length when minifying JavaScript.
$wgGitRepositoryViewers
Map GIT repository URLs to viewer URLs to provide links in Special:Version.
$wgFileBackends
File backend structure configuration.
string $wgCentralIdLookupProvider
Central ID lookup provider to use by default.
$wgUseTinyRGBForJPGThumbnails
When this variable is true and JPGs use the sRGB ICC profile, swaps it for the more lightweight (and ...
$wgExtensionEntryPointListFiles
Array of files with list(s) of extension entry points to be used in maintenance/mergeMessageFileList....
$wgSemiprotectedRestrictionLevels
Restriction levels that should be considered "semiprotected".
Array $wgGrantPermissions
Map of (grant => right => boolean) Users authorize consumers (like Apps) to act on their behalf but o...
$wgLanguageCode
Site language code.
$wgFileExtensions
This is the list of preferred extensions for uploading files.
$wgAllowImageMoving
Allows to move images and other media files.
$wgMaximumMovedPages
Maximum number of pages to move at once when moving subpages with a page.
$wgConfigRegistry
Registry of factory functions to create config objects: The 'main' key must be set,...
$wgParserCacheType
The cache type for storing article HTML.
$wgRateLimitsExcludedIPs
Array of IPs / CIDR ranges which should be excluded from rate limits.
$wgSessionHandler
$wgMemoryLimit
The minimum amount of memory that MediaWiki "needs"; MediaWiki will try to raise PHP's memory limit i...
$wgMaxTemplateDepth
Maximum recursion depth for templates within templates.
$wgAPIMetaModules
API Query meta module extensions.
$wgGroupsRemoveFromSelf
$wgSharedThumbnailScriptPath
$wgEmergencyContact
Site admin email address.
$wgRCShowWatchingUsers
Show watching users in recent changes, watchlist and page history views.
$wgDBprefix
Table name prefix.
$wgAPIMaxResultSize
The maximum size (in bytes) of an API result.
$wgNewPasswordExpiry
The time, in seconds, when an emailed temporary password expires.
$wgMaxPPNodeCount
A complexity limit on template expansion: the maximum number of nodes visited by PPFrame::expand()
$wgPreviewOnOpenNamespaces
Which namespaces have special treatment where they should be preview-on-open Internally only Category...
$wgAllowUserJs
Allow user Javascript page? This enables a lot of neat customizations, but may increase security risk...
$wgEnotifWatchlist
Allow users to enable email notification ("enotif") on watchlist changes.
$wgCdnReboundPurgeDelay
If set, any SquidPurge call on a URL or URLs will send a second purge no less than this many seconds ...
$wgArticleRobotPolicies
Robot policies per article.
$wgApplyIpBlocksToXff
Whether to look at the X-Forwarded-For header's list of (potentially spoofed) IPs and apply IP blocks...
$wgLegacySchemaConversion
If set to true, the MediaWiki 1.4 to 1.5 schema conversion will create stub reference rows in the tex...
$wgDBuser
Database username.
$wgCategoryPagingLimit
Paging limit for categories.
$wgFeedCacheTimeout
Minimum timeout for cached Recentchanges feed, in seconds.
$wgUserEmailConfirmationTokenExpiry
The time, in seconds, when an email confirmation email expires.
$wgRemoveGroups
$wgSessionProviders
MediaWiki\Session\SessionProvider configuration.
$wgUpdateCompatibleMetadata
If to automatically update the img_metadata field if the metadata field is outdated but compatible wi...
$wgUploadMaintenance
To disable file delete/restore temporarily.
$wgUniversalEditButton
Enable the UniversalEditButton for browsers that support it (currently only Firefox with an extension...
$wgMaxArticleSize
Maximum article size in kilobytes.
$wgMaxGeneratedPPNodeCount
A complexity limit on template expansion: the maximum number of elements generated by Preprocessor::p...
string $wgPHPSessionHandling
Whether to use PHP session handling ($_SESSION and session_*() functions)
$wgCrossSiteAJAXdomainExceptions
Domains that should not be allowed to make AJAX requests, even if they match one of the domains allow...
$wgEnableParserLimitReporting
Whether to include the NewPP limit report as a HTML comment.
$wgDisableCookieCheck
By default, MediaWiki checks if the client supports cookies during the login process,...
$wgEnotifMaxRecips
Maximum number of users to mail at once when using impersonal mail.
$wgEnotifUserTalk
Allow users to enable email notification ("enotif") when someone edits their user talk page.
$wgUploadStashMaxAge
The maximum age of temporary (incomplete) uploaded files.
$wgLearnerMemberSince
Name of the external diff engine to use.
$wgExportFromNamespaces
Whether to allow the "export all pages in namespace" option.
$wgDefaultRobotPolicy
Default robot policy.
$wgCascadingRestrictionLevels
Restriction levels that can be used with cascading protection.
$wgExtraSignatureNamespaces
Array of namespaces, in addition to the talk namespaces, where signatures (~~~~) are likely to be use...
$wgStatsdMetricPrefix
Prefix for metric names sent to $wgStatsdServer.
$wgAutoblockExpiry
Number of seconds before autoblock entries expire.
$wgLocalDatabases
Other wikis on this site, can be administered from a single developer account.
$wgDefaultLanguageVariant
Default variant code, if false, the default will be the language code.
$wgBrowserBlackList
Browser Blacklist for unicode non compliant browsers.
$wgMessagesDirs
Extension messages directories.
$wgDisableQueryPageUpdate
Set this to an array of special page names to prevent maintenance/updateSpecialPages....
$wgParserTestFiles
Parser test suite files to be run by parserTests.php when no specific filename is passed to it.
$wgProxyList
Big list of banned IP addresses.
$wgScript
The URL path to index.php.
$wgLegacyEncoding
Set this to eg 'ISO-8859-1' to perform character set conversion when loading old revisions not marked...
$wgUseInstantCommons
Use Commons as a remote file repository.
$wgSQLiteDataDir
To override default SQLite data directory ($docroot/../data)
$wgThumbUpright
Adjust width of upright images when parameter 'upright' is used This allows a nicer look for upright ...
$wgEnableImageWhitelist
If $wgAllowExternalImages is false, you can allow an on-wiki whitelist of regular expression fragment...
$wgValidateAllHtml
Validate the overall output using tidy and refuse to display the page if it's not valid.
$wgPasswordExpireGrace
If a user's password is expired, the number of seconds when they can still login, and cancel their pa...
$wgFeedLimit
Set maximum number of results to return in syndication feeds (RSS, Atom) for eg Recentchanges,...
$wgActiveUserDays
How many days user must be idle before he is considered inactive.
$wgLockManagers
Array of configuration arrays for each lock manager.
$wgNamespacesWithSubpages
Which namespaces should support subpages? See Language.php for a list of namespaces.
$wgSiteTypes
Register handlers for specific types of sites.
$wgEditSubmitButtonLabelPublish
Whether to label the store-to-database-and-show-to-others button in the editor as "Save page"/"Save c...
$wgRawHtml
Allow raw, unchecked HTML in "<html>...</html>" sections.
$wgHiddenPrefs
An array of preferences to not show for the user.
$wgMaxRedirectLinksRetrieved
Maximum number of links to a redirect page listed on Special:Whatlinkshere/RedirectDestination.
$wgForeignUploadTargets
Array of foreign file repo names (set in $wgForeignFileRepos above) that are allowable upload targets...
$wgCheckFileExtensions
This is a flag to determine whether or not to check file extensions on upload.
$wgUserrightsInterwikiDelimiter
Character used as a delimiter when testing for interwiki userrights (In Special:UserRights,...
$wgUseCopyrightUpload
Set this to true if you want detailed copyright information forms on Upload.
$wgRCFeeds
Recentchanges items are periodically purged; entries older than this many seconds will go.
$wgNoFollowNsExceptions
Namespaces in which $wgNoFollowLinks doesn't apply.
$wgEnableOpenSearchSuggest
Enable OpenSearch suggestions requested by MediaWiki.
$wgCleanSignatures
If true, removes (by substituting) templates in signatures.
$wgDBadminuser
Separate username for maintenance tasks.
$wgUseLocalMessageCache
Set this to true to maintain a copy of the message cache on the local server.
$wgCountCategorizedImagesAsUsed
On Special:Unusedimages, consider images "used", if they are put into a category.
$wgInternalServer
Internal server name as known to CDN, if different.
$wgHTCPRouting
Routing configuration for HTCP multicast purging.
$wgCacheDirectory
Directory for caching data in the local filesystem.
$wgAutoloadAttemptLowercase
Switch controlling legacy case-insensitive classloading.
$wgHashedSharedUploadDirectory
Set the following to false especially if you have a set of files that need to be accessible by all wi...
$wgServerName
Server name.
$wgTidyConf
The path to the tidy config file.
$wgPageInfoTransclusionLimit
InfoAction retrieves a list of transclusion links (both to and from).
bool $wgEnableBotPasswords
Whether to enable bot passwords.
$wgAmericanDates
Enable dates like 'May 12' instead of '12 May', if the default date format is 'dmy or mdy'.
$wgGenerateThumbnailOnParse
Allow thumbnail rendering on page view.
$wgRightsUrl
Set this to specify an external URL containing details about the content license used on your wiki.
$wgRenderHashAppend
Append a configured value to the parser cache and the sitenotice key so that they can be kept separat...
$wgSharedTables
$wgSend404Code
Some web hosts attempt to rewrite all responses with a 404 (not found) status code,...
$wgStyleVersion
Bump this number when changing the global style sheets and JavaScript.
$wgMaxShellMemory
Maximum amount of virtual memory available to shell processes under linux, in KB.
$wgThumbLimits
Adjust thumbnails on image pages according to a user setting.
$wgSessionName
Override to customise the session name.
$wgHideIdentifiableRedirects
Should MediaWiki attempt to protect user's privacy when doing redirects? Keep this true if access cou...
$wgUseAjax
Enable AJAX framework.
$wgDefaultUserOptions
Settings added to this array will override the default globals for the user preferences used by anony...
$wgUploadStashScalerBaseUrl
To enable remote on-demand scaling, set this to the thumbnail base URL.
$wgBlockCIDRLimit
Limits on the possible sizes of range blocks.
$wgLogActions
Lists the message key string for formatting individual events of each type and action when listed in ...
$wgAdaptiveMessageCache
Instead of caching everything, only cache those messages which have been customised in the site conte...
$wgUseTagFilter
Allow filtering by change tag in recentchanges, history, etc Has no effect if no tags are defined in ...
$wgTrackingCategories
Array holding default tracking category names.
$wgUseImageResize
Whether to enable server-side image thumbnailing.
$wgSessionsInObjectCache
$wgDisableSearchUpdate
If you've disabled search semi-permanently, this also disables updates to the table.
$wgUseTeX
To use inline TeX, you need to compile 'texvc' (in the 'math' subdirectory of the MediaWiki package a...
$wgExtraInterlanguageLinkPrefixes
List of additional interwiki prefixes that should be treated as interlanguage links (i....
$wgDisableOutputCompression
Disable output compression (enabled by default if zlib is available)
$wgResourceLoaderLESSVars
Global LESS variables.
$wgTrxProfilerLimits
Performance expectations for DB usage.
$wgDebugLogPrefix
Prefix for debug log lines.
$wgLocalInterwiki
The interwiki prefix of the current wiki, or false if it doesn't have one.
$wgActionPaths
To set 'pretty' URL paths for actions other than plain page views, add to this array.
$wgSitemapNamespaces
Array of namespaces to generate a Google sitemap for when the maintenance/generateSitemap....
$wgLoginLanguageSelector
Show a bar of language selection links in the user login and user registration forms; edit the "login...
$wgDisableAnonTalk
Disable links to talk pages of anonymous users (IPs) in listings on special pages like page history,...
$wgAdvertisedFeedTypes
Which feed types should we provide by default? This can include 'rss', 'atom', neither,...
$wgAuthManagerConfig
Configure AuthManager.
$wgPhpCli
Executable path of the PHP cli binary (php/php5).
$wgAutopromoteOnceLogInRC
Put user rights log entries for autopromotion in recent changes?
$wgResourceLoaderMinifierStatementsOnOwnLine
Put each statement on its own line when minifying JavaScript.
$wgSecretKey
This should always be customised in LocalSettings.php.
$wgIgnoreImageErrors
If set, inline scaled images will still produce "<img>" tags ready for output instead of showing an e...
$wgMimeType
The default Content-Type header.
$wgEnableAutoRotation
If set to true, images that contain certain the exif orientation tag will be rotated accordingly.
$wgExtraGenderNamespaces
Same as above, but for namespaces with gender distinction.
$wgEnableUserEmail
Set to true to enable user-to-user e-mail.
$wgCookieExpiration
Default cookie lifetime, in seconds.
$wgPagePropLinkInvalidations
Page property link table invalidation lists.
$wgPasswordPolicy
Password policy for local wiki users.
$wgAllowUserCss
Allow user Cascading Style Sheets (CSS)? This enables a lot of neat customizations,...
$wgAutopromote
Array containing the conditions of automatic promotion of a user to specific groups.
$wgSVGConverter
Pick a converter defined in $wgSVGConverters.
$wgOverrideHostname
Override server hostname detection with a hardcoded value.
$wgSummarySpamRegex
Same as the above except for edit summaries.
$wgFallbackSkin
Fallback skin used when the skin defined by $wgDefaultSkin can't be found.
$wgQueryPageDefaultLimit
Integer defining default number of entries to show on special pages which are query-pages such as Spe...
$wgRevisionCacheExpiry
Revision text may be cached in $wgMemc to reduce load on external storage servers and object extracti...
$wgTranslateNumerals
For Hindi and Arabic use local numerals instead of Western style (0-9) numerals in interface.
$wgForcedRawSMaxage
Default maximum age for raw CSS/JS accesses.
$wgDjvuRenderer
Path of the ddjvu DJVU renderer Enable this and $wgDjvuDump to enable djvu rendering example: $wgDjvu...
$wgImageMagickTempDir
Temporary directory used for ImageMagick.
$wgUsejQueryThree
Use jQuery 3 (with jQuery Migrate) instead of jQuery 1.
$wgAllowDisplayTitle
Allow DISPLAYTITLE to change title display.
$wgTidyInternal
Set this to true to use the tidy extension.
$wgSitemapNamespacesPriorities
Custom namespace priorities for sitemaps.
$wgLogNames
Lists the message key string for each log type.
$wgSharedUploadPath
Full path on the web server where shared uploads can be found.
$wgCapitalLinks
Set this to false to avoid forcing the first letter of links to capitals.
$wgCdnMaxageSubstitute
Cache timeout for the CDN when a response is known to be wrong or incomplete (due to load)
$wgExperiencedUserMemberSince
Name of the external diff engine to use.
$wgResourceLoaderSources
Extensions should register foreign module sources here.
$wgLogExceptionBacktrace
If true, send the exception backtrace to the error log.
$wgSQLMode
SQL Mode - default is turning off all modes, including strict, if set.
$wgEnableJavaScriptTest
Allow running of javascript test suites via [[Special:JavaScriptTest]] (such as QUnit).
$wgHashedUploadDirectory
Set this to false if you do not want MediaWiki to divide your images directory into many subdirectori...
$wgPutIPinRC
Log IP addresses in the recentchanges table; can be accessed only by extensions (e....
$wgJobQueueAggregator
Which aggregator to use for tracking which queues have jobs.
$wgInvalidateCacheOnLocalSettingsChange
Invalidate various caches when LocalSettings.php changes.
$wgLocalStylePath
The URL path of the skins directory.
$wgAPIMaxLagThreshold
Maximum amount of DB lag on a majority of DB replica DBs to tolerate before forcing bots to retry any...
$wgResourceLoaderValidateStaticJS
If set to true, statically-sourced (file-backed) JavaScript resources will be parsed for validity bef...
$wgDBservers
Database load balancer This is a two-dimensional array, an array of server info structures Fields are...
$wgMaxPPExpandDepth
$wgThumbnailScriptPath
Give a path here to use thumb.php for thumbnail generation on client request, instead of generating t...
$wgNonincludableNamespaces
Pages in namespaces in this array can not be used as templates.
$wgExportPagelistLimit
Maximum number of pages returned by the GetPagesFromCategory and GetPagesFromNamespace functions.
array $wgDefaultExternalStore
The place to put new revisions, false to put them in the local text table.
$wgUseTidy
Set this to true to use the deprecated tidy configuration parameters.
$wgPasswordResetRoutes
Whether to allow password resets ("enter some identifying data, and we'll send an email with a tempor...
$wgHKDFSecret
Secret for hmac-based key derivation function (fast, cryptographically secure random numbers).
$wgRegisterInternalExternals
By default MediaWiki does not register links pointing to same server in externallinks dataset,...
$wgNoFollowLinks
If true, external URL links in wiki text will be given the rel="nofollow" attribute as a hint to sear...
$wgDisableLangConversion
Whether to enable language variant conversion.
$wgRestrictDisplayTitle
For consistency, restrict DISPLAYTITLE to text that normalizes to the same canonical DB key.
$wgSlaveLagWarning
If lag is higher than $wgSlaveLagWarning, show a warning in some special pages (like watchlist).
$wgMaxRedirects
Max number of redirects to follow when resolving redirects.
$wgFileCacheDepth
Depth of the subdirectory hierarchy to be created under $wgFileCacheDirectory.
$wgReadOnly
Set this to a string to put the wiki into read-only mode.
$wgResourceLoaderDebug
The default debug mode (on/off) for of ResourceLoader requests.
$wgAntivirusRequired
Determines if a failed virus scan (AV_SCAN_FAILED) will cause the file to be rejected.
$wgHTTPTimeout
Timeout for HTTP requests done internally, in seconds.
$wgUseFilePatrol
Use file patrolling to check new files on Special:Newfiles.
$wgMediaHandlers
Plugins for media file type handling.
$wgImageLimits
Limit images on image description pages to a user-selectable limit.
$wgShowHostnames
Expose backend server host names through the API and various HTML comments.
$wgJobRunRate
Number of jobs to perform per request.
$wgAllowSpecialInclusion
Allow special page inclusions such as {{Special:Allpages}}.
$wgJobQueueIncludeInMaxLagFactor
Whether to include the number of jobs that are queued for the API's maxlag parameter.
$wgUseAutomaticEditSummaries
If user doesn't specify any edit summary when making a an edit, MediaWiki will try to automatically c...
$wgAllowUserCssPrefs
Allow user-preferences implemented in CSS? This allows users to customise the site appearance to a gr...
$wgCentralIdLookupProviders
Central ID lookup providers Key is the provider ID, value is a specification for ObjectFactory.
$wgUploadSizeWarning
Warn if uploaded files are larger than this (in bytes), or false to disable.
$wgAPIMaxUncachedDiffs
The maximum number of uncached diffs that can be retrieved in one API request.
$wgHTTPConnectTimeout
Timeout for connections done internally (in seconds) Only works for curl.
array $wgVirtualRestConfig
Global configuration variable for Virtual REST Services.
$wgProfileLimit
Only record profiling info for pages that took longer than this.
$wgGrammarForms
Some languages need different word forms, usually for different cases.
$wgDebugTidy
Put tidy warnings in HTML comments Only works for internal tidy.
$wgHTTPProxy
Proxy to use for CURL requests.
string null $wgAuthenticationTokenVersion
Versioning for authentication tokens.
$wgInterwikiPrefixDisplayTypes
Mapping of interwiki index prefixes to descriptors that can be used to change the display of interwik...
$wgExportAllowListContributors
Return distinct author list (when not returning full history)
$wgPasswordAttemptThrottle
Limit password attempts to X attempts per Y seconds per IP per account.
$wgContentNamespaces
Array of namespaces which can be deemed to contain valid "content", as far as the site statistics are...
string[] $wgSoftBlockRanges
IP ranges that should be considered soft-blocked (anon-only, account creation allowed).
$wgExtraNamespaces
Additional namespaces.
$wgSVGMaxSize
Don't scale a SVG larger than this.
$wgMaxShellFileSize
Maximum file size created by shell processes under linux, in KB ImageMagick convert for example can b...
$wgThumbnailBuckets
When defined, is an array of image widths used as buckets for thumbnail generation.
$wgDisableUploadScriptChecks
Setting this to true will disable the upload system's checks for HTML/JavaScript.
$wgAllowCategorizedRecentChanges
Enable filtering of categories in Recentchanges.
$wgDisabledVariants
Disabled variants array of language variant conversion.
$wgTmpDirectory
The local filesystem path to a temporary directory.
$wgStyleDirectory
Filesystem stylesheets directory.
$wgAutoloadClasses
Array mapping class names to filenames, for autoloading.
$wgShellCgroup
Under Linux: a cgroup directory used to constrain memory usage of shell commands.
$wgDBtype
Database type.
$wgTransactionalTimeLimit
The minimum amount of time that MediaWiki needs for "slow" write request, particularly ones with mult...
$wgDBmwschema
Mediawiki schema.
$wgMinUploadChunkSize
Minimum upload chunk size, in bytes.
$wgProxyWhitelist
Proxy whitelist, list of addresses that are assumed to be non-proxy despite what the other methods mi...
$wgNoReplyAddress
Reply-To address for e-mail notifications.
$wgShowRollbackEditCount
The $wgShowRollbackEditCount variable is used to show how many edits can be rolled back.
$wgUpgradeKey
When you run the web-based upgrade utility, it will tell you what to set this to in order to authoriz...
$wgDBname
Name of the database.
$wgUseDatabaseMessages
Translation using MediaWiki: namespace.
string $wgPopularPasswordFile
Where popular password file is located.
$wgSiteNotice
Site notice shown at the top of each page.
$wgXMLMimeTypes
Additional XML types we can allow via MIME-detection.
$wgJobTypesExcludedFromDefaultQueue
Jobs that must be explicitly requested, i.e.
$wgReferrerPolicy
Value for the referrer policy meta tag.
$wgImgAuthDetails
Set this to true if you use img_auth and want the user to see details on why access failed.
$wgValidSkinNames
List of valid skin names.
$wgMaxMsgCacheEntrySize
Maximum entry size in the message cache, in bytes.
$wgUseGzip
When using the file cache, we can store the cached HTML gzipped to save disk space.
$wgCachePages
Allow client-side caching of pages.
$wgDBerrorLogTZ
Timezone to use in the error log.
$wgResourceModules
Client-side resource modules.
$wgResourceLoaderStorageEnabled
Whether ResourceLoader should attempt to persist modules in localStorage on browsers that support the...
$wgEnableSearchContributorsByIP
If true, searches for IP addresses will be redirected to that IP's contributions page.
$wgAutoConfirmCount
Number of edits an account requires before it is autoconfirmed.
$wgUploadDirectory
The filesystem path of the images directory.
$wgCookieHttpOnly
Set authentication cookies to HttpOnly to prevent access by JavaScript, in browsers that support this...
$wgMangleFlashPolicy
When OutputHandler is used, mangle any output that contains <cross-domain-policy>.
$wgLogTypes
The logging system has two levels: an event type, which describes the general category and can be vie...
$wgClockSkewFudge
Clock skew or the one-second resolution of time() can occasionally cause cache problems when the user...
$wgCapitalLinkOverrides
$wgAPIPropModules
API Query prop module extensions.
$wgMaximalPasswordLength
Specifies the maximal length of a user password (T64685).
$wgSitename
Name of the site.
$wgUseCombinedLoginLink
Login / create account link behavior when it's possible for anonymous users to create an account.
$wgGroupsAddToSelf
A map of group names that the user is in, to group names that those users are allowed to add or revok...
$wgExternalServers
An array of external MySQL servers.
$wgAPIListModules
API Query list module extensions.
$wgResourceLoaderLESSImportPaths
Default import paths for LESS modules.
$wgThumbnailMinimumBucketDistance
When using thumbnail buckets as defined above, this sets the minimum distance to the bucket above the...
$wgHKDFAlgorithm
Algorithm for hmac-based key derivation function (fast, cryptographically secure random numbers).
$wgLocalVirtualHosts
Local virtual hosts.
$wgAdditionalMailParams
Additional email parameters, will be passed as the last argument to mail() call.
$wgHideInterlanguageLinks
Hide interlanguage links from the sidebar.
$wgScriptExtension
The extension to append to script names by default.
$wgPasswordSalt
For compatibility with old installations set to false.
$wgAvailableRights
A list of available rights, in addition to the ones defined by the core.
$wgDBadminpassword
Separate password for maintenance tasks.
$wgCompressRevisions
We can also compress text stored in the 'text' table.
$wgSharedUploadDirectory
Path on the file system where shared uploads can be found.
$wgShowCreditsIfMax
If there are more than $wgMaxCredits authors, show $wgMaxCredits of them.
$wgDBerrorLog
File to log database errors to.
$wgReadOnlyFile
If this lock file exists (size > 0), the wiki will be forced into read-only mode.
$wgImportSources
List of interwiki prefixes for wikis we'll accept as sources for Special:Import and API action=import...
$wgInvalidRedirectTargets
Array of invalid page redirect targets.
$wgCachePrefix
Overwrite the caching key prefix with custom value.
$wgLogRestrictions
This restricts log access to those who have a certain right Users without this will not see it in the...
$wgResourceLoaderMaxQueryLength
If set to a positive number, ResourceLoader will not generate URLs whose query string is more than th...
$wgFileCacheDirectory
Directory where the cached page will be saved.
$wgRightsText
If either $wgRightsUrl or $wgRightsPage is specified then this variable gives the text for the link.
$wgGitInfoCacheDirectory
Directory where GitInfo will look for pre-computed cache files.
$wgParserCacheExpireTime
The expiry time for the parser cache, in seconds.
$wgInterwikiFallbackSite
Fallback site, if unable to resolve from cache.
$wgUploadMissingFileUrl
Point the upload link for missing files to an external URL, as with $wgUploadNavigationUrl.
$wgMaxUserDBWriteDuration
Name of the external diff engine to use.
int bool $wgExtensionInfoMTime
When loading extensions through the extension registration system, this can be used to invalidate the...
$wgLogAutopatrol
Log autopatrol actions to the log table.
$wgEnotifFromEditor
True: from page editor if s/he opted-in.
$wgUnwatchedPageThreshold
If set to an integer, pages that are watched by this many users or more will not require the unwatche...
$wgExportAllowAll
Whether to allow exporting the entire wiki into a single file.
$wgIllegalFileChars
Additional characters that are not allowed in filenames.
$wgSquidServersNoPurge
As above, except these servers aren't purged on page changes; use to set a list of trusted proxies,...
$wgVerifyMimeType
Determines if the MIME type of uploaded files should be checked.
$wgShowUpdatedMarker
Show "Updated (since my last visit)" marker in RC view, watchlist and history view for watched pages ...
$wgExtensionMessagesFiles
Extension messages files.
$wgJsMimeType
Previously used as content type in HTML script tags.
$wgAntivirusSetup
Configuration for different virus scanners.
$wgUseRCPatrol
Use RC Patrolling to check for vandalism (from recent changes and watchlists) New pages and new files...
$wgLearnerEdits
The following variables define 3 user experience levels:
$wgCategoryCollation
Specify how category names should be sorted, when listed on a category page.
$wgEnableWriteAPI
Allow the API to be used to perform write operations (page edits, rollback, etc.) when an authorised ...
$wgResourceBasePath
The default 'remoteBasePath' value for instances of ResourceLoaderFileModule.
$wgNamespaceProtection
Set the minimum permissions required to edit pages in each namespace.
$wgSidebarCacheExpiry
Expiry time for the sidebar cache, in seconds.
$wgProfileOnly
Don't put non-profiling info into log file.
$wgCommandLineDarkBg
For colorized maintenance script output, is your terminal background dark ?
$wgEnotifRevealEditorAddress
Set the Reply-to address in notifications to the editor's address, if user allowed this in the prefer...
$wgDjvuOutputExtension
File extension for the DJVU post processor output.
$wgUseKeyHeader
Send the Key HTTP header for better caching.
$wgNamespaceRobotPolicies
Robot policies per namespaces.
$wgAppleTouchIcon
The URL path of the icon for iPhone and iPod Touch web app bookmarks.
$wgOpenSearchTemplate
Template for OpenSearch suggestions, defaults to API action=opensearch.
$wgExportMaxHistory
If set nonzero, Special:Export requests for history of pages with more revisions than this will be re...
$wgPasswordSenderName
Sender name for e-mail notifications.
$wgFooterIcons
Abstract list of footer icons for skins in place of old copyrightico and poweredbyico code You can ad...
$wgRestrictionTypes
Set of available actions that can be restricted via action=protect You probably shouldn't change this...
$wgDirectoryMode
Default value for chmoding of new directories.
$wgUseNPPatrol
Use new page patrolling to check new pages on Special:Newpages.
$wgFixDoubleRedirects
Fix double redirects after a page move.
$wgTidyBin
The path to the tidy binary.
$wgDisableTextSearch
Set this to true to disable the full text search feature.
$wgLegacyJavaScriptGlobals
Whether or not to assign configuration variables to the global window object.
$wgImgAuthUrlPathMap
Map of relative URL directories to match to internal mwstore:// base storage paths.
$wgRCChangedSizeThreshold
If the difference between the character counts of the text before and after the edit is below that va...
$wgObjectCacheSessionExpiry
The expiry time to use for session storage, in seconds.
$wgAjaxUploadDestCheck
Enable AJAX check for file overwrite, pre-upload.
$wgWhitelistRead
Pages anonymous user may see, set as an array of pages titles.
$wgInvalidUsernameCharacters
Characters to prevent during new account creations.
$wgAllowExternalImagesFrom
If the above is false, you can specify an exception here.
bool $wgEnableWANCacheReaper
Verify and enforce WAN cache purges using reliable DB sources as streams.
$wgUploadNavigationUrl
Point the upload navigation link to an external URL Useful if you want to use a shared repository by ...
$wgArticlePath
The URL path for primary article page views.
$wgDeprecationReleaseLimit
Release limitation to wfDeprecated warnings, if set to a release number development warnings will not...
$wgDBmysql5
Set to true to engage MySQL 4.1/5.0 charset-related features; for now will just cause sending of 'SET...
$wgSharpenReductionThreshold
Reduction in linear dimensions below which sharpening will be enabled.
$wgEnableSidebarCache
If on, the sidebar navigation links are cached for users with the current language set.
$wgUploadPath
The URL path for the images directory.
$wgCacheSharedUploads
Cache shared metadata in memcached.
$wgHooks
Global list of hooks.
$wgDBport
Database port number (for PostgreSQL and Microsoft SQL Server).
$wgEnableParserCache
Kept for extension compatibility; see $wgParserCacheType.
$wgMemCachedTimeout
Read/write timeout for MemCached server communication, in microseconds.
$wgCategoryMagicGallery
On category pages, show thumbnail gallery for images belonging to that category instead of listing th...
$wgFileBlacklist
Files with these extensions will never be allowed as uploads.
$wgExtendedLoginCookieExpiration
Default login cookie lifetime, in seconds.
$wgEnableEmail
Set to true to enable the e-mail basic features: Password reminders, etc.
$wgMaxNameChars
Maximum number of bytes in username.
$wgMemCachedDebug
If enabled, will send MemCached debugging information to $wgDebugLogFile.
$wgExtensionFunctions
A list of callback functions which are called once MediaWiki is fully initialised.
$wgServiceWiringFiles
List of service wiring files to be loaded by the default instance of MediaWikiServices.
$wgEnotifImpersonal
Send a generic mail instead of a personalised mail for each user.
$wgCopyUploadsDomains
A list of domains copy uploads can come from.
$wgSearchForwardUrl
Set this to a URL to forward search requests to some external location.
$wgUpdateRowsPerJob
Number of rows to update per job.
$wgUseSquid
Enable/disable CDN.
$wgMessageCacheType
The cache type for storing the contents of the MediaWiki namespace.
$wgInterwikiMagic
Treat language links as magic connectors, not inline links.
$wgSiteStatsAsyncFactor
Set this to an integer to only do synchronous site_stats updates one every this many updates.
$wgAllowSiteCSSOnRestrictedPages
Whether to allow site-wide CSS (MediaWiki:Common.css and friends) on restricted pages like Special:Us...
$wgDisableInternalSearch
Disable the internal MySQL-based search, to allow it to be implemented by an extension instead.
$wgCrossSiteAJAXdomains
Settings for incoming cross-site AJAX requests: Newer browsers support cross-site AJAX when the targe...
$wgNoFollowDomainExceptions
If this is set to an array of domains, external links to these domain names (or any subdomains) will ...
$wgShellLocale
Locale for LC_CTYPE, to work around https://bugs.php.net/bug.php?id=45132 For Unix-like operating sys...
$wgDiff3
Path to the GNU diff3 utility.
$wgAjaxLicensePreview
Enable previewing licences via AJAX.
$wgAllUnicodeFixes
Set this to always convert certain Unicode sequences to modern ones regardless of the content languag...
$wgCookiePath
Set this variable if you want to restrict cookies to a certain path within the domain specified by $w...
$wgSecureLogin
This is to let user authenticate using https when they come from http.
$wgInterwikiScopes
Specify number of domains to check for messages.
$wgDjvuToXML
Path of the djvutoxml executable This works like djvudump except much, much slower as of version 3....
$wgUsersNotifiedOnAllChanges
Array of usernames who will be sent a notification email for every change which occurs on a wiki.
$wgCookieDomain
Set to set an explicit domain on the login cookies eg, "justthis.domain.org" or "....
$wgRCMaxAge
Recentchanges items are periodically purged; entries older than this many seconds will go.
$wgImplicitGroups
Implicit groups, aren't shown on Special:Listusers or somewhere else.
$wgTidyOpts
The command line options to the tidy binary.
$wgFeedDiffCutoff
When generating Recentchanges RSS/Atom feed, diffs will not be generated for pages larger than this s...
$wgWhitelistReadRegexp
Pages anonymous user may see, set as an array of regular expressions.
$wgAddGroups
$wgAddGroups and $wgRemoveGroups can be used to give finer control over who can assign which groups a...
$wgActions
Array of allowed values for the "title=foo&action=<action>" parameter.
$wgDebugComments
Send debug data to an HTML comment in the output.
$wgLocaltimezone
Fake out the timezone that the server thinks it's in.
$wgSkipSkins
Specify the names of skins that should not be presented in the list of available skins in user prefer...
$wgActionFilteredLogs
List of log types that can be filtered by action types.
$wgRedirectOnLogin
Allow redirection to another page when a user logs in.
$wgAuthManagerAutoConfig
$wgUserEmailUseReplyTo
If true put the sending user's email in a Reply-To header instead of From (false).
$wgUploadBaseUrl
If set, this URL is added to the start of $wgUploadPath to form a complete upload URL.
$wgUrlProtocols
URL schemes that should be recognized as valid by wfParseUrl().
$wgEnableAsyncUploads
Enable deferred upload tasks that use the job queue.
$wgIncludeLegacyJavaScript
Whether to ensure the mediawiki.legacy library is loaded before other modules.
$wgJpegPixelFormat
At default setting of 'yuv420', JPEG thumbnails will use 4:2:0 chroma subsampling to reduce file size...
$wgDeleteRevisionsLimit
Optional to restrict deletion of pages with higher revision counts to users with the 'bigdelete' perm...
bool $wgPingback
Share data about this installation with MediaWiki developers.
$wgSpamRegex
Edits matching these regular expressions in body text will be recognised as spam and rejected automat...
$wgRCEngines
Used by RecentChange::getEngine to find the correct engine for a given URI scheme.
$wgPasswordExpirationDays
The number of days that a user's password is good for.
$wgSquidServers
List of proxy servers to purge on changes; default port is 80.
$wgDjvuTxt
Path of the djvutxt DJVU text extraction utility Enable this and $wgDjvuDump to enable text layer ext...
string bool $wgBotPasswordsDatabase
Database name for the bot_passwords table.
$wgAllowSchemaUpdates
Allow schema updates.
$wgBlockAllowsUTEdit
Set this to true to allow blocked users to edit their own user talk page.
$wgGroupPermissions
Permission keys given to users in each group.
string[] $wgChangeCredentialsBlacklist
List of AuthenticationRequest class names which are not changeable through Special:ChangeCredentials ...
$wgFixMalayalamUnicode
Set this to true to replace ZWJ-based chillu sequences in Malayalam text with their Unicode 5....
$wgShowExceptionDetails
If set to true, uncaught exceptions will print a complete stack trace to output.
$wgMimeTypeFile
Sets the MIME type definition file to use by MimeMagic.php.
$wgContentHandlerTextFallback
How to react if a plain text version of a non-text Content object is requested using ContentHandler::...
$wgAllowExternalImages
Whether to allow inline image pointing to other websites.
$wgMaxImageArea
The maximum number of pixels a source image can have if it is to be scaled down by a scaler that requ...
int[] $wgReauthenticateTime
Time frame for re-authentication.
$wgExperiencedUserEdits
Name of the external diff engine to use.
$wgDBcompress
Whether to use compression in DB connection.
$wgResponsiveImages
Generate and use thumbnails suitable for screens with 1.5 and 2.0 pixel densities.
$wgReservedUsernames
Array of usernames which may not be registered or logged in from Maintenance scripts can still use th...
$wgDBWindowsAuthentication
Use Windows Authentication instead of $wgDBuser / $wgDBpassword for MS SQL Server.
$wgArticleCountMethod
Method used to determine if a page in a content namespace should be counted as a valid article.
$wgPreprocessorCacheThreshold
Preprocessor caching threshold Setting it to 'false' will disable the preprocessor cache.
$wgLocalInterwikis
Array for multiple $wgLocalInterwiki values, in case there are several interwiki prefixes that point ...
$wgVersion
MediaWiki version number.
$wgEnableUploads
Uploads have to be specially set up to be secure.
$wgDebugRawPage
If true, log debugging data from action=raw and load.php.
$wgAllowJavaUploads
Allow Java archive uploads.
$wgResourceLoaderMaxage
Maximum time in seconds to cache resources served by ResourceLoader.
$wgUploadDialog
Configuration for file uploads using the embeddable upload dialog (https://www.mediawiki....
$wgMemCachedServers
The list of MemCached servers and port numbers.
$wgShowDebug
Display debug data at the bottom of the main content area.
$wgExperimentalHtmlIds
Should we allow a broader set of characters in id attributes, per HTML5? If not, use only HTML 4-comp...
$wgInvalidPasswordReset
Specifies if users should be sent to a password-reset form on login, if their password doesn't meet t...
$wgLocalFileRepo
File repository structures.
$wgWantedPagesThreshold
Number of links to a page required before it is deemed "wanted".
$wgEnableMagicLinks
Enable the magic links feature of automatically turning ISBN xxx, PMID xxx, RFC xxx into links.
$wgExportMaxLinkDepth
If non-zero, Special:Export accepts a "pagelink-depth" parameter up to this specified level,...
$wgBlockDisablesLogin
If true, blocked users will not be allowed to login.
$wgParserOutputHooks
Parser output hooks.
$wgRCLinkLimits
List of Limits options to list in the Special:Recentchanges and Special:Recentchangeslinked pages.
$wgMWLoggerDefaultSpi
Default service provider for creating Psr\Log\LoggerInterface instances.
$wgQueryCacheLimit
Number of rows to cache in 'querycache' table when miser mode is on.
$wgResourceLoaderStorageVersion
Cache version for client-side ResourceLoader module storage.
$wgDefaultSkin
Default skin, for new users and anonymous visitors.
$wgStatsdServer
Destination of statsd metrics.
$wgDeletedDirectory
What directory to place deleted uploads in.
$wgSharpenParameter
Sharpening parameter to ImageMagick.
$wgScriptPath
The path we should point to.
$wgAllowImageTag
A different approach to the above: simply allow the "<img>" tag to be used.
$wgSquidMaxage
Cache TTL for the CDN sent as s-maxage (without ESI) or Surrogate-Control (with ESI).
$wgDataCenterUpdateStickTTL
After a state-changing request is done by a client, this determines how many seconds that client shou...
$wgWANObjectCaches
Advanced WAN object cache configuration.
$wgMaxAnimatedGifArea
Force thumbnailing of animated GIFs above this size to a single frame instead of an animated thumbnai...
$wgAjaxEditStash
Have clients send edits to be prepared when filling in edit summaries.
$wgDjvuPostProcessor
Shell command for the DJVU post processor Default: pnmtojpeg, since ddjvu generates ppm output Set th...
$wgEmailConfirmToEdit
Should editors be required to have a validated e-mail address before being allowed to edit?
$wgFeedClasses
Available feeds objects.
$wgSearchType
Search type.
$wgUnwatchedPageSecret
If active watchers (per above) are this number or less, do not disclose it.
$wgAPIRequestLog
Log file or URL (TCP or UDP) to log API requests to, or false to disable API request logging.
$wgShowArchiveThumbnails
Show thumbnails for old images on the image description page.
$wgSpecialVersionShowHooks
Show the contents of $wgHooks in Special:Version.
$wgSearchHighlightBoundaries
Regexp to match word boundaries, defaults for non-CJK languages should be empty for CJK since the wor...
$wgAuth $wgAuth
Authentication plugin.
$wgAllowHTMLEmail
For parts of the system that have been updated to provide HTML email content, send both text and HTML...
$wgConf
wgConf hold the site configuration.
$wgPoolCounterConf
Configuration for processing pool control, for use in high-traffic wikis.
$wgRevokePermissions
Permission keys revoked from users in each group.
bool $wgAssumeProxiesUseDefaultProtocolPorts
When the wiki is running behind a proxy and this is set to true, assumes that the proxy exposes the w...
$wgAPIFormatModules
API format module extensions.
$wgHTTPImportTimeout
Timeout for HTTP requests done internally for transwiki imports, in seconds.
string[] $wgRemoveCredentialsBlacklist
List of AuthenticationRequest class names which are not removable through Special:RemoveCredentials a...
$wgSharedUploadDBname
DB name with metadata about shared directory.
$wgMainStash
Main object stash type.
$wgSlaveLagCritical
$wgApiFrameOptions
Disallow framing of API pages directly, by setting the X-Frame-Options header.
$wgTranscludeCacheExpiry
Expiry time for transcluded templates cached in transcache database table.
$wgParserConf
Parser configuration.
$wgRCShowChangedSize
Show the amount of changed characters in recent changes.
$wgExternalStores
External stores allow including content from non database sources following URL links.
$wgExportAllowHistory
If set to false, disables the full-history option on Special:Export.
$wgCSPFalsePositiveUrls
List of urls which appear often to be triggering CSP reports but do not appear to be caused by actual...
$wgThumbnailEpoch
If rendered thumbnail files are older than this timestamp, they will be rerendered on demand as if th...
$wgDebugTimestamps
Prefix debug messages with relative timestamp.
$wgMimeInfoFile
Sets the MIME type info file to use by MimeMagic.php.
$wgExtensionAssetsPath
The URL path of the extensions directory.
$wgEnableDnsBlacklist
Whether to use DNS blacklists in $wgDnsBlacklistUrls to check for open proxies.
$wgDebugToolbar
Display the new debugging toolbar.
$wgUseImageMagick
Resizing can be done using PHP's internal image libraries or using ImageMagick or another third-party...
$wgAsyncHTTPTimeout
Timeout for Asynchronous (background) HTTP requests, in seconds.
$wgUseMediaWikiUIEverywhere
Temporary variable that applies MediaWiki UI wherever it can be supported.
$wgHideUserContribLimit
The maximum number of edits a user can have and can still be hidden by users with the hideuser permis...
$wgJpegTran
used for lossless jpeg rotation
$wgMaxSigChars
Maximum number of Unicode characters in signature.
$wgPasswordDefault
Default password type to use when hashing user passwords.
$wgStrictFileExtensions
If this is turned off, users may override the warning for files not covered by $wgFileExtensions.
$wgDBTableOptions
MySQL table options to use during installation or update.
$wgVariantArticlePath
Like $wgArticlePath, but on multi-variant wikis, this provides a path format that describes which par...
$wgForeignFileRepos
$wgUseCategoryBrowser
Use experimental, DMOZ-like category browser.
$wgRepositoryBaseUrl
Base URL for a repository wiki.
$wgMemCachedPersistent
Use persistent connections to MemCached, which are shared across multiple requests.
$wgFilterLogTypes
Show/hide links on Special:Log will be shown for these log types.
$wgShowDBErrorBacktrace
If true, show a backtrace for database errors.
$wgLogHeaders
Lists the message key string for descriptive text to be shown at the top of each log type.
$wgUseESI
If you run Squid3 with ESI support, enable this (default:false):
$wgVaryOnXFP
Add X-Forwarded-Proto to the Vary and Key headers for API requests and RSS/Atom feeds.
$wgDebugLogGroups
Map of string log group names to log destinations.
$wgSVGConverterPath
If not in the executable PATH, specify the SVG converter path.
$wgSharedDB
Shared database for multiple wikis.
$wgPasswordConfig
Configuration for built-in password types.
$wgSessionCacheType
The cache type for storing session data.
$wgSharedUploadDBprefix
Optional table prefix used in database.
$wgExtensionDirectory
Filesystem extensions directory.
$wgEnotifMinorEdits
Potentially send notification mails on minor edits to pages.
$wgStatsdSamplingRates
Sampling rate for statsd metrics as an associative array of patterns and rates.
$wgEnableScaryTranscluding
Enable interwiki transcluding.
$wgDebugDumpSql
Write SQL queries to the debug log.
$wgExternalLinkTarget
Set a default target for external links, e.g.
$wgDummyLanguageCodes
Functionally the same as $wgExtraLanguageCodes, but deprecated.
$wgMimeTypeBlacklist
Files with these MIME types will never be allowed as uploads if $wgVerifyMimeType is enabled.
$wgSearchTypeAlternatives
Alternative search types Sometimes you want to support multiple search engines for testing.
$wgExiv2Command
Some tests and extensions use exiv2 to manipulate the Exif metadata in some image formats.
$wgAllowSlowParserFunctions
Enable slow parser functions.
bool[] $wgAllowSecuritySensitiveOperationIfCannotReauthenticate
Whether to allow security-sensitive operations when re-authentication is not possible.
$wgAttemptFailureEpoch
Certain operations are avoided if there were too many recent failures, for example,...
float[] $wgJobBackoffThrottling
Map of job types to how many job "work items" should be run per second on each job runner process.
$wgFetchCommonsDescriptions
Fetch commons image description pages and display them on the local wiki?
$wgDBserver
Database host name or IP address.
$wgRecentChangesFlags
Flags (letter symbols) shown in recent changes and watchlist to indicate certain types of edits.
$wgSquidPurgeUseHostHeader
Whether to use a Host header in purge requests sent to the proxy servers configured in $wgSquidServer...
$wgLoadScript
The URL path to load.php.
$wgDnsBlacklistUrls
List of DNS blacklists to use, if $wgEnableDnsBlacklist is true.
$wgCookieSecure
Whether the "secure" flag should be set on the cookie.
$wgUseTwoButtonsSearchForm
Search form behavior.
$wgDebugRedirects
If true, instead of redirecting, show a page with a link to the redirect destination.
$wgEnableAPI
Enable the MediaWiki API for convenient access to machine-readable data via api.php.
$wgAPIModules
API module extensions.
$wgExtraLanguageCodes
List of mappings from one language code to another.
$wgSpecialPageCacheUpdates
Additional functions to be performed with updateSpecialPages.
$wgOpenSearchDescriptionLength
Minimum length of extract in .
$wgResourceLoaderValidateJS
If set to true, JavaScript modules loaded from wiki pages will be parsed prior to minification to val...
$wgSMTP
SMTP Mode.
$wgLanguageConverterCacheType
The cache type for storing language conversion tables, which are used when parsing certain text and i...
$wgCanonicalServer
Canonical URL of the server, to use in IRC feeds and notification e-mails.
$wgMiserMode
Disable database-intensive features.
$wgOverrideSiteFeed
Override the site's default RSS/ATOM feed for recentchanges that appears on every page.
$wgAutoConfirmAge
Number of seconds an account is required to age before it's given the implicit 'autoconfirm' group me...
$wgCacheVaryCookies
A list of cookies that vary the cache (for use by extensions)
$wgNamespaceAliases
Namespace aliases.
bool array string $wgInterwikiCache
Interwiki cache, either as an associative array or a path to a constant database (....
$wgTrivialMimeDetection
Switch for trivial MIME detection.
$wgStylePath
The URL path of the skins directory.
$wgDjvuDump
Path of the djvudump executable Enable this and $wgDjvuRenderer to enable djvu rendering example: $wg...
$wgServer
URL of the server.
$wgDBssl
Whether to use SSL in DB connection.
$wgRCFilterByAge
Filter $wgRCLinkDays by $wgRCMaxAge to avoid showing links for numbers higher than what will be store...
$wgUploadThumbnailRenderMethod
The method through which the thumbnails will be prerendered for the entries in $wgUploadThumbnailRend...
$wgMinimalPasswordLength
Specifies the minimal length of a user password.
$wgUploadThumbnailRenderHttpCustomDomain
When using the "http" wgUploadThumbnailRenderMethod, lets one specify a custom domain to send the HTT...
$wgRCWatchCategoryMembership
Treat category membership changes as a RecentChange.
$wgFeed
Provide syndication feeds (RSS, Atom) for, e.g., Recentchanges, Newpages.
$wgXhtmlDefaultNamespace
The default xmlns attribute.
$wgWatchersMaxAge
Page watchers inactive for more than this many seconds are considered inactive.
$wgSessionPbkdf2Iterations
Number of internal PBKDF2 iterations to use when deriving session secrets.
$wgRunJobsAsync
When $wgJobRunRate > 0, try to run jobs asynchronously, spawning a new process to handle the job exec...
$wgMetaNamespace
Name of the project namespace.
$wgExtensionCredits
An array of information about installed extensions keyed by their type.
$wgEmailAuthentication
Require email authentication before sending mail to an email address.
$wgLogo
The URL path of the wiki logo.
$wgDevelopmentWarnings
If set to true MediaWiki will throw notices for some possible error conditions and for deprecated fun...
$wgEdititis
Display user edit counts in various prominent places.
bool $wgSearchRunSuggestedQuery
Controls whether zero-result search queries with suggestions should display results for these suggest...
$wgStyleSheetPath
The URL path to index.php.
$wgJobClasses
Maps jobs to their handling classes; extensions can add to this to provide custom jobs.
$wgHtml5
Previously used to determine if we should output an HTML5 doctype.
$wgTrustedMediaFormats
list of trusted media-types and MIME types.
$wgNamespaceContentModels
Associative array mapping namespace IDs to the name of the content model pages in that namespace shou...
$wgSVGConverters
Scalable Vector Graphics (SVG) may be uploaded as images.
$wgUseFileCache
This will cache static pages for non-logged-in users to reduce database traffic on public sites.
$wgMaxUploadSize
Max size for uploads, in bytes.
$wgHtml5Version
Defines the value of the version attribute in the <html> tag, if any.
$wgExceptionHooks
Hooks that are used for outputting exceptions.
$wgSessionSecret
Secret for session storage.
$wgOpenSearchDefaultLimit
Integer defining default number of entries to show on OpenSearch call.
$wgMaxCredits
Set this to the number of authors that you want to be credited below an article text.
$wgSharedSchema
$wgSysopEmailBans
Allow sysops to ban users from accessing Emailuser.
$wgEditPageFrameOptions
The X-Frame-Options header to send on pages sensitive to clickjacking attacks, such as edit pages.
$wgDebugLogFile
Filename for debug logging.
$wgAccountCreationThrottle
Number of accounts each IP address may create per specified period(s).
$wgSessionInsecureSecrets
If for some reason you can't install the PHP OpenSSL or mcrypt extensions, you can set this to true t...
$wgForceUIMsgAsContentMsg
When translating messages with wfMessage(), it is not always clear what should be considered UI messa...
$wgPasswordSender
Sender email address for e-mail notifications.
$wgLogActionsHandlers
The same as above, but here values are names of classes, not messages.
$wgDBOracleDRCP
Set true to enable Oracle DCRP (supported from 11gR1 onward)
$wgRateLimits
Simple rate limiter options to brake edit floods.
$wgNamespacesToBeSearchedDefault
List of namespaces which are searched by default.
$wgEnableCanonicalServerLink
Output a <link rel="canonical"> tag on every page indicating the canonical server which should be use...
$wgPasswordReminderResendTime
Minimum time, in hours, which must elapse between password reminder emails for a given account.
$wgUpdateRowsPerQuery
Number of rows to update per query.
$wgUploadThumbnailRenderMap
When defined, is an array of thumbnail widths to be rendered at upload time.
$wgTiffThumbnailType
Browsers don't support TIFF inline generally... For inline display, we need to convert to PNG or JPEG...
$wgCopyUploadProxy
Proxy to use for copy upload requests.
$wgSVGMetadataCutoff
Don't read SVG metadata beyond this point.
$wgXhtmlNamespaces
Permit other namespaces in addition to the w3.org default.
$wgMetaNamespaceTalk
Name of the project talk namespace.
$wgExpensiveParserFunctionLimit
Maximum number of calls per parse to expensive parser functions such as PAGESINCATEGORY.
$wgLocalTZoffset
Set an offset from UTC in minutes to use for the default timezone setting for anonymous users and new...
$wgAllowTitlesInSVG
Disallow <title> element in SVG files.
$wgHTMLFormAllowTableFormat
Temporary variable that allows HTMLForms to be rendered as tables.
$wgDisableQueryPages
Disable all query pages if miser mode is on, not just some.
$wgExiftool
Path to exiftool binary.
$wgCookiePrefix
Cookies generated by MediaWiki have names starting with this prefix.
$wgContentHandlerUseDB
Set to false to disable use of the database fields introduced by the ContentHandler facility.
$wgResourceModuleSkinStyles
Skin-specific styles for resource modules.
$wgAPIMaxDBRows
Maximum amount of rows to scan in a DB query in the API The default value is generally fine.
$wgExtraLanguageNames
List of language names or overrides for default names in Names.php.
$wgSharedPrefix
$wgHTCPMulticastTTL
HTCP multicast TTL.
$wgLBFactoryConf
Load balancer factory configuration To set up a multi-master wiki farm, set the class here to somethi...
$wgMsgCacheExpiry
Expiry time for the message cache key.
$wgOOUIEditPage
Temporary variable that determines whether the EditPage class should use OOjs UI or not.
string bool $wgBotPasswordsCluster
Cluster for the bot_passwords table If false, the normal cluster will be used.
$wgEventRelayerConfig
Mapping of event channels (or channel categories) to EventRelayer configuration.
$wgImportTargetNamespace
Optional default target namespace for interwiki imports.
Array $wgGrantPermissionGroups
Map of grants to their UI grouping.
$wgRightsPage
Override for copyright metadata.
$wgAPICacheHelpTimeout
Set the timeout for the API help text cache.
$wgMainWANCache
Main Wide-Area-Network cache type.
$wgMaxShellTime
Maximum CPU time in seconds for shell processes under Linux.
$wgPagePropsHaveSortkey
Whether the page_props table has a pp_sortkey column.
$wgDebugPrintHttpHeaders
Print HTTP headers for every request in the debug information.
$wgLocalisationCacheConf
Localisation cache configuration.
$wgMaxTocLevel
Maximum indent level of toc.
$wgUseSharedUploads
If you operate multiple wikis, you can define a shared upload path here.
$wgCopyUploadTimeout
Different timeout for upload by url This could be useful since when fetching large files,...
$wgOpenSearchTemplates
Templates for OpenSearch suggestions, defaults to API action=opensearch.
$wgLinkHolderBatchSize
LinkHolderArray batch size For debugging.
$wgSearchSuggestCacheExpiry
Expiry time for search suggestion responses.
$wgAutopromoteOnce
Automatically add a usergroup to any user who matches certain conditions.
$wgMimeDetectorCommand
Sets an external MIME detector program.
$wgContentHandlers
Plugins for page content model handling.
$wgHttpsPort
Port where you have HTTPS running Supports HTTPS on non-standard ports.
$wgCopyUploadsFromSpecialUpload
Enable copy uploads from Special:Upload.
$wgImageMagickConvertCommand
The convert command shipped with ImageMagick.
$wgUsePrivateIPs
Should forwarded Private IPs be accepted?
$wgSiteSupportPage
If this is set, a "donate" link will appear in the sidebar.
$wgGitBin
Fully specified path to git binary.
$wgExternalDiffEngine
Name of the external diff engine to use.
$wgFixArabicUnicode
Set this to true to replace Arabic presentation forms with their standard forms in the U+0600-U+06FF ...
$wgAjaxExportList
List of Ajax-callable functions.
$wgLangObjCacheSize
Language cache size, or really how many languages can we handle simultaneously without degrading to c...
$wgDiff
Path to the GNU diff utility.
$wgDBpassword
Database user's password.
$wgFavicon
The URL path of the shortcut icon.
$wgShowEXIF
Show Exif data, on by default if available.
$wgTidyConfig
Configuration for HTML postprocessing tool.
float bool $wgJobSerialCommitThreshold
Make job runners commit changes for replica DB-lag prone jobs one job at a time.
$wgAllowCopyUploads
Allow for upload to be copied from an URL.
$wgUseSiteJs
Use the site's Javascript page?
$wgRCLinkDays
List of Days options to list in the Special:Recentchanges and Special:Recentchangeslinked pages.
$wgShowSQLErrors
Whether to show "we're sorry, but there has been a database error" pages.
$wgEnotifUseRealName
Use real name instead of username in e-mail "from" field.
$wgLogoHD
Array with URL paths to HD versions of the wiki logo.
$wgNewUserLog
Maintain a log of newusers at Log/newusers?
$wgTextModelsToParse
Determines which types of text are parsed as wikitext.
$wgDisableTitleConversion
Whether to enable language variant conversion for links.
$wgSpecialPages
Special page list.
global $wgCommandLineMode
Definition Setup.php:503
$IP
Definition WebStart.php:58
Value object for representing interwiki records.
Definition Interwiki.php:27
Dynamic JavaScript and CSS resource loading system.
This is a class for holding configuration settings, particularly for multi-wiki sites.
The ContentHandler facility adds support for arbitrary content types on wiki pages
The ContentHandler facility adds support for arbitrary content types on wiki instead of relying on wikitext for everything It was introduced in MediaWiki Each kind of and so on Built in content types as usual *javascript user provided javascript code *json simple implementation for use by extensions
design txt This is a brief overview of the new design More thorough and up to date information is available on the documentation wiki at etc Handles the details of getting and saving to the user table of the and dealing with sessions and cookies OutputPage Encapsulates the entire HTML page that will be sent in response to any server request It is used by calling its functions to add in any and then calling output() to send it all. It could be easily changed to send incrementally if that becomes useful
design txt This is a brief overview of the new design More thorough and up to date information is available on the documentation wiki at etc Handles the details of getting and saving to the user table of the and dealing with sessions and cookies OutputPage Encapsulates the entire HTML page that will be sent in response to any server request It is used by calling its functions to add text
Definition design.txt:18
This document is intended to provide useful advice for parties seeking to redistribute MediaWiki to end users It s targeted particularly at maintainers for Linux since it s been observed that distribution packages of MediaWiki often break We ve consistently had to recommend that users seeking support use official tarballs instead of their distribution s and this often solves whatever problem the user is having It would be nice if this could such and we might be restricted by PHP settings such as safe mode or open_basedir We cannot assume that the software even has read access anywhere useful Many shared hosts run all users web applications under the same user
Wikitext formatted, in the key only.
globals txt Globals are evil The original MediaWiki code relied on globals for processing context far too often MediaWiki development since then has been a story of slowly moving context out of global variables and into objects Storing processing context in object member variables allows those objects to be reused in a much more flexible way Consider the elegance of
database rows
Definition globals.txt:10
globals will be eliminated from MediaWiki replaced by an application object which would be passed to constructors Whether that would be an convenient solution remains to be but certainly PHP makes such object oriented programming models easier than they were in previous versions For the time being MediaWiki programmers will have to work in an environment with some global context At the time of globals were initialised on startup by MediaWiki of these were configuration settings
Definition globals.txt:37
const AV_SCAN_FAILED
Definition Defines.php:112
const AV_VIRUS_FOUND
Definition Defines.php:110
const APCOND_AGE
Definition Defines.php:204
const NS_HELP
Definition Defines.php:74
const NS_USER
Definition Defines.php:64
const CONTENT_MODEL_CSS
Definition Defines.php:235
const CACHE_NONE
Definition Defines.php:100
const CACHE_ANYTHING
Definition Defines.php:99
const NS_MEDIAWIKI_TALK
Definition Defines.php:71
const NS_MAIN
Definition Defines.php:62
const NS_PROJECT_TALK
Definition Defines.php:67
const NS_MEDIAWIKI
Definition Defines.php:70
const NS_TEMPLATE
Definition Defines.php:72
const CACHE_ACCEL
Definition Defines.php:103
const NS_FILE_TALK
Definition Defines.php:69
const CONTENT_MODEL_WIKITEXT
Definition Defines.php:233
const CONTENT_MODEL_JSON
Definition Defines.php:237
const NS_HELP_TALK
Definition Defines.php:75
const NS_CATEGORY_TALK
Definition Defines.php:77
const CACHE_MEMCACHED
Definition Defines.php:102
const CONTENT_MODEL_TEXT
Definition Defines.php:236
const CACHE_DB
Definition Defines.php:101
const AV_SCAN_ABORTED
Definition Defines.php:111
const APCOND_EDITCOUNT
Definition Defines.php:203
const NS_TALK
Definition Defines.php:63
const AV_NO_VIRUS
Definition Defines.php:109
const NS_USER_TALK
Definition Defines.php:65
const NS_PROJECT
Definition Defines.php:66
const NS_CATEGORY
Definition Defines.php:76
const CONTENT_MODEL_JAVASCRIPT
Definition Defines.php:234
const NS_TEMPLATE_TALK
Definition Defines.php:73
the array() calling protocol came about after MediaWiki 1.4rc1.
For QUnit the mediawiki tests qunit testrunner dependency will be added to any module it s the URL of the revision text in external storage
Definition hooks.txt:2749
null means default in associative array with keys and values unescaped Should be merged with default with a value of false meaning to suppress the attribute in associative array with keys and values unescaped noclasses just before the function returns a value If you return true
Definition hooks.txt:1967
if the prop value should be in the metadata multi language array format
Definition hooks.txt:1637
We ve cleaned up the code here by removing clumps of infrequently used code and moving them off somewhere else It s much easier for someone working with this code to see what s _really_ going and make changes or fix bugs In we can take all the code that deals with the little used title reversing we can concentrate it all in an extension file
Definition hooks.txt:108
processing should stop and the error should be shown to the user * false
Definition hooks.txt:189
injection txt This is an overview of how MediaWiki makes use of dependency injection The design described here grew from the discussion of RFC T384 The term dependency this means that anything an object needs to operate should be injected from the the object itself should only know narrow no concrete implementation of the logic it relies on The requirement to inject everything typically results in an architecture that based on two main types of and essentially stateless service objects that use other service objects to operate on the value objects As of the beginning MediaWiki is only starting to use the DI approach Much of the code still relies on global state or direct resulting in a highly cyclical dependency which acts as the top level factory for services in MediaWiki which can be used to gain access to default instances of various services MediaWikiServices however also allows new services to be defined and default services to be redefined Services are defined or redefined by providing a callback the instantiator that will return a new instance of the service When it will create an instance of MediaWikiServices and populate it with the services defined in the files listed by thereby bootstrapping the DI framework Per $wgServiceWiringFiles lists includes ServiceWiring php
Definition injection.txt:37
you have access to all of the normal MediaWiki so you can get a DB use the cache
MediaWiki has optional support for a high performance
Definition memcached.txt:1
CACHE_MEMCACHED $wgMainCacheType
Definition memcached.txt:63
storage can be distributed across multiple and multiple web servers can use the same cache cluster *********************W A R N I N G ***********************Memcached has no security or authentication Please ensure that your server is appropriately and that the anyone on the internet can put data into and read data from your cache An attacker familiar with MediaWiki internals could use this to steal passwords and email addresses
Definition memcached.txt:43
const MEDIATYPE_VIDEO
Definition defines.php:35
const MEDIATYPE_AUDIO
Definition defines.php:32
const MEDIATYPE_BITMAP
Definition defines.php:28
title