MediaWiki REL1_35
DefaultSettings.php
Go to the documentation of this file.
1<?php
46if ( !defined( 'MEDIAWIKI' ) ) {
47 echo "This file is part of MediaWiki and is not a valid entry point\n";
48 die( 1 );
49}
50
59
67 'main' => 'GlobalVarConfig::newInstance'
68];
69
76
80$wgSitename = 'MediaWiki';
81
84/************************************************************************/
111$wgServer = false;
112
121
128
136
149
169
180
198$wgUsePathInfo = ( strpos( PHP_SAPI, 'cgi' ) === false ) &&
199 ( strpos( PHP_SAPI, 'apache2filter' ) === false ) &&
200 ( strpos( PHP_SAPI, 'isapi' ) === false );
201
207$wgScript = false;
208
216
223
231
238
245
251$wgExtensionDirectory = "{$IP}/extensions";
252
258$wgStyleDirectory = "{$IP}/skins";
259
268
274
288
296
301
307
315$wgLogo = false;
316
334$wgLogos = false;
335
366$wgLogoHD = false;
367
372$wgFavicon = '/favicon.ico';
373
380
400
423
430
439
455
458/************************************************************************/
473
477$wgUploadStashMaxAge = 6 * 3600; // 6 hours
478
487
497
506
512
517
533
628
643
654
684
693
702
711
718$wgRepositoryBaseUrl = 'https://commons.wikimedia.org/wiki/File:';
719
728
738
747
756
767
778 // Fields to make available in the dialog. `true` means that this field is visible, `false` means
779 // that it is hidden. The "Name" field can't be hidden. Note that you also have to add the
780 // matching replacement to the 'filepage' format key below to make use of these.
781 'fields' => [
782 'description' => true,
783 'date' => false,
784 'categories' => false,
785 ],
786 // Suffix of localisation messages used to describe the license under which the uploaded file will
787 // be released. The same value may be set for both 'local' and 'foreign' uploads.
788 'licensemessages' => [
789 // The 'local' messages are used for local uploads on this wiki:
790 // * upload-form-label-own-work-message-generic-local
791 // * upload-form-label-not-own-work-message-generic-local
792 // * upload-form-label-not-own-work-local-generic-local
793 'local' => 'generic-local',
794 // The 'foreign' messages are used for cross-wiki uploads from other wikis to this wiki:
795 // * upload-form-label-own-work-message-generic-foreign
796 // * upload-form-label-not-own-work-message-generic-foreign
797 // * upload-form-label-not-own-work-local-generic-foreign
798 'foreign' => 'generic-foreign',
799 ],
800 // Upload comments to use for 'local' and 'foreign' uploads. This can also be set to a single
801 // string value, in which case it is used for both kinds of uploads. Available replacements:
802 // * $HOST - domain name from which a cross-wiki upload originates
803 // * $PAGENAME - wiki page name from which an upload originates
804 'comment' => [
805 'local' => '',
806 'foreign' => '',
807 ],
808 // Format of the file page wikitext to be generated from the fields input by the user.
809 'format' => [
810 // Wrapper for the whole page. Available replacements:
811 // * $DESCRIPTION - file description, as input by the user (only if the 'description' field is
812 // enabled), wrapped as defined below in the 'description' key
813 // * $DATE - file creation date, as input by the user (only if the 'date' field is enabled)
814 // * $SOURCE - as defined below in the 'ownwork' key, may be extended in the future
815 // * $AUTHOR - linked user name, may be extended in the future
816 // * $LICENSE - as defined below in the 'license' key, may be extended in the future
817 // * $CATEGORIES - file categories wikitext, as input by the user (only if the 'categories'
818 // field is enabled), or if no input, as defined below in the 'uncategorized' key
819 'filepage' => '$DESCRIPTION',
820 // Wrapped for file description. Available replacements:
821 // * $LANGUAGE - source wiki's content language
822 // * $TEXT - input by the user
823 'description' => '$TEXT',
824 'ownwork' => '',
825 'license' => '',
826 'uncategorized' => '',
827 ],
828];
829
868
880
892$wgShowEXIF = function_exists( 'exif_read_data' );
893
900
907
914
921
927
939
960$wgMaxUploadSize = 1024 * 1024 * 100;
961
977
989
996
1009
1018
1026
1035$wgFileExtensions = [ 'png', 'gif', 'jpg', 'jpeg', 'webp' ];
1036
1043 # HTML may contain cookie-stealing JavaScript and web bugs
1044 'html', 'htm', 'js', 'jsb', 'mhtml', 'mht', 'xhtml', 'xht',
1045 # PHP scripts may execute arbitrary code on the server
1046 'php', 'phtml', 'php3', 'php4', 'php5', 'phps', 'phar',
1047 # Other types that may be interpreted by some servers
1048 'shtml', 'jhtml', 'pl', 'py', 'cgi',
1049 # May contain harmful executables for Windows victims
1050 'exe', 'scr', 'dll', 'msi', 'vbs', 'bat', 'com', 'pif', 'cmd', 'vxd', 'cpl',
1051 # T341565
1052 'xml',
1053];
1054
1060 # HTML may contain cookie-stealing JavaScript and web bugs
1061 'text/html',
1062 # Similarly with JavaScript itself
1063 'application/javascript', 'text/javascript', 'text/x-javascript', 'application/x-shellscript',
1064 # PHP scripts may execute arbitrary code on the server
1065 'application/x-php', 'text/x-php',
1066 # Other types that may be interpreted by some servers
1067 'text/x-python', 'text/x-perl', 'text/x-bash', 'text/x-sh', 'text/x-csh',
1068 # Client-side hazards on Internet Explorer
1069 'text/scriptlet', 'application/x-msdownload',
1070 # Windows metafile, client-side vulnerability on some systems
1071 'application/x-msmetafile',
1072 # XML files generally - T341565
1073 'application/xml', 'text/xml',
1074];
1075
1082
1089
1097
1105
1110
1122 MEDIATYPE_BITMAP, // all bitmap formats
1123 MEDIATYPE_AUDIO, // all audio formats
1124 MEDIATYPE_VIDEO, // all plain video formats
1125 "image/svg+xml", // svg (only needed if inline rendering of svg is not supported)
1126 "application/pdf", // PDF files
1127 # "application/x-shockwave-flash", //flash/shockwave movie
1128];
1129
1138
1144 'image/jpeg' => 'MockBitmapHandler',
1145 'image/png' => 'MockBitmapHandler',
1146 'image/gif' => 'MockBitmapHandler',
1147 'image/tiff' => 'MockBitmapHandler',
1148 'image/webp' => 'MockBitmapHandler',
1149 'image/x-ms-bmp' => 'MockBitmapHandler',
1150 'image/x-bmp' => 'MockBitmapHandler',
1151 'image/x-xcf' => 'MockBitmapHandler',
1152 'image/svg+xml' => 'MockSvgHandler',
1153 'image/vnd.djvu' => 'MockDjVuHandler',
1154];
1155
1164 // the usual case
1165 CONTENT_MODEL_WIKITEXT => WikitextContentHandler::class,
1166 // dumb version, no syntax highlighting
1167 CONTENT_MODEL_JAVASCRIPT => JavaScriptContentHandler::class,
1168 // simple implementation, for use by extensions, etc.
1169 CONTENT_MODEL_JSON => JsonContentHandler::class,
1170 // dumb version, no syntax highlighting
1171 CONTENT_MODEL_CSS => CssContentHandler::class,
1172 // plain text, for use by extensions, etc.
1173 CONTENT_MODEL_TEXT => TextContentHandler::class,
1174];
1175
1182
1192
1196$wgImageMagickConvertCommand = '/usr/bin/convert';
1197
1203
1208
1213
1219
1233
1239$wgJpegTran = '/usr/bin/jpegtran';
1240
1261
1270
1275$wgExiv2Command = '/usr/bin/exiv2';
1276
1282$wgExiftool = '/usr/bin/exiftool';
1283
1294 'ImageMagick' =>
1295 '$path/convert -background "#ffffff00" -thumbnail $widthx$height\! $input PNG:$output',
1296 'sodipodi' => '$path/sodipodi -z -w $width -f $input -e $output',
1297 'inkscape' => '$path/inkscape -z -w $width -f $input -e $output',
1298 'batik' => 'java -Djava.awt.headless=true -jar $path/batik-rasterizer.jar -w $width -d '
1299 . '$output $input',
1300 'rsvg' => '$path/rsvg-convert -w $width -h $height -o $output $input',
1301 'imgserv' => '$path/imgserv-wrapper -i svg -o png -w$width $input $output',
1302 'ImagickExt' => [ 'SvgHandler::rasterizeImagickExt' ],
1303];
1304
1308$wgSVGConverter = 'ImageMagick';
1309
1314
1319
1325
1335
1350
1358
1373
1380$wgThumbnailEpoch = '20030516000000';
1381
1389
1402
1424
1429
1436
1443
1479
1480 # setup for clamav
1481 'clamav' => [
1482 'command' => 'clamscan --no-summary ',
1483 'codemap' => [
1484 "0" => AV_NO_VIRUS, # no virus
1485 "1" => AV_VIRUS_FOUND, # virus found
1486 "52" => AV_SCAN_ABORTED, # unsupported file format (probably immune)
1487 "*" => AV_SCAN_FAILED, # else scan failed
1488 ],
1489 'messagepattern' => '/.*?:(.*)/sim',
1490 ],
1491];
1492
1497
1502
1512
1522$wgMimeTypeFile = 'internal';
1523
1528$wgMimeInfoFile = 'internal';
1529
1542
1549
1555 'http://www.w3.org/2000/svg:svg' => 'image/svg+xml',
1556 'svg' => 'image/svg+xml',
1557 'http://www.lysator.liu.se/~alla/dia/:diagram' => 'application/x-dia-diagram',
1558 'http://www.w3.org/1999/xhtml:html' => 'text/html', // application/xhtml+xml?
1559 'html' => 'text/html', // application/xhtml+xml?
1560];
1561
1571 [ 320, 240 ],
1572 [ 640, 480 ],
1573 [ 800, 600 ],
1574 [ 1024, 768 ],
1575 [ 1280, 1024 ]
1576];
1577
1584 120,
1585 150,
1586 180,
1587 200,
1588 250,
1589 300
1590];
1591
1602
1619
1631
1644
1651
1659
1667
1683
1690
1695
1703
1721
1733
1740
1747
1763
1770
1775
# end of DJvu }
1777
# end of file uploads }
1779
1780/************************************************************************/
1791
1801
1808
1815
1821
1831
1838
1849
1855
1859$wgNewPasswordExpiry = 3600 * 24 * 7;
1860
1865
1871
1876$wgPasswordExpireGrace = 3600 * 24 * 7; // 7 days
1877
1895$wgSMTP = false;
1896
1901
1907
1920
1921// TODO move UPO to preferences probably ?
1922# If set to true, users get a corresponding option in their preferences and can choose to
1923# enable or disable at their discretion
1924# If set to false, the corresponding input form on the user preference page is suppressed
1925# It call this to be a "user-preferences-option (UPO)"
1926
1933
1938
1947
1963
1978
1987
1993
1998
2004
# end of email settings
2006
2007/************************************************************************/
2020$wgDBname = 'my_wiki';
2021
2031
2041
2045$wgDBserver = 'localhost';
2046
2051
2055$wgDBuser = 'wikiuser';
2056
2061
2065$wgDBtype = 'mysql';
2066
2075$wgDBssl = false;
2076
2086
2091
2096
2109
2123
2127$wgDBTableOptions = 'ENGINE=InnoDB, DEFAULT CHARSET=binary';
2128
2136
2143
2148
2175
2180
2185$wgSharedTables = [ 'user', 'user_properties' ];
2186
2192
2247
2258$wgLBFactoryConf = [ 'class' => \Wikimedia\Rdbms\LBFactorySimple::class ];
2259
2267
2272
2292
2307
2314
2319
# End of DB settings }
2327
2328/************************************************************************/
2340
2353
2369
2385
2393
# end text storage }
2395
2396/************************************************************************/
2405
2410
2415
2420
2425
2430
2435
2441
2449
# end performance hacks }
2451
2452/************************************************************************/
2466
2485
2493
2501
2508
2518
2533 CACHE_NONE => [ 'class' => EmptyBagOStuff::class, 'reportDupes' => false ],
2534 CACHE_DB => [ 'class' => SqlBagOStuff::class, 'loggroup' => 'SQLBagOStuff' ],
2535
2536 CACHE_ANYTHING => [ 'factory' => 'ObjectCache::newAnything' ],
2537 CACHE_ACCEL => [ 'factory' => 'ObjectCache::getLocalServerInstance' ],
2538 CACHE_MEMCACHED => [ 'class' => MemcachedPhpBagOStuff::class, 'loggroup' => 'memcached' ],
2539
2540 'db-replicated' => [
2541 'class' => ReplicatedBagOStuff::class,
2542 'readFactory' => [
2543 'factory' => 'ObjectCache::newFromParams',
2544 'args' => [ [ 'class' => SqlBagOStuff::class, 'replicaOnly' => true ] ]
2545 ],
2546 'writeFactory' => [
2547 'factory' => 'ObjectCache::newFromParams',
2548 'args' => [ [ 'class' => SqlBagOStuff::class, 'replicaOnly' => false ] ]
2549 ],
2550 'loggroup' => 'SQLBagOStuff',
2551 'reportDupes' => false
2552 ],
2553 'memcached-php' => [ 'class' => MemcachedPhpBagOStuff::class, 'loggroup' => 'memcached' ],
2554 'memcached-pecl' => [ 'class' => MemcachedPeclBagOStuff::class, 'loggroup' => 'memcached' ],
2555 'hash' => [ 'class' => HashBagOStuff::class, 'reportDupes' => false ],
2556
2557 // Deprecated since 1.35.
2558 // - To configure a wg*CacheType variable to use the local server cache,
2559 // use CACHE_ACCEL instead, which will select these automatically.
2560 // - To access the object for the local server cache at run-time,
2561 // use MediaWikiServices::getLocalServerObjectCache()
2562 // instead of e.g. ObjectCache::getInstance( 'apcu' ).
2563 // - To instantiate a new one of these explicitly, do so directly
2564 // by using `new APCUBagOStuff( [ … ] )`
2565 // - To instantiate a new one of these including auto-detection and fallback,
2566 // use ObjectCache::makeLocalServerCache().
2567 'apc' => [ 'class' => APCUBagOStuff::class, 'reportDupes' => false ],
2568 'apcu' => [ 'class' => APCUBagOStuff::class, 'reportDupes' => false ],
2569 'wincache' => [ 'class' => WinCacheBagOStuff::class, 'reportDupes' => false ],
2570];
2571
2594
2621 CACHE_NONE => [
2622 'class' => WANObjectCache::class,
2623 'cacheId' => CACHE_NONE,
2624 ]
2625];
2626
2639
2675$wgMainStash = 'db-replicated';
2676
2682
2687
2705
2712
2716$wgMemCachedServers = [ '127.0.0.1:11211' ];
2717
2723
2728
2741
2749
2782 'class' => LocalisationCache::class,
2783 'store' => 'detect',
2784 'storeClass' => false,
2785 'storeDirectory' => false,
2786 'storeServer' => [],
2787 'forceRecache' => false,
2788 'manualRecache' => false,
2789];
2790
2795
2804$wgCacheEpoch = '20030516000000';
2805
2811
2818
2826
2832
2843
2848
2855
2863
2874
2891
# end of cache settings
2893
2894/************************************************************************/
2916
2926
2936
2947
2955
2963
2972
2988
2995
3002
3014
3024
3046
3094
3100
3105
# end of HTTP proxy settings
3107
3108/************************************************************************/
3130
3136
3147
3152
3157
3172
3181
3186
3201 // Language codes of macro languages, which get mapped to the main language
3202 'bh' => 'bho', // Bihari language family
3203 'no' => 'nb', // Norwegian language family
3204
3205 // Language variants which get mapped to the main language
3206 'simple' => 'en', // Simple English
3207];
3208
3216
3225
3237
3251
3257
3263
3269
3274
3279
3284
3289
3295
3306
3325
3332
3353
3378
3389
3402
# End of language/charset settings
3404
3405/*************************************************************************/
3413$wgMimeType = 'text/html';
3414
3424
3433
3441
3450
3466
3475
3481
3487$wgFallbackSkin = 'fallback';
3488
3500
3507
3514
3522
3527
3532
3538
3559
3571
3576
3605$wgFragmentMode = [ 'legacy', 'html5' ];
3606
3616
3648 "copyright" => [
3649 "copyright" => [], // placeholder for the built in copyright icon
3650 ],
3651 "poweredby" => [
3652 "mediawiki" => [
3653 // Defaults to point at
3654 // "$wgResourceBasePath/resources/assets/poweredby_mediawiki_88x31.png"
3655 // plus srcset for 1.5x, 2x resolution variants.
3656 "src" => null,
3657 "url" => "https://www.mediawiki.org/",
3658 "alt" => "Powered by MediaWiki",
3659 ]
3660 ],
3661];
3662
3670
3675
3688
3699
3707
3717
# End of output format settings }
3719
3720/*************************************************************************/
4013
4104
4116
4122
4140 'versioned' => 30 * 24 * 60 * 60, // 30 days
4141 'unversioned' => 5 * 60, // 5 minutes
4142];
4143
4151
4158
4165
4176
4203
4218
4227
4237
4243
4251
4264
4275
# End of ResourceLoader settings }
4277
4278/*************************************************************************/
4288
4297
4325
4333
4356
4381$wgLegalTitleChars = " %!\"$&'()*,\\-.\\/0-9:;=?@A-Z\\\\^_`a-z~\\x80-\\xFF+";
4382
4390
4395
4420
4428
4433
# end of Interwiki caching settings.
4435
4451$wgRedirectSources = false;
4452
4461
4476
4482 NS_TALK => true,
4483 NS_USER => true,
4484 NS_USER_TALK => true,
4485 NS_PROJECT => true,
4486 NS_PROJECT_TALK => true,
4487 NS_FILE_TALK => true,
4488 NS_MEDIAWIKI => true,
4489 NS_MEDIAWIKI_TALK => true,
4490 NS_TEMPLATE => true,
4491 NS_TEMPLATE_TALK => true,
4492 NS_HELP => true,
4493 NS_HELP_TALK => true,
4495];
4496
4513
4521
4529
4538
4545
4556$wgInvalidRedirectTargets = [ 'Filepath', 'Mypage', 'Mytalk', 'Redirect' ];
4557
# End of title and interwiki settings }
4559
4560/************************************************************************/
4582 'class' => Parser::class,
4583];
4584
4589
4595
4603
4608
4620 'bitcoin:', 'ftp://', 'ftps://', 'geo:', 'git://', 'gopher://', 'http://',
4621 'https://', 'irc://', 'ircs://', 'magnet:', 'mailto:', 'matrix:', 'mms://',
4622 'news:', 'nntp://', 'redis://', 'sftp://', 'sip:', 'sips:', 'sms:',
4623 'ssh://', 'svn://', 'tel:', 'telnet://', 'urn:', 'worldwind://', 'xmpp:',
4624 '//',
4625];
4626
4631
4636
4650
4663
4674
4694$wgTidyConfig = [ 'driver' => 'RemexHtml' ];
4695
4702
4713
4721
4727
4741$wgNoFollowDomainExceptions = [ 'mediawiki.org' ];
4742
4747
4754
4760
4766
4771
4777
4785 'ISBN' => false,
4786 'PMID' => false,
4787 'RFC' => false
4788];
4789
# end of parser settings }
4791
4792/************************************************************************/
4814
4823
# End of statistics }
4825
4826/************************************************************************/
4837 'local' => [ 'class' => LocalIdLookup::class ],
4838];
4839
4845
4917 'policies' => [
4918 'bureaucrat' => [
4919 'MinimalPasswordLength' => 10,
4920 'MinimumPasswordLengthToLogin' => 1,
4921 ],
4922 'sysop' => [
4923 'MinimalPasswordLength' => 10,
4924 'MinimumPasswordLengthToLogin' => 1,
4925 ],
4926 'interface-admin' => [
4927 'MinimalPasswordLength' => 10,
4928 'MinimumPasswordLengthToLogin' => 1,
4929 ],
4930 'bot' => [
4931 'MinimalPasswordLength' => 10,
4932 'MinimumPasswordLengthToLogin' => 1,
4933 ],
4934 'default' => [
4935 'MinimalPasswordLength' => [ 'value' => 1, 'suggestChangeOnLogin' => true ],
4936 'PasswordCannotMatchUsername' => [ 'value' => true, 'suggestChangeOnLogin' => true ],
4937 'PasswordCannotBeSubstringInUsername' => [
4938 'value' => true,
4939 'suggestChangeOnLogin' => true
4940 ],
4941 'PasswordCannotMatchDefaults' => [ 'value' => true, 'suggestChangeOnLogin' => true ],
4942 'MaximalPasswordLength' => [ 'value' => 4096, 'suggestChangeOnLogin' => true ],
4943 'PasswordNotInCommonList' => [ 'value' => true, 'suggestChangeOnLogin' => true ],
4944 ],
4945 ],
4946 'checks' => [
4947 'MinimalPasswordLength' => 'PasswordPolicyChecks::checkMinimalPasswordLength',
4948 'MinimumPasswordLengthToLogin' => 'PasswordPolicyChecks::checkMinimumPasswordLengthToLogin',
4949 'PasswordCannotMatchUsername' => 'PasswordPolicyChecks::checkPasswordCannotMatchUsername',
4950 'PasswordCannotBeSubstringInUsername' =>
4951 'PasswordPolicyChecks::checkPasswordCannotBeSubstringInUsername',
4952 'PasswordCannotMatchBlacklist' => 'PasswordPolicyChecks::checkPasswordCannotMatchDefaults',
4953 'PasswordCannotMatchDefaults' => 'PasswordPolicyChecks::checkPasswordCannotMatchDefaults',
4954 'MaximalPasswordLength' => 'PasswordPolicyChecks::checkMaximalPasswordLength',
4955 'PasswordNotInLargeBlacklist' => 'PasswordPolicyChecks::checkPasswordNotInCommonList',
4956 'PasswordNotInCommonList' => 'PasswordPolicyChecks::checkPasswordNotInCommonList',
4957 ],
4958];
4959
4980
4986 'preauth' => [
4987 MediaWiki\Auth\ThrottlePreAuthenticationProvider::class => [
4988 'class' => MediaWiki\Auth\ThrottlePreAuthenticationProvider::class,
4989 'sort' => 0,
4990 ],
4991 ],
4992 'primaryauth' => [
4993 // TemporaryPasswordPrimaryAuthenticationProvider should come before
4994 // any other PasswordAuthenticationRequest-based
4995 // PrimaryAuthenticationProvider (or at least any that might return
4996 // FAIL rather than ABSTAIN for a wrong password), or password reset
4997 // won't work right. Do not remove this (or change the key) or
4998 // auto-configuration of other such providers in extensions will
4999 // probably auto-insert themselves in the wrong place.
5000 MediaWiki\Auth\TemporaryPasswordPrimaryAuthenticationProvider::class => [
5001 'class' => MediaWiki\Auth\TemporaryPasswordPrimaryAuthenticationProvider::class,
5002 'args' => [ [
5003 // Fall through to LocalPasswordPrimaryAuthenticationProvider
5004 'authoritative' => false,
5005 ] ],
5006 'sort' => 0,
5007 ],
5008 MediaWiki\Auth\LocalPasswordPrimaryAuthenticationProvider::class => [
5009 'class' => MediaWiki\Auth\LocalPasswordPrimaryAuthenticationProvider::class,
5010 'args' => [ [
5011 // Last one should be authoritative, or else the user will get
5012 // a less-than-helpful error message (something like "supplied
5013 // authentication info not supported" rather than "wrong
5014 // password") if it too fails.
5015 'authoritative' => true,
5016 ] ],
5017 'sort' => 100,
5018 ],
5019 ],
5020 'secondaryauth' => [
5021 MediaWiki\Auth\CheckBlocksSecondaryAuthenticationProvider::class => [
5022 'class' => MediaWiki\Auth\CheckBlocksSecondaryAuthenticationProvider::class,
5023 'sort' => 0,
5024 ],
5025 MediaWiki\Auth\ResetPasswordSecondaryAuthenticationProvider::class => [
5026 'class' => MediaWiki\Auth\ResetPasswordSecondaryAuthenticationProvider::class,
5027 'sort' => 100,
5028 ],
5029 // Linking during login is experimental, enable at your own risk - T134952
5030 // MediaWiki\Auth\ConfirmLinkSecondaryAuthenticationProvider::class => [
5031 // 'class' => MediaWiki\Auth\ConfirmLinkSecondaryAuthenticationProvider::class,
5032 // 'sort' => 100,
5033 // ],
5034 MediaWiki\Auth\EmailNotificationSecondaryAuthenticationProvider::class => [
5035 'class' => MediaWiki\Auth\EmailNotificationSecondaryAuthenticationProvider::class,
5036 'sort' => 200,
5037 ],
5038 ],
5039];
5040
5080 'default' => 300,
5081];
5082
5099 'default' => true,
5100];
5101
5112 \MediaWiki\Auth\TemporaryPasswordAuthenticationRequest::class
5113];
5114
5125 \MediaWiki\Auth\PasswordAuthenticationRequest::class,
5126];
5127
5134
5147
5154
5164
5185 'A' => [
5186 'class' => MWOldPassword::class,
5187 ],
5188 'B' => [
5189 'class' => MWSaltedPassword::class,
5190 ],
5191 'pbkdf2-legacyA' => [
5192 'class' => LayeredParameterizedPassword::class,
5193 'types' => [
5194 'A',
5195 'pbkdf2',
5196 ],
5197 ],
5198 'pbkdf2-legacyB' => [
5199 'class' => LayeredParameterizedPassword::class,
5200 'types' => [
5201 'B',
5202 'pbkdf2',
5203 ],
5204 ],
5205 'bcrypt' => [
5206 'class' => BcryptPassword::class,
5207 'cost' => 9,
5208 ],
5209 'pbkdf2' => [
5210 'class' => Pbkdf2Password::class,
5211 'algo' => 'sha512',
5212 'cost' => '30000',
5213 'length' => '64',
5214 ],
5215 'argon2' => [
5216 'class' => Argon2Password::class,
5217
5218 // Algorithm used:
5219 // * 'argon2i' is optimized against side-channel attacks (PHP 7.2+)
5220 // * 'argon2id' is optimized against both side-channel and GPU cracking (PHP 7.3+)
5221 // * 'auto' to use best available algorithm. If you're using more than one server, be
5222 // careful when you're mixing PHP versions because newer PHP might generate hashes that
5223 // older versions might would not understand.
5224 'algo' => 'auto',
5225
5226 // The parameters below are the same as options accepted by password_hash().
5227 // Set them to override that function's defaults.
5228 //
5229 // 'memory_cost' => PASSWORD_ARGON2_DEFAULT_MEMORY_COST,
5230 // 'time_cost' => PASSWORD_ARGON2_DEFAULT_TIME_COST,
5231 // 'threads' => PASSWORD_ARGON2_DEFAULT_THREADS,
5232 ],
5233];
5234
5242 'username' => true,
5243 'email' => true,
5244];
5245
5250
5262
5270
5276
5282 'MediaWiki default', // Default 'Main Page' and MediaWiki: message pages
5283 'Conversion script', // Used for the old Wikipedia software upgrade
5284 'Maintenance script', // Maintenance scripts which perform editing, image import script
5285 'Template namespace initialisation script', // Used in 1.2->1.3 upgrade
5286 'ScriptImporter', // Default user name used by maintenance/importSiteScripts.php
5287 'Unknown user', // Used in WikiImporter and RevisionStore for revisions with no author
5288 'msg:double-redirect-fixer', // Automatic double redirect fix
5289 'msg:usermessage-editor', // Default user for leaving user messages
5290 'msg:proxyblocker', // For $wgProxyList and Special:Blockme (removed in 1.22)
5291 'msg:sorbs', // For $wgEnableDnsBlacklist etc.
5292 'msg:spambot_username', // Used by cleanupSpam.php
5293 'msg:autochange-username', // Used by anon category RC entries (parser functions, Lua & purges)
5294];
5295
5303 'ccmeonemails' => 0,
5304 'date' => 'default',
5305 'diffonly' => 0,
5306 'disablemail' => 0,
5307 'editfont' => 'monospace',
5308 'editondblclick' => 0,
5309 'editsectiononrightclick' => 0,
5310 'email-allow-new-users' => 1,
5311 'enotifminoredits' => 0,
5312 'enotifrevealaddr' => 0,
5313 'enotifusertalkpages' => 1,
5314 'enotifwatchlistpages' => 1,
5315 'extendwatchlist' => 1,
5316 'fancysig' => 0,
5317 'forceeditsummary' => 0,
5318 'gender' => 'unknown',
5319 'hideminor' => 0,
5320 'hidepatrolled' => 0,
5321 'hidecategorization' => 1,
5322 'imagesize' => 2,
5323 'minordefault' => 0,
5324 'newpageshidepatrolled' => 0,
5325 'nickname' => '',
5326 'norollbackdiff' => 0,
5327 'numberheadings' => 0,
5328 'previewonfirst' => 0,
5329 'previewontop' => 1,
5330 'rcdays' => 7,
5331 'rcenhancedfilters-disable' => 0,
5332 'rclimit' => 50,
5333 'search-match-redirect' => true,
5334 'showhiddencats' => 0,
5335 'shownumberswatching' => 1,
5336 'showrollbackconfirmation' => 0,
5337 'skin' => false,
5338 'stubthreshold' => 0,
5339 'thumbsize' => 5,
5340 'underline' => 2,
5341 'uselivepreview' => 0,
5342 'usenewrc' => 1,
5343 'watchcreations' => 1,
5344 'watchdefault' => 1,
5345 'watchdeletion' => 0,
5346 'watchuploads' => 1,
5347 'watchlistdays' => 7.0,
5348 'watchlisthideanons' => 0,
5349 'watchlisthidebots' => 0,
5350 'watchlisthideliu' => 0,
5351 'watchlisthideminor' => 0,
5352 'watchlisthideown' => 0,
5353 'watchlisthidepatrolled' => 0,
5354 'watchlisthidecategorization' => 1,
5355 'watchlistreloadautomatically' => 0,
5356 'watchlistunwatchlinks' => 0,
5357 'watchmoves' => 0,
5358 'watchrollback' => 0,
5359 'wlenhancedfilters-disable' => 0,
5360 'wllimit' => 250,
5361 'useeditwarning' => 1,
5362 'prefershttps' => 1,
5363 'requireemail' => 0,
5364];
5365
5370
5377
5388
5396
5408
5418 MediaWiki\Session\CookieSessionProvider::class => [
5419 'class' => MediaWiki\Session\CookieSessionProvider::class,
5420 'args' => [ [
5421 'priority' => 30,
5422 'callUserSetCookiesHook' => true,
5423 ] ],
5424 ],
5425 MediaWiki\Session\BotPasswordSessionProvider::class => [
5426 'class' => MediaWiki\Session\BotPasswordSessionProvider::class,
5427 'args' => [ [
5428 'priority' => 75,
5429 ] ],
5430 ],
5431];
5432
5441
# end user accounts }
5443
5444/************************************************************************/
5453
5462
5478 'IPv4' => 16, # Blocks larger than a /16 (64k addresses) will not be allowed
5479 'IPv6' => 19,
5480];
5481
5490
5512
5540
5546
5552
5578
5580// Implicit group for all visitors
5581$wgGroupPermissions['*']['createaccount'] = true;
5582$wgGroupPermissions['*']['read'] = true;
5583$wgGroupPermissions['*']['edit'] = true;
5584$wgGroupPermissions['*']['createpage'] = true;
5585$wgGroupPermissions['*']['createtalk'] = true;
5586$wgGroupPermissions['*']['writeapi'] = true;
5587$wgGroupPermissions['*']['viewmywatchlist'] = true;
5588$wgGroupPermissions['*']['editmywatchlist'] = true;
5589$wgGroupPermissions['*']['viewmyprivateinfo'] = true;
5590$wgGroupPermissions['*']['editmyprivateinfo'] = true;
5591$wgGroupPermissions['*']['editmyoptions'] = true;
5592# $wgGroupPermissions['*']['patrolmarks'] = false; // let anons see what was patrolled
5593
5594// Implicit group for all logged-in accounts
5595$wgGroupPermissions['user']['move'] = true;
5596$wgGroupPermissions['user']['move-subpages'] = true;
5597$wgGroupPermissions['user']['move-rootuserpages'] = true; // can move root userpages
5598$wgGroupPermissions['user']['move-categorypages'] = true;
5599$wgGroupPermissions['user']['movefile'] = true;
5600$wgGroupPermissions['user']['read'] = true;
5601$wgGroupPermissions['user']['edit'] = true;
5602$wgGroupPermissions['user']['createpage'] = true;
5603$wgGroupPermissions['user']['createtalk'] = true;
5604$wgGroupPermissions['user']['writeapi'] = true;
5605$wgGroupPermissions['user']['upload'] = true;
5606$wgGroupPermissions['user']['reupload'] = true;
5607$wgGroupPermissions['user']['reupload-shared'] = true;
5608$wgGroupPermissions['user']['minoredit'] = true;
5609$wgGroupPermissions['user']['editmyusercss'] = true;
5610$wgGroupPermissions['user']['editmyuserjson'] = true;
5611$wgGroupPermissions['user']['editmyuserjs'] = true;
5612$wgGroupPermissions['user']['editmyuserjsredirect'] = true;
5613$wgGroupPermissions['user']['purge'] = true;
5614$wgGroupPermissions['user']['sendemail'] = true;
5615$wgGroupPermissions['user']['applychangetags'] = true;
5616$wgGroupPermissions['user']['changetags'] = true;
5617$wgGroupPermissions['user']['editcontentmodel'] = true;
5618
5619// Implicit group for accounts that pass $wgAutoConfirmAge
5620$wgGroupPermissions['autoconfirmed']['autoconfirmed'] = true;
5621$wgGroupPermissions['autoconfirmed']['editsemiprotected'] = true;
5622
5623// Users with bot privilege can have their edits hidden
5624// from various log pages by default
5625$wgGroupPermissions['bot']['bot'] = true;
5626$wgGroupPermissions['bot']['autoconfirmed'] = true;
5627$wgGroupPermissions['bot']['editsemiprotected'] = true;
5628$wgGroupPermissions['bot']['nominornewtalk'] = true;
5629$wgGroupPermissions['bot']['autopatrol'] = true;
5630$wgGroupPermissions['bot']['suppressredirect'] = true;
5631$wgGroupPermissions['bot']['apihighlimits'] = true;
5632$wgGroupPermissions['bot']['writeapi'] = true;
5633
5634// Most extra permission abilities go to this group
5635$wgGroupPermissions['sysop']['block'] = true;
5636$wgGroupPermissions['sysop']['createaccount'] = true;
5637$wgGroupPermissions['sysop']['delete'] = true;
5638// can be separately configured for pages with > $wgDeleteRevisionsLimit revs
5639$wgGroupPermissions['sysop']['bigdelete'] = true;
5640// can view deleted history entries, but not see or restore the text
5641$wgGroupPermissions['sysop']['deletedhistory'] = true;
5642// can view deleted revision text
5643$wgGroupPermissions['sysop']['deletedtext'] = true;
5644$wgGroupPermissions['sysop']['undelete'] = true;
5645$wgGroupPermissions['sysop']['editinterface'] = true;
5646$wgGroupPermissions['sysop']['editsitejson'] = true;
5647$wgGroupPermissions['sysop']['edituserjson'] = true;
5648$wgGroupPermissions['sysop']['import'] = true;
5649$wgGroupPermissions['sysop']['importupload'] = true;
5650$wgGroupPermissions['sysop']['move'] = true;
5651$wgGroupPermissions['sysop']['move-subpages'] = true;
5652$wgGroupPermissions['sysop']['move-rootuserpages'] = true;
5653$wgGroupPermissions['sysop']['move-categorypages'] = true;
5654$wgGroupPermissions['sysop']['patrol'] = true;
5655$wgGroupPermissions['sysop']['autopatrol'] = true;
5656$wgGroupPermissions['sysop']['protect'] = true;
5657$wgGroupPermissions['sysop']['editprotected'] = true;
5658$wgGroupPermissions['sysop']['rollback'] = true;
5659$wgGroupPermissions['sysop']['upload'] = true;
5660$wgGroupPermissions['sysop']['reupload'] = true;
5661$wgGroupPermissions['sysop']['reupload-shared'] = true;
5662$wgGroupPermissions['sysop']['unwatchedpages'] = true;
5663$wgGroupPermissions['sysop']['autoconfirmed'] = true;
5664$wgGroupPermissions['sysop']['editsemiprotected'] = true;
5665$wgGroupPermissions['sysop']['ipblock-exempt'] = true;
5666$wgGroupPermissions['sysop']['blockemail'] = true;
5667$wgGroupPermissions['sysop']['markbotedits'] = true;
5668$wgGroupPermissions['sysop']['apihighlimits'] = true;
5669$wgGroupPermissions['sysop']['browsearchive'] = true;
5670$wgGroupPermissions['sysop']['noratelimit'] = true;
5671$wgGroupPermissions['sysop']['movefile'] = true;
5672$wgGroupPermissions['sysop']['unblockself'] = true;
5673$wgGroupPermissions['sysop']['suppressredirect'] = true;
5674# $wgGroupPermissions['sysop']['pagelang'] = true;
5675# $wgGroupPermissions['sysop']['upload_by_url'] = true;
5676$wgGroupPermissions['sysop']['mergehistory'] = true;
5677$wgGroupPermissions['sysop']['managechangetags'] = true;
5678$wgGroupPermissions['sysop']['deletechangetags'] = true;
5679
5680$wgGroupPermissions['interface-admin']['editinterface'] = true;
5681$wgGroupPermissions['interface-admin']['editsitecss'] = true;
5682$wgGroupPermissions['interface-admin']['editsitejson'] = true;
5683$wgGroupPermissions['interface-admin']['editsitejs'] = true;
5684$wgGroupPermissions['interface-admin']['editusercss'] = true;
5685$wgGroupPermissions['interface-admin']['edituserjson'] = true;
5686$wgGroupPermissions['interface-admin']['edituserjs'] = true;
5687
5688// Permission to change users' group assignments
5689$wgGroupPermissions['bureaucrat']['userrights'] = true;
5690$wgGroupPermissions['bureaucrat']['noratelimit'] = true;
5691// Permission to change users' groups assignments across wikis
5692# $wgGroupPermissions['bureaucrat']['userrights-interwiki'] = true;
5693// Permission to export pages including linked pages regardless of $wgExportMaxLinkDepth
5694# $wgGroupPermissions['bureaucrat']['override-export-depth'] = true;
5695
5696# $wgGroupPermissions['sysop']['deletelogentry'] = true;
5697# $wgGroupPermissions['sysop']['deleterevision'] = true;
5698// To hide usernames from users and Sysops
5699$wgGroupPermissions['suppress']['hideuser'] = true;
5700// To hide revisions/log items from users and Sysops
5701$wgGroupPermissions['suppress']['suppressrevision'] = true;
5702// To view revisions/log items hidden from users and Sysops
5703$wgGroupPermissions['suppress']['viewsuppressed'] = true;
5704// For private suppression log access
5705$wgGroupPermissions['suppress']['suppressionlog'] = true;
5706// Basic rights for revision delete
5707$wgGroupPermissions['suppress']['deleterevision'] = true;
5708$wgGroupPermissions['suppress']['deletelogentry'] = true;
5709
5716# $wgGroupPermissions['developer']['siteadmin'] = true;
5717
5730
5734$wgImplicitGroups = [ '*', 'user', 'autoconfirmed' ];
5735
5758
5763
5771$wgRestrictionTypes = [ 'create', 'edit', 'move', 'upload' ];
5772
5784$wgRestrictionLevels = [ '', 'autoconfirmed', 'sysop' ];
5785
5796
5810
5819
5830
5852
5863
5922 'autoconfirmed' => [ '&',
5925 ],
5926];
5927
5947 'onEdit' => [],
5948];
5949
5955
5979
5984
5990
5996
6002
6011
6034 'count' => 0,
6035 'seconds' => 86400,
6036] ];
6037
6050
6055
6062
6086$wgDnsBlacklistUrls = [ 'http.dnsbl.sorbs.net.' ];
6087
6093
6102
6109
6149 // Page edits
6150 'edit' => [
6151 'ip' => [ 8, 60 ],
6152 'newbie' => [ 8, 60 ],
6153 'user' => [ 90, 60 ],
6154 ],
6155 // Page moves
6156 'move' => [
6157 'newbie' => [ 2, 120 ],
6158 'user' => [ 8, 60 ],
6159 ],
6160 // File uploads
6161 'upload' => [
6162 'ip' => [ 8, 60 ],
6163 'newbie' => [ 8, 60 ],
6164 ],
6165 // Page rollbacks
6166 'rollback' => [
6167 'user' => [ 10, 60 ],
6168 'newbie' => [ 5, 120 ]
6169 ],
6170 // Triggering password resets emails
6171 'mailpassword' => [
6172 'ip' => [ 5, 3600 ],
6173 ],
6174 // Emailing other users using MediaWiki
6175 'emailuser' => [
6176 'ip' => [ 5, 86400 ],
6177 'newbie' => [ 5, 86400 ],
6178 'user' => [ 20, 86400 ],
6179 ],
6180 'changeemail' => [
6181 'ip-all' => [ 10, 3600 ],
6182 'user' => [ 4, 86400 ]
6183 ],
6184 // since 1.33 - rate limit email confirmations
6185 'confirmemail' => [
6186 'ip-all' => [ 10, 3600 ],
6187 'user' => [ 4, 86400 ]
6188 ],
6189 // Purging pages
6190 'purge' => [
6191 'ip' => [ 30, 60 ],
6192 'user' => [ 30, 60 ],
6193 ],
6194 // Purges of link tables
6195 'linkpurge' => [
6196 'ip' => [ 30, 60 ],
6197 'user' => [ 30, 60 ],
6198 ],
6199 // Files rendered via thumb.php or thumb_handler.php
6200 'renderfile' => [
6201 'ip' => [ 700, 30 ],
6202 'user' => [ 700, 30 ],
6203 ],
6204 // Same as above but for non-standard thumbnails
6205 'renderfile-nonstandard' => [
6206 'ip' => [ 70, 30 ],
6207 'user' => [ 70, 30 ],
6208 ],
6209 // Stashing edits into cache before save
6210 'stashedit' => [
6211 'ip' => [ 30, 60 ],
6212 'newbie' => [ 30, 60 ],
6213 ],
6214 // Adding or removing change tags
6215 'changetag' => [
6216 'ip' => [ 8, 60 ],
6217 'newbie' => [ 8, 60 ],
6218 ],
6219 // Changing the content model of a page
6220 'editcontentmodel' => [
6221 'newbie' => [ 2, 120 ],
6222 'user' => [ 8, 60 ],
6223 ],
6224];
6225
6231
6238
6244
6258 // Short term limit
6259 [ 'count' => 5, 'seconds' => 300 ],
6260 // Long term limit. We need to balance the risk
6261 // of somebody using this as a DoS attack to lock someone
6262 // out of their account, and someone doing a brute force attack.
6263 [ 'count' => 150, 'seconds' => 60 * 60 * 48 ],
6264];
6265
6277
6278// @TODO: clean up grants
6279// @TODO: auto-include read/editsemiprotected rights?
6280
6281$wgGrantPermissions['basic']['autocreateaccount'] = true;
6282$wgGrantPermissions['basic']['autoconfirmed'] = true;
6283$wgGrantPermissions['basic']['autopatrol'] = true;
6284$wgGrantPermissions['basic']['editsemiprotected'] = true;
6285$wgGrantPermissions['basic']['ipblock-exempt'] = true;
6286$wgGrantPermissions['basic']['nominornewtalk'] = true;
6287$wgGrantPermissions['basic']['patrolmarks'] = true;
6288$wgGrantPermissions['basic']['purge'] = true;
6289$wgGrantPermissions['basic']['read'] = true;
6290$wgGrantPermissions['basic']['writeapi'] = true;
6291
6292$wgGrantPermissions['highvolume']['bot'] = true;
6293$wgGrantPermissions['highvolume']['apihighlimits'] = true;
6294$wgGrantPermissions['highvolume']['noratelimit'] = true;
6295$wgGrantPermissions['highvolume']['markbotedits'] = true;
6296
6297$wgGrantPermissions['editpage']['edit'] = true;
6298$wgGrantPermissions['editpage']['minoredit'] = true;
6299$wgGrantPermissions['editpage']['applychangetags'] = true;
6300$wgGrantPermissions['editpage']['changetags'] = true;
6301$wgGrantPermissions['editpage']['editcontentmodel'] = true;
6302
6303$wgGrantPermissions['editprotected'] = $wgGrantPermissions['editpage'];
6304$wgGrantPermissions['editprotected']['editprotected'] = true;
6305
6306// FIXME: Rename editmycssjs to editmyconfig
6307$wgGrantPermissions['editmycssjs'] = $wgGrantPermissions['editpage'];
6308$wgGrantPermissions['editmycssjs']['editmyusercss'] = true;
6309$wgGrantPermissions['editmycssjs']['editmyuserjson'] = true;
6310$wgGrantPermissions['editmycssjs']['editmyuserjs'] = true;
6311
6312$wgGrantPermissions['editmyoptions']['editmyoptions'] = true;
6313$wgGrantPermissions['editmyoptions']['editmyuserjson'] = true;
6314
6315$wgGrantPermissions['editinterface'] = $wgGrantPermissions['editpage'];
6316$wgGrantPermissions['editinterface']['editinterface'] = true;
6317$wgGrantPermissions['editinterface']['edituserjson'] = true;
6318$wgGrantPermissions['editinterface']['editsitejson'] = true;
6319
6320$wgGrantPermissions['editsiteconfig'] = $wgGrantPermissions['editinterface'];
6321$wgGrantPermissions['editsiteconfig']['editusercss'] = true;
6322$wgGrantPermissions['editsiteconfig']['edituserjs'] = true;
6323$wgGrantPermissions['editsiteconfig']['editsitecss'] = true;
6324$wgGrantPermissions['editsiteconfig']['editsitejs'] = true;
6325
6326$wgGrantPermissions['createeditmovepage'] = $wgGrantPermissions['editpage'];
6327$wgGrantPermissions['createeditmovepage']['createpage'] = true;
6328$wgGrantPermissions['createeditmovepage']['createtalk'] = true;
6329$wgGrantPermissions['createeditmovepage']['move'] = true;
6330$wgGrantPermissions['createeditmovepage']['move-rootuserpages'] = true;
6331$wgGrantPermissions['createeditmovepage']['move-subpages'] = true;
6332$wgGrantPermissions['createeditmovepage']['move-categorypages'] = true;
6333$wgGrantPermissions['createeditmovepage']['suppressredirect'] = true;
6334
6335$wgGrantPermissions['uploadfile']['upload'] = true;
6336$wgGrantPermissions['uploadfile']['reupload-own'] = true;
6337
6338$wgGrantPermissions['uploadeditmovefile'] = $wgGrantPermissions['uploadfile'];
6339$wgGrantPermissions['uploadeditmovefile']['reupload'] = true;
6340$wgGrantPermissions['uploadeditmovefile']['reupload-shared'] = true;
6341$wgGrantPermissions['uploadeditmovefile']['upload_by_url'] = true;
6342$wgGrantPermissions['uploadeditmovefile']['movefile'] = true;
6343$wgGrantPermissions['uploadeditmovefile']['suppressredirect'] = true;
6344
6345$wgGrantPermissions['patrol']['patrol'] = true;
6346
6347$wgGrantPermissions['rollback']['rollback'] = true;
6348
6349$wgGrantPermissions['blockusers']['block'] = true;
6350$wgGrantPermissions['blockusers']['blockemail'] = true;
6351
6352$wgGrantPermissions['viewdeleted']['browsearchive'] = true;
6353$wgGrantPermissions['viewdeleted']['deletedhistory'] = true;
6354$wgGrantPermissions['viewdeleted']['deletedtext'] = true;
6355
6356$wgGrantPermissions['viewrestrictedlogs']['suppressionlog'] = true;
6357
6359 $wgGrantPermissions['viewdeleted'];
6360$wgGrantPermissions['delete']['delete'] = true;
6361$wgGrantPermissions['delete']['bigdelete'] = true;
6362$wgGrantPermissions['delete']['deletelogentry'] = true;
6363$wgGrantPermissions['delete']['deleterevision'] = true;
6364$wgGrantPermissions['delete']['undelete'] = true;
6365
6366$wgGrantPermissions['oversight']['suppressrevision'] = true;
6367
6368$wgGrantPermissions['protect'] = $wgGrantPermissions['editprotected'];
6369$wgGrantPermissions['protect']['protect'] = true;
6370
6371$wgGrantPermissions['viewmywatchlist']['viewmywatchlist'] = true;
6372
6373$wgGrantPermissions['editmywatchlist']['editmywatchlist'] = true;
6374
6375$wgGrantPermissions['sendemail']['sendemail'] = true;
6376
6377$wgGrantPermissions['createaccount']['createaccount'] = true;
6378
6379$wgGrantPermissions['privateinfo']['viewmyprivateinfo'] = true;
6380
6381$wgGrantPermissions['mergehistory']['mergehistory'] = true;
6382
6388 // Hidden grants are implicitly present
6389 'basic' => 'hidden',
6390
6391 'editpage' => 'page-interaction',
6392 'createeditmovepage' => 'page-interaction',
6393 'editprotected' => 'page-interaction',
6394 'patrol' => 'page-interaction',
6395
6396 'uploadfile' => 'file-interaction',
6397 'uploadeditmovefile' => 'file-interaction',
6398
6399 'sendemail' => 'email',
6400
6401 'viewmywatchlist' => 'watchlist-interaction',
6402 'editviewmywatchlist' => 'watchlist-interaction',
6403
6404 'editmycssjs' => 'customization',
6405 'editmyoptions' => 'customization',
6406
6407 'editinterface' => 'administration',
6408 'editsiteconfig' => 'administration',
6409 'rollback' => 'administration',
6410 'blockusers' => 'administration',
6411 'delete' => 'administration',
6412 'viewdeleted' => 'administration',
6413 'viewrestrictedlogs' => 'administration',
6414 'protect' => 'administration',
6415 'oversight' => 'administration',
6416 'createaccount' => 'administration',
6417 'mergehistory' => 'administration',
6418
6419 'highvolume' => 'high-volume',
6420
6421 'privateinfo' => 'private-information',
6422];
6423
6429
6436
6446
# end of user rights settings
6448
6449/************************************************************************/
6458
6468
# end of proxy scanner settings
6470
6471/************************************************************************/
6480
6488
6494
6500
6512
6520
6527
6534
6546
6556
6561
6566
6575
6584
# end of cookie settings }
6586
6587/************************************************************************/
6601
6606
6613
6620
6630
6639
6646 // HTTP GET/HEAD requests.
6647 // Master queries should not happen on GET requests
6648 'GET' => [
6649 'masterConns' => 0,
6650 'writes' => 0,
6651 'readQueryTime' => 5,
6652 'readQueryRows' => 10000
6653 ],
6654 // HTTP POST requests.
6655 // Master reads and writes will happen for a subset of these.
6656 'POST' => [
6657 'readQueryTime' => 5,
6658 'writeQueryTime' => 1,
6659 'readQueryRows' => 100000,
6660 'maxAffected' => 1000
6661 ],
6662 'POST-nonwrite' => [
6663 'writes' => 0,
6664 'readQueryTime' => 5,
6665 'readQueryRows' => 10000
6666 ],
6667 // Deferred updates that run after HTTP response is sent for GET requests
6668 'PostSend-GET' => [
6669 'readQueryTime' => 5,
6670 'writeQueryTime' => 1,
6671 'readQueryRows' => 10000,
6672 'maxAffected' => 1000,
6673 // Log master queries under the post-send entry point as they are discouraged
6674 'masterConns' => 0,
6675 'writes' => 0,
6676 ],
6677 // Deferred updates that run after HTTP response is sent for POST requests
6678 'PostSend-POST' => [
6679 'readQueryTime' => 5,
6680 'writeQueryTime' => 1,
6681 'readQueryRows' => 100000,
6682 'maxAffected' => 1000
6683 ],
6684 // Background job runner
6685 'JobRunner' => [
6686 'readQueryTime' => 30,
6687 'writeQueryTime' => 5,
6688 'readQueryRows' => 100000,
6689 'maxAffected' => 500 // ballpark of $wgUpdateRowsPerQuery
6690 ],
6691 // Command-line scripts
6692 'Maintenance' => [
6693 'writeQueryTime' => 5,
6694 'maxAffected' => 1000
6695 ]
6696];
6697
6729
6752 'class' => \MediaWiki\Logger\LegacySpi::class,
6753];
6754
6761
6766
6776
6784
6796
6801
6807
6812
6819
6825
6832
6887
6899
6908
6916
6923
6938
6943
6949
6958
# end of profiling, testing and debugging }
6960
6961/************************************************************************/
6970
6976
6981$wgSearchHighlightBoundaries = '[\p{Z}\p{P}\p{C}]';
6982
6994
7004 'application/x-suggestions+json' => false,
7005 'application/x-suggestions+xml' => false,
7006];
7007
7015
7021
7026
7031
7037
7048 NS_MAIN => true,
7049];
7050
7056
7073
7083
7090
7106
7113
# end of search settings
7115
7116/************************************************************************/
7125$wgDiff3 = '/usr/bin/diff3';
7126
7130$wgDiff = '/usr/bin/diff';
7131
7138 NS_CATEGORY => true
7139];
7140
7147
7154
# end edit UI }
7156
7157/************************************************************************/
7167if ( !isset( $wgCommandLineMode ) ) {
7168 $wgCommandLineMode = false;
7169}
7176
7186
7193
7202
7213
7217$wgGitBin = '/usr/bin/git';
7218
7233 'https://(?:[a-z0-9_]+@)?gerrit.wikimedia.org/r/(?:p/)?(.*)' =>
7234 'https://gerrit.wikimedia.org/g/%R/+/%H',
7235 'ssh://(?:[a-z0-9_]+@)?gerrit.wikimedia.org:29418/(.*)' =>
7236 'https://gerrit.wikimedia.org/g/%R/+/%H',
7237];
7238
# End of maintenance }
7240
7241/************************************************************************/
7251$wgRCMaxAge = 90 * 24 * 3600;
7252
7258$wgWatchersMaxAge = 180 * 24 * 3600;
7259
7267
7276
7281$wgRCLinkLimits = [ 50, 100, 250, 500 ];
7282
7289$wgRCLinkDays = [ 1, 3, 7, 14, 30 ];
7290
7352
7359 'redis' => RedisPubSubFeedEngine::class,
7360 'udp' => UDPRCFeedEngine::class,
7361];
7362
7375
7385
7392
7401
7412
7416$wgFeed = true;
7417
7423
7433
7439
7453
7460 'rss' => RSSFeed::class,
7461 'atom' => AtomFeed::class,
7462];
7463
7469
7474
7479
7486
7492
7498
7504
7520 'mw-contentmodelchange' => true,
7521 'mw-new-redirect' => true,
7522 'mw-removed-redirect' => true,
7523 'mw-changed-redirect-target' => true,
7524 'mw-blank' => true,
7525 'mw-replace' => true,
7526 'mw-rollback' => true,
7527 'mw-undo' => true,
7528];
7529
7538
7564 'newpage' => [
7565 'letter' => 'newpageletter',
7566 'title' => 'recentchanges-label-newpage',
7567 'legend' => 'recentchanges-legend-newpage',
7568 'grouping' => 'any',
7569 ],
7570 'minor' => [
7571 'letter' => 'minoreditletter',
7572 'title' => 'recentchanges-label-minor',
7573 'legend' => 'recentchanges-legend-minor',
7574 'class' => 'minoredit',
7575 'grouping' => 'all',
7576 ],
7577 'bot' => [
7578 'letter' => 'boteditletter',
7579 'title' => 'recentchanges-label-bot',
7580 'legend' => 'recentchanges-legend-bot',
7581 'class' => 'botedit',
7582 'grouping' => 'all',
7583 ],
7584 'unpatrolled' => [
7585 'letter' => 'unpatrolledletter',
7586 'title' => 'recentchanges-label-unpatrolled',
7587 'legend' => 'recentchanges-legend-unpatrolled',
7588 'grouping' => 'any',
7589 ],
7590];
7591
# end RC/watchlist }
7593
7594/************************************************************************/
7607
7614
7622
7627
7632
7641
7647
# end of copyright and credits settings }
7649
7650/************************************************************************/
7678
7687
7694
7701
7706
7719
7724
7729
7737
# end of import/export }
7739
7740/*************************************************************************/
7750
7778
7805
7812
7828
7833
7859
7867
7872
7881
7941
7977
7990 __DIR__ . '/ServiceWiring.php'
7991];
7992
8001 'deletePage' => DeletePageJob::class,
8002 'refreshLinks' => RefreshLinksJob::class,
8003 'deleteLinks' => DeleteLinksJob::class,
8004 'htmlCacheUpdate' => HTMLCacheUpdateJob::class,
8005 'sendMail' => EmaillingJob::class,
8006 'enotifNotify' => EnotifNotifyJob::class,
8007 'fixDoubleRedirect' => DoubleRedirectJob::class,
8008 'AssembleUploadChunks' => AssembleUploadChunksJob::class,
8009 'PublishStashedFile' => PublishStashedFileJob::class,
8010 'ThumbnailRender' => ThumbnailRenderJob::class,
8011 'recentChangesUpdate' => RecentChangesUpdateJob::class,
8012 'refreshLinksPrioritized' => RefreshLinksJob::class,
8013 'refreshLinksDynamic' => RefreshLinksJob::class,
8014 'activityUpdateJob' => ActivityUpdateJob::class,
8015 'categoryMembershipChange' => CategoryMembershipChangeJob::class,
8016 'clearUserWatchlist' => ClearUserWatchlistJob::class,
8017 'watchlistExpiry' => WatchlistExpiryJob::class,
8018 'cdnPurge' => CdnPurgeJob::class,
8019 'userGroupExpiry' => UserGroupExpiryJob::class,
8020 'clearWatchlistNotifications' => ClearWatchlistNotificationsJob::class,
8021 'userOptionsUpdate' => UserOptionsUpdateJob::class,
8022 'enqueue' => EnqueueJob::class, // local queue for multi-DC setups
8023 'null' => NullJob::class,
8024];
8025
8037$wgJobTypesExcludedFromDefaultQueue = [ 'AssembleUploadChunks', 'PublishStashedFile' ];
8038
8049
8064
8072 'default' => [ 'class' => JobQueueDB::class, 'order' => 'random', 'claimTTL' => 3600 ],
8073];
8074
8087
8093 'Statistics' => [ SiteStatsUpdate::class, 'cacheUpdate' ]
8094];
8095
8104 'hiddencat' => 'categorylinks',
8105];
8106
# End extensions }
8108
8109/*************************************************************************/
8118
8124
8129
8156
# End categories }
8158
8159/*************************************************************************/
8174 '',
8175 'block',
8176 'protect',
8177 'rights',
8178 'delete',
8179 'upload',
8180 'move',
8181 'import',
8182 'patrol',
8183 'merge',
8184 'suppress',
8185 'tag',
8186 'managetags',
8187 'contentmodel',
8188];
8189
8198 'suppress' => 'suppressionlog'
8199];
8200
8221 'patrol' => true,
8222 'tag' => true,
8223 'newusers' => false,
8224];
8225
8236 '' => 'all-logs-page',
8237 'block' => 'blocklogpage',
8238 'protect' => 'protectlogpage',
8239 'rights' => 'rightslog',
8240 'delete' => 'dellogpage',
8241 'upload' => 'uploadlogpage',
8242 'move' => 'movelogpage',
8243 'import' => 'importlogpage',
8244 'patrol' => 'patrol-log-page',
8245 'merge' => 'mergelog',
8246 'suppress' => 'suppressionlog',
8247];
8248
8259 '' => 'alllogstext',
8260 'block' => 'blocklogtext',
8261 'delete' => 'dellogpagetext',
8262 'import' => 'importlogpagetext',
8263 'merge' => 'mergelogpagetext',
8264 'move' => 'movelogpagetext',
8265 'patrol' => 'patrol-log-header',
8266 'protect' => 'protectlogtext',
8267 'rights' => 'rightslogtext',
8268 'suppress' => 'suppressionlogtext',
8269 'upload' => 'uploadlogpagetext',
8270];
8271
8279
8287 'block/block' => BlockLogFormatter::class,
8288 'block/reblock' => BlockLogFormatter::class,
8289 'block/unblock' => BlockLogFormatter::class,
8290 'contentmodel/change' => ContentModelLogFormatter::class,
8291 'contentmodel/new' => ContentModelLogFormatter::class,
8292 'delete/delete' => DeleteLogFormatter::class,
8293 'delete/delete_redir' => DeleteLogFormatter::class,
8294 'delete/event' => DeleteLogFormatter::class,
8295 'delete/restore' => DeleteLogFormatter::class,
8296 'delete/revision' => DeleteLogFormatter::class,
8297 'import/interwiki' => ImportLogFormatter::class,
8298 'import/upload' => ImportLogFormatter::class,
8299 'managetags/activate' => LogFormatter::class,
8300 'managetags/create' => LogFormatter::class,
8301 'managetags/deactivate' => LogFormatter::class,
8302 'managetags/delete' => LogFormatter::class,
8303 'merge/merge' => MergeLogFormatter::class,
8304 'move/move' => MoveLogFormatter::class,
8305 'move/move_redir' => MoveLogFormatter::class,
8306 'patrol/patrol' => PatrolLogFormatter::class,
8307 'patrol/autopatrol' => PatrolLogFormatter::class,
8308 'protect/modify' => ProtectLogFormatter::class,
8309 'protect/move_prot' => ProtectLogFormatter::class,
8310 'protect/protect' => ProtectLogFormatter::class,
8311 'protect/unprotect' => ProtectLogFormatter::class,
8312 'rights/autopromote' => RightsLogFormatter::class,
8313 'rights/rights' => RightsLogFormatter::class,
8314 'suppress/block' => BlockLogFormatter::class,
8315 'suppress/delete' => DeleteLogFormatter::class,
8316 'suppress/event' => DeleteLogFormatter::class,
8317 'suppress/reblock' => BlockLogFormatter::class,
8318 'suppress/revision' => DeleteLogFormatter::class,
8319 'tag/update' => TagLogFormatter::class,
8320 'upload/overwrite' => UploadLogFormatter::class,
8321 'upload/revert' => UploadLogFormatter::class,
8322 'upload/upload' => UploadLogFormatter::class,
8323];
8324
8334 'block' => [
8335 'block' => [ 'block' ],
8336 'reblock' => [ 'reblock' ],
8337 'unblock' => [ 'unblock' ],
8338 ],
8339 'contentmodel' => [
8340 'change' => [ 'change' ],
8341 'new' => [ 'new' ],
8342 ],
8343 'delete' => [
8344 'delete' => [ 'delete' ],
8345 'delete_redir' => [ 'delete_redir' ],
8346 'restore' => [ 'restore' ],
8347 'event' => [ 'event' ],
8348 'revision' => [ 'revision' ],
8349 ],
8350 'import' => [
8351 'interwiki' => [ 'interwiki' ],
8352 'upload' => [ 'upload' ],
8353 ],
8354 'managetags' => [
8355 'create' => [ 'create' ],
8356 'delete' => [ 'delete' ],
8357 'activate' => [ 'activate' ],
8358 'deactivate' => [ 'deactivate' ],
8359 ],
8360 'move' => [
8361 'move' => [ 'move' ],
8362 'move_redir' => [ 'move_redir' ],
8363 ],
8364 'newusers' => [
8365 'create' => [ 'create', 'newusers' ],
8366 'create2' => [ 'create2' ],
8367 'autocreate' => [ 'autocreate' ],
8368 'byemail' => [ 'byemail' ],
8369 ],
8370 'protect' => [
8371 'protect' => [ 'protect' ],
8372 'modify' => [ 'modify' ],
8373 'unprotect' => [ 'unprotect' ],
8374 'move_prot' => [ 'move_prot' ],
8375 ],
8376 'rights' => [
8377 'rights' => [ 'rights' ],
8378 'autopromote' => [ 'autopromote' ],
8379 ],
8380 'suppress' => [
8381 'event' => [ 'event' ],
8382 'revision' => [ 'revision' ],
8383 'delete' => [ 'delete' ],
8384 'block' => [ 'block' ],
8385 'reblock' => [ 'reblock' ],
8386 ],
8387 'upload' => [
8388 'upload' => [ 'upload' ],
8389 'overwrite' => [ 'overwrite' ],
8390 'revert' => [ 'revert' ],
8391 ],
8392];
8393
8398
8404
# end logging }
8406
8407/*************************************************************************/
8416
8423
8429
8435
# end special pages }
8437
8438/*************************************************************************/
8454 'credits' => true,
8455 'delete' => true,
8456 'edit' => true,
8457 'editchangetags' => SpecialPageAction::class,
8458 'history' => true,
8459 'info' => true,
8460 'markpatrolled' => true,
8461 'mcrundo' => McrUndoAction::class,
8462 'mcrrestore' => McrRestoreAction::class,
8463 'protect' => true,
8464 'purge' => true,
8465 'raw' => true,
8466 'render' => true,
8467 'revert' => true,
8468 'revisiondelete' => SpecialPageAction::class,
8469 'rollback' => true,
8470 'submit' => true,
8471 'unprotect' => true,
8472 'unwatch' => true,
8473 'view' => true,
8474 'watch' => true,
8475];
8476
# end actions }
8478
8479/*************************************************************************/
8490$wgDefaultRobotPolicy = 'index,follow';
8491
8507
8535
8547
# End robot policy }
8549
8550/************************************************************************/
8572
8610
8619
8628
8637
8646
8652
8658
8664
8671
8677
8682
8688 'MIMEsearch', // aiprop=mime
8689 'LinkSearch', // list=exturlusage
8690 'FileDuplicateSearch', // prop=duplicatefiles
8691];
8692
8699
8706
8711
8716
8722
8744
8751
8756 /* simple headers (see spec) */
8757 'Accept',
8758 'Accept-Language',
8759 'Content-Language',
8760 'Content-Type',
8761 /* non-authorable headers in XHR, which are however requested by some UAs */
8762 'Accept-Encoding',
8763 'DNT',
8764 'Origin',
8765 /* MediaWiki whitelist */
8766 'User-Agent',
8767 'Api-User-Agent',
8768 /* Allowing caching preflight requests, see T269636 */
8769 'Access-Control-Max-Age',
8770 /* OAuth 2.0, see T322944 */
8771 'Authorization',
8772];
8773
8781
8788
# End AJAX and API }
8790
8791/************************************************************************/
8800
8806
8811
8817
8842
8846$wgPhpCli = '/usr/bin/php';
8847
8882$wgShellLocale = 'C.UTF-8';
8883
8899
# End shell }
8901
8902/************************************************************************/
8914
8924
8933
8942
8948
8953
8958
8973
8980
# End HTTP client }
8982
8983/************************************************************************/
8995
9004
9009
9014
# End job queue }
9016
9017/************************************************************************/
9036
9042
9052
9058
9064
9069
9075
9081
9115
9120
9133
9145
9157 CONTENT_MODEL_WIKITEXT, // Just for completeness, wikitext will always be parsed.
9158 CONTENT_MODEL_JAVASCRIPT, // Make categories etc work, people put them into comments.
9159 CONTENT_MODEL_CSS, // Make categories etc work, people put them into comments.
9160];
9161
9168 'mediawiki' => MediaWikiSite::class,
9169];
9170
9177
9185
9194
9204
9212
9220
9259 'paths' => [],
9260 'modules' => [],
9261 'global' => [
9262 # Timeout in seconds
9263 'timeout' => 360,
9264 # 'domain' is set to $wgCanonicalServer in Setup.php
9265 'forwardCookies' => false,
9266 'HTTPProxy' => null
9267 ]
9268];
9269
9278
9279/*
9280 * Max time (in seconds) a user-generated transaction can spend in writes.
9281 * If exceeded, the transaction is rolled back with an error instead of being committed.
9282 *
9283 * @var int|bool Disabled if false
9284 * @since 1.27
9285 */
9287
9288/*
9289 * Max time (in seconds) a job-generated transaction can spend in writes.
9290 * If exceeded, the transaction is rolled back with an error instead of being committed.
9291 *
9292 * @var int|bool Disabled if false
9293 * @since 1.30
9294 */
9296
9320
9328
9341 'copyright',
9342 'history_copyright',
9343 'googlesearch',
9344 'feedback-terms',
9345 'feedback-termsofuse',
9346 'youhavenewmessagesmanyusers',
9347 'youhavenewmessages',
9348];
9349
9370 'default' => [
9371 'class' => EventRelayerNull::class,
9372 ]
9373];
9374
9393
9403 'https://3hub.co' => true,
9404 'https://morepro.info' => true,
9405 'https://p.ato.mx' => true,
9406 'https://s.ato.mx' => true,
9407 'https://adserver.adtech.de' => true,
9408 'https://ums.adtechus.com' => true,
9409 'https://cas.criteo.com' => true,
9410 'https://cat.nl.eu.criteo.com' => true,
9411 'https://atpixel.alephd.com' => true,
9412 'https://rtb.metrigo.com' => true,
9413 'https://d5p.de17a.com' => true,
9414 'https://ad.lkqd.net/vpaid/vpaid.js' => true,
9415 'https://ad.lkqd.net/vpaid/vpaid.js?fusion=1.0' => true,
9416 'https://t.lkqd.net/t' => true,
9417 'chrome-extension' => true,
9418];
9419
9428 'IPv4' => 16,
9429 'IPv6' => 32,
9430];
9431
9448
9467
9490
9496
9504
9514
9524
9534
9544
9554
9565
9576
9587
9597
9607
9615
9628
9644
$wgGalleryOptions
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.
string null $wgWatchlistExpiryMaxDuration
Relative maximum duration for watchlist expiries, as accepted by strtotime().
string null $wgCookieSameSite
The SameSite cookie attribute used for login cookies.
$wgBreakFrames
Break out of framesets.
$wgXmlDumpSchemaVersion
The schema to use per default when generating XML dumps.
bool $wgPageLanguageUseDB
Enable page language feature Allows setting page language in database.
$wgCookieSetOnAutoblock
Whether to set a cookie when a user is autoblocked.
string $wgSharedUploadDirectory
Shortcut for the 'directory' setting of $wgForeignFileRepos.
$wgMaxInterlacingAreas
Array of max pixel areas for interlacing per MIME type.
int $wgReportToExpiry
Expiry of the endpoint definition for the Reporting API.
$wgAdvancedSearchHighlighting
Set to true to have nicer highlighted text in search results, by default off due to execution overhea...
bool $wgMainPageIsDomainRoot
Option to whether serve the main page as the domain root.
$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.
$wgGitRepositoryViewers
Map GIT repository URLs to viewer URLs to provide links in Special:Version.
bool $wgEnotifRevealEditorAddress
Allow sending of e-mail notifications with the editor's address in "Reply-To".
$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".
$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.
$wgUseCdn
Enable/disable CDN.
$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.
array $wgFeaturePolicyReportOnly
List of Feature Policy Reporting types to enable.
$wgGroupsRemoveFromSelf
$wgEmergencyContact
Site admin email address.
$wgRCShowWatchingUsers
Show watching users in recent changes, watchlist and page history views.
$wgDBprefix
Current wiki database 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...
bool array $wgCSPReportOnlyHeader
Controls Content-Security-Policy-Report-Only header.
$wgDBuser
Database username.
$wgCdnMaxageStale
Cache timeout when delivering a stale ParserCache response due to PoolCounter contention.
$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
bool $wgEnotifFromEditor
Allow sending of e-mail notifications with the editor's address as sender.
$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.
string $wgPHPSessionHandling
Whether to use PHP session handling ($_SESSION and session_*() functions)
$wgDeleteRevisionsBatchSize
Page deletions with > this number of revisions will use the job queue.
$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
Specify the difference engine to use.
$wgExportFromNamespaces
Whether to allow the "export all pages in namespace" option.
$wgDefaultRobotPolicy
Default robot policy.
bool $wgCacheSharedUploads
Shortcut for the ForeignDBRepo 'hasSharedCache' setting in $wgForeignFileRepos.
$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...
float $wgWatchlistPurgeRate
Chance of expired watchlist items being purged on any page edit.
$wgStatsdMetricPrefix
Prefix for metric names sent to $wgStatsdServer.
$wgAutoblockExpiry
Number of seconds before autoblock entries expire.
int $wgMultiContentRevisionSchemaMigrationStage
RevisionStore table schema migration stage (content, slots, content_models & slot_roles tables).
$wgSignatureValidation
Behavior of signature validation.
$wgDefaultLanguageVariant
Default variant code, if false, the default will be the language code.
$wgMessagesDirs
Extension messages directories.
bool string $wgSharedUploadDBname
Shortcut for the ForeignDBRepo 'dbName' setting in $wgForeignFileRepos.
bool $wgWatchlistExpiry
Whether to enable the watchlist expiry feature.
$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 Wikimedia Commons as a foreign file repository.
$wgImgAuthPath
The base path for img_auth.php.
$wgSQLiteDataDir
To override default SQLite data directory ($docroot/../data)
$wgResourceLoaderEnableJSProfiler
When enabled, execution of JavaScript modules is profiled client-side.
bool $wgPriorityHints
Enable client-side Priority Hints.
$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 allow list of regular expression fragmen...
$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...
$wgImagePreconnect
Add a preconnect link for browsers to a remote FileRepo host.
$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,...
$wgAllowRequiringEmailForResets
Temporary feature flag that controls whether users will see a checkbox allowing them to require provi...
$wgUseCopyrightUpload
Set this to true if you want detailed copyright information forms on Upload.
$wgRCFeeds
Configuration for feeds to which notifications about recent changes will be sent.
$wgNoFollowNsExceptions
Namespaces in which $wgNoFollowLinks doesn't apply.
$wgEnableOpenSearchSuggest
This was previously a used to force empty responses from ApiOpenSearch with the 'suggest' parameter s...
$wgCleanSignatures
If true, removes (by substituting) templates in signatures.
$wgDBadminuser
Separate username for maintenance tasks.
bool $wgHashedSharedUploadDirectory
Shortcut for the 'hashLevels' setting of $wgForeignFileRepos.
$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.
$wgServerName
Server name.
$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'.
$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,...
$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.
$wgMainCacheType
Main cache type.
$wgUseImageResize
Whether to enable server-side image thumbnailing.
$wgJpegQuality
When scaling a JPEG thumbnail, this is the quality we request from the backend.
$wgDisableSearchUpdate
If you've disabled search semi-permanently, this also disables updates to the table.
$wgExtraInterlanguageLinkPrefixes
List of additional interwiki prefixes that should be treated as interlanguage links (i....
int $wgResourceLoaderMaxQueryLength
ResourceLoader will not generate URLs whose query string is more than this many characters long,...
$wgDisableOutputCompression
Disable output compression (enabled by default if zlib is available)
$wgTrxProfilerLimits
Performance expectations for DB usage.
$wgDebugLogPrefix
Prefix for debug log lines.
$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.
$wgAutopromoteOnceLogInRC
Put user rights log entries for autopromotion in recent changes?
$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.
$wgIncludejQueryMigrate
Whether to load the jquery.migrate library.
$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 the wiki.
$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.
$wgStructuredChangeFiltersLiveUpdatePollingRate
Polling rate, in seconds, used by the 'live update' and 'view newest' features of the RCFilters app o...
$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.
$wgMediaInTargetLanguage
Whether thumbnails should be generated in target language (usually, same as page language),...
$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...
bool $wgReadOnlyWatchedItemStore
Set this to true to put the wiki watchlists into read-only mode.
$wgImageMagickTempDir
Temporary directory used for ImageMagick.
$wgAllowDisplayTitle
Allow DISPLAYTITLE to change title display.
$wgSitemapNamespacesPriorities
Custom namespace priorities for sitemaps.
$wgLogNames
Lists the message key string for each log type.
$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
Specify the difference engine to use.
$wgResourceLoaderSources
Extensions should register foreign module sources here.
array $wgRangeContributionsCIDRLimit
Shortest CIDR limits that can be checked in any individual range check at Special:Contributions.
$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).
array $wgOverrideUcfirstCharacters
List of Unicode characters for which capitalization is overridden in Language::ucfirst.
$wgPutIPinRC
Log IP addresses in the recentchanges table; can be accessed only by extensions (e....
$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...
$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.
$wgAllowedCorsHeaders
List of allowed headers for cross-origin API requests.
$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...
bool $wgElementTiming
Enable Element Timing.
$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.
$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 style-related user-preferences?
$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.
array $wgVirtualRestConfig
Global configuration variable for Virtual REST Services.
$wgGrammarForms
Some languages need different word forms, usually for different cases.
$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.
array $wgSoftwareTags
List of core tags to enable.
$wgDBDefaultGroup
Default group to use when getting database connections.
$wgDisabledVariants
Disabled variants array of language variant conversion.
$wgTmpDirectory
The local filesystem path to a temporary directory.
bool $wgGenerateThumbnailOnParse
Render thumbnails while parsing wikitext.
$wgStyleDirectory
Filesystem stylesheets directory.
bool $wgUseSharedUploads
Shortcut for adding an entry to $wgForeignFileRepos.
string $wgSharedUploadDBprefix
Shortcut for the ForeignDBRepo 'tablePrefix' setting in $wgForeignFileRepos.
$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
Current wiki database schema name.
$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...
$wgShortPagesNamespaceBlacklist
Optional array of namespaces which should be blacklisted from Special:ShortPages Only pages inside $w...
$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
Current wiki database name.
$wgUseDatabaseMessages
Translation using MediaWiki: namespace.
$wgMaxExecutionTimeForExpensiveQueries
Max execution time for queries of several expensive special pages such as RecentChanges in millisecon...
$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.
$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
Define extra client-side modules to be registered with ResourceLoader.
$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.
float int $wgHTTPTimeout
Timeout for HTTP requests done internally, in seconds.
bool $wgUseSameSiteLegacyCookies
If true, when a cross-site cookie with SameSite=None is sent, a legacy cookie with an "ss0" prefix wi...
$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>.
$wgRestAPIAdditionalRouteFiles
Additional REST API Route files.
$wgLogTypes
The logging system has two levels: an event type, which describes the general category and can be vie...
$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.
$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.
$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.
$wgLoggedOutMaxAge
Cache TTL for the user agent sent as max-age, for logged out users.
$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...
$wgParserOutputHooks
Parser output hooks.
int bool $wgCopyUploadTimeout
Different timeout for upload by url This could be useful since when fetching large files,...
$wgFileCacheDirectory
Directory where the cached page will be saved.
$wgEnableUserEmailBlacklist
Set to true to enable user-to-user e-mail blacklist.
$wgRightsText
If either $wgRightsUrl or $wgRightsPage is specified then this variable gives the text for the link.
$wgProfiler
Profiler configuration.
$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
Specify the difference engine to use.
int bool $wgExtensionInfoMTime
When loading extensions through the extension registration system, this can be used to invalidate the...
$wgPageCreationLog
Maintain a log of page creations at Special:Log/create?
$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.
$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.
$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.
$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.
$wgSignatureAllowedLintErrors
List of lint error codes which don't cause signature validation to fail.
$wgCommandLineDarkBg
For colorized maintenance script output, is your terminal background dark ?
$wgDjvuOutputExtension
File extension for the DJVU post processor output.
$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...
$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.
$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.
float int $wgHTTPMaxTimeout
The maximum HTTP request timeout in seconds.
array false $wgLogoHD
Array with URL paths to HD versions of the wiki logo.
$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.
$wgVerifyMimeTypeIE
Determines whether extra checks for IE type detection should be applied.
$wgDeprecationReleaseLimit
Release limitation to wfDeprecated warnings, if set to a release number development warnings will not...
$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.
$wgVueDevelopmentMode
Whether to use the development version of Vue.js.
$wgUploadPath
The URL path for the images directory.
$wgHooks
Global list of hooks.
$wgDBport
Database port number (for PostgreSQL and Microsoft SQL Server).
$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.
$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.
$wgMessageCacheType
The cache type for storing the contents of the MediaWiki namespace.
$wgInterwikiMagic
Treat language links as magic connectors, not inline links.
$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_ALL, to provide a known environment for locale-sensitive operations.
$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....
$wgUsePigLatinVariant
Whether to enable the pig Latin variant of English (en-x-piglatin), used to ease variant development ...
$wgUsersNotifiedOnAllChanges
Array of usernames who will be sent a notification email for every change which occurs on a wiki.
$wgEnableSpecialMute
Set to true to enable the Special Mute page.
$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.
$wgFeedDiffCutoff
When generating Recentchanges RSS/Atom feed, diffs will not be generated for pages larger than this s...
bool array $wgCSPHeader
Controls Content-Security-Policy header [Experimental].
$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.
bool $wgHashedUploadDirectory
Shortcut for setting hashLevels=2 in $wgLocalFileRepo.
$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 $wgFetchCommonsDescriptions
Shortcut for the 'fetchDescription' setting of $wgForeignFileRepos.
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.
$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 ...
$wgShowExceptionDetails
If set to true, uncaught exceptions will print the exception message and a complete stack trace to ou...
$wgMimeTypeFile
Sets the MIME type definition file to use by includes/libs/mime/MimeAnalyzer.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
Specify the difference engine to use.
$wgRestPath
The URL path to the REST API Defaults to "{$wgScriptPath}/rest.php".
$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...
string $wgSharedThumbnailScriptPath
Shortcut for the 'thumbScriptUrl' setting of $wgForeignFileRepos.
$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 local interwiki values, for each of the interwiki prefixes that point to the current wiki.
$wgVersion
MediaWiki version number.
$wgEnableUploads
Allow users to upload files.
$wgDebugRawPage
If true, log debugging data from action=raw and load.php.
array $wgReportToEndpoints
List of endpoints for the Reporting API.
$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.
$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.
string false $wgExternalDiffEngine
Name of the external diff engine to use.
$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,...
$wgAllowExternalReqID
Whether to respect/honour the request ID provided by the incoming request via the X-Request-Id header...
$wgBlockDisablesLogin
If true, blocked users will not be allowed to login.
$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.
$wgThumbPath
The base path for thumb_handler.php.
$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.
array $wgNativeImageLazyLoading
Toggles native image lazy loading, via the "loading" attribute.
$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.
$wgEnableRestAPI
Enable the experimental REST API.
$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...
$wgAllowHTMLEmail
For parts of the system that have been updated to provide HTML email content, send both text and HTML...
$wgFragmentMode
How should section IDs be encoded? This array can contain 1 or 2 elements, each of them can be one of...
array false $wgLogos
The URL path to various wiki logos.
$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...
array $wgGrantPermissions
Map of (grant => right => boolean) Users authorize consumers (like Apps) to act on their behalf but o...
$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...
$wgMainStash
The object store type of the main stash.
$wgSlaveLagCritical
$wgApiFrameOptions
Disallow framing of API pages directly, by setting the X-Frame-Options header.
float $wgPriorityHintsRatio
Ratio of requests that should get Priority Hints when the feature is enabled.
$wgTranscludeCacheExpiry
Expiry time for transcluded templates cached in object cache.
$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...
$wgMimeInfoFile
Sets the MIME type info file to use by includes/libs/mime/MimeAnalyzer.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
Enable the use of files from one or more other wikis.
$wgMaxJobDBWriteDuration
Specify the difference engine to use.
$wgUseCategoryBrowser
Use experimental, DMOZ-like category browser.
bool $wgSearchMatchRedirectPreference
Set true to allow logged-in users to set a preference whether or not matches in search results should...
$wgRepositoryBaseUrl
Shortcut for the 'descBaseUrl' setting of $wgForeignFileRepos.
$wgMemCachedPersistent
Use persistent connections to MemCached, which are shared across multiple requests.
float int $wgHTTPConnectTimeout
Timeout for connections done internally (in seconds).
$wgFilterLogTypes
Show/hide links on Special:Log will be shown for these log types.
$wgShowDBErrorBacktrace
If true, show a backtrace for database errors.
string null $wgDiffEngine
Specify the difference engine to use.
$wgLogHeaders
Lists the message key string for descriptive text to be shown at the top of each log type.
$wgCdnMaxAge
Cache TTL for the CDN sent as s-maxage (without ESI) or Surrogate-Control (with ESI).
$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.
$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.
$wgFooterLinkCacheExpiry
Expiry time for the footer link cache, in seconds, or 0 if disabled.
$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.
$wgExternalInterwikiFragmentMode
Which ID escaping mode should be used for external interwiki links? See documentation for $wgFragment...
$wgDBserver
Database host name or IP address.
$wgRecentChangesFlags
Flags (letter symbols) shown in recent changes and watchlist to indicate certain types of edits.
bool $wgForceHTTPS
If this is true, when an insecure HTTP request is received, always redirect to HTTPS.
$wgSquidPurgeUseHostHeader
Whether to use a Host header in purge requests sent to the proxy servers configured in $wgCdnServers.
$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.
string bool $wgShellRestrictionMethod
Method to use to restrict shell commands.
$wgUseTwoButtonsSearchForm
Search form behavior.
$wgDebugRedirects
If true, instead of redirecting, show a page with a link to the redirect destination.
$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
Define extra 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...
array string bool $wgReferrerPolicy
Value for the referrer policy meta tag.
$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.
$wgCookieSetOnIpBlock
Whether to set a cookie when a logged-out user is blocked.
$wgPropagateErrors
If true, the MediaWiki error handler passes errors/warnings to the default error handler after loggin...
$wgUploadThumbnailRenderHttpCustomDomain
When using the "http" $wgUploadThumbnailRenderMethod, lets one specify a custom domain to send the HT...
$wgRCWatchCategoryMembership
Treat category membership changes as a RecentChange.
$wgFeed
Provide syndication feeds (RSS, Atom) for, e.g., Recentchanges, Newpages.
$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
Add information about an installed extension, keyed by its 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.
float int $wgHTTPMaxConnectTimeout
The maximum HTTP connect timeout in seconds.
$wgCdnServersNoPurge
As with $wgCdnServers, except these servers aren't purged on page changes; use to set a list of trust...
string[] $wgRawHtmlMessages
List of messages which might contain raw HTML.
bool $wgSearchRunSuggestedQuery
Controls whether zero-result search queries with suggestions should display results for these suggest...
$wgStyleSheetPath
URL of the server.
$wgJobClasses
Maps jobs to their handlers; extensions can add to this to provide custom jobs.
$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.
string[] $wgLocalDatabases
Other wikis on this site, can be administered from a single developer account.
$wgParserTestMediaHandlers
Media handler overrides for parser tests (they don't need to generate actual thumbnails,...
$wgSessionSecret
Secret for session storage.
array $wgSpecialSearchFormOptions
Options for Special:Search completion widget form created by SearchFormWidget class.
$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.
$wgInterlanguageLinkCodeMap
Map of interlanguage link codes to language codes.
$wgSharedSchema
$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 extension, you can set this to true to make Medi...
$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.
$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...
$wgCdnServers
List of proxy servers to purge on changes; default port is 80.
$wgCopyUploadProxy
Proxy to use for copy upload requests.
string $wgSharedUploadPath
Shortcut for the 'url' setting of $wgForeignFileRepos.
$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...
$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.
$wgResourceModuleSkinStyles
Add extra skin-specific styles to a resource module.
$wgResourceLoaderUseObjectCacheForDeps
Use the main stash instead of the module_deps table for indirect dependency tracking.
$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...
array $wgGrantPermissionGroups
Map of grants to their UI grouping.
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.
$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.
$wgLocalisationCacheConf
Localisation cache configuration.
$wgMaxTocLevel
Maximum indent level of toc.
$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
For installations where the canonical server is HTTP but HTTPS is optionally supported,...
$wgCopyUploadsFromSpecialUpload
Enable copy uploads from Special:Upload.
array $wgOriginTrials
Origin Trials tokens.
$wgImageMagickConvertCommand
The convert command shipped with ImageMagick.
$wgUsePrivateIPs
Should forwarded Private IPs be accepted?
$wgGitBin
Fully specified path to git binary.
$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.
$wgNewUserLog
Maintain a log of newusers at Special: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.
const MW_VERSION
The running version of MediaWiki.
Definition Defines.php:40
global $wgCommandLineMode
Value object for representing interwiki records.
Definition Interwiki.php:26
ResourceLoader is a loading system for JavaScript and CSS resources.
This is a class for holding configuration settings, particularly for multi-wiki sites.
const AV_SCAN_FAILED
Definition Defines.php:104
const AV_VIRUS_FOUND
Definition Defines.php:102
const APCOND_AGE
Definition Defines.php:196
const NS_HELP
Definition Defines.php:82
const NS_USER
Definition Defines.php:72
const CONTENT_MODEL_CSS
Definition Defines.php:227
const CACHE_NONE
Definition Defines.php:92
const CACHE_ANYTHING
Definition Defines.php:91
const NS_MEDIAWIKI_TALK
Definition Defines.php:79
const NS_MAIN
Definition Defines.php:70
const NS_PROJECT_TALK
Definition Defines.php:75
const NS_MEDIAWIKI
Definition Defines.php:78
const NS_TEMPLATE
Definition Defines.php:80
const CACHE_ACCEL
Definition Defines.php:95
const NS_FILE_TALK
Definition Defines.php:77
const XML_DUMP_SCHEMA_VERSION_11
Definition Defines.php:319
const CONTENT_MODEL_WIKITEXT
Definition Defines.php:225
const CONTENT_MODEL_JSON
Definition Defines.php:229
const NS_HELP_TALK
Definition Defines.php:83
const NS_CATEGORY_TALK
Definition Defines.php:85
const CACHE_MEMCACHED
Definition Defines.php:94
const CONTENT_MODEL_TEXT
Definition Defines.php:228
const CACHE_DB
Definition Defines.php:93
const AV_SCAN_ABORTED
Definition Defines.php:103
const APCOND_EDITCOUNT
Definition Defines.php:195
const NS_TALK
Definition Defines.php:71
const SCHEMA_COMPAT_NEW
Definition Defines.php:281
const AV_NO_VIRUS
Definition Defines.php:101
const NS_USER_TALK
Definition Defines.php:73
const NS_PROJECT
Definition Defines.php:74
const NS_CATEGORY
Definition Defines.php:84
const CONTENT_MODEL_JAVASCRIPT
Definition Defines.php:226
const NS_TEMPLATE_TALK
Definition Defines.php:81
const MEDIATYPE_VIDEO
Definition defines.php:35
const MEDIATYPE_AUDIO
Definition defines.php:32
const MEDIATYPE_BITMAP
Definition defines.php:28
return true
Definition router.php:92