MediaWiki REL1_33
DefaultSettings.php
Go to the documentation of this file.
1<?php
41
47if ( !defined( 'MEDIAWIKI' ) ) {
48 echo "This file is part of MediaWiki and is not a valid entry point\n";
49 die( 1 );
50}
51
60
68 'main' => 'GlobalVarConfig::newInstance'
69];
70
77
81$wgSitename = 'MediaWiki';
82
90
107$wgServer = WebRequest::detectServer();
108
117
124
125/************************************************************************/
140
158$wgUsePathInfo = ( strpos( PHP_SAPI, 'cgi' ) === false ) &&
159 ( strpos( PHP_SAPI, 'apache2filter' ) === false ) &&
160 ( strpos( PHP_SAPI, 'isapi' ) === false );
161
164/************************************************************************/
187$wgScript = false;
188
196
204
211
218
224$wgExtensionDirectory = "{$IP}/extensions";
225
231$wgStyleDirectory = "{$IP}/skins";
232
241
247
252
258
263$wgLogo = false;
264
291$wgLogoHD = false;
292
297$wgFavicon = '/favicon.ico';
298
305
325
341
348
357
373
376/************************************************************************/
391
395$wgUploadStashMaxAge = 6 * 3600; // 6 hours
396
401
411
420
426
431
447
528
543
554
584
593
602
611
618$wgRepositoryBaseUrl = 'https://commons.wikimedia.org/wiki/File:';
619
628
638
647
656
667
678 // Fields to make available in the dialog. `true` means that this field is visible, `false` means
679 // that it is hidden. The "Name" field can't be hidden. Note that you also have to add the
680 // matching replacement to the 'filepage' format key below to make use of these.
681 'fields' => [
682 'description' => true,
683 'date' => false,
684 'categories' => false,
685 ],
686 // Suffix of localisation messages used to describe the license under which the uploaded file will
687 // be released. The same value may be set for both 'local' and 'foreign' uploads.
688 'licensemessages' => [
689 // The 'local' messages are used for local uploads on this wiki:
690 // * upload-form-label-own-work-message-generic-local
691 // * upload-form-label-not-own-work-message-generic-local
692 // * upload-form-label-not-own-work-local-generic-local
693 'local' => 'generic-local',
694 // The 'foreign' messages are used for cross-wiki uploads from other wikis to this wiki:
695 // * upload-form-label-own-work-message-generic-foreign
696 // * upload-form-label-not-own-work-message-generic-foreign
697 // * upload-form-label-not-own-work-local-generic-foreign
698 'foreign' => 'generic-foreign',
699 ],
700 // Upload comments to use for 'local' and 'foreign' uploads. This can also be set to a single
701 // string value, in which case it is used for both kinds of uploads. Available replacements:
702 // * $HOST - domain name from which a cross-wiki upload originates
703 // * $PAGENAME - wiki page name from which an upload originates
704 'comment' => [
705 'local' => '',
706 'foreign' => '',
707 ],
708 // Format of the file page wikitext to be generated from the fields input by the user.
709 'format' => [
710 // Wrapper for the whole page. Available replacements:
711 // * $DESCRIPTION - file description, as input by the user (only if the 'description' field is
712 // enabled), wrapped as defined below in the 'description' key
713 // * $DATE - file creation date, as input by the user (only if the 'date' field is enabled)
714 // * $SOURCE - as defined below in the 'ownwork' key, may be extended in the future
715 // * $AUTHOR - linked user name, may be extended in the future
716 // * $LICENSE - as defined below in the 'license' key, may be extended in the future
717 // * $CATEGORIES - file categories wikitext, as input by the user (only if the 'categories'
718 // field is enabled), or if no input, as defined below in the 'uncategorized' key
719 'filepage' => '$DESCRIPTION',
720 // Wrapped for file description. Available replacements:
721 // * $LANGUAGE - source wiki's content language
722 // * $TEXT - input by the user
723 'description' => '$TEXT',
724 'ownwork' => '',
725 'license' => '',
726 'uncategorized' => '',
727 ],
728];
729
767
783
795$wgShowEXIF = function_exists( 'exif_read_data' );
796
803
810
817
824
830
842
859$wgMaxUploadSize = 1024 * 1024 * 100; # 100MB
860
868
880
887
900
909
924
933$wgFileExtensions = [ 'png', 'gif', 'jpg', 'jpeg', 'webp' ];
934
941 # HTML may contain cookie-stealing JavaScript and web bugs
942 'html', 'htm', 'js', 'jsb', 'mhtml', 'mht', 'xhtml', 'xht',
943 # PHP scripts may execute arbitrary code on the server
944 'php', 'phtml', 'php3', 'php4', 'php5', 'phps', 'phar',
945 # Other types that may be interpreted by some servers
946 'shtml', 'jhtml', 'pl', 'py', 'cgi',
947 # May contain harmful executables for Windows victims
948 'exe', 'scr', 'dll', 'msi', 'vbs', 'bat', 'com', 'pif', 'cmd', 'vxd', 'cpl' ];
949
955 # HTML may contain cookie-stealing JavaScript and web bugs
956 'text/html', 'text/javascript', 'text/x-javascript', 'application/x-shellscript',
957 # PHP scripts may execute arbitrary code on the server
958 'application/x-php', 'text/x-php',
959 # Other types that may be interpreted by some servers
960 'text/x-python', 'text/x-perl', 'text/x-bash', 'text/x-sh', 'text/x-csh',
961 # Client-side hazards on Internet Explorer
962 'text/scriptlet', 'application/x-msdownload',
963 # Windows metafile, client-side vulnerability on some systems
964 'application/x-msmetafile',
965];
966
973
980
988
996
1001
1013 MEDIATYPE_BITMAP, // all bitmap formats
1014 MEDIATYPE_AUDIO, // all audio formats
1015 MEDIATYPE_VIDEO, // all plain video formats
1016 "image/svg+xml", // svg (only needed if inline rendering of svg is not supported)
1017 "application/pdf", // PDF files
1018 # "application/x-shockwave-flash", //flash/shockwave movie
1019];
1020
1029
1035 'image/jpeg' => 'MockBitmapHandler',
1036 'image/png' => 'MockBitmapHandler',
1037 'image/gif' => 'MockBitmapHandler',
1038 'image/tiff' => 'MockBitmapHandler',
1039 'image/webp' => 'MockBitmapHandler',
1040 'image/x-ms-bmp' => 'MockBitmapHandler',
1041 'image/x-bmp' => 'MockBitmapHandler',
1042 'image/x-xcf' => 'MockBitmapHandler',
1043 'image/svg+xml' => 'MockSvgHandler',
1044 'image/vnd.djvu' => 'MockDjVuHandler',
1045];
1046
1055 // the usual case
1056 CONTENT_MODEL_WIKITEXT => WikitextContentHandler::class,
1057 // dumb version, no syntax highlighting
1058 CONTENT_MODEL_JAVASCRIPT => JavaScriptContentHandler::class,
1059 // simple implementation, for use by extensions, etc.
1060 CONTENT_MODEL_JSON => JsonContentHandler::class,
1061 // dumb version, no syntax highlighting
1062 CONTENT_MODEL_CSS => CssContentHandler::class,
1063 // plain text, for use by extensions, etc.
1064 CONTENT_MODEL_TEXT => TextContentHandler::class,
1065];
1066
1073
1083
1087$wgImageMagickConvertCommand = '/usr/bin/convert';
1088
1094
1099
1104
1110
1124
1130$wgJpegTran = '/usr/bin/jpegtran';
1131
1152
1161
1166$wgExiv2Command = '/usr/bin/exiv2';
1167
1173$wgExiftool = '/usr/bin/exiftool';
1174
1185 'ImageMagick' =>
1186 '$path/convert -background "#ffffff00" -thumbnail $widthx$height\! $input PNG:$output',
1187 'sodipodi' => '$path/sodipodi -z -w $width -f $input -e $output',
1188 'inkscape' => '$path/inkscape -z -w $width -f $input -e $output',
1189 'batik' => 'java -Djava.awt.headless=true -jar $path/batik-rasterizer.jar -w $width -d '
1190 . '$output $input',
1191 'rsvg' => '$path/rsvg-convert -w $width -h $height -o $output $input',
1192 'imgserv' => '$path/imgserv-wrapper -i svg -o png -w$width $input $output',
1193 'ImagickExt' => [ 'SvgHandler::rasterizeImagickExt' ],
1194];
1195
1199$wgSVGConverter = 'ImageMagick';
1200
1205
1210
1216
1229
1239
1254
1262
1277
1284$wgThumbnailEpoch = '20030516000000';
1285
1293
1306
1315
1320
1327
1334
1370
1371 # setup for clamav
1372 'clamav' => [
1373 'command' => 'clamscan --no-summary ',
1374 'codemap' => [
1375 "0" => AV_NO_VIRUS, # no virus
1376 "1" => AV_VIRUS_FOUND, # virus found
1377 "52" => AV_SCAN_ABORTED, # unsupported file format (probably immune)
1378 "*" => AV_SCAN_FAILED, # else scan failed
1379 ],
1380 'messagepattern' => '/.*?:(.*)/sim',
1381 ],
1382];
1383
1388
1393
1399$wgMimeTypeFile = 'includes/mime.types';
1400
1405$wgMimeInfoFile = 'includes/mime.info';
1406
1419
1426
1432 'http://www.w3.org/2000/svg:svg' => 'image/svg+xml',
1433 'svg' => 'image/svg+xml',
1434 'http://www.lysator.liu.se/~alla/dia/:diagram' => 'application/x-dia-diagram',
1435 'http://www.w3.org/1999/xhtml:html' => 'text/html', // application/xhtml+xml?
1436 'html' => 'text/html', // application/xhtml+xml?
1437];
1438
1448 [ 320, 240 ],
1449 [ 640, 480 ],
1450 [ 800, 600 ],
1451 [ 1024, 768 ],
1452 [ 1280, 1024 ]
1453];
1454
1461 120,
1462 150,
1463 180,
1464 200,
1465 250,
1466 300
1467];
1468
1479
1496
1508
1521
1528
1536
1544
1560
1567
1572
1580
1592
1599
1606
1622
1629
1634
# end of DJvu }
1636
# end of file uploads }
1638
1639/************************************************************************/
1650
1660
1667
1674
1680
1687
1698
1704
1708$wgNewPasswordExpiry = 3600 * 24 * 7;
1709
1714
1720
1725$wgPasswordExpireGrace = 3600 * 24 * 7; // 7 days
1726
1744$wgSMTP = false;
1745
1750
1756
1769
1770// TODO move UPO to preferences probably ?
1771# If set to true, users get a corresponding option in their preferences and can choose to
1772# enable or disable at their discretion
1773# If set to false, the corresponding input form on the user preference page is suppressed
1774# It call this to be a "user-preferences-option (UPO)"
1775
1782
1787
1796
1812
1827
1836
1842
1847
1853
# end of email settings
1855
1856/************************************************************************/
1864$wgDBserver = 'localhost';
1865
1870
1874$wgDBname = 'my_wiki';
1875
1879$wgDBuser = 'wikiuser';
1880
1885
1889$wgDBtype = 'mysql';
1890
1899$wgDBssl = false;
1900
1910
1915
1920
1928
1937
1944
1948$wgDBTableOptions = 'ENGINE=InnoDB, DEFAULT CHARSET=binary';
1949
1957
1962
1969
1974
2001
2006
2010$wgSharedTables = [ 'user', 'user_properties' ];
2011
2017
2074
2085$wgLBFactoryConf = [ 'class' => \Wikimedia\Rdbms\LBFactorySimple::class ];
2086
2094
2099
2119
2147
2162
2169
2174
2179
# End of DB settings }
2181
2182/************************************************************************/
2194
2207
2223
2239
2247
# end text storage }
2249
2250/************************************************************************/
2259
2264
2269
2274
2279
2284
2289
2295
2303
# end performance hacks }
2305
2306/************************************************************************/
2320
2339
2347
2355
2362
2372
2387 CACHE_NONE => [ 'class' => EmptyBagOStuff::class, 'reportDupes' => false ],
2388 CACHE_DB => [ 'class' => SqlBagOStuff::class, 'loggroup' => 'SQLBagOStuff' ],
2389
2390 CACHE_ANYTHING => [ 'factory' => 'ObjectCache::newAnything' ],
2391 CACHE_ACCEL => [ 'factory' => 'ObjectCache::getLocalServerInstance' ],
2392 CACHE_MEMCACHED => [ 'class' => MemcachedPhpBagOStuff::class, 'loggroup' => 'memcached' ],
2393
2394 'db-replicated' => [
2395 'class' => ReplicatedBagOStuff::class,
2396 'readFactory' => [
2397 'class' => SqlBagOStuff::class,
2398 'args' => [ [ 'slaveOnly' => true ] ]
2399 ],
2400 'writeFactory' => [
2401 'class' => SqlBagOStuff::class,
2402 'args' => [ [ 'slaveOnly' => false ] ]
2403 ],
2404 'loggroup' => 'SQLBagOStuff',
2405 'reportDupes' => false
2406 ],
2407
2408 'apc' => [ 'class' => APCBagOStuff::class, 'reportDupes' => false ],
2409 'apcu' => [ 'class' => APCUBagOStuff::class, 'reportDupes' => false ],
2410 'wincache' => [ 'class' => WinCacheBagOStuff::class, 'reportDupes' => false ],
2411 'memcached-php' => [ 'class' => MemcachedPhpBagOStuff::class, 'loggroup' => 'memcached' ],
2412 'memcached-pecl' => [ 'class' => MemcachedPeclBagOStuff::class, 'loggroup' => 'memcached' ],
2413 'hash' => [ 'class' => HashBagOStuff::class, 'reportDupes' => false ],
2414];
2415
2432
2448 CACHE_NONE => [
2449 'class' => WANObjectCache::class,
2450 'cacheId' => CACHE_NONE
2451 ]
2452 /* Example of a simple single data-center cache:
2453 'memcached-php' => [
2454 'class' => WANObjectCache::class,
2455 'cacheId' => 'memcached-php'
2456 ]
2457 */
2458];
2459
2472
2487$wgMainStash = 'db-replicated';
2488
2494
2499
2517
2524
2529
2533$wgMemCachedServers = [ '127.0.0.1:11211' ];
2534
2540
2545
2558
2566
2590 'class' => LocalisationCache::class,
2591 'store' => 'detect',
2592 'storeClass' => false,
2593 'storeDirectory' => false,
2594 'manualRecache' => false,
2595];
2596
2601
2610$wgCacheEpoch = '20030516000000';
2611
2617
2624
2632
2638
2649
2654
2662
2673
2690
# end of cache settings
2692
2693/************************************************************************/
2711
2717
2725
2735
2745
2754
2761
2777
2784
2791
2801
2809
2831
2879
2885
2890
# end of HTTP proxy settings
2892
2893/************************************************************************/
2915
2921
2932
2937
2942
2957
2962
2977 // Language codes of macro languages, which get mapped to the main language
2978 'bh' => 'bho', // Bihari language family
2979 'no' => 'nb', // Norwegian language family
2980
2981 // Language variants which get mapped to the main language
2982 'simple' => 'en', // Simple English
2983];
2984
2992
3004
3017
3029
3041
3055
3061
3067
3073
3078
3083
3088
3093
3098
3104
3115
3134
3141
3162
3187
3198
# End of language/charset settings
3200
3201/*************************************************************************/
3209$wgMimeType = 'text/html';
3210
3219
3228
3237
3247
3256
3264
3273
3289
3298
3304
3310$wgFallbackSkin = 'fallback';
3311
3318
3323
3330
3337
3345
3350
3355
3361
3382
3394
3399
3428$wgFragmentMode = [ 'legacy', 'html5' ];
3429
3439
3471 "copyright" => [
3472 "copyright" => [], // placeholder for the built in copyright icon
3473 ],
3474 "poweredby" => [
3475 "mediawiki" => [
3476 // Defaults to point at
3477 // "$wgResourceBasePath/resources/assets/poweredby_mediawiki_88x31.png"
3478 // plus srcset for 1.5x, 2x resolution variants.
3479 "src" => null,
3480 "url" => "//www.mediawiki.org/",
3481 "alt" => "Powered by MediaWiki",
3482 ]
3483 ],
3484];
3485
3493
3498
3511
3522
3530
3540
# End of output format settings }
3542
3543/*************************************************************************/
3566
3656
3668
3674
3692 'versioned' => [
3693 'server' => 30 * 24 * 60 * 60, // 30 days
3694 'client' => 30 * 24 * 60 * 60, // 30 days
3695 ],
3696 'unversioned' => [
3697 'server' => 5 * 60, // 5 minutes
3698 'client' => 5 * 60, // 5 minutes
3699 ],
3700];
3701
3708
3715
3742
3757
3766
3776
3782
3790
3803
# End of ResourceLoader settings }
3805
3806/*************************************************************************/
3816
3825
3853
3861
3881
3906$wgLegalTitleChars = " %!\"$&'()*,\\-.\\/0-9:;=?@A-Z\\\\^_`a-z~\\x80-\\xFF+";
3907
3914
3924
3929
3954
3962
3967
# end of Interwiki caching settings.
3969
3985$wgRedirectSources = false;
3986
3995
4011
4017 NS_TALK => true,
4018 NS_USER => true,
4019 NS_USER_TALK => true,
4020 NS_PROJECT => true,
4021 NS_PROJECT_TALK => true,
4022 NS_FILE_TALK => true,
4023 NS_MEDIAWIKI => true,
4024 NS_MEDIAWIKI_TALK => true,
4025 NS_TEMPLATE => true,
4026 NS_TEMPLATE_TALK => true,
4027 NS_HELP => true,
4028 NS_HELP_TALK => true,
4030];
4031
4048
4056
4064
4073
4080
4091$wgInvalidRedirectTargets = [ 'Filepath', 'Mypage', 'Mytalk', 'Redirect' ];
4092
# End of title and interwiki settings }
4094
4095/************************************************************************/
4123 'class' => Parser::class,
4124 # 'preprocessorClass' => Preprocessor_Hash::class,
4125];
4126
4131
4137
4148
4156
4161
4173 'bitcoin:', 'ftp://', 'ftps://', 'geo:', 'git://', 'gopher://', 'http://',
4174 'https://', 'irc://', 'ircs://', 'magnet:', 'mailto:', 'mms://', 'news:',
4175 'nntp://', 'redis://', 'sftp://', 'sip:', 'sips:', 'sms:', 'ssh://',
4176 'svn://', 'tel:', 'telnet://', 'urn:', 'worldwind://', 'xmpp:', '//'
4177];
4178
4183
4188
4202
4215
4225
4245$wgTidyConfig = [ 'driver' => 'RemexHtml' ];
4246
4253
4264
4272
4278
4292$wgNoFollowDomainExceptions = [ 'mediawiki.org' ];
4293
4298
4305
4311
4317
4322
4328
4336 'ISBN' => false,
4337 'PMID' => false,
4338 'RFC' => false
4339];
4340
# end of parser settings }
4342
4343/************************************************************************/
4365
4374
# End of statistics }
4376
4377/************************************************************************/
4388 'local' => [ 'class' => LocalIdLookup::class ],
4389];
4390
4396
4464 'policies' => [
4465 'bureaucrat' => [
4466 'MinimalPasswordLength' => 10,
4467 'MinimumPasswordLengthToLogin' => 1,
4468 'PasswordNotInLargeBlacklist' => true,
4469 ],
4470 'sysop' => [
4471 'MinimalPasswordLength' => 10,
4472 'MinimumPasswordLengthToLogin' => 1,
4473 'PasswordNotInLargeBlacklist' => true,
4474 ],
4475 'interface-admin' => [
4476 'MinimalPasswordLength' => 10,
4477 'MinimumPasswordLengthToLogin' => 1,
4478 'PasswordNotInLargeBlacklist' => true,
4479 ],
4480 'bot' => [
4481 'MinimalPasswordLength' => 10,
4482 'MinimumPasswordLengthToLogin' => 1,
4483 'PasswordNotInLargeBlacklist' => true,
4484 ],
4485 'default' => [
4486 'MinimalPasswordLength' => [ 'value' => 1, 'suggestChangeOnLogin' => true ],
4487 'PasswordCannotMatchUsername' => [ 'value' => true, 'suggestChangeOnLogin' => true ],
4488 'PasswordCannotMatchBlacklist' => [ 'value' => true, 'suggestChangeOnLogin' => true ],
4489 'MaximalPasswordLength' => [ 'value' => 4096, 'suggestChangeOnLogin' => true ],
4490 ],
4491 ],
4492 'checks' => [
4493 'MinimalPasswordLength' => 'PasswordPolicyChecks::checkMinimalPasswordLength',
4494 'MinimumPasswordLengthToLogin' => 'PasswordPolicyChecks::checkMinimumPasswordLengthToLogin',
4495 'PasswordCannotMatchUsername' => 'PasswordPolicyChecks::checkPasswordCannotMatchUsername',
4496 'PasswordCannotMatchBlacklist' => 'PasswordPolicyChecks::checkPasswordCannotMatchBlacklist',
4497 'MaximalPasswordLength' => 'PasswordPolicyChecks::checkMaximalPasswordLength',
4498 'PasswordCannotBePopular' => 'PasswordPolicyChecks::checkPopularPasswordBlacklist',
4499 'PasswordNotInLargeBlacklist' => 'PasswordPolicyChecks::checkPasswordNotInLargeBlacklist',
4500 ],
4501];
4502
4523
4529 'preauth' => [
4530 MediaWiki\Auth\ThrottlePreAuthenticationProvider::class => [
4531 'class' => MediaWiki\Auth\ThrottlePreAuthenticationProvider::class,
4532 'sort' => 0,
4533 ],
4534 ],
4535 'primaryauth' => [
4536 // TemporaryPasswordPrimaryAuthenticationProvider should come before
4537 // any other PasswordAuthenticationRequest-based
4538 // PrimaryAuthenticationProvider (or at least any that might return
4539 // FAIL rather than ABSTAIN for a wrong password), or password reset
4540 // won't work right. Do not remove this (or change the key) or
4541 // auto-configuration of other such providers in extensions will
4542 // probably auto-insert themselves in the wrong place.
4543 MediaWiki\Auth\TemporaryPasswordPrimaryAuthenticationProvider::class => [
4544 'class' => MediaWiki\Auth\TemporaryPasswordPrimaryAuthenticationProvider::class,
4545 'args' => [ [
4546 // Fall through to LocalPasswordPrimaryAuthenticationProvider
4547 'authoritative' => false,
4548 ] ],
4549 'sort' => 0,
4550 ],
4551 MediaWiki\Auth\LocalPasswordPrimaryAuthenticationProvider::class => [
4552 'class' => MediaWiki\Auth\LocalPasswordPrimaryAuthenticationProvider::class,
4553 'args' => [ [
4554 // Last one should be authoritative, or else the user will get
4555 // a less-than-helpful error message (something like "supplied
4556 // authentication info not supported" rather than "wrong
4557 // password") if it too fails.
4558 'authoritative' => true,
4559 ] ],
4560 'sort' => 100,
4561 ],
4562 ],
4563 'secondaryauth' => [
4564 MediaWiki\Auth\CheckBlocksSecondaryAuthenticationProvider::class => [
4565 'class' => MediaWiki\Auth\CheckBlocksSecondaryAuthenticationProvider::class,
4566 'sort' => 0,
4567 ],
4568 MediaWiki\Auth\ResetPasswordSecondaryAuthenticationProvider::class => [
4569 'class' => MediaWiki\Auth\ResetPasswordSecondaryAuthenticationProvider::class,
4570 'sort' => 100,
4571 ],
4572 // Linking during login is experimental, enable at your own risk - T134952
4573 // MediaWiki\Auth\ConfirmLinkSecondaryAuthenticationProvider::class => [
4574 // 'class' => MediaWiki\Auth\ConfirmLinkSecondaryAuthenticationProvider::class,
4575 // 'sort' => 100,
4576 // ],
4577 MediaWiki\Auth\EmailNotificationSecondaryAuthenticationProvider::class => [
4578 'class' => MediaWiki\Auth\EmailNotificationSecondaryAuthenticationProvider::class,
4579 'sort' => 200,
4580 ],
4581 ],
4582];
4583
4623 'default' => 300,
4624];
4625
4642 'default' => true,
4643];
4644
4655 \MediaWiki\Auth\TemporaryPasswordAuthenticationRequest::class
4656];
4657
4668 \MediaWiki\Auth\PasswordAuthenticationRequest::class,
4669];
4670
4676
4683
4696
4703
4710
4731 'A' => [
4732 'class' => MWOldPassword::class,
4733 ],
4734 'B' => [
4735 'class' => MWSaltedPassword::class,
4736 ],
4737 'pbkdf2-legacyA' => [
4738 'class' => LayeredParameterizedPassword::class,
4739 'types' => [
4740 'A',
4741 'pbkdf2',
4742 ],
4743 ],
4744 'pbkdf2-legacyB' => [
4745 'class' => LayeredParameterizedPassword::class,
4746 'types' => [
4747 'B',
4748 'pbkdf2',
4749 ],
4750 ],
4751 'bcrypt' => [
4752 'class' => BcryptPassword::class,
4753 'cost' => 9,
4754 ],
4755 'pbkdf2' => [
4756 'class' => Pbkdf2Password::class,
4757 'algo' => 'sha512',
4758 'cost' => '30000',
4759 'length' => '64',
4760 ],
4761 'argon2' => [
4762 'class' => Argon2Password::class,
4763
4764 // Algorithm used:
4765 // * 'argon2i' is optimized against side-channel attacks (PHP 7.2+)
4766 // * 'argon2id' is optimized against both side-channel and GPU cracking (PHP 7.3+)
4767 // * 'auto' to use best available algorithm. If you're using more than one server, be
4768 // careful when you're mixing PHP versions because newer PHP might generate hashes that
4769 // older versions might would not understand.
4770 'algo' => 'auto',
4771
4772 // The parameters below are the same as options accepted by password_hash().
4773 // Set them to override that function's defaults.
4774 //
4775 // 'memory_cost' => PASSWORD_ARGON2_DEFAULT_MEMORY_COST,
4776 // 'time_cost' => PASSWORD_ARGON2_DEFAULT_TIME_COST,
4777 // 'threads' => PASSWORD_ARGON2_DEFAULT_THREADS,
4778 ],
4779];
4780
4788 'username' => true,
4789 'email' => true,
4790];
4791
4796
4802
4808 'MediaWiki default', // Default 'Main Page' and MediaWiki: message pages
4809 'Conversion script', // Used for the old Wikipedia software upgrade
4810 'Maintenance script', // Maintenance scripts which perform editing, image import script
4811 'Template namespace initialisation script', // Used in 1.2->1.3 upgrade
4812 'ScriptImporter', // Default user name used by maintenance/importSiteScripts.php
4813 'Unknown user', // Used in WikiImporter and RevisionStore for revisions with no author
4814 'msg:double-redirect-fixer', // Automatic double redirect fix
4815 'msg:usermessage-editor', // Default user for leaving user messages
4816 'msg:proxyblocker', // For $wgProxyList and Special:Blockme (removed in 1.22)
4817 'msg:sorbs', // For $wgEnableDnsBlacklist etc.
4818 'msg:spambot_username', // Used by cleanupSpam.php
4819 'msg:autochange-username', // Used by anon category RC entries (parser functions, Lua & purges)
4820];
4821
4829 'ccmeonemails' => 0,
4830 'cols' => 80, // @deprecated since 1.29 No longer used in core
4831 'date' => 'default',
4832 'diffonly' => 0,
4833 'disablemail' => 0,
4834 'editfont' => 'monospace',
4835 'editondblclick' => 0,
4836 'editsectiononrightclick' => 0,
4837 'email-allow-new-users' => 1,
4838 'enotifminoredits' => 0,
4839 'enotifrevealaddr' => 0,
4840 'enotifusertalkpages' => 1,
4841 'enotifwatchlistpages' => 1,
4842 'extendwatchlist' => 1,
4843 'fancysig' => 0,
4844 'forceeditsummary' => 0,
4845 'gender' => 'unknown',
4846 'hideminor' => 0,
4847 'hidepatrolled' => 0,
4848 'hidecategorization' => 1,
4849 'imagesize' => 2,
4850 'minordefault' => 0,
4851 'newpageshidepatrolled' => 0,
4852 'nickname' => '',
4853 'norollbackdiff' => 0,
4854 'numberheadings' => 0,
4855 'previewonfirst' => 0,
4856 'previewontop' => 1,
4857 'rcdays' => 7,
4858 'rcenhancedfilters' => 0,
4859 'rcenhancedfilters-disable' => 0,
4860 'rclimit' => 50,
4861 'rows' => 25, // @deprecated since 1.29 No longer used in core
4862 'showhiddencats' => 0,
4863 'shownumberswatching' => 1,
4864 'showrollbackconfirmation' => 0,
4865 'skin' => false,
4866 'stubthreshold' => 0,
4867 'thumbsize' => 5,
4868 'underline' => 2,
4869 'uselivepreview' => 0,
4870 'usenewrc' => 1,
4871 'watchcreations' => 1,
4872 'watchdefault' => 1,
4873 'watchdeletion' => 0,
4874 'watchuploads' => 1,
4875 'watchlistdays' => 7.0,
4876 'watchlisthideanons' => 0,
4877 'watchlisthidebots' => 0,
4878 'watchlisthideliu' => 0,
4879 'watchlisthideminor' => 0,
4880 'watchlisthideown' => 0,
4881 'watchlisthidepatrolled' => 0,
4882 'watchlisthidecategorization' => 1,
4883 'watchlistreloadautomatically' => 0,
4884 'watchlistunwatchlinks' => 0,
4885 'watchmoves' => 0,
4886 'watchrollback' => 0,
4887 'wlenhancedfilters-disable' => 0,
4888 'wllimit' => 250,
4889 'useeditwarning' => 1,
4890 'prefershttps' => 1,
4891];
4892
4897
4904
4915
4923
4935
4945 MediaWiki\Session\CookieSessionProvider::class => [
4946 'class' => MediaWiki\Session\CookieSessionProvider::class,
4947 'args' => [ [
4948 'priority' => 30,
4949 'callUserSetCookiesHook' => true,
4950 ] ],
4951 ],
4952 MediaWiki\Session\BotPasswordSessionProvider::class => [
4953 'class' => MediaWiki\Session\BotPasswordSessionProvider::class,
4954 'args' => [ [
4955 'priority' => 75,
4956 ] ],
4957 ],
4958];
4959
# end user accounts }
4961
4962/************************************************************************/
4971
4980
4985
5001 'IPv4' => 16, # Blocks larger than a /16 (64k addresses) will not be allowed
5002 'IPv6' => 19,
5003];
5004
5013
5035
5063
5069
5075
5101
5103// Implicit group for all visitors
5104$wgGroupPermissions['*']['createaccount'] = true;
5105$wgGroupPermissions['*']['read'] = true;
5106$wgGroupPermissions['*']['edit'] = true;
5107$wgGroupPermissions['*']['createpage'] = true;
5108$wgGroupPermissions['*']['createtalk'] = true;
5109$wgGroupPermissions['*']['writeapi'] = true;
5110$wgGroupPermissions['*']['viewmywatchlist'] = true;
5111$wgGroupPermissions['*']['editmywatchlist'] = true;
5112$wgGroupPermissions['*']['viewmyprivateinfo'] = true;
5113$wgGroupPermissions['*']['editmyprivateinfo'] = true;
5114$wgGroupPermissions['*']['editmyoptions'] = true;
5115# $wgGroupPermissions['*']['patrolmarks'] = false; // let anons see what was patrolled
5116
5117// Implicit group for all logged-in accounts
5118$wgGroupPermissions['user']['move'] = true;
5119$wgGroupPermissions['user']['move-subpages'] = true;
5120$wgGroupPermissions['user']['move-rootuserpages'] = true; // can move root userpages
5121$wgGroupPermissions['user']['move-categorypages'] = true;
5122$wgGroupPermissions['user']['movefile'] = true;
5123$wgGroupPermissions['user']['read'] = true;
5124$wgGroupPermissions['user']['edit'] = true;
5125$wgGroupPermissions['user']['createpage'] = true;
5126$wgGroupPermissions['user']['createtalk'] = true;
5127$wgGroupPermissions['user']['writeapi'] = true;
5128$wgGroupPermissions['user']['upload'] = true;
5129$wgGroupPermissions['user']['reupload'] = true;
5130$wgGroupPermissions['user']['reupload-shared'] = true;
5131$wgGroupPermissions['user']['minoredit'] = true;
5132$wgGroupPermissions['user']['editmyusercss'] = true;
5133$wgGroupPermissions['user']['editmyuserjson'] = true;
5134$wgGroupPermissions['user']['editmyuserjs'] = true;
5135$wgGroupPermissions['user']['purge'] = true;
5136$wgGroupPermissions['user']['sendemail'] = true;
5137$wgGroupPermissions['user']['applychangetags'] = true;
5138$wgGroupPermissions['user']['changetags'] = true;
5139$wgGroupPermissions['user']['editcontentmodel'] = true;
5140
5141// Implicit group for accounts that pass $wgAutoConfirmAge
5142$wgGroupPermissions['autoconfirmed']['autoconfirmed'] = true;
5143$wgGroupPermissions['autoconfirmed']['editsemiprotected'] = true;
5144
5145// Users with bot privilege can have their edits hidden
5146// from various log pages by default
5147$wgGroupPermissions['bot']['bot'] = true;
5148$wgGroupPermissions['bot']['autoconfirmed'] = true;
5149$wgGroupPermissions['bot']['editsemiprotected'] = true;
5150$wgGroupPermissions['bot']['nominornewtalk'] = true;
5151$wgGroupPermissions['bot']['autopatrol'] = true;
5152$wgGroupPermissions['bot']['suppressredirect'] = true;
5153$wgGroupPermissions['bot']['apihighlimits'] = true;
5154$wgGroupPermissions['bot']['writeapi'] = true;
5155
5156// Most extra permission abilities go to this group
5157$wgGroupPermissions['sysop']['block'] = true;
5158$wgGroupPermissions['sysop']['createaccount'] = true;
5159$wgGroupPermissions['sysop']['delete'] = true;
5160// can be separately configured for pages with > $wgDeleteRevisionsLimit revs
5161$wgGroupPermissions['sysop']['bigdelete'] = true;
5162// can view deleted history entries, but not see or restore the text
5163$wgGroupPermissions['sysop']['deletedhistory'] = true;
5164// can view deleted revision text
5165$wgGroupPermissions['sysop']['deletedtext'] = true;
5166$wgGroupPermissions['sysop']['undelete'] = true;
5167$wgGroupPermissions['sysop']['editinterface'] = true;
5168$wgGroupPermissions['sysop']['editsitejson'] = true;
5169$wgGroupPermissions['sysop']['edituserjson'] = true;
5170$wgGroupPermissions['sysop']['import'] = true;
5171$wgGroupPermissions['sysop']['importupload'] = true;
5172$wgGroupPermissions['sysop']['move'] = true;
5173$wgGroupPermissions['sysop']['move-subpages'] = true;
5174$wgGroupPermissions['sysop']['move-rootuserpages'] = true;
5175$wgGroupPermissions['sysop']['move-categorypages'] = true;
5176$wgGroupPermissions['sysop']['patrol'] = true;
5177$wgGroupPermissions['sysop']['autopatrol'] = true;
5178$wgGroupPermissions['sysop']['protect'] = true;
5179$wgGroupPermissions['sysop']['editprotected'] = true;
5180$wgGroupPermissions['sysop']['rollback'] = true;
5181$wgGroupPermissions['sysop']['upload'] = true;
5182$wgGroupPermissions['sysop']['reupload'] = true;
5183$wgGroupPermissions['sysop']['reupload-shared'] = true;
5184$wgGroupPermissions['sysop']['unwatchedpages'] = true;
5185$wgGroupPermissions['sysop']['autoconfirmed'] = true;
5186$wgGroupPermissions['sysop']['editsemiprotected'] = true;
5187$wgGroupPermissions['sysop']['ipblock-exempt'] = true;
5188$wgGroupPermissions['sysop']['blockemail'] = true;
5189$wgGroupPermissions['sysop']['markbotedits'] = true;
5190$wgGroupPermissions['sysop']['apihighlimits'] = true;
5191$wgGroupPermissions['sysop']['browsearchive'] = true;
5192$wgGroupPermissions['sysop']['noratelimit'] = true;
5193$wgGroupPermissions['sysop']['movefile'] = true;
5194$wgGroupPermissions['sysop']['unblockself'] = true;
5195$wgGroupPermissions['sysop']['suppressredirect'] = true;
5196# $wgGroupPermissions['sysop']['pagelang'] = true;
5197# $wgGroupPermissions['sysop']['upload_by_url'] = true;
5198$wgGroupPermissions['sysop']['mergehistory'] = true;
5199$wgGroupPermissions['sysop']['managechangetags'] = true;
5200$wgGroupPermissions['sysop']['deletechangetags'] = true;
5201
5202$wgGroupPermissions['interface-admin']['editinterface'] = true;
5203$wgGroupPermissions['interface-admin']['editsitecss'] = true;
5204$wgGroupPermissions['interface-admin']['editsitejson'] = true;
5205$wgGroupPermissions['interface-admin']['editsitejs'] = true;
5206$wgGroupPermissions['interface-admin']['editusercss'] = true;
5207$wgGroupPermissions['interface-admin']['edituserjson'] = true;
5208$wgGroupPermissions['interface-admin']['edituserjs'] = true;
5209
5210// Permission to change users' group assignments
5211$wgGroupPermissions['bureaucrat']['userrights'] = true;
5212$wgGroupPermissions['bureaucrat']['noratelimit'] = true;
5213// Permission to change users' groups assignments across wikis
5214# $wgGroupPermissions['bureaucrat']['userrights-interwiki'] = true;
5215// Permission to export pages including linked pages regardless of $wgExportMaxLinkDepth
5216# $wgGroupPermissions['bureaucrat']['override-export-depth'] = true;
5217
5218# $wgGroupPermissions['sysop']['deletelogentry'] = true;
5219# $wgGroupPermissions['sysop']['deleterevision'] = true;
5220// To hide usernames from users and Sysops
5221# $wgGroupPermissions['suppress']['hideuser'] = true;
5222// To hide revisions/log items from users and Sysops
5223# $wgGroupPermissions['suppress']['suppressrevision'] = true;
5224// To view revisions/log items hidden from users and Sysops
5225# $wgGroupPermissions['suppress']['viewsuppressed'] = true;
5226// For private suppression log access
5227# $wgGroupPermissions['suppress']['suppressionlog'] = true;
5228
5235# $wgGroupPermissions['developer']['siteadmin'] = true;
5236
5249
5253$wgImplicitGroups = [ '*', 'user', 'autoconfirmed' ];
5254
5277
5282
5290$wgRestrictionTypes = [ 'create', 'edit', 'move', 'upload' ];
5291
5303$wgRestrictionLevels = [ '', 'autoconfirmed', 'sysop' ];
5304
5315
5329
5338
5349
5371
5382
5441 'autoconfirmed' => [ '&',
5444 ],
5445];
5446
5466 'onEdit' => [],
5467];
5468
5474
5498
5503
5509
5515
5521
5530
5553 'count' => 0,
5554 'seconds' => 86400,
5555] ];
5556
5569
5574
5581
5605$wgDnsBlacklistUrls = [ 'http.dnsbl.sorbs.net.' ];
5606
5612
5621
5628
5665 // Page edits
5666 'edit' => [
5667 'ip' => [ 8, 60 ],
5668 'newbie' => [ 8, 60 ],
5669 'user' => [ 90, 60 ],
5670 ],
5671 // Page moves
5672 'move' => [
5673 'newbie' => [ 2, 120 ],
5674 'user' => [ 8, 60 ],
5675 ],
5676 // File uploads
5677 'upload' => [
5678 'ip' => [ 8, 60 ],
5679 'newbie' => [ 8, 60 ],
5680 ],
5681 // Page rollbacks
5682 'rollback' => [
5683 'user' => [ 10, 60 ],
5684 'newbie' => [ 5, 120 ]
5685 ],
5686 // Triggering password resets emails
5687 'mailpassword' => [
5688 'ip' => [ 5, 3600 ],
5689 ],
5690 // Emailing other users using MediaWiki
5691 'emailuser' => [
5692 'ip' => [ 5, 86400 ],
5693 'newbie' => [ 5, 86400 ],
5694 'user' => [ 20, 86400 ],
5695 ],
5696 'changeemail' => [
5697 'ip-all' => [ 10, 3600 ],
5698 'user' => [ 4, 86400 ]
5699 ],
5700 // Purging pages
5701 'purge' => [
5702 'ip' => [ 30, 60 ],
5703 'user' => [ 30, 60 ],
5704 ],
5705 // Purges of link tables
5706 'linkpurge' => [
5707 'ip' => [ 30, 60 ],
5708 'user' => [ 30, 60 ],
5709 ],
5710 // Files rendered via thumb.php or thumb_handler.php
5711 'renderfile' => [
5712 'ip' => [ 700, 30 ],
5713 'user' => [ 700, 30 ],
5714 ],
5715 // Same as above but for non-standard thumbnails
5716 'renderfile-nonstandard' => [
5717 'ip' => [ 70, 30 ],
5718 'user' => [ 70, 30 ],
5719 ],
5720 // Stashing edits into cache before save
5721 'stashedit' => [
5722 'ip' => [ 30, 60 ],
5723 'newbie' => [ 30, 60 ],
5724 ],
5725 // Adding or removing change tags
5726 'changetag' => [
5727 'ip' => [ 8, 60 ],
5728 'newbie' => [ 8, 60 ],
5729 ],
5730 // Changing the content model of a page
5731 'editcontentmodel' => [
5732 'newbie' => [ 2, 120 ],
5733 'user' => [ 8, 60 ],
5734 ],
5735];
5736
5742
5749
5755
5769 // Short term limit
5770 [ 'count' => 5, 'seconds' => 300 ],
5771 // Long term limit. We need to balance the risk
5772 // of somebody using this as a DoS attack to lock someone
5773 // out of their account, and someone doing a brute force attack.
5774 [ 'count' => 150, 'seconds' => 60 * 60 * 48 ],
5775];
5776
5788
5789// @TODO: clean up grants
5790// @TODO: auto-include read/editsemiprotected rights?
5791
5792$wgGrantPermissions['basic']['autoconfirmed'] = true;
5793$wgGrantPermissions['basic']['autopatrol'] = true;
5794$wgGrantPermissions['basic']['editsemiprotected'] = true;
5795$wgGrantPermissions['basic']['ipblock-exempt'] = true;
5796$wgGrantPermissions['basic']['nominornewtalk'] = true;
5797$wgGrantPermissions['basic']['patrolmarks'] = true;
5798$wgGrantPermissions['basic']['purge'] = true;
5799$wgGrantPermissions['basic']['read'] = true;
5800$wgGrantPermissions['basic']['skipcaptcha'] = true;
5801$wgGrantPermissions['basic']['writeapi'] = true;
5802
5803$wgGrantPermissions['highvolume']['bot'] = true;
5804$wgGrantPermissions['highvolume']['apihighlimits'] = true;
5805$wgGrantPermissions['highvolume']['noratelimit'] = true;
5806$wgGrantPermissions['highvolume']['markbotedits'] = true;
5807
5808$wgGrantPermissions['editpage']['edit'] = true;
5809$wgGrantPermissions['editpage']['minoredit'] = true;
5810$wgGrantPermissions['editpage']['applychangetags'] = true;
5811$wgGrantPermissions['editpage']['changetags'] = true;
5812
5813$wgGrantPermissions['editprotected'] = $wgGrantPermissions['editpage'];
5814$wgGrantPermissions['editprotected']['editprotected'] = true;
5815
5816// FIXME: Rename editmycssjs to editmyconfig
5817$wgGrantPermissions['editmycssjs'] = $wgGrantPermissions['editpage'];
5818$wgGrantPermissions['editmycssjs']['editmyusercss'] = true;
5819$wgGrantPermissions['editmycssjs']['editmyuserjson'] = true;
5820$wgGrantPermissions['editmycssjs']['editmyuserjs'] = true;
5821
5822$wgGrantPermissions['editmyoptions']['editmyoptions'] = true;
5823$wgGrantPermissions['editmyoptions']['editmyuserjson'] = true;
5824
5825$wgGrantPermissions['editinterface'] = $wgGrantPermissions['editpage'];
5826$wgGrantPermissions['editinterface']['editinterface'] = true;
5827$wgGrantPermissions['editinterface']['edituserjson'] = true;
5828$wgGrantPermissions['editinterface']['editsitejson'] = true;
5829
5830$wgGrantPermissions['editsiteconfig'] = $wgGrantPermissions['editinterface'];
5831$wgGrantPermissions['editsiteconfig']['editusercss'] = true;
5832$wgGrantPermissions['editsiteconfig']['edituserjs'] = true;
5833$wgGrantPermissions['editsiteconfig']['editsitecss'] = true;
5834$wgGrantPermissions['editsiteconfig']['editsitejs'] = true;
5835
5836$wgGrantPermissions['createeditmovepage'] = $wgGrantPermissions['editpage'];
5837$wgGrantPermissions['createeditmovepage']['createpage'] = true;
5838$wgGrantPermissions['createeditmovepage']['createtalk'] = true;
5839$wgGrantPermissions['createeditmovepage']['move'] = true;
5840$wgGrantPermissions['createeditmovepage']['move-rootuserpages'] = true;
5841$wgGrantPermissions['createeditmovepage']['move-subpages'] = true;
5842$wgGrantPermissions['createeditmovepage']['move-categorypages'] = true;
5843
5844$wgGrantPermissions['uploadfile']['upload'] = true;
5845$wgGrantPermissions['uploadfile']['reupload-own'] = true;
5846
5847$wgGrantPermissions['uploadeditmovefile'] = $wgGrantPermissions['uploadfile'];
5848$wgGrantPermissions['uploadeditmovefile']['reupload'] = true;
5849$wgGrantPermissions['uploadeditmovefile']['reupload-shared'] = true;
5850$wgGrantPermissions['uploadeditmovefile']['upload_by_url'] = true;
5851$wgGrantPermissions['uploadeditmovefile']['movefile'] = true;
5852$wgGrantPermissions['uploadeditmovefile']['suppressredirect'] = true;
5853
5854$wgGrantPermissions['patrol']['patrol'] = true;
5855
5856$wgGrantPermissions['rollback']['rollback'] = true;
5857
5858$wgGrantPermissions['blockusers']['block'] = true;
5859$wgGrantPermissions['blockusers']['blockemail'] = true;
5860
5861$wgGrantPermissions['viewdeleted']['browsearchive'] = true;
5862$wgGrantPermissions['viewdeleted']['deletedhistory'] = true;
5863$wgGrantPermissions['viewdeleted']['deletedtext'] = true;
5864
5865$wgGrantPermissions['viewrestrictedlogs']['suppressionlog'] = true;
5866
5868 $wgGrantPermissions['viewdeleted'];
5869$wgGrantPermissions['delete']['delete'] = true;
5870$wgGrantPermissions['delete']['bigdelete'] = true;
5871$wgGrantPermissions['delete']['deletelogentry'] = true;
5872$wgGrantPermissions['delete']['deleterevision'] = true;
5873$wgGrantPermissions['delete']['undelete'] = true;
5874
5875$wgGrantPermissions['oversight']['suppressrevision'] = true;
5876
5877$wgGrantPermissions['protect'] = $wgGrantPermissions['editprotected'];
5878$wgGrantPermissions['protect']['protect'] = true;
5879
5880$wgGrantPermissions['viewmywatchlist']['viewmywatchlist'] = true;
5881
5882$wgGrantPermissions['editmywatchlist']['editmywatchlist'] = true;
5883
5884$wgGrantPermissions['sendemail']['sendemail'] = true;
5885
5886$wgGrantPermissions['createaccount']['createaccount'] = true;
5887
5888$wgGrantPermissions['privateinfo']['viewmyprivateinfo'] = true;
5889
5895 // Hidden grants are implicitly present
5896 'basic' => 'hidden',
5897
5898 'editpage' => 'page-interaction',
5899 'createeditmovepage' => 'page-interaction',
5900 'editprotected' => 'page-interaction',
5901 'patrol' => 'page-interaction',
5902
5903 'uploadfile' => 'file-interaction',
5904 'uploadeditmovefile' => 'file-interaction',
5905
5906 'sendemail' => 'email',
5907
5908 'viewmywatchlist' => 'watchlist-interaction',
5909 'editviewmywatchlist' => 'watchlist-interaction',
5910
5911 'editmycssjs' => 'customization',
5912 'editmyoptions' => 'customization',
5913
5914 'editinterface' => 'administration',
5915 'editsiteconfig' => 'administration',
5916 'rollback' => 'administration',
5917 'blockusers' => 'administration',
5918 'delete' => 'administration',
5919 'viewdeleted' => 'administration',
5920 'viewrestrictedlogs' => 'administration',
5921 'protect' => 'administration',
5922 'oversight' => 'administration',
5923 'createaccount' => 'administration',
5924
5925 'highvolume' => 'high-volume',
5926
5927 'privateinfo' => 'private-information',
5928];
5929
5935
5942
5952
# end of user rights settings
5954
5955/************************************************************************/
5964
5975
# end of proxy scanner settings
5977
5978/************************************************************************/
5987
5995
6001
6007
6015
6023
6030
6037
6042
6047
6056
6065
# end of cookie settings }
6067
6068/************************************************************************/
6080
# end LaTeX }
6082
6083/************************************************************************/
6097
6102
6109
6116
6126
6136
6143 // HTTP GET/HEAD requests.
6144 // Master queries should not happen on GET requests
6145 'GET' => [
6146 'masterConns' => 0,
6147 'writes' => 0,
6148 'readQueryTime' => 5,
6149 'readQueryRows' => 10000
6150 ],
6151 // HTTP POST requests.
6152 // Master reads and writes will happen for a subset of these.
6153 'POST' => [
6154 'readQueryTime' => 5,
6155 'writeQueryTime' => 1,
6156 'readQueryRows' => 100000,
6157 'maxAffected' => 1000
6158 ],
6159 'POST-nonwrite' => [
6160 'writes' => 0,
6161 'readQueryTime' => 5,
6162 'readQueryRows' => 10000
6163 ],
6164 // Deferred updates that run after HTTP response is sent for GET requests
6165 'PostSend-GET' => [
6166 'readQueryTime' => 5,
6167 'writeQueryTime' => 1,
6168 'readQueryRows' => 10000,
6169 'maxAffected' => 1000,
6170 // Log master queries under the post-send entry point as they are discouraged
6171 'masterConns' => 0,
6172 'writes' => 0,
6173 ],
6174 // Deferred updates that run after HTTP response is sent for POST requests
6175 'PostSend-POST' => [
6176 'readQueryTime' => 5,
6177 'writeQueryTime' => 1,
6178 'readQueryRows' => 100000,
6179 'maxAffected' => 1000
6180 ],
6181 // Background job runner
6182 'JobRunner' => [
6183 'readQueryTime' => 30,
6184 'writeQueryTime' => 5,
6185 'readQueryRows' => 100000,
6186 'maxAffected' => 500 // ballpark of $wgUpdateRowsPerQuery
6187 ],
6188 // Command-line scripts
6189 'Maintenance' => [
6190 'writeQueryTime' => 5,
6191 'maxAffected' => 1000
6192 ]
6193];
6194
6226
6249 'class' => \MediaWiki\Logger\LegacySpi::class,
6250];
6251
6258
6264
6269
6274
6284
6292
6304
6309
6315
6320
6327
6333
6340
6398
6405
6411
6419
6431
6440
6448 'wanobjectcache:*' => 0.001
6449];
6450
6457
6465
6480
6485
6491
6500
# end of profiling, testing and debugging }
6502
6503/************************************************************************/
6512
6518
6523$wgSearchHighlightBoundaries = '[\p{Z}\p{P}\p{C}]';
6524
6536
6546 'application/x-suggestions+json' => false,
6547 'application/x-suggestions+xml' => false,
6548];
6549
6557
6563
6568
6573
6579
6590 NS_MAIN => true,
6591];
6592
6598
6615
6622
6629
6645
6652
# end of search settings
6654
6655/************************************************************************/
6664$wgDiff3 = '/usr/bin/diff3';
6665
6669$wgDiff = '/usr/bin/diff';
6670
6677 NS_CATEGORY => true
6678];
6679
6686
6693
# end edit UI }
6695
6696/************************************************************************/
6706if ( !isset( $wgCommandLineMode ) ) {
6707 $wgCommandLineMode = false;
6708}
6715
6725
6732
6741
6752
6756$wgGitBin = '/usr/bin/git';
6757
6772 'https://(?:[a-z0-9_]+@)?gerrit.wikimedia.org/r/(?:p/)?(.*)' =>
6773 'https://gerrit.wikimedia.org/g/%R/+/%H',
6774 'ssh://(?:[a-z0-9_]+@)?gerrit.wikimedia.org:29418/(.*)' =>
6775 'https://gerrit.wikimedia.org/g/%R/+/%H',
6776];
6777
# End of maintenance }
6779
6780/************************************************************************/
6790$wgRCMaxAge = 90 * 24 * 3600;
6791
6797$wgWatchersMaxAge = 180 * 24 * 3600;
6798
6806
6815
6820$wgRCLinkLimits = [ 50, 100, 250, 500 ];
6821
6826$wgRCLinkDays = [ 1, 3, 7, 14, 30 ];
6827
6882
6889 'redis' => RedisPubSubFeedEngine::class,
6890 'udp' => UDPRCFeedEngine::class,
6891];
6892
6905
6915
6922
6931
6942
6946$wgFeed = true;
6947
6953
6963
6969
6983
6990 'rss' => RSSFeed::class,
6991 'atom' => AtomFeed::class,
6992];
6993
6999
7004
7009
7016
7022
7028
7034
7050 'mw-contentmodelchange' => true,
7051 'mw-new-redirect' => true,
7052 'mw-removed-redirect' => true,
7053 'mw-changed-redirect-target' => true,
7054 'mw-blank' => true,
7055 'mw-replace' => true,
7056 'mw-rollback' => true,
7057 'mw-undo' => true,
7058];
7059
7068
7094 'newpage' => [
7095 'letter' => 'newpageletter',
7096 'title' => 'recentchanges-label-newpage',
7097 'legend' => 'recentchanges-legend-newpage',
7098 'grouping' => 'any',
7099 ],
7100 'minor' => [
7101 'letter' => 'minoreditletter',
7102 'title' => 'recentchanges-label-minor',
7103 'legend' => 'recentchanges-legend-minor',
7104 'class' => 'minoredit',
7105 'grouping' => 'all',
7106 ],
7107 'bot' => [
7108 'letter' => 'boteditletter',
7109 'title' => 'recentchanges-label-bot',
7110 'legend' => 'recentchanges-legend-bot',
7111 'class' => 'botedit',
7112 'grouping' => 'all',
7113 ],
7114 'unpatrolled' => [
7115 'letter' => 'unpatrolledletter',
7116 'title' => 'recentchanges-label-unpatrolled',
7117 'legend' => 'recentchanges-legend-unpatrolled',
7118 'grouping' => 'any',
7119 ],
7120];
7121
# end RC/watchlist }
7123
7124/************************************************************************/
7137
7144
7152
7157
7162
7171
7177
# end of copyright and credits settings }
7179
7180/************************************************************************/
7208
7217
7224
7231
7236
7249
7254
7259
7267
# end of import/export }
7269
7270/*************************************************************************/
7280
7308
7335
7342
7358
7363
7373
7381
7386
7393
7447
7483
7496 __DIR__ . '/ServiceWiring.php'
7497];
7498
7506 'deletePage' => DeletePageJob::class,
7507 'refreshLinks' => RefreshLinksJob::class,
7508 'deleteLinks' => DeleteLinksJob::class,
7509 'htmlCacheUpdate' => HTMLCacheUpdateJob::class,
7510 'sendMail' => EmaillingJob::class,
7511 'enotifNotify' => EnotifNotifyJob::class,
7512 'fixDoubleRedirect' => DoubleRedirectJob::class,
7513 'AssembleUploadChunks' => AssembleUploadChunksJob::class,
7514 'PublishStashedFile' => PublishStashedFileJob::class,
7515 'ThumbnailRender' => ThumbnailRenderJob::class,
7516 'recentChangesUpdate' => RecentChangesUpdateJob::class,
7517 'refreshLinksPrioritized' => RefreshLinksJob::class,
7518 'refreshLinksDynamic' => RefreshLinksJob::class,
7519 'activityUpdateJob' => ActivityUpdateJob::class,
7520 'categoryMembershipChange' => function ( Title $title, $params = [] ) {
7521 $pc = MediaWikiServices::getInstance()->getParserCache();
7522 return new CategoryMembershipChangeJob( $pc, $title, $params );
7523 },
7524 'clearUserWatchlist' => ClearUserWatchlistJob::class,
7525 'cdnPurge' => CdnPurgeJob::class,
7526 'userGroupExpiry' => UserGroupExpiryJob::class,
7527 'clearWatchlistNotifications' => ClearWatchlistNotificationsJob::class,
7528 'enqueue' => EnqueueJob::class, // local queue for multi-DC setups
7529 'null' => NullJob::class,
7530];
7531
7543$wgJobTypesExcludedFromDefaultQueue = [ 'AssembleUploadChunks', 'PublishStashedFile' ];
7544
7555
7570
7578 'default' => [ 'class' => JobQueueDB::class, 'order' => 'random', 'claimTTL' => 3600 ],
7579];
7580
7593
7599 'Statistics' => [ SiteStatsUpdate::class, 'cacheUpdate' ]
7600];
7601
7610 'hiddencat' => 'categorylinks',
7611];
7612
# End extensions }
7614
7615/*************************************************************************/
7624
7630
7635
7662
# End categories }
7664
7665/*************************************************************************/
7680 '',
7681 'block',
7682 'protect',
7683 'rights',
7684 'delete',
7685 'upload',
7686 'move',
7687 'import',
7688 'patrol',
7689 'merge',
7690 'suppress',
7691 'tag',
7692 'managetags',
7693 'contentmodel',
7694];
7695
7704 'suppress' => 'suppressionlog'
7705];
7706
7727 'patrol' => true,
7728 'tag' => true,
7729];
7730
7741 '' => 'all-logs-page',
7742 'block' => 'blocklogpage',
7743 'protect' => 'protectlogpage',
7744 'rights' => 'rightslog',
7745 'delete' => 'dellogpage',
7746 'upload' => 'uploadlogpage',
7747 'move' => 'movelogpage',
7748 'import' => 'importlogpage',
7749 'patrol' => 'patrol-log-page',
7750 'merge' => 'mergelog',
7751 'suppress' => 'suppressionlog',
7752];
7753
7764 '' => 'alllogstext',
7765 'block' => 'blocklogtext',
7766 'delete' => 'dellogpagetext',
7767 'import' => 'importlogpagetext',
7768 'merge' => 'mergelogpagetext',
7769 'move' => 'movelogpagetext',
7770 'patrol' => 'patrol-log-header',
7771 'protect' => 'protectlogtext',
7772 'rights' => 'rightslogtext',
7773 'suppress' => 'suppressionlogtext',
7774 'upload' => 'uploadlogpagetext',
7775];
7776
7784
7792 'block/block' => BlockLogFormatter::class,
7793 'block/reblock' => BlockLogFormatter::class,
7794 'block/unblock' => BlockLogFormatter::class,
7795 'contentmodel/change' => ContentModelLogFormatter::class,
7796 'contentmodel/new' => ContentModelLogFormatter::class,
7797 'delete/delete' => DeleteLogFormatter::class,
7798 'delete/delete_redir' => DeleteLogFormatter::class,
7799 'delete/event' => DeleteLogFormatter::class,
7800 'delete/restore' => DeleteLogFormatter::class,
7801 'delete/revision' => DeleteLogFormatter::class,
7802 'import/interwiki' => ImportLogFormatter::class,
7803 'import/upload' => ImportLogFormatter::class,
7804 'managetags/activate' => LogFormatter::class,
7805 'managetags/create' => LogFormatter::class,
7806 'managetags/deactivate' => LogFormatter::class,
7807 'managetags/delete' => LogFormatter::class,
7808 'merge/merge' => MergeLogFormatter::class,
7809 'move/move' => MoveLogFormatter::class,
7810 'move/move_redir' => MoveLogFormatter::class,
7811 'patrol/patrol' => PatrolLogFormatter::class,
7812 'patrol/autopatrol' => PatrolLogFormatter::class,
7813 'protect/modify' => ProtectLogFormatter::class,
7814 'protect/move_prot' => ProtectLogFormatter::class,
7815 'protect/protect' => ProtectLogFormatter::class,
7816 'protect/unprotect' => ProtectLogFormatter::class,
7817 'rights/autopromote' => RightsLogFormatter::class,
7818 'rights/rights' => RightsLogFormatter::class,
7819 'suppress/block' => BlockLogFormatter::class,
7820 'suppress/delete' => DeleteLogFormatter::class,
7821 'suppress/event' => DeleteLogFormatter::class,
7822 'suppress/reblock' => BlockLogFormatter::class,
7823 'suppress/revision' => DeleteLogFormatter::class,
7824 'tag/update' => TagLogFormatter::class,
7825 'upload/overwrite' => UploadLogFormatter::class,
7826 'upload/revert' => UploadLogFormatter::class,
7827 'upload/upload' => UploadLogFormatter::class,
7828];
7829
7839 'block' => [
7840 'block' => [ 'block' ],
7841 'reblock' => [ 'reblock' ],
7842 'unblock' => [ 'unblock' ],
7843 ],
7844 'contentmodel' => [
7845 'change' => [ 'change' ],
7846 'new' => [ 'new' ],
7847 ],
7848 'delete' => [
7849 'delete' => [ 'delete' ],
7850 'delete_redir' => [ 'delete_redir' ],
7851 'restore' => [ 'restore' ],
7852 'event' => [ 'event' ],
7853 'revision' => [ 'revision' ],
7854 ],
7855 'import' => [
7856 'interwiki' => [ 'interwiki' ],
7857 'upload' => [ 'upload' ],
7858 ],
7859 'managetags' => [
7860 'create' => [ 'create' ],
7861 'delete' => [ 'delete' ],
7862 'activate' => [ 'activate' ],
7863 'deactivate' => [ 'deactivate' ],
7864 ],
7865 'move' => [
7866 'move' => [ 'move' ],
7867 'move_redir' => [ 'move_redir' ],
7868 ],
7869 'newusers' => [
7870 'create' => [ 'create', 'newusers' ],
7871 'create2' => [ 'create2' ],
7872 'autocreate' => [ 'autocreate' ],
7873 'byemail' => [ 'byemail' ],
7874 ],
7875 'protect' => [
7876 'protect' => [ 'protect' ],
7877 'modify' => [ 'modify' ],
7878 'unprotect' => [ 'unprotect' ],
7879 'move_prot' => [ 'move_prot' ],
7880 ],
7881 'rights' => [
7882 'rights' => [ 'rights' ],
7883 'autopromote' => [ 'autopromote' ],
7884 ],
7885 'suppress' => [
7886 'event' => [ 'event' ],
7887 'revision' => [ 'revision' ],
7888 'delete' => [ 'delete' ],
7889 'block' => [ 'block' ],
7890 'reblock' => [ 'reblock' ],
7891 ],
7892 'upload' => [
7893 'upload' => [ 'upload' ],
7894 'overwrite' => [ 'overwrite' ],
7895 'revert' => [ 'revert' ],
7896 ],
7897];
7898
7903
7909
# end logging }
7911
7912/*************************************************************************/
7921
7927
7933
7939
# end special pages }
7941
7942/*************************************************************************/
7958 'credits' => true,
7959 'delete' => true,
7960 'edit' => true,
7961 'editchangetags' => SpecialPageAction::class,
7962 'history' => true,
7963 'info' => true,
7964 'markpatrolled' => true,
7965 'mcrundo' => McrUndoAction::class,
7966 'mcrrestore' => McrRestoreAction::class,
7967 'protect' => true,
7968 'purge' => true,
7969 'raw' => true,
7970 'render' => true,
7971 'revert' => true,
7972 'revisiondelete' => SpecialPageAction::class,
7973 'rollback' => true,
7974 'submit' => true,
7975 'unprotect' => true,
7976 'unwatch' => true,
7977 'view' => true,
7978 'watch' => true,
7979];
7980
# end actions }
7982
7983/*************************************************************************/
7994$wgDefaultRobotPolicy = 'index,follow';
7995
8011
8039
8051
# End robot policy }
8053
8054/************************************************************************/
8077
8115
8124
8133
8142
8151
8157
8163
8169
8176
8182
8187
8193 'MIMEsearch', // aiprop=mime
8194 'LinkSearch', // list=exturlusage
8195 'FileDuplicateSearch', // prop=duplicatefiles
8196];
8197
8204
8211
8216
8221
8227
8249
8256
# End AJAX and API }
8258
8259/************************************************************************/
8268
8274
8279
8285
8310
8314$wgPhpCli = '/usr/bin/php';
8315
8350$wgShellLocale = 'C.UTF-8';
8351
8367
# End shell }
8369
8370/************************************************************************/
8380
8386
8391
8396
8411
8417
# End HTTP client }
8419
8420/************************************************************************/
8432
8441
8446
8451
# End job queue }
8453
8454/************************************************************************/
8466
8480
8490
8496
8502
8507
8513
8519
8553
8558
8571
8583
8598
8610 CONTENT_MODEL_WIKITEXT, // Just for completeness, wikitext will always be parsed.
8611 CONTENT_MODEL_JAVASCRIPT, // Make categories etc work, people put them into comments.
8612 CONTENT_MODEL_CSS, // Make categories etc work, people put them into comments.
8613];
8614
8621 'mediawiki' => MediaWikiSite::class,
8622];
8623
8630
8643
8651
8660
8670
8678
8686
8725 'paths' => [],
8726 'modules' => [],
8727 'global' => [
8728 # Timeout in seconds
8729 'timeout' => 360,
8730 # 'domain' is set to $wgCanonicalServer in Setup.php
8731 'forwardCookies' => false,
8732 'HTTPProxy' => null
8733 ]
8734];
8735
8744
8757$wgPopularPasswordFile = __DIR__ . '/password/commonpasswords.cdb';
8758
8759/*
8760 * Max time (in seconds) a user-generated transaction can spend in writes.
8761 * If exceeded, the transaction is rolled back with an error instead of being committed.
8762 *
8763 * @var int|bool Disabled if false
8764 * @since 1.27
8765 */
8767
8768/*
8769 * Max time (in seconds) a job-generated transaction can spend in writes.
8770 * If exceeded, the transaction is rolled back with an error instead of being committed.
8771 *
8772 * @var int|bool Disabled if false
8773 * @since 1.30
8774 */
8776
8798
8806
8818 'copyright',
8819 'history_copyright',
8820 'googlesearch',
8821 'feedback-terms',
8822 'feedback-termsofuse',
8823];
8824
8845 'default' => [
8846 'class' => EventRelayerNull::class,
8847 ]
8848];
8849
8864
8874 'https://3hub.co' => true,
8875 'https://morepro.info' => true,
8876 'https://p.ato.mx' => true,
8877 'https://s.ato.mx' => true,
8878 'https://adserver.adtech.de' => true,
8879 'https://ums.adtechus.com' => true,
8880 'https://cas.criteo.com' => true,
8881 'https://cat.nl.eu.criteo.com' => true,
8882 'https://atpixel.alephd.com' => true,
8883 'https://rtb.metrigo.com' => true,
8884 'https://d5p.de17a.com' => true,
8885 'https://ad.lkqd.net/vpaid/vpaid.js' => true,
8886 'https://ad.lkqd.net/vpaid/vpaid.js?fusion=1.0' => true,
8887 'https://t.lkqd.net/t' => true,
8888 'chrome-extension' => true,
8889];
8890
8899 'IPv4' => 16,
8900 'IPv6' => 32,
8901];
8902
8919
8938
8959
8965
8983
8993
9001
9011
9021
and(b) You must cause any modified files to carry prominent notices stating that You changed the files
in the Source form of any Derivative Works that You all copyright
Apache License January AND DISTRIBUTION Definitions License shall mean the terms and conditions for use
This list may contain false positives That usually means there is additional text with links below the first Each row contains links to the first and second as well as the first line of the second redirect text
$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.
$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.
$wgAdvancedSearchHighlighting
Set to true to have nicer highlighted text in search results, by default off due to execution overhea...
$wgUsePathInfo
Whether to support URLs like index.php/Page_title These often break when PHP is set up in CGI mode.
$wgUseSiteCss
Use the site's Cascading Style Sheets (CSS)?
$wgInterwikiExpiry
Expiry time for cache of interwiki table.
$wgAPIUselessQueryPages
The ApiQueryQueryPages module should skip pages that are redundant to true API queries.
$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.
$wgMemoryLimit
The minimum amount of memory that MediaWiki "needs"; MediaWiki will try to raise PHP's memory limit i...
$wgMaxTemplateDepth
Maximum recursion depth for templates within templates.
$wgAPIMetaModules
API Query meta module extensions.
$wgGroupsRemoveFromSelf
$wgEmergencyContact
Site admin email address.
$wgRCShowWatchingUsers
Show watching users in recent changes, watchlist and page history views.
$wgDBprefix
Table name prefix.
$wgAPIMaxResultSize
The maximum size (in bytes) of an API result.
$wgNewPasswordExpiry
The time, in seconds, when an emailed temporary password expires.
$wgMaxPPNodeCount
A complexity limit on template expansion: the maximum number of nodes visited by PPFrame::expand()
$wgPreviewOnOpenNamespaces
Which namespaces have special treatment where they should be preview-on-open Internally only Category...
$wgAllowUserJs
Allow user Javascript page? This enables a lot of neat customizations, but may increase security risk...
$wgEnotifWatchlist
Allow users to enable email notification ("enotif") on watchlist changes.
$wgCdnReboundPurgeDelay
If set, any SquidPurge call on a URL or URLs will send a second purge no less than this many seconds ...
$wgArticleRobotPolicies
Robot policies per article.
$wgApplyIpBlocksToXff
Whether to look at the X-Forwarded-For header's list of (potentially spoofed) IPs and apply IP blocks...
$wgLegacySchemaConversion
If set to true, the MediaWiki 1.4 to 1.5 schema conversion will create stub reference rows in the tex...
bool array $wgCSPReportOnlyHeader
Controls Content-Security-Policy-Report-Only header.
$wgDBuser
Database username.
$wgCategoryPagingLimit
Paging limit for categories.
$wgFeedCacheTimeout
Minimum timeout for cached Recentchanges feed, in seconds.
$wgUserEmailConfirmationTokenExpiry
The time, in seconds, when an email confirmation email expires.
$wgRemoveGroups
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.
$wgMaxGeneratedPPNodeCount
A complexity limit on template expansion: the maximum number of elements generated by Preprocessor::p...
string $wgPHPSessionHandling
Whether to use PHP session handling ($_SESSION and session_*() functions)
$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
Name of the external diff 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...
$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).
$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.
$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.
$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 whitelist of regular expression fragment...
$wgPasswordExpireGrace
If a user's password is expired, the number of seconds when they can still login, and cancel their pa...
$wgFeedLimit
Set maximum number of results to return in syndication feeds (RSS, Atom) for eg Recentchanges,...
$wgActiveUserDays
How many days user must be idle before he is considered inactive.
$wgLockManagers
Array of configuration arrays for each lock manager.
$wgNamespacesWithSubpages
Which namespaces should support subpages? See Language.php for a list of namespaces.
$wgSiteTypes
Register handlers for specific types of sites.
$wgEditSubmitButtonLabelPublish
Whether to label the store-to-database-and-show-to-others button in the editor as "Save page"/"Save c...
$wgRawHtml
Allow raw, unchecked HTML in "<html>...</html>" sections.
$wgHiddenPrefs
An array of preferences to not show for the user.
$wgMaxRedirectLinksRetrieved
Maximum number of links to a redirect page listed on Special:Whatlinkshere/RedirectDestination.
$wgForeignUploadTargets
Array of foreign file repo names (set in $wgForeignFileRepos above) that are allowable upload targets...
$wgCheckFileExtensions
This is a flag to determine whether or not to check file extensions on upload.
$wgUserrightsInterwikiDelimiter
Character used as a delimiter when testing for interwiki userrights (In Special:UserRights,...
$wgUseCopyrightUpload
Set this to true if you want detailed copyright information forms on Upload.
$wgRCFeeds
Recentchanges items are periodically purged; entries older than this many seconds will go.
$wgNoFollowNsExceptions
Namespaces in which $wgNoFollowLinks doesn't apply.
$wgEnableOpenSearchSuggest
Enable OpenSearch suggestions requested by MediaWiki.
$wgCleanSignatures
If true, removes (by substituting) templates in signatures.
$wgDBadminuser
Separate username for maintenance tasks.
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.
bool $wgEnablePartialBlocks
Flag to enable Partial Blocks.
$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'.
$wgGenerateThumbnailOnParse
Allow thumbnail rendering on page view.
$wgRightsUrl
Set this to specify an external URL containing details about the content license used on your wiki.
$wgRenderHashAppend
Append a configured value to the parser cache and the sitenotice key so that they can be kept separat...
$wgSharedTables
$wgSend404Code
Some web hosts attempt to rewrite all responses with a 404 (not found) status code,...
$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 ...
int $wgHTTPTimeout
Timeout for HTTP requests done internally, in seconds.
$wgAdaptiveMessageCache
Instead of caching everything, only cache those messages which have been customised in the site conte...
$wgUseTagFilter
Allow filtering by change tag in recentchanges, history, etc Has no effect if no tags are defined in ...
$wgTrackingCategories
Array holding default tracking category names.
$wgUseImageResize
Whether to enable server-side image thumbnailing.
$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.
$wgUseTeX
To use inline TeX, you need to compile 'texvc' (in the 'math' subdirectory of the MediaWiki package a...
$wgExtraInterlanguageLinkPrefixes
List of additional interwiki prefixes that should be treated as interlanguage links (i....
$wgDisableOutputCompression
Disable output compression (enabled by default if zlib is available)
$wgTrxProfilerLimits
Performance expectations for DB usage.
$wgDebugLogPrefix
Prefix for debug log lines.
$wgLocalInterwiki
The interwiki prefix of the current wiki, or false if it doesn't have one.
$wgActionPaths
To set 'pretty' URL paths for actions other than plain page views, add to this array.
$wgSitemapNamespaces
Array of namespaces to generate a Google sitemap for when the maintenance/generateSitemap....
$wgLoginLanguageSelector
Show a bar of language selection links in the user login and user registration forms; edit the "login...
$wgDisableAnonTalk
Disable links to talk pages of anonymous users (IPs) in listings on special pages like page history,...
$wgAdvertisedFeedTypes
Which feed types should we provide by default? This can include 'rss', 'atom', neither,...
$wgAuthManagerConfig
Configure AuthManager.
$wgPhpCli
Executable path of the PHP cli binary.
$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.
$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
Name of the external diff 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).
$wgHashedUploadDirectory
Set this to false if you do not want MediaWiki to divide your images directory into many subdirectori...
$wgPutIPinRC
Log IP addresses in the recentchanges table; can be accessed only by extensions (e....
$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.
$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.
$wgHTTPConnectTimeout
Timeout for connections done internally (in seconds) Only works for curl.
array $wgVirtualRestConfig
Global configuration variable for Virtual REST Services.
$wgProfileLimit
Only record profiling info for pages that took longer than this.
$wgGrammarForms
Some languages need different word forms, usually for different cases.
$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).
$wgEnableProfileInfo
Allow the profileinfo.php entrypoint to be used.
$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.
$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
Mediawiki schema; this should be alphanumeric and not contain spaces nor hyphens.
$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
Name of the database; this should be alphanumeric and not contain spaces nor hyphens.
$wgUseDatabaseMessages
Translation using MediaWiki: namespace.
string $wgPopularPasswordFile
Where popular password file is located.
$wgSiteNotice
Site notice shown at the top of each page.
$wgXMLMimeTypes
Additional XML types we can allow via MIME-detection.
$wgJobTypesExcludedFromDefaultQueue
Jobs that must be explicitly requested, i.e.
$wgImgAuthDetails
Set this to true if you use img_auth and want the user to see details on why access failed.
$wgValidSkinNames
List of valid skin names.
$wgMaxMsgCacheEntrySize
Maximum entry size in the message cache, in bytes.
$wgUseGzip
When using the file cache, we can store the cached HTML gzipped to save disk space.
$wgCachePages
Allow client-side caching of pages.
$wgDBerrorLogTZ
Timezone to use in the error log.
$wgResourceModules
Client-side resource modules.
$wgResourceLoaderStorageEnabled
Whether ResourceLoader should attempt to persist modules in localStorage on browsers that support the...
$wgEnableSearchContributorsByIP
If true, searches for IP addresses will be redirected to that IP's contributions page.
$wgAutoConfirmCount
Number of edits an account requires before it is autoconfirmed.
$wgUploadDirectory
The filesystem path of the images directory.
$wgCookieHttpOnly
Set authentication cookies to HttpOnly to prevent access by JavaScript, in browsers that support this...
$wgMangleFlashPolicy
When OutputHandler is used, mangle any output that contains <cross-domain-policy>.
$wgLogTypes
The logging system has two levels: an event type, which describes the general category and can be vie...
$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.
$wgPasswordSalt
For compatibility with old installations set to false.
$wgAvailableRights
A list of available rights, in addition to the ones defined by the core.
$wgDBadminpassword
Separate password for maintenance tasks.
$wgCompressRevisions
We can also compress text stored in the 'text' table.
$wgShowCreditsIfMax
If there are more than $wgMaxCredits authors, show $wgMaxCredits of them.
$wgDBerrorLog
File to log database errors to.
$wgReadOnlyFile
If this lock file exists (size > 0), the wiki will be forced into read-only mode.
$wgImportSources
List of interwiki prefixes for wikis we'll accept as sources for Special:Import and API action=import...
$wgInvalidRedirectTargets
Array of invalid page redirect targets.
$wgCachePrefix
Overwrite the caching key prefix with custom value.
$wgLogRestrictions
This restricts log access to those who have a certain right Users without this will not see it in the...
$wgResourceLoaderMaxQueryLength
If set to a positive number, ResourceLoader will not generate URLs whose query string is more than th...
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
Name of the external diff engine to use.
int bool $wgExtensionInfoMTime
When loading extensions through the extension registration system, this can be used to invalidate the...
$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.
$wgSquidServersNoPurge
As above, except these servers aren't purged on page changes; use to set a list of trusted proxies,...
$wgVerifyMimeType
Determines if the MIME type of uploaded files should be checked.
$wgShowUpdatedMarker
Show "Updated (since my last visit)" marker in RC view, watchlist and history view for watched pages ...
$wgExtensionMessagesFiles
Extension messages files.
$wgJsMimeType
Previously used as content type in HTML script tags.
$wgAntivirusSetup
Configuration for different virus scanners.
$wgUseRCPatrol
Use RC Patrolling to check for vandalism (from recent changes and watchlists) New pages and new files...
$wgLearnerEdits
The following variables define 3 user experience levels:
$wgCategoryCollation
Specify how category names should be sorted, when listed on a category page.
$wgResourceBasePath
The default 'remoteBasePath' value for instances of ResourceLoaderFileModule.
$wgNamespaceProtection
Set the minimum permissions required to edit pages in each namespace.
$wgSidebarCacheExpiry
Expiry time for the sidebar cache, in seconds.
$wgProfileOnly
Don't put non-profiling info into log file.
$wgCommandLineDarkBg
For colorized maintenance script output, is your terminal background dark ?
$wgDjvuOutputExtension
File extension for the DJVU post processor output.
$wgUseKeyHeader
Send the Key HTTP header for better caching.
$wgNamespaceRobotPolicies
Robot policies per namespaces.
$wgAppleTouchIcon
The URL path of the icon for iPhone and iPod Touch web app bookmarks.
$wgOpenSearchTemplate
Template for OpenSearch suggestions, defaults to API action=opensearch.
$wgExportMaxHistory
If set nonzero, Special:Export requests for history of pages with more revisions than this will be re...
$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.
$wgImgAuthUrlPathMap
Map of relative URL directories to match to internal mwstore:// base storage paths.
$wgRCChangedSizeThreshold
If the difference between the character counts of the text before and after the edit is below that va...
$wgObjectCacheSessionExpiry
The expiry time to use for session storage, in seconds.
$wgAjaxUploadDestCheck
Enable AJAX check for file overwrite, pre-upload.
$wgWhitelistRead
Pages anonymous user may see, set as an array of pages titles.
$wgInvalidUsernameCharacters
Characters to prevent during new account creations.
$wgAllowExternalImagesFrom
If the above is false, you can specify an exception here.
bool $wgEnableWANCacheReaper
Verify and enforce WAN cache purges using reliable DB sources as streams.
$wgUploadNavigationUrl
Point the upload navigation link to an external URL Useful if you want to use a shared repository by ...
$wgArticlePath
The URL path for primary article page views.
$wgDeprecationReleaseLimit
Release limitation to wfDeprecated warnings, if set to a release number development warnings will not...
$wgSharpenReductionThreshold
Reduction in linear dimensions below which sharpening will be enabled.
$wgEnableSidebarCache
If on, the sidebar navigation links are cached for users with the current language set.
$wgUploadPath
The URL path for the images directory.
$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.
$wgMemCachedDebug
If enabled, will send MemCached debugging information to $wgDebugLogFile.
$wgExtensionFunctions
A list of callback functions which are called once MediaWiki is fully initialised.
$wgServiceWiringFiles
List of service wiring files to be loaded by the default instance of MediaWikiServices.
$wgEnotifImpersonal
Send a generic mail instead of a personalised mail for each user.
$wgCopyUploadsDomains
A list of domains copy uploads can come from.
$wgSearchForwardUrl
Set this to a URL to forward search requests to some external location.
$wgUpdateRowsPerJob
Number of rows to update per job.
$wgUseSquid
Enable/disable CDN.
$wgMessageCacheType
The cache type for storing the contents of the MediaWiki namespace.
$wgInterwikiMagic
Treat language links as magic connectors, not inline links.
$wgSiteStatsAsyncFactor
Set this to an integer to only do synchronous site_stats updates one every this many updates.
$wgAllowSiteCSSOnRestrictedPages
Whether to allow site-wide CSS (MediaWiki:Common.css and friends) on restricted pages like Special:Us...
$wgDisableInternalSearch
Disable the internal MySQL-based search, to allow it to be implemented by an extension instead.
$wgCrossSiteAJAXdomains
Settings for incoming cross-site AJAX requests: Newer browsers support cross-site AJAX when the targe...
$wgNoFollowDomainExceptions
If this is set to an array of domains, external links to these domain names (or any subdomains) will ...
$wgShellLocale
Locale for LC_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.
$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.
$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.
$wgSquidServers
List of proxy servers to purge on changes; default port is 80.
$wgDjvuTxt
Path of the djvutxt DJVU text extraction utility Enable this and $wgDjvuDump to enable text layer ext...
string bool $wgBotPasswordsDatabase
Database name for the bot_passwords table.
$wgAllowSchemaUpdates
Allow schema updates.
$wgBlockAllowsUTEdit
Set this to true to allow blocked users to edit their own user talk page.
$wgGroupPermissions
Permission keys given to users in each group.
string[] $wgChangeCredentialsBlacklist
List of AuthenticationRequest class names which are not changeable through Special:ChangeCredentials ...
$wgFixMalayalamUnicode
Set this to true to replace ZWJ-based chillu sequences in Malayalam text with their Unicode 5....
$wgShowExceptionDetails
If set to true, uncaught exceptions will print 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
Name of the external diff engine to use.
$wgDBcompress
Whether to use compression in DB connection.
$wgResponsiveImages
Generate and use thumbnails suitable for screens with 1.5 and 2.0 pixel densities.
$wgReservedUsernames
Array of usernames which may not be registered or logged in from Maintenance scripts can still use th...
$wgDBWindowsAuthentication
Use Windows Authentication instead of $wgDBuser / $wgDBpassword for MS SQL Server.
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 multiple $wgLocalInterwiki values, in case there are several interwiki prefixes that point ...
$wgVersion
MediaWiki version number.
$wgEnableUploads
Allow users to upload files.
$wgDebugRawPage
If true, log debugging data from action=raw and load.php.
$wgAllowJavaUploads
Allow Java archive uploads.
$wgResourceLoaderMaxage
Maximum time in seconds to cache resources served by ResourceLoader.
$wgUploadDialog
Configuration for file uploads using the embeddable upload dialog (https://www.mediawiki....
$wgMemCachedServers
The list of MemCached servers and port numbers.
$wgShowDebug
Display debug data at the bottom of the main content area.
$wgInvalidPasswordReset
Specifies if users should be sent to a password-reset form on login, if their password doesn't meet t...
$wgLocalFileRepo
File repository structures.
$wgWantedPagesThreshold
Number of links to a page required before it is deemed "wanted".
$wgEnableMagicLinks
Enable the magic links feature of automatically turning ISBN xxx, PMID xxx, RFC xxx into links.
$wgExportMaxLinkDepth
If non-zero, Special:Export accepts a "pagelink-depth" parameter up to this specified level,...
$wgBlockDisablesLogin
If true, blocked users will not be allowed to login.
$wgParserOutputHooks
Parser output hooks.
$wgRCLinkLimits
List of Limits options to list in the Special:Recentchanges and Special:Recentchangeslinked pages.
$wgMWLoggerDefaultSpi
Default service provider for creating Psr\Log\LoggerInterface instances.
$wgQueryCacheLimit
Number of rows to cache in 'querycache' table when miser mode is on.
$wgResourceLoaderStorageVersion
Cache version for client-side ResourceLoader module storage.
$wgDefaultSkin
Default skin, for new users and anonymous visitors.
$wgStatsdServer
Destination of statsd metrics.
$wgDeletedDirectory
What directory to place deleted uploads in.
$wgSharpenParameter
Sharpening parameter to ImageMagick.
$wgScriptPath
The path we should point to.
$wgAllowImageTag
A different approach to the above: simply allow the "<img>" tag to be used.
$wgSquidMaxage
Cache TTL for the CDN sent as s-maxage (without ESI) or Surrogate-Control (with ESI).
$wgDataCenterUpdateStickTTL
After a state-changing request is done by a client, this determines how many seconds that client shou...
$wgWANObjectCaches
Advanced WAN object cache configuration.
$wgMaxAnimatedGifArea
Force thumbnailing of animated GIFs above this size to a single frame instead of an animated thumbnai...
$wgAjaxEditStash
Have clients send edits to be prepared when filling in edit summaries.
$wgDjvuPostProcessor
Shell command for the DJVU post processor Default: pnmtojpeg, since ddjvu generates ppm output Set th...
$wgEmailConfirmToEdit
Should editors be required to have a validated e-mail address before being allowed to edit?
$wgFeedClasses
Available feeds objects.
$wgSearchType
Search type.
$wgUnwatchedPageSecret
If active watchers (per above) are this number or less, do not disclose it.
$wgWikiDiff2MovedParagraphDetectionCutoff
wikidiff2 supports detection of changes in moved paragraphs.
$wgAPIRequestLog
Log file or URL (TCP or UDP) to log API requests to, or false to disable API request logging.
$wgShowArchiveThumbnails
Show thumbnails for old images on the image description page.
$wgSpecialVersionShowHooks
Show the contents of $wgHooks in Special:Version.
$wgSearchHighlightBoundaries
Regexp to match word boundaries, defaults for non-CJK languages should be empty for CJK since the wor...
$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...
$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
Main object stash type.
$wgSlaveLagCritical
$wgApiFrameOptions
Disallow framing of API pages directly, by setting the X-Frame-Options header.
$wgTranscludeCacheExpiry
Expiry time for transcluded templates cached in 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...
$wgDebugTimestamps
Prefix debug messages with relative timestamp.
$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
Name of the external diff engine to use.
$wgUseCategoryBrowser
Use experimental, DMOZ-like category browser.
$wgRepositoryBaseUrl
Shortcut for the 'descBaseUrl' setting of $wgForeignFileRepos.
$wgMemCachedPersistent
Use persistent connections to MemCached, which are shared across multiple requests.
$wgFilterLogTypes
Show/hide links on Special:Log will be shown for these log types.
$wgShowDBErrorBacktrace
If true, show a backtrace for database errors.
$wgLogHeaders
Lists the message key string for descriptive text to be shown at the top of each log type.
$wgUseESI
If you run Squid3 with ESI support, enable this (default:false):
$wgVaryOnXFP
Add X-Forwarded-Proto to the Vary and Key headers for API requests and RSS/Atom feeds.
$wgDebugLogGroups
Map of string log group names to log destinations.
$wgSVGConverterPath
If not in the executable PATH, specify the SVG converter path.
$wgSharedDB
Shared database for multiple wikis.
$wgPasswordConfig
Configuration for built-in password types.
$wgSessionCacheType
The cache type for storing session data.
$wgExtensionDirectory
Filesystem extensions directory.
$wgEnotifMinorEdits
Potentially send notification mails on minor edits to pages.
$wgStatsdSamplingRates
Sampling rate for statsd metrics as an associative array of patterns and rates.
$wgEnableScaryTranscluding
Enable interwiki transcluding.
$wgDebugDumpSql
Write SQL queries to the debug log.
$wgExternalLinkTarget
Set a default target for external links, e.g.
$wgDummyLanguageCodes
Functionally the same as $wgExtraLanguageCodes, but deprecated.
$wgMimeTypeBlacklist
Files with these MIME types will never be allowed as uploads if $wgVerifyMimeType is enabled.
$wgSearchTypeAlternatives
Alternative search types Sometimes you want to support multiple search engines for testing.
$wgExiv2Command
Some tests and extensions use exiv2 to manipulate the Exif metadata in some image formats.
$wgAllowSlowParserFunctions
Enable slow parser functions.
bool[] $wgAllowSecuritySensitiveOperationIfCannotReauthenticate
Whether to allow security-sensitive operations when re-authentication is not possible.
$wgAttemptFailureEpoch
Certain operations are avoided if there were too many recent failures, for example,...
float[] $wgJobBackoffThrottling
Map of job types to how many job "work items" should be run per second on each job runner process.
$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.
$wgSquidPurgeUseHostHeader
Whether to use a Host header in purge requests sent to the proxy servers configured in $wgSquidServer...
$wgLoadScript
The URL path to load.php.
$wgDnsBlacklistUrls
List of DNS blacklists to use, if $wgEnableDnsBlacklist is true.
$wgCookieSecure
Whether the "secure" flag should be set on the cookie.
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
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 HTT...
$wgRCWatchCategoryMembership
Treat category membership changes as a RecentChange.
$wgFeed
Provide syndication feeds (RSS, Atom) for, e.g., Recentchanges, Newpages.
$wgXhtmlDefaultNamespace
The default xmlns attribute.
$wgWatchersMaxAge
Page watchers inactive for more than this many seconds are considered inactive.
$wgSessionPbkdf2Iterations
Number of internal PBKDF2 iterations to use when deriving session secrets.
$wgRunJobsAsync
When $wgJobRunRate > 0, try to run jobs asynchronously, spawning a new process to handle the job exec...
$wgMetaNamespace
Name of the project namespace.
$wgExtensionCredits
An array of information about installed extensions keyed by their type.
$wgEmailAuthentication
Require email authentication before sending mail to an email address.
$wgLogo
The URL path of the wiki logo.
$wgDevelopmentWarnings
If set to true MediaWiki will throw notices for some possible error conditions and for deprecated fun...
$wgEdititis
Display user edit counts in various prominent places.
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
The URL path to index.php.
$wgJobClasses
Maps jobs to their handlers; extensions can add to this to provide custom jobs.
$wgHtml5
Previously used to determine if we should output an HTML5 doctype.
$wgTrustedMediaFormats
list of trusted media-types and MIME types.
$wgNamespaceContentModels
Associative array mapping namespace IDs to the name of the content model pages in that namespace shou...
$wgSVGConverters
Scalable Vector Graphics (SVG) may be uploaded as images.
$wgUseFileCache
This will cache static pages for non-logged-in users to reduce database traffic on public sites.
$wgMaxUploadSize
Max size for uploads, in bytes.
$wgHtml5Version
Defines the value of the version attribute in the <html> tag, if any.
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.
$wgOpenSearchDefaultLimit
Integer defining default number of entries to show on OpenSearch call.
$wgMaxCredits
Set this to the number of authors that you want to be credited below an article text.
$wgSharedSchema
$wgSysopEmailBans
Allow sysops to ban users from accessing Emailuser.
$wgEditPageFrameOptions
The X-Frame-Options header to send on pages sensitive to clickjacking attacks, such as edit pages.
$wgDebugLogFile
Filename for debug logging.
$wgAccountCreationThrottle
Number of accounts each IP address may create per specified period(s).
$wgSessionInsecureSecrets
If for some reason you can't install the PHP OpenSSL or mcrypt extensions, you can set this to true t...
$wgForceUIMsgAsContentMsg
When translating messages with wfMessage(), it is not always clear what should be considered UI messa...
$wgPasswordSender
Sender email address for e-mail notifications.
$wgLogActionsHandlers
The same as above, but here values are names of classes, not messages.
$wgDBOracleDRCP
Set true to enable Oracle DCRP (supported from 11gR1 onward)
$wgRateLimits
Simple rate limiter options to brake edit floods.
$wgNamespacesToBeSearchedDefault
List of namespaces which are searched by default.
$wgEnableCanonicalServerLink
Output a <link rel="canonical"> tag on every page indicating the canonical server which should be use...
$wgPasswordReminderResendTime
Minimum time, in hours, which must elapse between password reminder emails for a given account.
$wgUpdateRowsPerQuery
Number of rows to update per query.
$wgUploadThumbnailRenderMap
When defined, is an array of thumbnail widths to be rendered at upload time.
$wgTiffThumbnailType
Browsers don't support TIFF inline generally... For inline display, we need to convert to PNG or JPEG...
$wgCopyUploadProxy
Proxy to use for copy upload requests.
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...
$wgAllowTitlesInSVG
Disallow <title> element in SVG files.
$wgHTMLFormAllowTableFormat
Temporary variable that allows HTMLForms to be rendered as tables.
$wgDisableQueryPages
Disable all query pages if miser mode is on, not just some.
$wgExiftool
Path to exiftool binary.
$wgCookiePrefix
Cookies generated by MediaWiki have names starting with this prefix.
$wgContentHandlerUseDB
Set to false to disable use of the database fields introduced by the ContentHandler facility.
$wgResourceModuleSkinStyles
Skin-specific styles for resource modules.
$wgAPIMaxDBRows
Maximum amount of rows to scan in a DB query in the API The default value is generally fine.
$wgExtraLanguageNames
List of language names or overrides for default names in Names.php.
$wgSharedPrefix
$wgHTCPMulticastTTL
HTCP multicast TTL.
$wgLBFactoryConf
Load balancer factory configuration To set up a multi-master wiki farm, set the class here to somethi...
array $wgGrantPermissionGroups
Map of grants to their UI grouping.
$wgMsgCacheExpiry
Expiry time for the message cache key.
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.
$wgDebugPrintHttpHeaders
Print HTTP headers for every request in the debug information.
$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.
$wgExternalDiffEngine
Name of the external diff engine to use.
int $wgActorTableSchemaMigrationStage
Actor table schema migration stage.
$wgFixArabicUnicode
Set this to true to replace Arabic presentation forms with their standard forms in the U+0600-U+06FF ...
$wgAjaxExportList
List of Ajax-callable functions.
$wgLangObjCacheSize
Language cache size, or really how many languages can we handle simultaneously without degrading to c...
$wgDiff
Path to the GNU diff utility.
$wgDBpassword
Database user's password.
$wgFavicon
The URL path of the shortcut icon.
$wgShowEXIF
Show Exif data, on by default if available.
$wgTidyConfig
Configuration for HTML postprocessing tool.
float bool $wgJobSerialCommitThreshold
Make job runners commit changes for replica DB-lag prone jobs one job at a time.
$wgAllowCopyUploads
Allow for upload to be copied from an URL.
$wgUseSiteJs
Use the site's Javascript page?
$wgRCLinkDays
List of Days options to list in the Special:Recentchanges and Special:Recentchangeslinked pages.
$wgShowSQLErrors
Whether to show "we're sorry, but there has been a database error" pages.
$wgEnotifUseRealName
Use real name instead of username in e-mail "from" field.
$wgLogoHD
Array with URL paths to HD versions of the wiki logo.
$wgNewUserLog
Maintain a log of newusers at 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:39
global $wgCommandLineMode
Job to add recent change entries mentioning category membership changes.
Value object for representing interwiki records.
Definition Interwiki.php:27
MediaWikiServices is the service locator for the application scope of MediaWiki.
Dynamic JavaScript and CSS resource loading system.
This is a class for holding configuration settings, particularly for multi-wiki sites.
Represents a title within MediaWiki.
Definition Title.php:40
The ContentHandler facility adds support for arbitrary content types on wiki pages
The ContentHandler facility adds support for arbitrary content types on wiki instead of relying on wikitext for everything It was introduced in MediaWiki Each kind of and so on Built in content types as usual *javascript user provided javascript code *json simple implementation for use by extensions
This document is intended to provide useful advice for parties seeking to redistribute MediaWiki to end users It s targeted particularly at maintainers for Linux since it s been observed that distribution packages of MediaWiki often break We ve consistently had to recommend that users seeking support use official tarballs instead of their distribution s and this often solves whatever problem the user is having It would be nice if this could such and we might be restricted by PHP settings such as safe mode or open_basedir We cannot assume that the software even has read access anywhere useful Many shared hosts run all users web applications under the same user
Wikitext formatted, in the key only.
globals txt Globals are evil The original MediaWiki code relied on globals for processing context far too often MediaWiki development since then has been a story of slowly moving context out of global variables and into objects Storing processing context in object member variables allows those objects to be reused in a much more flexible way Consider the elegance of
database rows
Definition globals.txt:10
globals will be eliminated from MediaWiki replaced by an application object which would be passed to constructors Whether that would be an convenient solution remains to be but certainly PHP makes such object oriented programming models easier than they were in previous versions For the time being MediaWiki programmers will have to work in an environment with some global context At the time of globals were initialised on startup by MediaWiki of these were configuration settings
Definition globals.txt:37
const SCHEMA_COMPAT_WRITE_BOTH
Definition Defines.php:297
const AV_SCAN_FAILED
Definition Defines.php:123
const SCHEMA_COMPAT_READ_NEW
Definition Defines.php:296
const AV_VIRUS_FOUND
Definition Defines.php:121
const APCOND_AGE
Definition Defines.php:215
const NS_HELP
Definition Defines.php:85
const NS_USER
Definition Defines.php:75
const CONTENT_MODEL_CSS
Definition Defines.php:246
const CACHE_NONE
Definition Defines.php:111
const CACHE_ANYTHING
Definition Defines.php:110
const NS_MEDIAWIKI_TALK
Definition Defines.php:82
const NS_MAIN
Definition Defines.php:73
const NS_PROJECT_TALK
Definition Defines.php:78
const NS_MEDIAWIKI
Definition Defines.php:81
const NS_TEMPLATE
Definition Defines.php:83
const CACHE_ACCEL
Definition Defines.php:114
const NS_FILE_TALK
Definition Defines.php:80
const CONTENT_MODEL_WIKITEXT
Definition Defines.php:244
const XML_DUMP_SCHEMA_VERSION_10
Definition Defines.php:337
const CONTENT_MODEL_JSON
Definition Defines.php:248
const NS_HELP_TALK
Definition Defines.php:86
const NS_CATEGORY_TALK
Definition Defines.php:88
const CACHE_MEMCACHED
Definition Defines.php:113
const CONTENT_MODEL_TEXT
Definition Defines.php:247
const CACHE_DB
Definition Defines.php:112
const AV_SCAN_ABORTED
Definition Defines.php:122
const APCOND_EDITCOUNT
Definition Defines.php:214
const NS_TALK
Definition Defines.php:74
const SCHEMA_COMPAT_NEW
Definition Defines.php:300
const AV_NO_VIRUS
Definition Defines.php:120
const NS_USER_TALK
Definition Defines.php:76
const NS_PROJECT
Definition Defines.php:77
const NS_CATEGORY
Definition Defines.php:87
const CONTENT_MODEL_JAVASCRIPT
Definition Defines.php:245
const NS_TEMPLATE_TALK
Definition Defines.php:84
namespace and then decline to actually register it file or subcat img or subcat $title
Definition hooks.txt:955
this hook is for auditing only or null if authentication failed before getting that far or null if we can t even determine that When $user is not null
Definition hooks.txt:783
null means default in associative array with keys and values unescaped Should be merged with default with a value of false meaning to suppress the attribute in associative array with keys and values unescaped noclasses just before the function returns a value If you return true
Definition hooks.txt:2004
if the prop value should be in the metadata multi language array format
Definition hooks.txt:1651
Using a hook running we can avoid having all this option specific stuff in our mainline code Using the function We ve cleaned up the code here by removing clumps of infrequently used code and moving them off somewhere else It s much easier for someone working with this code to see what s _really_ going and make changes or fix bugs In we can take all the code that deals with the little used title reversing we can concentrate it all in an extension file
Definition hooks.txt:106
processing should stop and the error should be shown to the user * false
Definition hooks.txt:187
injection txt This is an overview of how MediaWiki makes use of dependency injection The design described here grew from the discussion of RFC T384 The term dependency this means that anything an object needs to operate should be injected from the the object itself should only know narrow no concrete implementation of the logic it relies on The requirement to inject everything typically results in an architecture that based on two main types of and essentially stateless service objects that use other service objects to operate on the value objects As of the beginning MediaWiki is only starting to use the DI approach Much of the code still relies on global state or direct resulting in a highly cyclical dependency which acts as the top level factory for services in MediaWiki which can be used to gain access to default instances of various services MediaWikiServices however also allows new services to be defined and default services to be redefined Services are defined or redefined by providing a callback the instantiator that will return a new instance of the service When it will create an instance of MediaWikiServices and populate it with the services defined in the files listed by thereby bootstrapping the DI framework Per $wgServiceWiringFiles lists includes ServiceWiring php
Definition injection.txt:37
you have access to all of the normal MediaWiki so you can get a DB use the cache
MediaWiki has optional support for a high performance
Definition memcached.txt:1
CACHE_MEMCACHED $wgMainCacheType
Definition memcached.txt:63
The wiki should then use memcached to cache various data To use multiple just add more items to the array To increase the weight of a make its entry a array("192.168.0.1:11211", 2))
storage can be distributed across multiple and multiple web servers can use the same cache cluster *********************W A R N I N G ***********************Memcached has no security or authentication Please ensure that your server is appropriately and that the anyone on the internet can put data into and read data from your cache An attacker familiar with MediaWiki internals could use this to steal passwords and email addresses
Definition memcached.txt:43
const MEDIATYPE_VIDEO
Definition defines.php:35
const MEDIATYPE_AUDIO
Definition defines.php:32
const MEDIATYPE_BITMAP
Definition defines.php:28
title
$params