MediaWiki  master
DefaultSettings.php
Go to the documentation of this file.
1 <?php
41 
47 if ( !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 
75 $wgVersion = '1.35.0-alpha';
76 
80 $wgSitename = 'MediaWiki';
81 
89 
107 
116 
123 
124 /************************************************************************/
138 $wgScriptPath = '/wiki';
139 
157 $wgUsePathInfo = ( strpos( PHP_SAPI, 'cgi' ) === false ) &&
158  ( strpos( PHP_SAPI, 'apache2filter' ) === false ) &&
159  ( strpos( PHP_SAPI, 'isapi' ) === false );
160 
163 /************************************************************************/
186 $wgScript = false;
187 
195 
201 $wgRestPath = false;
202 
208 $wgStylePath = false;
210 
217 
224 
230 $wgExtensionDirectory = "{$IP}/extensions";
231 
237 $wgStyleDirectory = "{$IP}/skins";
238 
247 
253 
258 
264 
269 $wgLogo = false;
270 
297 $wgLogoHD = false;
298 
303 $wgFavicon = '/favicon.ico';
304 
311 
331 
354 
361 
370 
386 
389 /************************************************************************/
404 
408 $wgUploadStashMaxAge = 6 * 3600; // 6 hours
409 
414 
424 
432 $wgIllegalFileChars = ":\\/\\\\";
433 
439 
444 
460 
541 
556 
567 
597 
606 
615 
624 
631 $wgRepositoryBaseUrl = 'https://commons.wikimedia.org/wiki/File:';
632 
641 
651 
660 
669 
680 
691  // Fields to make available in the dialog. `true` means that this field is visible, `false` means
692  // that it is hidden. The "Name" field can't be hidden. Note that you also have to add the
693  // matching replacement to the 'filepage' format key below to make use of these.
694  'fields' => [
695  'description' => true,
696  'date' => false,
697  'categories' => false,
698  ],
699  // Suffix of localisation messages used to describe the license under which the uploaded file will
700  // be released. The same value may be set for both 'local' and 'foreign' uploads.
701  'licensemessages' => [
702  // The 'local' messages are used for local uploads on this wiki:
703  // * upload-form-label-own-work-message-generic-local
704  // * upload-form-label-not-own-work-message-generic-local
705  // * upload-form-label-not-own-work-local-generic-local
706  'local' => 'generic-local',
707  // The 'foreign' messages are used for cross-wiki uploads from other wikis to this wiki:
708  // * upload-form-label-own-work-message-generic-foreign
709  // * upload-form-label-not-own-work-message-generic-foreign
710  // * upload-form-label-not-own-work-local-generic-foreign
711  'foreign' => 'generic-foreign',
712  ],
713  // Upload comments to use for 'local' and 'foreign' uploads. This can also be set to a single
714  // string value, in which case it is used for both kinds of uploads. Available replacements:
715  // * $HOST - domain name from which a cross-wiki upload originates
716  // * $PAGENAME - wiki page name from which an upload originates
717  'comment' => [
718  'local' => '',
719  'foreign' => '',
720  ],
721  // Format of the file page wikitext to be generated from the fields input by the user.
722  'format' => [
723  // Wrapper for the whole page. Available replacements:
724  // * $DESCRIPTION - file description, as input by the user (only if the 'description' field is
725  // enabled), wrapped as defined below in the 'description' key
726  // * $DATE - file creation date, as input by the user (only if the 'date' field is enabled)
727  // * $SOURCE - as defined below in the 'ownwork' key, may be extended in the future
728  // * $AUTHOR - linked user name, may be extended in the future
729  // * $LICENSE - as defined below in the 'license' key, may be extended in the future
730  // * $CATEGORIES - file categories wikitext, as input by the user (only if the 'categories'
731  // field is enabled), or if no input, as defined below in the 'uncategorized' key
732  'filepage' => '$DESCRIPTION',
733  // Wrapped for file description. Available replacements:
734  // * $LANGUAGE - source wiki's content language
735  // * $TEXT - input by the user
736  'description' => '$TEXT',
737  'ownwork' => '',
738  'license' => '',
739  'uncategorized' => '',
740  ],
741 ];
742 
781 
793 
805 $wgShowEXIF = function_exists( 'exif_read_data' );
806 
813 
820 
827 
834 
840 
852 
869 $wgMaxUploadSize = 1024 * 1024 * 100; # 100MB
870 
878 
890 
897 
910 
919 
934 
943 $wgFileExtensions = [ 'png', 'gif', 'jpg', 'jpeg', 'webp' ];
944 
951  # HTML may contain cookie-stealing JavaScript and web bugs
952  'html', 'htm', 'js', 'jsb', 'mhtml', 'mht', 'xhtml', 'xht',
953  # PHP scripts may execute arbitrary code on the server
954  'php', 'phtml', 'php3', 'php4', 'php5', 'phps', 'phar',
955  # Other types that may be interpreted by some servers
956  'shtml', 'jhtml', 'pl', 'py', 'cgi',
957  # May contain harmful executables for Windows victims
958  'exe', 'scr', 'dll', 'msi', 'vbs', 'bat', 'com', 'pif', 'cmd', 'vxd', 'cpl' ];
959 
965  # HTML may contain cookie-stealing JavaScript and web bugs
966  'text/html', 'text/javascript', 'text/x-javascript', 'application/x-shellscript',
967  # PHP scripts may execute arbitrary code on the server
968  'application/x-php', 'text/x-php',
969  # Other types that may be interpreted by some servers
970  'text/x-python', 'text/x-perl', 'text/x-bash', 'text/x-sh', 'text/x-csh',
971  # Client-side hazards on Internet Explorer
972  'text/scriptlet', 'application/x-msdownload',
973  # Windows metafile, client-side vulnerability on some systems
974  'application/x-msmetafile',
975 ];
976 
983 
990 
998 
1006 
1011 
1023  MEDIATYPE_BITMAP, // all bitmap formats
1024  MEDIATYPE_AUDIO, // all audio formats
1025  MEDIATYPE_VIDEO, // all plain video formats
1026  "image/svg+xml", // svg (only needed if inline rendering of svg is not supported)
1027  "application/pdf", // PDF files
1028  # "application/x-shockwave-flash", //flash/shockwave movie
1029 ];
1030 
1039 
1045  'image/jpeg' => 'MockBitmapHandler',
1046  'image/png' => 'MockBitmapHandler',
1047  'image/gif' => 'MockBitmapHandler',
1048  'image/tiff' => 'MockBitmapHandler',
1049  'image/webp' => 'MockBitmapHandler',
1050  'image/x-ms-bmp' => 'MockBitmapHandler',
1051  'image/x-bmp' => 'MockBitmapHandler',
1052  'image/x-xcf' => 'MockBitmapHandler',
1053  'image/svg+xml' => 'MockSvgHandler',
1054  'image/vnd.djvu' => 'MockDjVuHandler',
1055 ];
1056 
1065  // the usual case
1066  CONTENT_MODEL_WIKITEXT => WikitextContentHandler::class,
1067  // dumb version, no syntax highlighting
1068  CONTENT_MODEL_JAVASCRIPT => JavaScriptContentHandler::class,
1069  // simple implementation, for use by extensions, etc.
1070  CONTENT_MODEL_JSON => JsonContentHandler::class,
1071  // dumb version, no syntax highlighting
1072  CONTENT_MODEL_CSS => CssContentHandler::class,
1073  // plain text, for use by extensions, etc.
1074  CONTENT_MODEL_TEXT => TextContentHandler::class,
1075 ];
1076 
1083 
1093 
1097 $wgImageMagickConvertCommand = '/usr/bin/convert';
1098 
1104 
1109 
1114 
1120 
1134 
1140 $wgJpegTran = '/usr/bin/jpegtran';
1141 
1162 
1171 
1176 $wgExiv2Command = '/usr/bin/exiv2';
1177 
1183 $wgExiftool = '/usr/bin/exiftool';
1184 
1195  'ImageMagick' =>
1196  '$path/convert -background "#ffffff00" -thumbnail $widthx$height\! $input PNG:$output',
1197  'sodipodi' => '$path/sodipodi -z -w $width -f $input -e $output',
1198  'inkscape' => '$path/inkscape -z -w $width -f $input -e $output',
1199  'batik' => 'java -Djava.awt.headless=true -jar $path/batik-rasterizer.jar -w $width -d '
1200  . '$output $input',
1201  'rsvg' => '$path/rsvg-convert -w $width -h $height -o $output $input',
1202  'imgserv' => '$path/imgserv-wrapper -i svg -o png -w$width $input $output',
1203  'ImagickExt' => [ 'SvgHandler::rasterizeImagickExt' ],
1204 ];
1205 
1209 $wgSVGConverter = 'ImageMagick';
1210 
1215 
1220 
1226 
1234 
1244 
1259 
1267 
1282 
1289 $wgThumbnailEpoch = '20030516000000';
1290 
1298 
1311 
1320 
1325 
1332 
1339 
1375 
1376  # setup for clamav
1377  'clamav' => [
1378  'command' => 'clamscan --no-summary ',
1379  'codemap' => [
1380  "0" => AV_NO_VIRUS, # no virus
1381  "1" => AV_VIRUS_FOUND, # virus found
1382  "52" => AV_SCAN_ABORTED, # unsupported file format (probably immune)
1383  "*" => AV_SCAN_FAILED, # else scan failed
1384  ],
1385  'messagepattern' => '/.*?:(.*)/sim',
1386  ],
1387 ];
1388 
1393 
1398 
1408 
1414 $wgMimeTypeFile = 'includes/mime.types';
1415 
1420 $wgMimeInfoFile = 'includes/mime.info';
1421 
1434 
1441 
1447  'http://www.w3.org/2000/svg:svg' => 'image/svg+xml',
1448  'svg' => 'image/svg+xml',
1449  'http://www.lysator.liu.se/~alla/dia/:diagram' => 'application/x-dia-diagram',
1450  'http://www.w3.org/1999/xhtml:html' => 'text/html', // application/xhtml+xml?
1451  'html' => 'text/html', // application/xhtml+xml?
1452 ];
1453 
1463  [ 320, 240 ],
1464  [ 640, 480 ],
1465  [ 800, 600 ],
1466  [ 1024, 768 ],
1467  [ 1280, 1024 ]
1468 ];
1469 
1476  120,
1477  150,
1478  180,
1479  200,
1480  250,
1481  300
1482 ];
1483 
1494 
1511 
1523 
1536 
1543 
1551 
1559 
1575 
1582 
1587 
1595 
1607 
1614 
1620 $wgDjvuTxt = null;
1621 
1637 
1643 $wgDjvuPostProcessor = 'pnmtojpeg';
1644 
1649  # end of DJvu }
1651  # end of file uploads }
1653 
1654 /************************************************************************/
1665 
1675 
1682 
1689 
1695 
1705 
1712 
1723 
1729 
1733 $wgNewPasswordExpiry = 3600 * 24 * 7;
1734 
1739 
1745 
1750 $wgPasswordExpireGrace = 3600 * 24 * 7; // 7 days
1751 
1769 $wgSMTP = false;
1770 
1775 
1781 
1794 
1795 // TODO move UPO to preferences probably ?
1796 # If set to true, users get a corresponding option in their preferences and can choose to
1797 # enable or disable at their discretion
1798 # If set to false, the corresponding input form on the user preference page is suppressed
1799 # It call this to be a "user-preferences-option (UPO)"
1800 
1807 
1812 
1821 
1837 
1852 
1861 
1867 
1872 
1878  # end of email settings
1880 
1881 /************************************************************************/
1894 $wgDBname = 'my_wiki';
1895 
1905 
1915 
1919 $wgDBserver = 'localhost';
1920 
1924 $wgDBport = 5432;
1925 
1929 $wgDBuser = 'wikiuser';
1930 
1935 
1939 $wgDBtype = 'mysql';
1940 
1949 $wgDBssl = false;
1950 
1960 
1965 
1970 
1978 
1987 
1991 $wgDBTableOptions = 'ENGINE=InnoDB, DEFAULT CHARSET=binary';
1992 
2000 
2007 
2012 
2039 
2044 
2048 $wgSharedTables = [ 'user', 'user_properties' ];
2049 
2055 
2110 
2121 $wgLBFactoryConf = [ 'class' => \Wikimedia\Rdbms\LBFactorySimple::class ];
2122 
2130 
2135 
2155 
2170 
2177 
2182 
2187  # End of DB settings }
2189 
2190 /************************************************************************/
2202 
2215 
2231 
2247 
2255  # end text storage }
2257 
2258 /************************************************************************/
2267 
2272 
2277 
2282 
2287 
2292 
2297 
2303 
2311  # end performance hacks }
2313 
2314 /************************************************************************/
2328 
2347 
2355 
2363 
2370 
2380 
2395  CACHE_NONE => [ 'class' => EmptyBagOStuff::class, 'reportDupes' => false ],
2396  CACHE_DB => [ 'class' => SqlBagOStuff::class, 'loggroup' => 'SQLBagOStuff' ],
2397 
2398  CACHE_ANYTHING => [ 'factory' => 'ObjectCache::newAnything' ],
2399  CACHE_ACCEL => [ 'factory' => 'ObjectCache::getLocalServerInstance' ],
2400  CACHE_MEMCACHED => [ 'class' => MemcachedPhpBagOStuff::class, 'loggroup' => 'memcached' ],
2401 
2402  'db-replicated' => [
2403  'class' => ReplicatedBagOStuff::class,
2404  'readFactory' => [
2405  'class' => SqlBagOStuff::class,
2406  'args' => [ [ 'replicaOnly' => true ] ]
2407  ],
2408  'writeFactory' => [
2409  'class' => SqlBagOStuff::class,
2410  'args' => [ [ 'replicaOnly' => false ] ]
2411  ],
2412  'loggroup' => 'SQLBagOStuff',
2413  'reportDupes' => false
2414  ],
2415 
2416  'apc' => [ 'class' => APCBagOStuff::class, 'reportDupes' => false ],
2417  'apcu' => [ 'class' => APCUBagOStuff::class, 'reportDupes' => false ],
2418  'wincache' => [ 'class' => WinCacheBagOStuff::class, 'reportDupes' => false ],
2419  'memcached-php' => [ 'class' => MemcachedPhpBagOStuff::class, 'loggroup' => 'memcached' ],
2420  'memcached-pecl' => [ 'class' => MemcachedPeclBagOStuff::class, 'loggroup' => 'memcached' ],
2421  'hash' => [ 'class' => HashBagOStuff::class, 'reportDupes' => false ],
2422 ];
2423 
2440 
2456  CACHE_NONE => [
2457  'class' => WANObjectCache::class,
2458  'cacheId' => CACHE_NONE
2459  ]
2460  /* Example of a simple single data-center cache:
2461  'memcached-php' => [
2462  'class' => WANObjectCache::class,
2463  'cacheId' => 'memcached-php'
2464  ]
2465  */
2466 ];
2467 
2480 
2516 $wgMainStash = 'db-replicated';
2517 
2523 
2528 
2546 
2553 
2557 $wgMemCachedServers = [ '127.0.0.1:11211' ];
2558 
2564 
2569 
2582 
2590 
2623  'class' => LocalisationCache::class,
2624  'store' => 'detect',
2625  'storeClass' => false,
2626  'storeDirectory' => false,
2627  'storeServer' => [],
2628  'forceRecache' => false,
2629  'manualRecache' => false,
2630 ];
2631 
2636 
2645 $wgCacheEpoch = '20030516000000';
2646 
2652 
2659 
2667 
2673 
2684 
2689 
2696 $wgUseGzip = false;
2697 
2708 
2725  # end of cache settings
2727 
2728 /************************************************************************/
2749 $wgUseCdn = false;
2750 
2760 
2770 
2781 
2789 
2798 
2814 
2821 
2828 
2840 
2850 
2872 
2920 
2926 
2931  # end of HTTP proxy settings
2933 
2934 /************************************************************************/
2956 
2962 
2973 
2978 
2983 
2998 
3003 
3018  // Language codes of macro languages, which get mapped to the main language
3019  'bh' => 'bho', // Bihari language family
3020  'no' => 'nb', // Norwegian language family
3021 
3022  // Language variants which get mapped to the main language
3023  'simple' => 'en', // Simple English
3024 ];
3025 
3033 
3045 
3058 
3070 
3082 
3096 
3102 
3108 
3114 
3119 
3124 
3129 
3134 
3140 
3151 
3170 
3177 
3198 
3223 
3234 
3247  # End of language/charset settings
3249 
3250 /*************************************************************************/
3258 $wgMimeType = 'text/html';
3259 
3269 
3278 
3286 
3295 
3311 
3320 
3325 $wgDefaultSkin = 'vector';
3326 
3332 $wgFallbackSkin = 'fallback';
3333 
3340 
3345 
3352 
3359 
3367 
3372 
3377 
3383 
3404 
3416 
3421 
3450 $wgFragmentMode = [ 'legacy', 'html5' ];
3451 
3461 
3493  "copyright" => [
3494  "copyright" => [], // placeholder for the built in copyright icon
3495  ],
3496  "poweredby" => [
3497  "mediawiki" => [
3498  // Defaults to point at
3499  // "$wgResourceBasePath/resources/assets/poweredby_mediawiki_88x31.png"
3500  // plus srcset for 1.5x, 2x resolution variants.
3501  "src" => null,
3502  "url" => "https://www.mediawiki.org/",
3503  "alt" => "Powered by MediaWiki",
3504  ]
3505  ],
3506 ];
3507 
3515 
3519 $wgEdititis = false;
3520 
3533 
3544 
3552 
3562  # End of output format settings }
3564 
3565 /*************************************************************************/
3588 
3678 
3690 
3696 
3714  'versioned' => 30 * 24 * 60 * 60, // 30 days
3715  'unversioned' => 5 * 60, // 5 minutes
3716 ];
3717 
3724 
3731 
3758 
3770 
3779 
3789 
3795 
3803 
3816  # End of ResourceLoader settings }
3818 
3819 /*************************************************************************/
3829 
3838 
3866 
3874 
3894 
3919 $wgLegalTitleChars = " %!\"$&'()*,\\-.\\/0-9:;=?@A-Z\\\\^_`a-z~\\x80-\\xFF+";
3920 
3927 
3937 
3942 
3967 
3975 
3980  # end of Interwiki caching settings.
3982 
3998 $wgRedirectSources = false;
3999 
4008 
4023 
4029  NS_TALK => true,
4030  NS_USER => true,
4031  NS_USER_TALK => true,
4032  NS_PROJECT => true,
4033  NS_PROJECT_TALK => true,
4034  NS_FILE_TALK => true,
4035  NS_MEDIAWIKI => true,
4036  NS_MEDIAWIKI_TALK => true,
4037  NS_TEMPLATE => true,
4038  NS_TEMPLATE_TALK => true,
4039  NS_HELP => true,
4040  NS_HELP_TALK => true,
4042 ];
4043 
4060 
4068 
4076 
4085 
4092 
4103 $wgInvalidRedirectTargets = [ 'Filepath', 'Mypage', 'Mytalk', 'Redirect' ];
4104  # End of title and interwiki settings }
4106 
4107 /************************************************************************/
4137  'class' => Parser::class,
4138  # 'preprocessorClass' => Preprocessor_Hash::class,
4139 ];
4140 
4145 
4151 
4162 
4170 
4175 
4187  'bitcoin:', 'ftp://', 'ftps://', 'geo:', 'git://', 'gopher://', 'http://',
4188  'https://', 'irc://', 'ircs://', 'magnet:', 'mailto:', 'mms://', 'news:',
4189  'nntp://', 'redis://', 'sftp://', 'sip:', 'sips:', 'sms:', 'ssh://',
4190  'svn://', 'tel:', 'telnet://', 'urn:', 'worldwind://', 'xmpp:', '//'
4191 ];
4192 
4197 
4202 
4216 
4229 
4239 
4259 $wgTidyConfig = [ 'driver' => 'RemexHtml' ];
4260 
4266 $wgRawHtml = false;
4267 
4278 
4286 
4292 
4306 $wgNoFollowDomainExceptions = [ 'mediawiki.org' ];
4307 
4312 
4319 
4325 
4331 
4336 
4342 
4350  'ISBN' => false,
4351  'PMID' => false,
4352  'RFC' => false
4353 ];
4354  # end of parser settings }
4356 
4357 /************************************************************************/
4379 
4388  # End of statistics }
4390 
4391 /************************************************************************/
4402  'local' => [ 'class' => LocalIdLookup::class ],
4403 ];
4404 
4410 
4478  'policies' => [
4479  'bureaucrat' => [
4480  'MinimalPasswordLength' => 10,
4481  'MinimumPasswordLengthToLogin' => 1,
4482  ],
4483  'sysop' => [
4484  'MinimalPasswordLength' => 10,
4485  'MinimumPasswordLengthToLogin' => 1,
4486  ],
4487  'interface-admin' => [
4488  'MinimalPasswordLength' => 10,
4489  'MinimumPasswordLengthToLogin' => 1,
4490  ],
4491  'bot' => [
4492  'MinimalPasswordLength' => 10,
4493  'MinimumPasswordLengthToLogin' => 1,
4494  ],
4495  'default' => [
4496  'MinimalPasswordLength' => [ 'value' => 1, 'suggestChangeOnLogin' => true ],
4497  'PasswordCannotMatchUsername' => [ 'value' => true, 'suggestChangeOnLogin' => true ],
4498  'PasswordCannotMatchBlacklist' => [ 'value' => true, 'suggestChangeOnLogin' => true ],
4499  'MaximalPasswordLength' => [ 'value' => 4096, 'suggestChangeOnLogin' => true ],
4500  'PasswordNotInLargeBlacklist' => [ 'value' => true, 'suggestChangeOnLogin' => true ],
4501  ],
4502  ],
4503  'checks' => [
4504  'MinimalPasswordLength' => 'PasswordPolicyChecks::checkMinimalPasswordLength',
4505  'MinimumPasswordLengthToLogin' => 'PasswordPolicyChecks::checkMinimumPasswordLengthToLogin',
4506  'PasswordCannotMatchUsername' => 'PasswordPolicyChecks::checkPasswordCannotMatchUsername',
4507  'PasswordCannotMatchBlacklist' => 'PasswordPolicyChecks::checkPasswordCannotMatchBlacklist',
4508  'MaximalPasswordLength' => 'PasswordPolicyChecks::checkMaximalPasswordLength',
4509  'PasswordCannotBePopular' => 'PasswordPolicyChecks::checkPopularPasswordBlacklist',
4510  'PasswordNotInLargeBlacklist' => 'PasswordPolicyChecks::checkPasswordNotInLargeBlacklist',
4511  ],
4512 ];
4513 
4534 
4540  'preauth' => [
4541  MediaWiki\Auth\ThrottlePreAuthenticationProvider::class => [
4542  'class' => MediaWiki\Auth\ThrottlePreAuthenticationProvider::class,
4543  'sort' => 0,
4544  ],
4545  ],
4546  'primaryauth' => [
4547  // TemporaryPasswordPrimaryAuthenticationProvider should come before
4548  // any other PasswordAuthenticationRequest-based
4549  // PrimaryAuthenticationProvider (or at least any that might return
4550  // FAIL rather than ABSTAIN for a wrong password), or password reset
4551  // won't work right. Do not remove this (or change the key) or
4552  // auto-configuration of other such providers in extensions will
4553  // probably auto-insert themselves in the wrong place.
4554  MediaWiki\Auth\TemporaryPasswordPrimaryAuthenticationProvider::class => [
4555  'class' => MediaWiki\Auth\TemporaryPasswordPrimaryAuthenticationProvider::class,
4556  'args' => [ [
4557  // Fall through to LocalPasswordPrimaryAuthenticationProvider
4558  'authoritative' => false,
4559  ] ],
4560  'sort' => 0,
4561  ],
4562  MediaWiki\Auth\LocalPasswordPrimaryAuthenticationProvider::class => [
4563  'class' => MediaWiki\Auth\LocalPasswordPrimaryAuthenticationProvider::class,
4564  'args' => [ [
4565  // Last one should be authoritative, or else the user will get
4566  // a less-than-helpful error message (something like "supplied
4567  // authentication info not supported" rather than "wrong
4568  // password") if it too fails.
4569  'authoritative' => true,
4570  ] ],
4571  'sort' => 100,
4572  ],
4573  ],
4574  'secondaryauth' => [
4575  MediaWiki\Auth\CheckBlocksSecondaryAuthenticationProvider::class => [
4576  'class' => MediaWiki\Auth\CheckBlocksSecondaryAuthenticationProvider::class,
4577  'sort' => 0,
4578  ],
4579  MediaWiki\Auth\ResetPasswordSecondaryAuthenticationProvider::class => [
4580  'class' => MediaWiki\Auth\ResetPasswordSecondaryAuthenticationProvider::class,
4581  'sort' => 100,
4582  ],
4583  // Linking during login is experimental, enable at your own risk - T134952
4584  // MediaWiki\Auth\ConfirmLinkSecondaryAuthenticationProvider::class => [
4585  // 'class' => MediaWiki\Auth\ConfirmLinkSecondaryAuthenticationProvider::class,
4586  // 'sort' => 100,
4587  // ],
4588  MediaWiki\Auth\EmailNotificationSecondaryAuthenticationProvider::class => [
4589  'class' => MediaWiki\Auth\EmailNotificationSecondaryAuthenticationProvider::class,
4590  'sort' => 200,
4591  ],
4592  ],
4593 ];
4594 
4634  'default' => 300,
4635 ];
4636 
4653  'default' => true,
4654 ];
4655 
4666  \MediaWiki\Auth\TemporaryPasswordAuthenticationRequest::class
4667 ];
4668 
4679  \MediaWiki\Auth\PasswordAuthenticationRequest::class,
4680 ];
4681 
4688 
4701 
4708 
4715 
4736  'A' => [
4737  'class' => MWOldPassword::class,
4738  ],
4739  'B' => [
4740  'class' => MWSaltedPassword::class,
4741  ],
4742  'pbkdf2-legacyA' => [
4743  'class' => LayeredParameterizedPassword::class,
4744  'types' => [
4745  'A',
4746  'pbkdf2',
4747  ],
4748  ],
4749  'pbkdf2-legacyB' => [
4750  'class' => LayeredParameterizedPassword::class,
4751  'types' => [
4752  'B',
4753  'pbkdf2',
4754  ],
4755  ],
4756  'bcrypt' => [
4757  'class' => BcryptPassword::class,
4758  'cost' => 9,
4759  ],
4760  'pbkdf2' => [
4761  'class' => Pbkdf2Password::class,
4762  'algo' => 'sha512',
4763  'cost' => '30000',
4764  'length' => '64',
4765  ],
4766  'argon2' => [
4767  'class' => Argon2Password::class,
4768 
4769  // Algorithm used:
4770  // * 'argon2i' is optimized against side-channel attacks (PHP 7.2+)
4771  // * 'argon2id' is optimized against both side-channel and GPU cracking (PHP 7.3+)
4772  // * 'auto' to use best available algorithm. If you're using more than one server, be
4773  // careful when you're mixing PHP versions because newer PHP might generate hashes that
4774  // older versions might would not understand.
4775  'algo' => 'auto',
4776 
4777  // The parameters below are the same as options accepted by password_hash().
4778  // Set them to override that function's defaults.
4779  //
4780  // 'memory_cost' => PASSWORD_ARGON2_DEFAULT_MEMORY_COST,
4781  // 'time_cost' => PASSWORD_ARGON2_DEFAULT_TIME_COST,
4782  // 'threads' => PASSWORD_ARGON2_DEFAULT_THREADS,
4783  ],
4784 ];
4785 
4793  'username' => true,
4794  'email' => true,
4795 ];
4796 
4801 
4807 
4813  'MediaWiki default', // Default 'Main Page' and MediaWiki: message pages
4814  'Conversion script', // Used for the old Wikipedia software upgrade
4815  'Maintenance script', // Maintenance scripts which perform editing, image import script
4816  'Template namespace initialisation script', // Used in 1.2->1.3 upgrade
4817  'ScriptImporter', // Default user name used by maintenance/importSiteScripts.php
4818  'Unknown user', // Used in WikiImporter and RevisionStore for revisions with no author
4819  'msg:double-redirect-fixer', // Automatic double redirect fix
4820  'msg:usermessage-editor', // Default user for leaving user messages
4821  'msg:proxyblocker', // For $wgProxyList and Special:Blockme (removed in 1.22)
4822  'msg:sorbs', // For $wgEnableDnsBlacklist etc.
4823  'msg:spambot_username', // Used by cleanupSpam.php
4824  'msg:autochange-username', // Used by anon category RC entries (parser functions, Lua & purges)
4825 ];
4826 
4834  'ccmeonemails' => 0,
4835  'cols' => 80, // @deprecated since 1.29 No longer used in core
4836  'date' => 'default',
4837  'diffonly' => 0,
4838  'disablemail' => 0,
4839  'editfont' => 'monospace',
4840  'editondblclick' => 0,
4841  'editsectiononrightclick' => 0,
4842  'email-allow-new-users' => 1,
4843  'enotifminoredits' => 0,
4844  'enotifrevealaddr' => 0,
4845  'enotifusertalkpages' => 1,
4846  'enotifwatchlistpages' => 1,
4847  'extendwatchlist' => 1,
4848  'fancysig' => 0,
4849  'forceeditsummary' => 0,
4850  'gender' => 'unknown',
4851  'hideminor' => 0,
4852  'hidepatrolled' => 0,
4853  'hidecategorization' => 1,
4854  'imagesize' => 2,
4855  'minordefault' => 0,
4856  'newpageshidepatrolled' => 0,
4857  'nickname' => '',
4858  'norollbackdiff' => 0,
4859  'numberheadings' => 0,
4860  'previewonfirst' => 0,
4861  'previewontop' => 1,
4862  'rcdays' => 7,
4863  'rcenhancedfilters-disable' => 0,
4864  'rclimit' => 50,
4865  'rows' => 25, // @deprecated since 1.29 No longer used in core
4866  'showhiddencats' => 0,
4867  'shownumberswatching' => 1,
4868  'showrollbackconfirmation' => 0,
4869  'skin' => false,
4870  'stubthreshold' => 0,
4871  'thumbsize' => 5,
4872  'underline' => 2,
4873  'uselivepreview' => 0,
4874  'usenewrc' => 1,
4875  'watchcreations' => 1,
4876  'watchdefault' => 1,
4877  'watchdeletion' => 0,
4878  'watchuploads' => 1,
4879  'watchlistdays' => 7.0,
4880  'watchlisthideanons' => 0,
4881  'watchlisthidebots' => 0,
4882  'watchlisthideliu' => 0,
4883  'watchlisthideminor' => 0,
4884  'watchlisthideown' => 0,
4885  'watchlisthidepatrolled' => 0,
4886  'watchlisthidecategorization' => 1,
4887  'watchlistreloadautomatically' => 0,
4888  'watchlistunwatchlinks' => 0,
4889  'watchmoves' => 0,
4890  'watchrollback' => 0,
4891  'wlenhancedfilters-disable' => 0,
4892  'wllimit' => 250,
4893  'useeditwarning' => 1,
4894  'prefershttps' => 1,
4895  'requireemail' => 0,
4896 ];
4897 
4902 
4909 
4920 
4928 
4940 
4950  MediaWiki\Session\CookieSessionProvider::class => [
4951  'class' => MediaWiki\Session\CookieSessionProvider::class,
4952  'args' => [ [
4953  'priority' => 30,
4954  'callUserSetCookiesHook' => true,
4955  ] ],
4956  ],
4957  MediaWiki\Session\BotPasswordSessionProvider::class => [
4958  'class' => MediaWiki\Session\BotPasswordSessionProvider::class,
4959  'args' => [ [
4960  'priority' => 75,
4961  ] ],
4962  ],
4963 ];
4964 
4973  # end user accounts }
4975 
4976 /************************************************************************/
4985 
4994 
5001 
5017  'IPv4' => 16, # Blocks larger than a /16 (64k addresses) will not be allowed
5018  'IPv6' => 19,
5019 ];
5020 
5029 
5051 
5079 
5085 
5091 
5117 
5119 // Implicit group for all visitors
5120 $wgGroupPermissions['*']['createaccount'] = true;
5121 $wgGroupPermissions['*']['read'] = true;
5122 $wgGroupPermissions['*']['edit'] = true;
5123 $wgGroupPermissions['*']['createpage'] = true;
5124 $wgGroupPermissions['*']['createtalk'] = true;
5125 $wgGroupPermissions['*']['writeapi'] = true;
5126 $wgGroupPermissions['*']['viewmywatchlist'] = true;
5127 $wgGroupPermissions['*']['editmywatchlist'] = true;
5128 $wgGroupPermissions['*']['viewmyprivateinfo'] = true;
5129 $wgGroupPermissions['*']['editmyprivateinfo'] = true;
5130 $wgGroupPermissions['*']['editmyoptions'] = true;
5131 # $wgGroupPermissions['*']['patrolmarks'] = false; // let anons see what was patrolled
5132 
5133 // Implicit group for all logged-in accounts
5134 $wgGroupPermissions['user']['move'] = true;
5135 $wgGroupPermissions['user']['move-subpages'] = true;
5136 $wgGroupPermissions['user']['move-rootuserpages'] = true; // can move root userpages
5137 $wgGroupPermissions['user']['move-categorypages'] = true;
5138 $wgGroupPermissions['user']['movefile'] = true;
5139 $wgGroupPermissions['user']['read'] = true;
5140 $wgGroupPermissions['user']['edit'] = true;
5141 $wgGroupPermissions['user']['createpage'] = true;
5142 $wgGroupPermissions['user']['createtalk'] = true;
5143 $wgGroupPermissions['user']['writeapi'] = true;
5144 $wgGroupPermissions['user']['upload'] = true;
5145 $wgGroupPermissions['user']['reupload'] = true;
5146 $wgGroupPermissions['user']['reupload-shared'] = true;
5147 $wgGroupPermissions['user']['minoredit'] = true;
5148 $wgGroupPermissions['user']['editmyusercss'] = true;
5149 $wgGroupPermissions['user']['editmyuserjson'] = true;
5150 $wgGroupPermissions['user']['editmyuserjs'] = true;
5151 $wgGroupPermissions['user']['editmyuserjsredirect'] = true;
5152 $wgGroupPermissions['user']['purge'] = true;
5153 $wgGroupPermissions['user']['sendemail'] = true;
5154 $wgGroupPermissions['user']['applychangetags'] = true;
5155 $wgGroupPermissions['user']['changetags'] = true;
5156 $wgGroupPermissions['user']['editcontentmodel'] = true;
5157 
5158 // Implicit group for accounts that pass $wgAutoConfirmAge
5159 $wgGroupPermissions['autoconfirmed']['autoconfirmed'] = true;
5160 $wgGroupPermissions['autoconfirmed']['editsemiprotected'] = true;
5161 
5162 // Users with bot privilege can have their edits hidden
5163 // from various log pages by default
5164 $wgGroupPermissions['bot']['bot'] = true;
5165 $wgGroupPermissions['bot']['autoconfirmed'] = true;
5166 $wgGroupPermissions['bot']['editsemiprotected'] = true;
5167 $wgGroupPermissions['bot']['nominornewtalk'] = true;
5168 $wgGroupPermissions['bot']['autopatrol'] = true;
5169 $wgGroupPermissions['bot']['suppressredirect'] = true;
5170 $wgGroupPermissions['bot']['apihighlimits'] = true;
5171 $wgGroupPermissions['bot']['writeapi'] = true;
5172 
5173 // Most extra permission abilities go to this group
5174 $wgGroupPermissions['sysop']['block'] = true;
5175 $wgGroupPermissions['sysop']['createaccount'] = true;
5176 $wgGroupPermissions['sysop']['delete'] = true;
5177 // can be separately configured for pages with > $wgDeleteRevisionsLimit revs
5178 $wgGroupPermissions['sysop']['bigdelete'] = true;
5179 // can view deleted history entries, but not see or restore the text
5180 $wgGroupPermissions['sysop']['deletedhistory'] = true;
5181 // can view deleted revision text
5182 $wgGroupPermissions['sysop']['deletedtext'] = true;
5183 $wgGroupPermissions['sysop']['undelete'] = true;
5184 $wgGroupPermissions['sysop']['editinterface'] = true;
5185 $wgGroupPermissions['sysop']['editsitejson'] = true;
5186 $wgGroupPermissions['sysop']['edituserjson'] = true;
5187 $wgGroupPermissions['sysop']['import'] = true;
5188 $wgGroupPermissions['sysop']['importupload'] = true;
5189 $wgGroupPermissions['sysop']['move'] = true;
5190 $wgGroupPermissions['sysop']['move-subpages'] = true;
5191 $wgGroupPermissions['sysop']['move-rootuserpages'] = true;
5192 $wgGroupPermissions['sysop']['move-categorypages'] = true;
5193 $wgGroupPermissions['sysop']['patrol'] = true;
5194 $wgGroupPermissions['sysop']['autopatrol'] = true;
5195 $wgGroupPermissions['sysop']['protect'] = true;
5196 $wgGroupPermissions['sysop']['editprotected'] = true;
5197 $wgGroupPermissions['sysop']['rollback'] = true;
5198 $wgGroupPermissions['sysop']['upload'] = true;
5199 $wgGroupPermissions['sysop']['reupload'] = true;
5200 $wgGroupPermissions['sysop']['reupload-shared'] = true;
5201 $wgGroupPermissions['sysop']['unwatchedpages'] = true;
5202 $wgGroupPermissions['sysop']['autoconfirmed'] = true;
5203 $wgGroupPermissions['sysop']['editsemiprotected'] = true;
5204 $wgGroupPermissions['sysop']['ipblock-exempt'] = true;
5205 $wgGroupPermissions['sysop']['blockemail'] = true;
5206 $wgGroupPermissions['sysop']['markbotedits'] = true;
5207 $wgGroupPermissions['sysop']['apihighlimits'] = true;
5208 $wgGroupPermissions['sysop']['browsearchive'] = true;
5209 $wgGroupPermissions['sysop']['noratelimit'] = true;
5210 $wgGroupPermissions['sysop']['movefile'] = true;
5211 $wgGroupPermissions['sysop']['unblockself'] = true;
5212 $wgGroupPermissions['sysop']['suppressredirect'] = true;
5213 # $wgGroupPermissions['sysop']['pagelang'] = true;
5214 # $wgGroupPermissions['sysop']['upload_by_url'] = true;
5215 $wgGroupPermissions['sysop']['mergehistory'] = true;
5216 $wgGroupPermissions['sysop']['managechangetags'] = true;
5217 $wgGroupPermissions['sysop']['deletechangetags'] = true;
5218 
5219 $wgGroupPermissions['interface-admin']['editinterface'] = true;
5220 $wgGroupPermissions['interface-admin']['editsitecss'] = true;
5221 $wgGroupPermissions['interface-admin']['editsitejson'] = true;
5222 $wgGroupPermissions['interface-admin']['editsitejs'] = true;
5223 $wgGroupPermissions['interface-admin']['editusercss'] = true;
5224 $wgGroupPermissions['interface-admin']['edituserjson'] = true;
5225 $wgGroupPermissions['interface-admin']['edituserjs'] = true;
5226 
5227 // Permission to change users' group assignments
5228 $wgGroupPermissions['bureaucrat']['userrights'] = true;
5229 $wgGroupPermissions['bureaucrat']['noratelimit'] = true;
5230 // Permission to change users' groups assignments across wikis
5231 # $wgGroupPermissions['bureaucrat']['userrights-interwiki'] = true;
5232 // Permission to export pages including linked pages regardless of $wgExportMaxLinkDepth
5233 # $wgGroupPermissions['bureaucrat']['override-export-depth'] = true;
5234 
5235 # $wgGroupPermissions['sysop']['deletelogentry'] = true;
5236 # $wgGroupPermissions['sysop']['deleterevision'] = true;
5237 // To hide usernames from users and Sysops
5238 $wgGroupPermissions['suppress']['hideuser'] = true;
5239 // To hide revisions/log items from users and Sysops
5240 $wgGroupPermissions['suppress']['suppressrevision'] = true;
5241 // To view revisions/log items hidden from users and Sysops
5242 $wgGroupPermissions['suppress']['viewsuppressed'] = true;
5243 // For private suppression log access
5244 $wgGroupPermissions['suppress']['suppressionlog'] = true;
5245 // Basic rights for revision delete
5246 $wgGroupPermissions['suppress']['deleterevision'] = true;
5247 $wgGroupPermissions['suppress']['deletelogentry'] = true;
5248 
5255 # $wgGroupPermissions['developer']['siteadmin'] = true;
5256 
5269 
5273 $wgImplicitGroups = [ '*', 'user', 'autoconfirmed' ];
5274 
5297 
5302 
5310 $wgRestrictionTypes = [ 'create', 'edit', 'move', 'upload' ];
5311 
5323 $wgRestrictionLevels = [ '', 'autoconfirmed', 'sysop' ];
5324 
5335 
5349 
5358 
5369 
5391 
5402 
5461  'autoconfirmed' => [ '&',
5464  ],
5465 ];
5466 
5486  'onEdit' => [],
5487 ];
5488 
5494 
5518 
5523 
5529 
5535 
5541 
5550 
5573  'count' => 0,
5574  'seconds' => 86400,
5575 ] ];
5576 
5589 
5594 
5601 
5625 $wgDnsBlacklistUrls = [ 'http.dnsbl.sorbs.net.' ];
5626 
5632 
5641 
5648 
5685  // Page edits
5686  'edit' => [
5687  'ip' => [ 8, 60 ],
5688  'newbie' => [ 8, 60 ],
5689  'user' => [ 90, 60 ],
5690  ],
5691  // Page moves
5692  'move' => [
5693  'newbie' => [ 2, 120 ],
5694  'user' => [ 8, 60 ],
5695  ],
5696  // File uploads
5697  'upload' => [
5698  'ip' => [ 8, 60 ],
5699  'newbie' => [ 8, 60 ],
5700  ],
5701  // Page rollbacks
5702  'rollback' => [
5703  'user' => [ 10, 60 ],
5704  'newbie' => [ 5, 120 ]
5705  ],
5706  // Triggering password resets emails
5707  'mailpassword' => [
5708  'ip' => [ 5, 3600 ],
5709  ],
5710  // Emailing other users using MediaWiki
5711  'emailuser' => [
5712  'ip' => [ 5, 86400 ],
5713  'newbie' => [ 5, 86400 ],
5714  'user' => [ 20, 86400 ],
5715  ],
5716  'changeemail' => [
5717  'ip-all' => [ 10, 3600 ],
5718  'user' => [ 4, 86400 ]
5719  ],
5720  // since 1.33 - rate limit email confirmations
5721  'confirmemail' => [
5722  'ip-all' => [ 10, 3600 ],
5723  'user' => [ 4, 86400 ]
5724  ],
5725  // Purging pages
5726  'purge' => [
5727  'ip' => [ 30, 60 ],
5728  'user' => [ 30, 60 ],
5729  ],
5730  // Purges of link tables
5731  'linkpurge' => [
5732  'ip' => [ 30, 60 ],
5733  'user' => [ 30, 60 ],
5734  ],
5735  // Files rendered via thumb.php or thumb_handler.php
5736  'renderfile' => [
5737  'ip' => [ 700, 30 ],
5738  'user' => [ 700, 30 ],
5739  ],
5740  // Same as above but for non-standard thumbnails
5741  'renderfile-nonstandard' => [
5742  'ip' => [ 70, 30 ],
5743  'user' => [ 70, 30 ],
5744  ],
5745  // Stashing edits into cache before save
5746  'stashedit' => [
5747  'ip' => [ 30, 60 ],
5748  'newbie' => [ 30, 60 ],
5749  ],
5750  // Adding or removing change tags
5751  'changetag' => [
5752  'ip' => [ 8, 60 ],
5753  'newbie' => [ 8, 60 ],
5754  ],
5755  // Changing the content model of a page
5756  'editcontentmodel' => [
5757  'newbie' => [ 2, 120 ],
5758  'user' => [ 8, 60 ],
5759  ],
5760 ];
5761 
5767 
5774 
5780 
5794  // Short term limit
5795  [ 'count' => 5, 'seconds' => 300 ],
5796  // Long term limit. We need to balance the risk
5797  // of somebody using this as a DoS attack to lock someone
5798  // out of their account, and someone doing a brute force attack.
5799  [ 'count' => 150, 'seconds' => 60 * 60 * 48 ],
5800 ];
5801 
5813 
5814 // @TODO: clean up grants
5815 // @TODO: auto-include read/editsemiprotected rights?
5816 
5817 $wgGrantPermissions['basic']['autocreateaccount'] = true;
5818 $wgGrantPermissions['basic']['autoconfirmed'] = true;
5819 $wgGrantPermissions['basic']['autopatrol'] = true;
5820 $wgGrantPermissions['basic']['editsemiprotected'] = true;
5821 $wgGrantPermissions['basic']['ipblock-exempt'] = true;
5822 $wgGrantPermissions['basic']['nominornewtalk'] = true;
5823 $wgGrantPermissions['basic']['patrolmarks'] = true;
5824 $wgGrantPermissions['basic']['purge'] = true;
5825 $wgGrantPermissions['basic']['read'] = true;
5826 $wgGrantPermissions['basic']['skipcaptcha'] = true;
5827 $wgGrantPermissions['basic']['writeapi'] = true;
5828 
5829 $wgGrantPermissions['highvolume']['bot'] = true;
5830 $wgGrantPermissions['highvolume']['apihighlimits'] = true;
5831 $wgGrantPermissions['highvolume']['noratelimit'] = true;
5832 $wgGrantPermissions['highvolume']['markbotedits'] = true;
5833 
5834 $wgGrantPermissions['editpage']['edit'] = true;
5835 $wgGrantPermissions['editpage']['minoredit'] = true;
5836 $wgGrantPermissions['editpage']['applychangetags'] = true;
5837 $wgGrantPermissions['editpage']['changetags'] = true;
5838 
5839 $wgGrantPermissions['editprotected'] = $wgGrantPermissions['editpage'];
5840 $wgGrantPermissions['editprotected']['editprotected'] = true;
5841 
5842 // FIXME: Rename editmycssjs to editmyconfig
5843 $wgGrantPermissions['editmycssjs'] = $wgGrantPermissions['editpage'];
5844 $wgGrantPermissions['editmycssjs']['editmyusercss'] = true;
5845 $wgGrantPermissions['editmycssjs']['editmyuserjson'] = true;
5846 $wgGrantPermissions['editmycssjs']['editmyuserjs'] = true;
5847 
5848 $wgGrantPermissions['editmyoptions']['editmyoptions'] = true;
5849 $wgGrantPermissions['editmyoptions']['editmyuserjson'] = true;
5850 
5851 $wgGrantPermissions['editinterface'] = $wgGrantPermissions['editpage'];
5852 $wgGrantPermissions['editinterface']['editinterface'] = true;
5853 $wgGrantPermissions['editinterface']['edituserjson'] = true;
5854 $wgGrantPermissions['editinterface']['editsitejson'] = true;
5855 
5856 $wgGrantPermissions['editsiteconfig'] = $wgGrantPermissions['editinterface'];
5857 $wgGrantPermissions['editsiteconfig']['editusercss'] = true;
5858 $wgGrantPermissions['editsiteconfig']['edituserjs'] = true;
5859 $wgGrantPermissions['editsiteconfig']['editsitecss'] = true;
5860 $wgGrantPermissions['editsiteconfig']['editsitejs'] = true;
5861 
5862 $wgGrantPermissions['createeditmovepage'] = $wgGrantPermissions['editpage'];
5863 $wgGrantPermissions['createeditmovepage']['createpage'] = true;
5864 $wgGrantPermissions['createeditmovepage']['createtalk'] = true;
5865 $wgGrantPermissions['createeditmovepage']['move'] = true;
5866 $wgGrantPermissions['createeditmovepage']['move-rootuserpages'] = true;
5867 $wgGrantPermissions['createeditmovepage']['move-subpages'] = true;
5868 $wgGrantPermissions['createeditmovepage']['move-categorypages'] = true;
5869 $wgGrantPermissions['createeditmovepage']['suppressredirect'] = true;
5870 
5871 $wgGrantPermissions['uploadfile']['upload'] = true;
5872 $wgGrantPermissions['uploadfile']['reupload-own'] = true;
5873 
5874 $wgGrantPermissions['uploadeditmovefile'] = $wgGrantPermissions['uploadfile'];
5875 $wgGrantPermissions['uploadeditmovefile']['reupload'] = true;
5876 $wgGrantPermissions['uploadeditmovefile']['reupload-shared'] = true;
5877 $wgGrantPermissions['uploadeditmovefile']['upload_by_url'] = true;
5878 $wgGrantPermissions['uploadeditmovefile']['movefile'] = true;
5879 $wgGrantPermissions['uploadeditmovefile']['suppressredirect'] = true;
5880 
5881 $wgGrantPermissions['patrol']['patrol'] = true;
5882 
5883 $wgGrantPermissions['rollback']['rollback'] = true;
5884 
5885 $wgGrantPermissions['blockusers']['block'] = true;
5886 $wgGrantPermissions['blockusers']['blockemail'] = true;
5887 
5888 $wgGrantPermissions['viewdeleted']['browsearchive'] = true;
5889 $wgGrantPermissions['viewdeleted']['deletedhistory'] = true;
5890 $wgGrantPermissions['viewdeleted']['deletedtext'] = true;
5891 
5892 $wgGrantPermissions['viewrestrictedlogs']['suppressionlog'] = true;
5893 
5894 $wgGrantPermissions['delete'] = $wgGrantPermissions['editpage'] +
5895  $wgGrantPermissions['viewdeleted'];
5896 $wgGrantPermissions['delete']['delete'] = true;
5897 $wgGrantPermissions['delete']['bigdelete'] = true;
5898 $wgGrantPermissions['delete']['deletelogentry'] = true;
5899 $wgGrantPermissions['delete']['deleterevision'] = true;
5900 $wgGrantPermissions['delete']['undelete'] = true;
5901 
5902 $wgGrantPermissions['oversight']['suppressrevision'] = true;
5903 
5904 $wgGrantPermissions['protect'] = $wgGrantPermissions['editprotected'];
5905 $wgGrantPermissions['protect']['protect'] = true;
5906 
5907 $wgGrantPermissions['viewmywatchlist']['viewmywatchlist'] = true;
5908 
5909 $wgGrantPermissions['editmywatchlist']['editmywatchlist'] = true;
5910 
5911 $wgGrantPermissions['sendemail']['sendemail'] = true;
5912 
5913 $wgGrantPermissions['createaccount']['createaccount'] = true;
5914 
5915 $wgGrantPermissions['privateinfo']['viewmyprivateinfo'] = true;
5916 
5922  // Hidden grants are implicitly present
5923  'basic' => 'hidden',
5924 
5925  'editpage' => 'page-interaction',
5926  'createeditmovepage' => 'page-interaction',
5927  'editprotected' => 'page-interaction',
5928  'patrol' => 'page-interaction',
5929 
5930  'uploadfile' => 'file-interaction',
5931  'uploadeditmovefile' => 'file-interaction',
5932 
5933  'sendemail' => 'email',
5934 
5935  'viewmywatchlist' => 'watchlist-interaction',
5936  'editviewmywatchlist' => 'watchlist-interaction',
5937 
5938  'editmycssjs' => 'customization',
5939  'editmyoptions' => 'customization',
5940 
5941  'editinterface' => 'administration',
5942  'editsiteconfig' => 'administration',
5943  'rollback' => 'administration',
5944  'blockusers' => 'administration',
5945  'delete' => 'administration',
5946  'viewdeleted' => 'administration',
5947  'viewrestrictedlogs' => 'administration',
5948  'protect' => 'administration',
5949  'oversight' => 'administration',
5950  'createaccount' => 'administration',
5951 
5952  'highvolume' => 'high-volume',
5953 
5954  'privateinfo' => 'private-information',
5955 ];
5956 
5962 
5969 
5979  # end of user rights settings
5981 
5982 /************************************************************************/
5991 
6001  # end of proxy scanner settings
6003 
6004 /************************************************************************/
6012 $wgCookieExpiration = 30 * 86400;
6013 
6021 
6027 
6033 
6040 $wgCookieSecure = 'detect';
6041 
6049 
6056 
6063 
6068 
6073 
6082 
6091  # end of cookie settings }
6093 
6094 /************************************************************************/
6105 $wgUseTeX = false;
6106  # end LaTeX }
6108 
6109 /************************************************************************/
6123 
6128 
6135 
6142 
6152 
6161 
6168  // HTTP GET/HEAD requests.
6169  // Master queries should not happen on GET requests
6170  'GET' => [
6171  'masterConns' => 0,
6172  'writes' => 0,
6173  'readQueryTime' => 5,
6174  'readQueryRows' => 10000
6175  ],
6176  // HTTP POST requests.
6177  // Master reads and writes will happen for a subset of these.
6178  'POST' => [
6179  'readQueryTime' => 5,
6180  'writeQueryTime' => 1,
6181  'readQueryRows' => 100000,
6182  'maxAffected' => 1000
6183  ],
6184  'POST-nonwrite' => [
6185  'writes' => 0,
6186  'readQueryTime' => 5,
6187  'readQueryRows' => 10000
6188  ],
6189  // Deferred updates that run after HTTP response is sent for GET requests
6190  'PostSend-GET' => [
6191  'readQueryTime' => 5,
6192  'writeQueryTime' => 1,
6193  'readQueryRows' => 10000,
6194  'maxAffected' => 1000,
6195  // Log master queries under the post-send entry point as they are discouraged
6196  'masterConns' => 0,
6197  'writes' => 0,
6198  ],
6199  // Deferred updates that run after HTTP response is sent for POST requests
6200  'PostSend-POST' => [
6201  'readQueryTime' => 5,
6202  'writeQueryTime' => 1,
6203  'readQueryRows' => 100000,
6204  'maxAffected' => 1000
6205  ],
6206  // Background job runner
6207  'JobRunner' => [
6208  'readQueryTime' => 30,
6209  'writeQueryTime' => 5,
6210  'readQueryRows' => 100000,
6211  'maxAffected' => 500 // ballpark of $wgUpdateRowsPerQuery
6212  ],
6213  // Command-line scripts
6214  'Maintenance' => [
6215  'writeQueryTime' => 5,
6216  'maxAffected' => 1000
6217  ]
6218 ];
6219 
6251 
6274  'class' => \MediaWiki\Logger\LegacySpi::class,
6275 ];
6276 
6283 
6289 
6294 
6304 
6312 
6324 
6329 
6335 
6340 
6347 
6353 
6360 
6418 
6425 
6431 
6439 
6451 
6460 
6468  'wanobjectcache:*' => 0.001
6469 ];
6470 
6477 
6492 
6497 
6503 
6512  # end of profiling, testing and debugging }
6514 
6515 /************************************************************************/
6524 
6530 
6535 $wgSearchHighlightBoundaries = '[\p{Z}\p{P}\p{C}]';
6536 
6548 
6558  'application/x-suggestions+json' => false,
6559  'application/x-suggestions+xml' => false,
6560 ];
6561 
6569 
6575 
6580 
6585 
6591 
6602  NS_MAIN => true,
6603 ];
6604 
6610 
6627 
6634 
6641 
6657 
6664  # end of search settings
6666 
6667 /************************************************************************/
6676 $wgDiff3 = '/usr/bin/diff3';
6677 
6681 $wgDiff = '/usr/bin/diff';
6682 
6689  NS_CATEGORY => true
6690 ];
6691 
6698 
6705  # end edit UI }
6707 
6708 /************************************************************************/
6718 if ( !isset( $wgCommandLineMode ) ) {
6719  $wgCommandLineMode = false;
6720 }
6727 
6737 
6744 
6753 
6764 
6768 $wgGitBin = '/usr/bin/git';
6769 
6784  'https://(?:[a-z0-9_]+@)?gerrit.wikimedia.org/r/(?:p/)?(.*)' =>
6785  'https://gerrit.wikimedia.org/g/%R/+/%H',
6786  'ssh://(?:[a-z0-9_]+@)?gerrit.wikimedia.org:29418/(.*)' =>
6787  'https://gerrit.wikimedia.org/g/%R/+/%H',
6788 ];
6789  # End of maintenance }
6791 
6792 /************************************************************************/
6802 $wgRCMaxAge = 90 * 24 * 3600;
6803 
6809 $wgWatchersMaxAge = 180 * 24 * 3600;
6810 
6818 
6827 
6832 $wgRCLinkLimits = [ 50, 100, 250, 500 ];
6833 
6840 $wgRCLinkDays = [ 1, 3, 7, 14, 30 ];
6841 
6896 
6903  'redis' => RedisPubSubFeedEngine::class,
6904  'udp' => UDPRCFeedEngine::class,
6905 ];
6906 
6919 
6929 
6936 
6945 
6956 
6960 $wgFeed = true;
6961 
6967 
6977 
6983 
6997 
7004  'rss' => RSSFeed::class,
7005  'atom' => AtomFeed::class,
7006 ];
7007 
7013 
7018 
7023 
7030 
7036 
7042 
7048 
7064  'mw-contentmodelchange' => true,
7065  'mw-new-redirect' => true,
7066  'mw-removed-redirect' => true,
7067  'mw-changed-redirect-target' => true,
7068  'mw-blank' => true,
7069  'mw-replace' => true,
7070  'mw-rollback' => true,
7071  'mw-undo' => true,
7072 ];
7073 
7082 
7108  'newpage' => [
7109  'letter' => 'newpageletter',
7110  'title' => 'recentchanges-label-newpage',
7111  'legend' => 'recentchanges-legend-newpage',
7112  'grouping' => 'any',
7113  ],
7114  'minor' => [
7115  'letter' => 'minoreditletter',
7116  'title' => 'recentchanges-label-minor',
7117  'legend' => 'recentchanges-legend-minor',
7118  'class' => 'minoredit',
7119  'grouping' => 'all',
7120  ],
7121  'bot' => [
7122  'letter' => 'boteditletter',
7123  'title' => 'recentchanges-label-bot',
7124  'legend' => 'recentchanges-legend-bot',
7125  'class' => 'botedit',
7126  'grouping' => 'all',
7127  ],
7128  'unpatrolled' => [
7129  'letter' => 'unpatrolledletter',
7130  'title' => 'recentchanges-label-unpatrolled',
7131  'legend' => 'recentchanges-legend-unpatrolled',
7132  'grouping' => 'any',
7133  ],
7134 ];
7135  # end RC/watchlist }
7137 
7138 /************************************************************************/
7151 
7158 
7166 
7171 
7176 
7185 
7191  # end of copyright and credits settings }
7193 
7194 /************************************************************************/
7222 
7231 
7238 
7245 
7250 
7263 
7268 
7273 
7281  # end of import/export }
7283 
7284 /*************************************************************************/
7294 
7322 
7349 
7356 
7372 
7377 
7387 
7395 
7400 
7407 
7461 
7497 
7510  __DIR__ . '/ServiceWiring.php'
7511 ];
7512 
7521  'deletePage' => DeletePageJob::class,
7522  'refreshLinks' => RefreshLinksJob::class,
7523  'deleteLinks' => DeleteLinksJob::class,
7524  'htmlCacheUpdate' => HTMLCacheUpdateJob::class,
7525  'sendMail' => EmaillingJob::class,
7526  'enotifNotify' => EnotifNotifyJob::class,
7527  'fixDoubleRedirect' => DoubleRedirectJob::class,
7528  'AssembleUploadChunks' => AssembleUploadChunksJob::class,
7529  'PublishStashedFile' => PublishStashedFileJob::class,
7530  'ThumbnailRender' => ThumbnailRenderJob::class,
7531  'recentChangesUpdate' => RecentChangesUpdateJob::class,
7532  'refreshLinksPrioritized' => RefreshLinksJob::class,
7533  'refreshLinksDynamic' => RefreshLinksJob::class,
7534  'activityUpdateJob' => ActivityUpdateJob::class,
7535  'categoryMembershipChange' => function ( Title $title, $params = [] ) {
7536  $pc = MediaWikiServices::getInstance()->getParserCache();
7537  return new CategoryMembershipChangeJob( $pc, $title, $params );
7538  },
7539  'clearUserWatchlist' => ClearUserWatchlistJob::class,
7540  'cdnPurge' => CdnPurgeJob::class,
7541  'userGroupExpiry' => UserGroupExpiryJob::class,
7542  'clearWatchlistNotifications' => ClearWatchlistNotificationsJob::class,
7543  'userOptionsUpdate' => UserOptionsUpdateJob::class,
7544  'enqueue' => EnqueueJob::class, // local queue for multi-DC setups
7545  'null' => NullJob::class,
7546 ];
7547 
7559 $wgJobTypesExcludedFromDefaultQueue = [ 'AssembleUploadChunks', 'PublishStashedFile' ];
7560 
7571 
7586 
7594  'default' => [ 'class' => JobQueueDB::class, 'order' => 'random', 'claimTTL' => 3600 ],
7595 ];
7596 
7609 
7615  'Statistics' => [ SiteStatsUpdate::class, 'cacheUpdate' ]
7616 ];
7617 
7626  'hiddencat' => 'categorylinks',
7627 ];
7628  # End extensions }
7630 
7631 /*************************************************************************/
7640 
7646 
7651 
7677 $wgCategoryCollation = 'uppercase';
7678  # End categories }
7680 
7681 /*************************************************************************/
7696  '',
7697  'block',
7698  'protect',
7699  'rights',
7700  'delete',
7701  'upload',
7702  'move',
7703  'import',
7704  'patrol',
7705  'merge',
7706  'suppress',
7707  'tag',
7708  'managetags',
7709  'contentmodel',
7710 ];
7711 
7720  'suppress' => 'suppressionlog'
7721 ];
7722 
7743  'patrol' => true,
7744  'tag' => true,
7745 ];
7746 
7757  '' => 'all-logs-page',
7758  'block' => 'blocklogpage',
7759  'protect' => 'protectlogpage',
7760  'rights' => 'rightslog',
7761  'delete' => 'dellogpage',
7762  'upload' => 'uploadlogpage',
7763  'move' => 'movelogpage',
7764  'import' => 'importlogpage',
7765  'patrol' => 'patrol-log-page',
7766  'merge' => 'mergelog',
7767  'suppress' => 'suppressionlog',
7768 ];
7769 
7780  '' => 'alllogstext',
7781  'block' => 'blocklogtext',
7782  'delete' => 'dellogpagetext',
7783  'import' => 'importlogpagetext',
7784  'merge' => 'mergelogpagetext',
7785  'move' => 'movelogpagetext',
7786  'patrol' => 'patrol-log-header',
7787  'protect' => 'protectlogtext',
7788  'rights' => 'rightslogtext',
7789  'suppress' => 'suppressionlogtext',
7790  'upload' => 'uploadlogpagetext',
7791 ];
7792 
7800 
7808  'block/block' => BlockLogFormatter::class,
7809  'block/reblock' => BlockLogFormatter::class,
7810  'block/unblock' => BlockLogFormatter::class,
7811  'contentmodel/change' => ContentModelLogFormatter::class,
7812  'contentmodel/new' => ContentModelLogFormatter::class,
7813  'delete/delete' => DeleteLogFormatter::class,
7814  'delete/delete_redir' => DeleteLogFormatter::class,
7815  'delete/event' => DeleteLogFormatter::class,
7816  'delete/restore' => DeleteLogFormatter::class,
7817  'delete/revision' => DeleteLogFormatter::class,
7818  'import/interwiki' => ImportLogFormatter::class,
7819  'import/upload' => ImportLogFormatter::class,
7820  'managetags/activate' => LogFormatter::class,
7821  'managetags/create' => LogFormatter::class,
7822  'managetags/deactivate' => LogFormatter::class,
7823  'managetags/delete' => LogFormatter::class,
7824  'merge/merge' => MergeLogFormatter::class,
7825  'move/move' => MoveLogFormatter::class,
7826  'move/move_redir' => MoveLogFormatter::class,
7827  'patrol/patrol' => PatrolLogFormatter::class,
7828  'patrol/autopatrol' => PatrolLogFormatter::class,
7829  'protect/modify' => ProtectLogFormatter::class,
7830  'protect/move_prot' => ProtectLogFormatter::class,
7831  'protect/protect' => ProtectLogFormatter::class,
7832  'protect/unprotect' => ProtectLogFormatter::class,
7833  'rights/autopromote' => RightsLogFormatter::class,
7834  'rights/rights' => RightsLogFormatter::class,
7835  'suppress/block' => BlockLogFormatter::class,
7836  'suppress/delete' => DeleteLogFormatter::class,
7837  'suppress/event' => DeleteLogFormatter::class,
7838  'suppress/reblock' => BlockLogFormatter::class,
7839  'suppress/revision' => DeleteLogFormatter::class,
7840  'tag/update' => TagLogFormatter::class,
7841  'upload/overwrite' => UploadLogFormatter::class,
7842  'upload/revert' => UploadLogFormatter::class,
7843  'upload/upload' => UploadLogFormatter::class,
7844 ];
7845 
7855  'block' => [
7856  'block' => [ 'block' ],
7857  'reblock' => [ 'reblock' ],
7858  'unblock' => [ 'unblock' ],
7859  ],
7860  'contentmodel' => [
7861  'change' => [ 'change' ],
7862  'new' => [ 'new' ],
7863  ],
7864  'delete' => [
7865  'delete' => [ 'delete' ],
7866  'delete_redir' => [ 'delete_redir' ],
7867  'restore' => [ 'restore' ],
7868  'event' => [ 'event' ],
7869  'revision' => [ 'revision' ],
7870  ],
7871  'import' => [
7872  'interwiki' => [ 'interwiki' ],
7873  'upload' => [ 'upload' ],
7874  ],
7875  'managetags' => [
7876  'create' => [ 'create' ],
7877  'delete' => [ 'delete' ],
7878  'activate' => [ 'activate' ],
7879  'deactivate' => [ 'deactivate' ],
7880  ],
7881  'move' => [
7882  'move' => [ 'move' ],
7883  'move_redir' => [ 'move_redir' ],
7884  ],
7885  'newusers' => [
7886  'create' => [ 'create', 'newusers' ],
7887  'create2' => [ 'create2' ],
7888  'autocreate' => [ 'autocreate' ],
7889  'byemail' => [ 'byemail' ],
7890  ],
7891  'protect' => [
7892  'protect' => [ 'protect' ],
7893  'modify' => [ 'modify' ],
7894  'unprotect' => [ 'unprotect' ],
7895  'move_prot' => [ 'move_prot' ],
7896  ],
7897  'rights' => [
7898  'rights' => [ 'rights' ],
7899  'autopromote' => [ 'autopromote' ],
7900  ],
7901  'suppress' => [
7902  'event' => [ 'event' ],
7903  'revision' => [ 'revision' ],
7904  'delete' => [ 'delete' ],
7905  'block' => [ 'block' ],
7906  'reblock' => [ 'reblock' ],
7907  ],
7908  'upload' => [
7909  'upload' => [ 'upload' ],
7910  'overwrite' => [ 'overwrite' ],
7911  'revert' => [ 'revert' ],
7912  ],
7913 ];
7914 
7919 
7925  # end logging }
7927 
7928 /*************************************************************************/
7937 
7944 
7950 
7956  # end special pages }
7958 
7959 /*************************************************************************/
7975  'credits' => true,
7976  'delete' => true,
7977  'edit' => true,
7978  'editchangetags' => SpecialPageAction::class,
7979  'history' => true,
7980  'info' => true,
7981  'markpatrolled' => true,
7982  'mcrundo' => McrUndoAction::class,
7983  'mcrrestore' => McrRestoreAction::class,
7984  'protect' => true,
7985  'purge' => true,
7986  'raw' => true,
7987  'render' => true,
7988  'revert' => true,
7989  'revisiondelete' => SpecialPageAction::class,
7990  'rollback' => true,
7991  'submit' => true,
7992  'unprotect' => true,
7993  'unwatch' => true,
7994  'view' => true,
7995  'watch' => true,
7996 ];
7997  # end actions }
7999 
8000 /*************************************************************************/
8011 $wgDefaultRobotPolicy = 'index,follow';
8012 
8028 
8056 
8068  # End robot policy }
8070 
8071 /************************************************************************/
8093 $wgDebugAPI = false;
8094 
8132 
8141 
8150 
8159 
8168 
8174 
8180 
8186 
8193 
8199 
8204 
8210  'MIMEsearch', // aiprop=mime
8211  'LinkSearch', // list=exturlusage
8212  'FileDuplicateSearch', // prop=duplicatefiles
8213 ];
8214 
8220 $wgUseAjax = true;
8221 
8228 
8233 
8238 
8244 
8266 
8273 
8280  # End AJAX and API }
8282 
8283 /************************************************************************/
8292 
8298 
8303 
8309 
8334 
8338 $wgPhpCli = '/usr/bin/php';
8339 
8374 $wgShellLocale = 'C.UTF-8';
8375 
8391  # End shell }
8393 
8394 /************************************************************************/
8404 
8410 
8415 
8420 
8435 
8441 
8448  # End HTTP client }
8450 
8451 /************************************************************************/
8463 
8472 
8477 
8482  # End job queue }
8484 
8485 /************************************************************************/
8497 
8507 
8513 
8519 
8524 
8530 
8536 
8570 
8575 
8588 
8600 
8616 
8628  CONTENT_MODEL_WIKITEXT, // Just for completeness, wikitext will always be parsed.
8629  CONTENT_MODEL_JAVASCRIPT, // Make categories etc work, people put them into comments.
8630  CONTENT_MODEL_CSS, // Make categories etc work, people put them into comments.
8631 ];
8632 
8639  'mediawiki' => MediaWikiSite::class,
8640 ];
8641 
8648 
8661 
8669 
8678 
8688 
8695 $wgHKDFAlgorithm = 'sha256';
8696 
8704 
8743  'paths' => [],
8744  'modules' => [],
8745  'global' => [
8746  # Timeout in seconds
8747  'timeout' => 360,
8748  # 'domain' is set to $wgCanonicalServer in Setup.php
8749  'forwardCookies' => false,
8750  'HTTPProxy' => null
8751  ]
8752 ];
8753 
8762 
8775 $wgPopularPasswordFile = __DIR__ . '/password/commonpasswords.cdb';
8776 
8777 /*
8778  * Max time (in seconds) a user-generated transaction can spend in writes.
8779  * If exceeded, the transaction is rolled back with an error instead of being committed.
8780  *
8781  * @var int|bool Disabled if false
8782  * @since 1.27
8783  */
8785 
8786 /*
8787  * Max time (in seconds) a job-generated transaction can spend in writes.
8788  * If exceeded, the transaction is rolled back with an error instead of being committed.
8789  *
8790  * @var int|bool Disabled if false
8791  * @since 1.30
8792  */
8794 
8816 
8824 
8836  'copyright',
8837  'history_copyright',
8838  'googlesearch',
8839  'feedback-terms',
8840  'feedback-termsofuse',
8841 ];
8842 
8863  'default' => [
8864  'class' => EventRelayerNull::class,
8865  ]
8866 ];
8867 
8881 $wgPingback = false;
8882 
8892  'https://3hub.co' => true,
8893  'https://morepro.info' => true,
8894  'https://p.ato.mx' => true,
8895  'https://s.ato.mx' => true,
8896  'https://adserver.adtech.de' => true,
8897  'https://ums.adtechus.com' => true,
8898  'https://cas.criteo.com' => true,
8899  'https://cat.nl.eu.criteo.com' => true,
8900  'https://atpixel.alephd.com' => true,
8901  'https://rtb.metrigo.com' => true,
8902  'https://d5p.de17a.com' => true,
8903  'https://ad.lkqd.net/vpaid/vpaid.js' => true,
8904  'https://ad.lkqd.net/vpaid/vpaid.js?fusion=1.0' => true,
8905  'https://t.lkqd.net/t' => true,
8906  'chrome-extension' => true,
8907 ];
8908 
8917  'IPv4' => 16,
8918  'IPv6' => 32,
8919 ];
8920 
8937 
8956 
8977 
8983 
8993 
9001 
9011 
9021 
9031 
9041 
9051 
9062 
9073 
9083 
9093 
$wgStrictFileExtensions
If this is turned off, users may override the warning for files not covered by $wgFileExtensions.
$wgExternalInterwikiFragmentMode
Which ID escaping mode should be used for external interwiki links? See documentation for $wgFragment...
$wgLogExceptionBacktrace
If true, send the exception backtrace to the error log.
$wgForeignFileRepos
Enable the use of files from one or more other wikis.
$wgAPIMaxDBRows
Maximum amount of rows to scan in a DB query in the API The default value is generally fine...
$wgUserEmailConfirmationTokenExpiry
The time, in seconds, when an email confirmation email expires.
$wgSQLiteDataDir
To override default SQLite data directory ($docroot/../data)
$wgShowCreditsIfMax
If there are more than $wgMaxCredits authors, show $wgMaxCredits of them.
$wgUseInstantCommons
Use Wikimedia Commons as a foreign file repository.
bool $wgPingback
Share data about this installation with MediaWiki developers.
string null $wgAuthenticationTokenVersion
Versioning for authentication tokens.
$wgEditSubmitButtonLabelPublish
Whether to label the store-to-database-and-show-to-others button in the editor as "Save page"/"Save c...
$wgUseCopyrightUpload
Set this to true if you want detailed copyright information forms on Upload.
$wgOpenSearchTemplate
Template for OpenSearch suggestions, defaults to API action=opensearch.
$wgOverrideSiteFeed
Override the site&#39;s default RSS/ATOM feed for recentchanges that appears on every page...
$wgFeedCacheTimeout
Minimum timeout for cached Recentchanges feed, in seconds.
$wgArticleCountMethod
Method used to determine if a page in a content namespace should be counted as a valid article...
$wgFooterIcons
Abstract list of footer icons for skins in place of old copyrightico and poweredbyico code You can ad...
$wgOpenSearchTemplates
Templates for OpenSearch suggestions, defaults to API action=opensearch.
$wgNewUserLog
Maintain a log of newusers at Special:Log/newusers?
$wgPasswordAttemptThrottle
Limit password attempts to X attempts per Y seconds per IP per account.
$wgDebugTimestamps
Prefix debug messages with relative timestamp.
$wgMainStash
The object store type of the main stash.
$wgMaxArticleSize
Maximum article size in kilobytes.
$wgParserCacheExpireTime
The expiry time for the parser cache, in seconds.
$wgSearchType
Search type.
$wgExtensionCredits
An array of information about installed extensions keyed by their type.
$wgUploadThumbnailRenderHttpCustomDomain
When using the "http" wgUploadThumbnailRenderMethod, lets one specify a custom domain to send the HTT...
$wgParserTestFiles
Parser test suite files to be run by parserTests.php when no specific filename is passed to it...
bool $wgMainPageIsDomainRoot
Option to whether serve the main page as the domain root.
$wgPagePropsHaveSortkey
Whether the page_props table has a pp_sortkey column.
const CONTENT_MODEL_WIKITEXT
Definition: Defines.php:215
$wgCdnMaxageLagged
Cache timeout for the CDN when DB replica DB lag is high.
$wgPasswordExpirationDays
The number of days that a user&#39;s password is good for.
$wgSVGMetadataCutoff
Don&#39;t read SVG metadata beyond this point.
$wgAllowSpecialInclusion
Allow special page inclusions such as {{Special:Allpages}}.
bool array $wgCSPHeader
Controls Content-Security-Policy header [Experimental].
$wgHKDFSecret
Secret for hmac-based key derivation function (fast, cryptographically secure random numbers)...
$wgImageMagickConvertCommand
The convert command shipped with ImageMagick.
$wgScript
The URL path to index.php.
array $wgDefaultExternalStore
The place to put new revisions, false to put them in the local text table.
$wgDisableUploadScriptChecks
Setting this to true will disable the upload system&#39;s checks for HTML/JavaScript. ...
$wgCookieSetOnAutoblock
Whether to set a cookie when a user is autoblocked.
$wgEventRelayerConfig
Mapping of event channels (or channel categories) to EventRelayer configuration.
$wgUploadStashMaxAge
The maximum age of temporary (incomplete) uploaded files.
$wgCommandLineDarkBg
For colorized maintenance script output, is your terminal background dark ?
$wgRightsUrl
Set this to specify an external URL containing details about the content license used on your wiki...
$wgAPIFormatModules
API format module extensions.
$wgDBerrorLogTZ
Timezone to use in the error log.
$wgVersion
MediaWiki version number.
$wgCopyUploadsDomains
A list of domains copy uploads can come from.
$wgMaxNameChars
Maximum number of bytes in username.
const APCOND_AGE
Definition: Defines.php:186
int $wgReportToExpiry
Expiry of the endpoint definition for the Reporting API.
$wgDefaultUserOptions
Settings added to this array will override the default globals for the user preferences used by anony...
$wgAllowExternalImagesFrom
If the above is false, you can specify an exception here.
$wgDBDefaultGroup
Default group to use when getting database connections.
$wgMessagesDirs
Extension messages directories.
const NS_MAIN
Definition: Defines.php:60
$wgSitename
Name of the site.
$wgUseAutomaticEditSummaries
If user doesn&#39;t specify any edit summary when making a an edit, MediaWiki will try to automatically c...
$wgQueryCacheLimit
Number of rows to cache in &#39;querycache&#39; table when miser mode is on.
const CACHE_ACCEL
Definition: Defines.php:85
$wgEnableOpenSearchSuggest
Enable OpenSearch suggestions requested by MediaWiki.
$wgRunJobsAsync
When $wgJobRunRate > 0, try to run jobs asynchronously, spawning a new process to handle the job exec...
$wgFixDoubleRedirects
Fix double redirects after a page move.
$wgShellCgroup
Under Linux: a cgroup directory used to constrain memory usage of shell commands. ...
$wgNamespacesWithSubpages
Which namespaces should support subpages? See Language.php for a list of namespaces.
$wgSysopEmailBans
Allow sysops to ban users from accessing Emailuser.
$wgCookieDomain
Set to set an explicit domain on the login cookies eg, "justthis.domain.org" or ".any.subdomain.net".
int $wgMultiContentRevisionSchemaMigrationStage
RevisionStore table schema migration stage (content, slots, content_models & slot_roles tables)...
$wgDBadminpassword
Separate password for maintenance tasks.
$wgSitemapNamespacesPriorities
Custom namespace priorities for sitemaps.
$wgDebugLogGroups
Map of string log group names to log destinations.
$wgUseTagFilter
Allow filtering by change tag in recentchanges, history, etc Has no effect if no tags are defined in ...
$wgJobTypesExcludedFromDefaultQueue
Jobs that must be explicitly requested, i.e.
$wgExpensiveParserFunctionLimit
Maximum number of calls per parse to expensive parser functions such as PAGESINCATEGORY.
string $wgPopularPasswordFile
Where popular password file is located.
$wgCookiePrefix
Cookies generated by MediaWiki have names starting with this prefix.
$wgPasswordDefault
Default password type to use when hashing user passwords.
$wgNamespaceRobotPolicies
Robot policies per namespaces.
$wgRecentChangesFlags
Flags (letter symbols) shown in recent changes and watchlist to indicate certain types of edits...
$wgMimeType
The default Content-Type header.
$wgShowSQLErrors
Whether to show "we&#39;re sorry, but there has been a database error" pages.
$wgPoolCounterConf
Configuration for processing pool control, for use in high-traffic wikis.
const AV_VIRUS_FOUND
Definition: Defines.php:92
$wgUpdateRowsPerJob
Number of rows to update per job.
$wgImageMagickTempDir
Temporary directory used for ImageMagick.
$wgDBpassword
Database user&#39;s password.
$wgMaxShellFileSize
Maximum file size created by shell processes under linux, in KB ImageMagick convert for example can b...
$wgDBerrorLog
File to log database errors to.
$wgDebugToolbar
Display the new debugging toolbar.
$wgThumbnailScriptPath
Give a path here to use thumb.php for thumbnail generation on client request, instead of generating t...
$wgPasswordExpireGrace
If a user&#39;s password is expired, the number of seconds when they can still login, and cancel their pa...
$wgInternalServer
Internal server name as known to CDN, if different.
$wgLangObjCacheSize
Language cache size, or really how many languages can we handle simultaneously without degrading to c...
$wgRepositoryBaseUrl
Shortcut for the &#39;descBaseUrl&#39; setting of $wgForeignFileRepos.
bool string $wgSharedUploadDBname
Shortcut for the ForeignDBRepo &#39;dbName&#39; setting in $wgForeignFileRepos.
$wgEnotifUseRealName
Use real name instead of username in e-mail "from" field.
$wgDBtype
Database type.
$wgRestrictionLevels
Rights which can be required for each protection level (via action=protect)
$wgDebugComments
Send debug data to an HTML comment in the output.
$wgMaxShellMemory
Maximum amount of virtual memory available to shell processes under linux, in KB. ...
$wgFileBackends
File backend structure configuration.
$wgRegisterInternalExternals
By default MediaWiki does not register links pointing to same server in externallinks dataset...
$wgSecretKey
This should always be customised in LocalSettings.php.
$wgReservedUsernames
Array of usernames which may not be registered or logged in from Maintenance scripts can still use th...
$wgAdditionalMailParams
Additional email parameters, will be passed as the last argument to mail() call.
$wgHttpsPort
For installations where the canonical server is HTTP but HTTPS is optionally supported, you can specify a non-standard HTTPS port here.
$wgAPICacheHelpTimeout
Set the timeout for the API help text cache.
const XML_DUMP_SCHEMA_VERSION_10
Definition: Defines.php:308
$wgOverrideHostname
Override server hostname detection with a hardcoded value.
$wgCookieHttpOnly
Set authentication cookies to HttpOnly to prevent access by JavaScript, in browsers that support this...
$wgEnableScaryTranscluding
Enable interwiki transcluding.
$wgHtml5Version
Defines the value of the version attribute in the <html> tag, if any.
$wgShortPagesNamespaceBlacklist
Optional array of namespaces which should be blacklisted from Special:ShortPages Only pages inside $w...
bool $wgCacheSharedUploads
Shortcut for the ForeignDBRepo &#39;hasSharedCache&#39; setting in $wgForeignFileRepos.
$wgAllowUserCss
Allow user Cascading Style Sheets (CSS)? This enables a lot of neat customizations, but may increase security risk to users and server load.
$wgEnableSearchContributorsByIP
If true, searches for IP addresses will be redirected to that IP&#39;s contributions page.
$wgStatsdMetricPrefix
Prefix for metric names sent to $wgStatsdServer.
$wgLocalFileRepo
File repository structures.
int $wgHTTPTimeout
Timeout for HTTP requests done internally, in seconds.
$wgOpenSearchDefaultLimit
Integer defining default number of entries to show on OpenSearch call.
$wgSecureLogin
This is to let user authenticate using https when they come from http.
$wgDBmwschema
Current wiki database schema name.
$wgEnableParserLimitReporting
Whether to include the NewPP limit report as a HTML comment.
$wgMaxUserDBWriteDuration
Name of the external diff engine to use.
$wgDjvuTxt
Path of the djvutxt DJVU text extraction utility Enable this and $wgDjvuDump to enable text layer ext...
$wgAuthManagerConfig
Configure AuthManager.
$wgUseImageResize
Whether to enable server-side image thumbnailing.
$wgMetaNamespace
Name of the project namespace.
$wgAdvertisedFeedTypes
Which feed types should we provide by default? This can include &#39;rss&#39;, &#39;atom&#39;, neither, or both.
$wgJpegPixelFormat
At default setting of &#39;yuv420&#39;, JPEG thumbnails will use 4:2:0 chroma subsampling to reduce file size...
bool $wgEnotifFromEditor
Allow sending of e-mail notifications with the editor&#39;s address as sender.
$wgUploadThumbnailRenderMethod
The method through which the thumbnails will be prerendered for the entries in $wgUploadThumbnailRend...
$wgAPIPropModules
API Query prop module extensions.
$wgExiftool
Path to exiftool binary.
$wgSharedTables
$wgThumbnailEpoch
If rendered thumbnail files are older than this timestamp, they will be rerendered on demand as if th...
$wgJpegTran
used for lossless jpeg rotation
$wgWatchersMaxAge
Page watchers inactive for more than this many seconds are considered inactive.
$wgCategoryMagicGallery
On category pages, show thumbnail gallery for images belonging to that category instead of listing th...
const SCHEMA_COMPAT_READ_NEW
Definition: Defines.php:267
$wgMimeInfoFile
Sets the MIME type info file to use by includes/libs/mime/MimeAnalyzer.php.
const AV_NO_VIRUS
Definition: Defines.php:91
$wgExportMaxLinkDepth
If non-zero, Special:Export accepts a "pagelink-depth" parameter up to this specified level...
$wgForeignUploadTargets
Array of foreign file repo names (set in $wgForeignFileRepos above) that are allowable upload targets...
$wgDBserver
Database host name or IP address.
$wgAllowExternalReqID
Whether to respect/honour the request ID provided by the incoming request via the X-Request-Id header...
$wgUrlProtocols
URL schemes that should be recognized as valid by wfParseUrl().
$wgNamespaceAliases
Namespace aliases.
$wgDisableOutputCompression
Disable output compression (enabled by default if zlib is available)
$wgExtraSignatureNamespaces
Array of namespaces, in addition to the talk namespaces, where signatures (~~~~) are likely to be use...
$wgMaxImageArea
The maximum number of pixels a source image can have if it is to be scaled down by a scaler that requ...
$wgDBuser
Database username.
$wgGroupsRemoveFromSelf
$wgSemiprotectedRestrictionLevels
Restriction levels that should be considered "semiprotected".
$wgLogActions
Lists the message key string for formatting individual events of each type and action when listed in ...
$wgMainWANCache
Main Wide-Area-Network cache type.
string bool $wgShellRestrictionMethod
Method to use to restrict shell commands.
$wgEmailConfirmToEdit
Should editors be required to have a validated e-mail address before being allowed to edit...
$wgInterwikiPrefixDisplayTypes
Mapping of interwiki index prefixes to descriptors that can be used to change the display of interwik...
$wgAutoloadAttemptLowercase
Switch controlling legacy case-insensitive classloading.
$wgGroupsAddToSelf
A map of group names that the user is in, to group names that those users are allowed to add or revok...
$wgSidebarCacheExpiry
Expiry time for the sidebar cache, in seconds.
$wgShowExceptionDetails
If set to true, uncaught exceptions will print the exception message and a complete stack trace to ou...
$wgCrossSiteAJAXdomains
Settings for incoming cross-site AJAX requests: Newer browsers support cross-site AJAX when the targe...
$wgHiddenPrefs
An array of preferences to not show for the user.
$wgFeed
Provide syndication feeds (RSS, Atom) for, e.g., Recentchanges, Newpages.
$wgCookieSecure
Whether the "secure" flag should be set on the cookie.
const CONTENT_MODEL_TEXT
Definition: Defines.php:218
$wgCdnServers
List of proxy servers to purge on changes; default port is 80.
$wgEditPageFrameOptions
The X-Frame-Options header to send on pages sensitive to clickjacking attacks, such as edit pages...
$wgFileCacheDepth
Depth of the subdirectory hierarchy to be created under $wgFileCacheDirectory.
$wgLogRestrictions
This restricts log access to those who have a certain right Users without this will not see it in the...
$wgMediaHandlers
Plugins for media file type handling.
string $wgCentralIdLookupProvider
Central ID lookup provider to use by default.
$wgHKDFAlgorithm
Algorithm for hmac-based key derivation function (fast, cryptographically secure random numbers)...
$wgTmpDirectory
The local filesystem path to a temporary directory.
$wgUploadDialog
Configuration for file uploads using the embeddable upload dialog (https://www.mediawiki.org/wiki/Upload_dialog).
const AV_SCAN_FAILED
Definition: Defines.php:94
$wgDeprecationReleaseLimit
Release limitation to wfDeprecated warnings, if set to a release number development warnings will not...
$wgRestrictDisplayTitle
For consistency, restrict DISPLAYTITLE to text that normalizes to the same canonical DB key...
$wgEnableSpecialMute
Set to true to enable the Special Mute page.
$wgMimeTypeFile
Sets the MIME type definition file to use by includes/libs/mime/MimeAnalyzer.php. ...
$wgCdnServersNoPurge
As with $wgCdnServers, except these servers aren&#39;t purged on page changes; use to set a list of trust...
$wgRevokePermissions
Permission keys revoked from users in each group.
array $wgReportToEndpoints
List of endpoints for the Reporting API.
$wgShowDBErrorBacktrace
If true, show a backtrace for database errors.
array bool $wgEnableBotPasswords
Whether to enable bot passwords.
$wgAPIModules
API module extensions.
$wgJobClasses
Maps jobs to their handlers; extensions can add to this to provide custom jobs.
$wgWANObjectCaches
Advanced WAN object cache configuration.
$wgRawHtml
Allow raw, unchecked HTML in "<html>...</html>" sections.
$wgUniversalEditButton
Enable the UniversalEditButton for browsers that support it (currently only Firefox with an extension...
const NS_TEMPLATE
Definition: Defines.php:70
int [] $wgReauthenticateTime
Time frame for re-authentication.
$wgAuthManagerAutoConfig
string $wgSharedUploadDBprefix
Shortcut for the ForeignDBRepo &#39;tablePrefix&#39; setting in $wgForeignFileRepos.
const CONTENT_MODEL_JSON
Definition: Defines.php:219
$wgAllowCopyUploads
Allow for upload to be copied from an URL.
$wgMaxGeneratedPPNodeCount
A complexity limit on template expansion: the maximum number of elements generated by Preprocessor::p...
$wgExtraGenderNamespaces
Same as above, but for namespaces with gender distinction.
$wgContentHandlerTextFallback
How to react if a plain text version of a non-text Content object is requested using ContentHandler::...
$wgAppleTouchIcon
The URL path of the icon for iPhone and iPod Touch web app bookmarks.
$wgResourceLoaderMaxage
Maximum time in seconds to cache resources served by ResourceLoader.
$wgCategoryCollation
Specify how category names should be sorted, when listed on a category page.
$wgAllowJavaUploads
Allow Java archive uploads.
$wgLogNames
Lists the message key string for each log type.
$wgHTTPProxy
Proxy to use for CURL requests.
const MEDIATYPE_BITMAP
Definition: defines.php:28
$wgImportTargetNamespace
Optional default target namespace for interwiki imports.
$wgUseNPPatrol
Use new page patrolling to check new pages on Special:Newpages.
$wgCompressRevisions
We can also compress text stored in the &#39;text&#39; table.
$wgAttemptFailureEpoch
Certain operations are avoided if there were too many recent failures, for example, thumbnail generation.
$wgUserEmailUseReplyTo
If true put the sending user&#39;s email in a Reply-To header instead of From (false).
$wgDebugLogFile
Filename for debug logging.
array $wgOverrideUcfirstCharacters
List of Unicode characters for which capitalization is overridden in Language::ucfirst.
$wgTranslateNumerals
For Hindi and Arabic use local numerals instead of Western style (0-9) numerals in interface...
$wgRestrictionTypes
Set of available actions that can be restricted via action=protect You probably shouldn&#39;t change this...
$wgGenerateThumbnailOnParse
Allow thumbnail rendering on page view.
$wgDBWindowsAuthentication
Use Windows Authentication instead of $wgDBuser / $wgDBpassword for MS SQL Server.
$wgGitRepositoryViewers
Map GIT repository URLs to viewer URLs to provide links in Special:Version.
array $wgRangeContributionsCIDRLimit
Shortest CIDR limits that can be checked in any individual range check at Special:Contributions.
$wgRCChangedSizeThreshold
If the difference between the character counts of the text before and after the edit is below that va...
bool $wgPriorityHints
Enable client-side Priority Hints.
$wgVaryOnXFP
Add X-Forwarded-Proto to the Vary and Key headers for API requests and RSS/Atom feeds.
$wgUseLocalMessageCache
Set this to true to maintain a copy of the message cache on the local server.
$wgRCMaxAge
Recentchanges items are periodically purged; entries older than this many seconds will go...
$wgEnableEmail
Set to true to enable the e-mail basic features: Password reminders, etc.
$wgCacheVaryCookies
A list of cookies that vary the cache (for use by extensions)
$wgDnsBlacklistUrls
List of DNS blacklists to use, if $wgEnableDnsBlacklist is true.
$wgPasswordResetRoutes
Whether to allow password resets ("enter some identifying data, and we&#39;ll send an email with a tempor...
$wgSessionPbkdf2Iterations
Number of internal PBKDF2 iterations to use when deriving session secrets.
$wgUseTinyRGBForJPGThumbnails
When this variable is true and JPGs use the sRGB ICC profile, swaps it for the more lightweight (and ...
$wgSessionSecret
Secret for session storage.
const CACHE_MEMCACHED
Definition: Defines.php:84
const AV_SCAN_ABORTED
Definition: Defines.php:93
$wgCacheDirectory
Directory for caching data in the local filesystem.
array $wgSpecialSearchFormOptions
Options for Special:Search completion widget form created by SearchFormWidget class.
$wgUsersNotifiedOnAllChanges
Array of usernames who will be sent a notification email for every change which occurs on a wiki...
$wgEnableMagicLinks
Enable the magic links feature of automatically turning ISBN xxx, PMID xxx, RFC xxx into links...
$wgDebugDumpSql
Write SQL queries to the debug log.
$wgInvalidateCacheOnLocalSettingsChange
Invalidate various caches when LocalSettings.php changes.
$wgGroupPermissions
Permission keys given to users in each group.
$wgHideIdentifiableRedirects
Should MediaWiki attempt to protect user&#39;s privacy when doing redirects? Keep this true if access cou...
$wgSharpenParameter
Sharpening parameter to ImageMagick.
$wgShowDebug
Display debug data at the bottom of the main content area.
$wgMaxSigChars
Maximum number of Unicode characters in signature.
$wgAllowSchemaUpdates
Allow schema updates.
$wgDebugRawPage
If true, log debugging data from action=raw and load.php.
$wgCheckFileExtensions
This is a flag to determine whether or not to check file extensions on upload.
$wgImportSources
List of interwiki prefixes for wikis we&#39;ll accept as sources for Special:Import and API action=import...
$wgDisableQueryPageUpdate
Set this to an array of special page names to prevent maintenance/updateSpecialPages.php from updating those pages.
$wgExtraLanguageCodes
List of mappings from one language code to another.
$wgStyleSheetPath
The URL path to index.php.
$wgExiv2Command
Some tests and extensions use exiv2 to manipulate the Exif metadata in some image formats...
$wgStatsdServer
Destination of statsd metrics.
$wgSMTP
SMTP Mode.
$wgContentHandlerUseDB
Set to false to disable use of the database fields introduced by the ContentHandler facility...
$wgEnableUploads
Allow users to upload files.
$wgPagePropLinkInvalidations
Page property link table invalidation lists.
$wgUseSiteCss
Use the site&#39;s Cascading Style Sheets (CSS)?
$wgDisableHardRedirects
Disable redirects to special pages and interwiki redirects, which use a 302 and have no "redirected f...
$wgUseImageMagick
Resizing can be done using PHP&#39;s internal image libraries or using ImageMagick or another third-party...
$wgNoFollowNsExceptions
Namespaces in which $wgNoFollowLinks doesn&#39;t apply.
$wgPhpCli
Executable path of the PHP cli binary.
$wgLanguageCode
Site language code.
$wgExportAllowListContributors
Return distinct author list (when not returning full history)
string $wgSharedUploadPath
Shortcut for the &#39;url&#39; setting of $wgForeignFileRepos.
$wgLoginLanguageSelector
Show a bar of language selection links in the user login and user registration forms; edit the "login...
const MEDIATYPE_VIDEO
Definition: defines.php:35
$wgSpamRegex
Edits matching these regular expressions in body text will be recognised as spam and rejected automat...
$wgExtraInterlanguageLinkPrefixes
List of additional interwiki prefixes that should be treated as interlanguage links (i...
$wgSquidPurgeUseHostHeader
Whether to use a Host header in purge requests sent to the proxy servers configured in $wgCdnServers...
static detectServer()
Work out an appropriate URL prefix containing scheme and host, based on information detected from $_S...
Definition: WebRequest.php:234
$wgCentralIdLookupProviders
Central ID lookup providers Key is the provider ID, value is a specification for ObjectFactory.
$wgRenderHashAppend
Append a configured value to the parser cache and the sitenotice key so that they can be kept separat...
$wgFeedDiffCutoff
When generating Recentchanges RSS/Atom feed, diffs will not be generated for pages larger than this s...
$wgBlockCIDRLimit
Limits on the possible sizes of range blocks.
$wgAllowRequiringEmailForResets
Temporary feature flag that controls whether users will see a checkbox allowing them to require provi...
$wgExtensionDirectory
Filesystem extensions directory.
$wgEnableJavaScriptTest
Allow running of javascript test suites via [[Special:JavaScriptTest]] (such as QUnit).
$wgEnotifMinorEdits
Potentially send notification mails on minor edits to pages.
string $wgSharedThumbnailScriptPath
Shortcut for the &#39;thumbScriptUrl&#39; setting of $wgForeignFileRepos.
$wgExtendedLoginCookieExpiration
Default login cookie lifetime, in seconds.
$wgRevisionCacheExpiry
Revision text may be cached in $wgMemc to reduce load on external storage servers and object extracti...
$wgStylePath
The URL path of the skins directory.
$wgMaxMsgCacheEntrySize
Maximum entry size in the message cache, in bytes.
array $wgOriginTrials
Origin Trials tokens.
array $wgFeaturePolicyReportOnly
List of Feature Policy Reporting types to enable.
$wgSpecialVersionShowHooks
Show the contents of $wgHooks in Special:Version.
$wgEnotifImpersonal
Send a generic mail instead of a personalised mail for each user.
$wgExternalServers
An array of external MySQL servers.
$wgPasswordPolicy
Password policy for the wiki.
array string bool $wgReferrerPolicy
Value for the referrer policy meta tag.
const NS_PROJECT
Definition: Defines.php:64
$wgShowEXIF
Show Exif data, on by default if available.
$wgRateLimitsExcludedIPs
Array of IPs / CIDR ranges which should be excluded from rate limits.
$wgParserCacheType
The cache type for storing article HTML.
$wgDefaultRobotPolicy
Default robot policy.
$wgDebugRedirects
If true, instead of redirecting, show a page with a link to the redirect destination.
$wgTrxProfilerLimits
Performance expectations for DB usage.
$wgExportAllowHistory
If set to false, disables the full-history option on Special:Export.
$wgAntivirusRequired
Determines if a failed virus scan (AV_SCAN_FAILED) will cause the file to be rejected.
$wgLegacyEncoding
Set this to eg &#39;ISO-8859-1&#39; to perform character set conversion when loading old revisions not marked...
$wgSVGConverterPath
If not in the executable PATH, specify the SVG converter path.
$wgMaxRedirects
Max number of redirects to follow when resolving redirects.
$wgJobQueueIncludeInMaxLagFactor
Whether to include the number of jobs that are queued for the API&#39;s maxlag parameter.
$wgCachePages
Allow client-side caching of pages.
$wgGitBin
Fully specified path to git binary.
$wgUploadMissingFileUrl
Point the upload link for missing files to an external URL, as with $wgUploadNavigationUrl.
$wgExportFromNamespaces
Whether to allow the "export all pages in namespace" option.
$wgUseFileCache
This will cache static pages for non-logged-in users to reduce database traffic on public sites...
$wgCapitalLinks
Set this to false to avoid forcing the first letter of links to capitals.
$wgResourceLoaderStorageEnabled
Whether ResourceLoader should attempt to persist modules in localStorage on browsers that support the...
$wgNoFollowLinks
If true, external URL links in wiki text will be given the rel="nofollow" attribute as a hint to sear...
$wgMinUploadChunkSize
Minimum upload chunk size, in bytes.
$wgMainCacheType
Main cache type.
$wgSearchHighlightBoundaries
Regexp to match word boundaries, defaults for non-CJK languages should be empty for CJK since the wor...
$wgAPIUselessQueryPages
The ApiQueryQueryPages module should skip pages that are redundant to true API queries.
$wgIllegalFileChars
Additional characters that are not allowed in filenames.
$wgExperiencedUserEdits
Name of the external diff engine to use.
$wgWhitelistRead
Pages anonymous user may see, set as an array of pages titles.
$wgHTTPImportTimeout
Timeout for HTTP requests done internally for transwiki imports, in seconds.
$wgUseAjax
Enable AJAX framework.
$wgDeletedDirectory
What directory to place deleted uploads in.
array $wgGrantPermissionGroups
Map of grants to their UI grouping.
$wgLocalisationCacheConf
Localisation cache configuration.
$wgActionFilteredLogs
List of log types that can be filtered by action types.
$wgAjaxEditStash
Have clients send edits to be prepared when filling in edit summaries.
$wgLogoHD
Array with URL paths to HD versions of the wiki logo.
$wgDBssl
Whether to use SSL in DB connection.
const NS_MEDIAWIKI_TALK
Definition: Defines.php:69
$wgExemptFromUserRobotsControl
An array of namespace keys in which the INDEX/__NOINDEX__ magic words will not function, so users can&#39;t decide whether pages in that namespace are indexed by search engines.
$wgInterwikiScopes
Specify number of domains to check for messages.
$wgValidSkinNames
List of valid skin names.
$wgUseFilePatrol
Use file patrolling to check new files on Special:Newfiles.
$wgLocalInterwikis
Array for multiple $wgLocalInterwiki values, in case there are several interwiki prefixes that point ...
$wgInvalidRedirectTargets
Array of invalid page redirect targets.
$wgHTMLFormAllowTableFormat
Temporary variable that allows HTMLForms to be rendered as tables.
int bool $wgExtensionInfoMTime
When loading extensions through the extension registration system, this can be used to invalidate the...
$wgThumbUpright
Adjust width of upright images when parameter &#39;upright&#39; is used This allows a nicer look for upright ...
$wgExtensionMessagesFiles
Extension messages files.
$wgAdaptiveMessageCache
Instead of caching everything, only cache those messages which have been customised in the site conte...
int bool $wgCopyUploadTimeout
Different timeout for upload by url This could be useful since when fetching large files...
const NS_PROJECT_TALK
Definition: Defines.php:65
$wgAjaxLicensePreview
Enable previewing licences via AJAX.
$wgSessionProviders
MediaWiki\Session\SessionProvider configuration.
$wgThumbnailBuckets
When defined, is an array of image widths used as buckets for thumbnail generation.
$wgMaxRedirectLinksRetrieved
Maximum number of links to a redirect page listed on Special:Whatlinkshere/RedirectDestination.
$wgExternalDiffEngine
Name of the external diff engine to use.
$wgDisableCookieCheck
By default, MediaWiki checks if the client supports cookies during the login process, so that it can display an informative error message if cookies are disabled.
$wgMessageCacheType
The cache type for storing the contents of the MediaWiki namespace.
$wgMiserMode
Disable database-intensive features.
$wgEnableUserEmailBlacklist
Set to true to enable user-to-user e-mail blacklist.
$wgMediaInTargetLanguage
Whether thumbnails should be generated in target language (usually, same as page language), if available.
$wgImplicitGroups
Implicit groups, aren&#39;t shown on Special:Listusers or somewhere else.
$wgXmlDumpSchemaVersion
The schema to use per default when generating XML dumps.
$wgSVGConverters
Scalable Vector Graphics (SVG) may be uploaded as images.
$wgMWLoggerDefaultSpi
Default service provider for creating Psr\Log\LoggerInterface instances.
$wgPreprocessorCacheThreshold
Preprocessor caching threshold Setting it to &#39;false&#39; will disable the preprocessor cache...
$wgUploadThumbnailRenderMap
When defined, is an array of thumbnail widths to be rendered at upload time.
$wgAllowUserJs
Allow user Javascript page? This enables a lot of neat customizations, but may increase security risk...
bool $wgUseSharedUploads
Shortcut for adding an entry to $wgForeignFileRepos.
$wgFixMalayalamUnicode
Set this to true to replace ZWJ-based chillu sequences in Malayalam text with their Unicode 5...
$wgBreakFrames
Break out of framesets.
$wgCapitalLinkOverrides
$wgHideUserContribLimit
The maximum number of edits a user can have and can still be hidden by users with the hideuser permis...
$wgBlockDisablesLogin
If true, blocked users will not be allowed to login.
$wgUseDatabaseMessages
Translation using MediaWiki: namespace.
$wgMaxPPNodeCount
A complexity limit on template expansion: the maximum number of nodes visited by PPFrame::expand() ...
$wgDummyLanguageCodes
Functionally the same as $wgExtraLanguageCodes, but deprecated.
$wgRCWatchCategoryMembership
Treat category membership changes as a RecentChange.
$wgShowUpdatedMarker
Show "Updated (since my last visit)" marker in RC view, watchlist and history view for watched pages ...
$wgProxyList
Big list of banned IP addresses.
$wgForcedRawSMaxage
Default maximum age for raw CSS/JS accesses.
$wgCrossSiteAJAXdomainExceptions
Domains that should not be allowed to make AJAX requests, even if they match one of the domains allow...
$wgRCShowWatchingUsers
Show watching users in recent changes, watchlist and page history views.
array bool $wgSearchRunSuggestedQuery
Controls whether zero-result search queries with suggestions should display results for these suggest...
$wgParserTestMediaHandlers
Media handler overrides for parser tests (they don&#39;t need to generate actual thumbnails, so a mock will do)
$wgWhitelistReadRegexp
Pages anonymous user may see, set as an array of regular expressions.
$wgDjvuRenderer
Path of the ddjvu DJVU renderer Enable this and $wgDjvuDump to enable djvu rendering example: $wgDjvu...
$wgAPIMaxLagThreshold
Maximum amount of DB lag on a majority of DB replica DBs to tolerate before forcing bots to retry any...
$wgTiffThumbnailType
Browsers don&#39;t support TIFF inline generally...
$wgImageLimits
Limit images on image description pages to a user-selectable limit.
$wgUseCategoryBrowser
Use experimental, DMOZ-like category browser.
$wgTextModelsToParse
Determines which types of text are parsed as wikitext.
$wgPutIPinRC
Log IP addresses in the recentchanges table; can be accessed only by extensions (e.g.
$wgAllUnicodeFixes
Set this to always convert certain Unicode sequences to modern ones regardless of the content languag...
$wgImgAuthUrlPathMap
Map of relative URL directories to match to internal mwstore:// base storage paths.
$wgAvailableRights
A list of available rights, in addition to the ones defined by the core.
$wgUsePathInfo
Whether to support URLs like index.php/Page_title These often break when PHP is set up in CGI mode...
$wgEnableAsyncUploads
Enable deferred upload tasks that use the job queue.
$wgProxyWhitelist
Proxy whitelist, list of addresses that are assumed to be non-proxy despite what the other methods mi...
int [] bool [] string [] $wgChangeCredentialsBlacklist
List of AuthenticationRequest class names which are not changeable through Special:ChangeCredentials ...
const NS_CATEGORY
Definition: Defines.php:74
$wgDjvuOutputExtension
File extension for the DJVU post processor output.
$wgExportPagelistLimit
Maximum number of pages returned by the GetPagesFromCategory and GetPagesFromNamespace functions...
$wgCachePrefix
Overwrite the caching key prefix with custom value.
$wgResourceBasePath
The default &#39;remoteBasePath&#39; value for instances of ResourceLoaderFileModule.
$wgThumbLimits
Adjust thumbnails on image pages according to a user setting.
$wgResourceModuleSkinStyles
Skin-specific styles for resource modules.
$wgFragmentMode
How should section IDs be encoded? This array can contain 1 or 2 elements, each of them can be one of...
bool $wgAssumeProxiesUseDefaultProtocolPorts
When the wiki is running behind a proxy and this is set to true, assumes that the proxy exposes the w...
$wgMaxTemplateDepth
Maximum recursion depth for templates within templates.
$wgCountCategorizedImagesAsUsed
On Special:Unusedimages, consider images "used", if they are put into a category. ...
$wgRestPath
The URL path to the REST API Defaults to "{$wgScriptPath}/rest.php".
array $wgLearnerEdits
The following variables define 3 user experience levels:
$wgMaximalPasswordLength
Specifies the maximal length of a user password (T64685).
$wgResourceLoaderValidateJS
If set to true, JavaScript modules loaded from wiki pages will be parsed prior to minification to val...
$wgObjectCacheSessionExpiry
The expiry time to use for session storage, in seconds.
$wgAPIRequestLog
Log file or URL (TCP or UDP) to log API requests to, or false to disable API request logging...
$wgLanguageConverterCacheType
The cache type for storing language conversion tables, which are used when parsing certain text and i...
$wgMaxInterlacingAreas
Array of max pixel areas for interlacing per MIME type.
$wgNoFollowDomainExceptions
If this is set to an array of domains, external links to these domain names (or any subdomains) will ...
$wgJpegQuality
When scaling a JPEG thumbnail, this is the quality we request from the backend.
$wgProfileOnly
Don&#39;t put non-profiling info into log file.
$wgDeleteRevisionsBatchSize
Page deletions with > this number of revisions will use the job queue.
$wgRCEngines
Used by RecentChange::getEngine to find the correct engine for a given URI scheme.
$wgQueryPageDefaultLimit
Integer defining default number of entries to show on special pages which are query-pages such as Spe...
$wgTranscludeCacheExpiry
Expiry time for transcluded templates cached in object cache.
$wgSharedDB
Shared database for multiple wikis.
$wgRemoveGroups
$wgDBservers
Database load balancer This is a two-dimensional array, an array of server info structures Fields are...
$wgImgAuthDetails
Set this to true if you use img_auth and want the user to see details on why access failed...
$wgUseMediaWikiUIEverywhere
Temporary variable that applies MediaWiki UI wherever it can be supported.
$wgUseGzip
When using the file cache, we can store the cached HTML gzipped to save disk space.
$wgNewPasswordExpiry
The time, in seconds, when an emailed temporary password expires.
$wgMaxShellWallClockTime
Maximum wall clock time (i.e.
$wgSpecialPages
Special page list.
$wgDisableTitleConversion
Whether to enable language variant conversion for links.
$wgMetaNamespaceTalk
Name of the project talk namespace.
$wgMimeDetectorCommand
Sets an external MIME detector program.
$wgRateLimits
Simple rate limiter options to brake edit floods.
$wgCdnMaxAge
Cache TTL for the CDN sent as s-maxage (without ESI) or Surrogate-Control (with ESI).
$wgInterwikiMagic
Treat language links as magic connectors, not inline links.
bool $wgElementTiming
Enable Element Timing.
$wgDisabledVariants
Disabled variants array of language variant conversion.
$wgRightsPage
Override for copyright metadata.
int [] bool [] $wgAllowSecuritySensitiveOperationIfCannotReauthenticate
Whether to allow security-sensitive operations when re-authentication is not possible.
$wgUseRCPatrol
Use RC Patrolling to check for vandalism (from recent changes and watchlists) New pages and new files...
$wgRightsText
If either $wgRightsUrl or $wgRightsPage is specified then this variable gives the text for the link...
$wgDebugAPI
WARNING: SECURITY THREAT - debug use only.
$wgGalleryOptions
Parameters for the "<gallery>" tag.
$wgAutopromoteOnceLogInRC
Put user rights log entries for autopromotion in recent changes?
$wgExperiencedUserMemberSince
Name of the external diff engine to use.
$wgVerifyMimeTypeIE
Determines whether extra checks for IE type detection should be applied.
$wgEnableUserEmail
Set to true to enable user-to-user e-mail.
$wgSessionName
Override to customise the session name.
$wgSearchTypeAlternatives
Alternative search types Sometimes you want to support multiple search engines for testing...
$wgApiFrameOptions
Disallow framing of API pages directly, by setting the X-Frame-Options header.
$wgParserConf
Parser configuration.
$wgThumbnailMinimumBucketDistance
When using thumbnail buckets as defined above, this sets the minimum distance to the bucket above the...
$wgExportAllowAll
Whether to allow exporting the entire wiki into a single file.
$wgMaxTocLevel
Maximum indent level of toc.
const NS_FILE_TALK
Definition: Defines.php:67
$wgLocaltimezone
Fake out the timezone that the server thinks it&#39;s in.
$wgMaxShellTime
Maximum CPU time in seconds for shell processes under Linux.
$wgNamespacesToBeSearchedDefault
List of namespaces which are searched by default.
$wgDBTableOptions
MySQL table options to use during installation or update.
$wgTidyConfig
Configuration for HTML postprocessing tool.
$wgArticleRobotPolicies
Robot policies per article.
$wgCookieSetOnIpBlock
Whether to set a cookie when a logged-out user is blocked.
$wgHooks
Global list of hooks.
$wgHTCPMulticastTTL
HTCP multicast TTL.
$wgRCFilterByAge
Filter $wgRCLinkDays by $wgRCMaxAge to avoid showing links for numbers higher than what will be store...
$wgDisableAnonTalk
Disable links to talk pages of anonymous users (IPs) in listings on special pages like page history...
$wgCustomConvertCommand
Use another resizing converter, e.g.
$wgDisableLangConversion
Whether to enable language variant conversion.
$wgDefaultLanguageVariant
Default variant code, if false, the default will be the language code.
$wgStatsdSamplingRates
Sampling rate for statsd metrics as an associative array of patterns and rates.
$wgIncludeLegacyJavaScript
Whether to ensure the mediawiki.legacy library is loaded before other modules.
$wgAllowUserCssPrefs
Allow style-related user-preferences?
const NS_MEDIAWIKI
Definition: Defines.php:68
string [] $wgRemoveCredentialsBlacklist
List of AuthenticationRequest class names which are not removable through Special:RemoveCredentials a...
$wgLogActionsHandlers
The same as above, but here values are names of classes, not messages.
const SCHEMA_COMPAT_WRITE_BOTH
Definition: Defines.php:268
$wgAllowExternalImages
Whether to allow inline image pointing to other websites.
$wgAutopromote
Array containing the conditions of automatic promotion of a user to specific groups.
array $wgSoftwareTags
List of core tags to enable.
float $wgPriorityHintsRatio
Ratio of requests that should get Priority Hints when the feature is enabled.
$wgForceUIMsgAsContentMsg
When translating messages with wfMessage(), it is not always clear what should be considered UI messa...
$wgXMLMimeTypes
Additional XML types we can allow via MIME-detection.
$wgSVGMaxSize
Don&#39;t scale a SVG larger than this.
$wgPasswordSender
Sender email address for e-mail notifications.
$wgLearnerMemberSince
Name of the external diff engine to use.
$wgActiveUserDays
How many days user must be idle before he is considered inactive.
CONTENT_MODEL_JAVASCRIPT
Allow users to upload files.
$wgDebugLogPrefix
Prefix for debug log lines.
$wgDBname
Current wiki database name.
bool $wgPageLanguageUseDB
Enable page language feature Allows setting page language in database.
$wgAccountCreationThrottle
Number of accounts each IP address may create per specified period(s).
$wgRedirectOnLogin
Allow redirection to another page when a user logs in.
$wgMaxUploadSize
Max size for uploads, in bytes.
string [] $wgSoftBlockRanges
IP ranges that should be considered soft-blocked (anon-only, account creation allowed).
$wgAntivirusSetup
Configuration for different virus scanners.
$wgEmailAuthentication
Require email authentication before sending mail to an email address.
string $wgSharedUploadDirectory
Shortcut for the &#39;directory&#39; setting of $wgForeignFileRepos.
$wgSummarySpamRegex
Same as the above except for edit summaries.
$wgLocalVirtualHosts
Local virtual hosts.
$wgPageCreationLog
Maintain a log of page creations at Special:Log/create?
array $wgGrantPermissions
Map of (grant => right => boolean) Users authorize consumers (like Apps) to act on their behalf but o...
$wgShellLocale
Locale for LC_ALL, to provide a known environment for locale-sensitive operations.
$wgCookieExpiration
Default cookie lifetime, in seconds.
float [] $wgJobBackoffThrottling
Map of job types to how many job "work items" should be run per second on each job runner process...
$wgContentNamespaces
Array of namespaces which can be deemed to contain valid "content", as far as the site statistics are...
Value object for representing interwiki records.
Definition: Interwiki.php:27
string bool $wgBotPasswordsCluster
Cluster for the bot_passwords table If false, the normal cluster will be used.
$wgReadOnly
Set this to a string to put the wiki into read-only mode.
bool $wgEnablePartialBlocks
Flag to enable Partial Blocks.
$wgSessionCacheType
The cache type for storing session data.
$wgUploadPath
The URL path for the images directory.
$wgConf
wgConf hold the site configuration.
$wgApplyIpBlocksToXff
Whether to look at the X-Forwarded-For header&#39;s list of (potentially spoofed) IPs and apply IP blocks...
$wgFixArabicUnicode
Set this to true to replace Arabic presentation forms with their standard forms in the U+0600-U+06FF ...
$wgMemoryLimit
The minimum amount of memory that MediaWiki "needs"; MediaWiki will try to raise PHP&#39;s memory limit i...
$wgServiceWiringFiles
List of service wiring files to be loaded by the default instance of MediaWikiServices.
$wgEmergencyContact
Site admin email address.
$wgLegalTitleChars
Allowed title characters – regex character class Don&#39;t change this unless you know what you&#39;re doing...
$wgDiff3
Path to the GNU diff3 utility.
$wgFileExtensions
This is the list of preferred extensions for uploading files.
$wgPasswordConfig
Configuration for built-in password types.
$wgExtraNamespaces
Additional namespaces.
$wgDjvuDump
Path of the djvudump executable Enable this and $wgDjvuRenderer to enable djvu rendering example: $wg...
$wgReadOnlyFile
If this lock file exists (size > 0), the wiki will be forced into read-only mode. ...
$wgNamespaceProtection
Set the minimum permissions required to edit pages in each namespace.
$wgHTTPConnectTimeout
Timeout for connections done internally (in seconds) Only works for curl.
$wgInvalidPasswordReset
Specifies if users should be sent to a password-reset form on login, if their password doesn&#39;t meet t...
$wgUploadSizeWarning
Warn if uploaded files are larger than this (in bytes), or false to disable.
$wgLocalStylePath
The URL path of the skins directory.
$wgEnableCanonicalServerLink
Output a <link rel="canonical"> tag on every page indicating the canonical server which should be use...
const NS_CATEGORY_TALK
Definition: Defines.php:75
$wgLegacyJavaScriptGlobals
Whether or not to assign configuration variables to the global window object.
const NS_HELP
Definition: Defines.php:72
$wgHideInterlanguageLinks
Hide interlanguage links from the sidebar.
$wgMinimalPasswordLength
Specifies the minimal length of a user password.
$wgDBport
Database port number (for PostgreSQL and Microsoft SQL Server).
array $wgUnwatchedPageThreshold
If set to an integer, pages that are watched by this many users or more will not require the unwatche...
$wgAllowImageTag
A different approach to the above: simply allow the "<img>" tag to be used.
$wgMangleFlashPolicy
When OutputHandler is used, mangle any output that contains <cross-domain-policy>.
$wgTrivialMimeDetection
Switch for trivial MIME detection.
$wgJobTypeConf
Map of job types to configuration arrays.
$wgDBadminuser
Separate username for maintenance tasks.
const NS_HELP_TALK
Definition: Defines.php:73
const MEDIATYPE_AUDIO
Definition: defines.php:32
bool $wgHashedSharedUploadDirectory
Shortcut for the &#39;hashLevels&#39; setting of $wgForeignFileRepos.
$wgInterwikiExpiry
Expiry time for cache of interwiki table.
$wgInvalidUsernameCharacters
Characters to prevent during new account creations.
$wgUpgradeKey
When you run the web-based upgrade utility, it will tell you what to set this to in order to authoriz...
$wgScriptPath
The path we should point to.
$wgLocalInterwiki
The interwiki prefix of the current wiki, or false if it doesn&#39;t have one.
$wgEdititis
Display user edit counts in various prominent places.
$wgProfileLimit
Only record profiling info for pages that took longer than this.
$wgResourceLoaderSources
Extensions should register foreign module sources here.
$wgFeedLimit
Set maximum number of results to return in syndication feeds (RSS, Atom) for eg Recentchanges, Newpages.
array $wgNativeImageLazyLoading
Toggles native image lazy loading, via the "loading" attribute.
$wgConfigRegistry
Registry of factory functions to create config objects: The &#39;main&#39; key must be set, and the value should be a valid callable.
$wgEnableRestAPI
Enable the experimental REST API.
$wgPreviewOnOpenNamespaces
Which namespaces have special treatment where they should be preview-on-open Internally only Category...
$wgActions
Array of allowed values for the "title=foo&action=<action>" parameter.
$wgDefaultSkin
Default skin, for new users and anonymous visitors.
$wgWantedPagesThreshold
Number of links to a page required before it is deemed "wanted".
$wgLegacySchemaConversion
If set to true, the MediaWiki 1.4 to 1.5 schema conversion will create stub reference rows in the tex...
$wgExtensionAssetsPath
The URL path of the extensions directory.
$wgContentHandlers
Plugins for page content model handling.
$wgEnotifMaxRecips
Maximum number of users to mail at once when using impersonal mail.
string [] $wgRawHtmlMessages
List of messages which might contain raw HTML.
$wgSkipSkins
Specify the names of skins that should not be presented in the list of available skins in user prefer...
$wgAdvancedSearchHighlighting
Set to true to have nicer highlighted text in search results, by default off due to execution overhea...
global $wgCommandLineMode
$wgSlaveLagCritical
$wgGrammarForms
Some languages need different word forms, usually for different cases.
$wgUpdateRowsPerQuery
Number of rows to update per query.
$wgDBprefix
Current wiki database table name prefix.
$wgMaxCredits
Set this to the number of authors that you want to be credited below an article text.
const CACHE_ANYTHING
Definition: Defines.php:81
$wgAllowHTMLEmail
For parts of the system that have been updated to provide HTML email content, send both text and HTML...
$wgAPIListModules
API Query list module extensions.
$wgMaxAnimatedGifArea
Force thumbnailing of animated GIFs above this size to a single frame instead of an animated thumbnai...
$wgDBcompress
Whether to use compression in DB connection.
$wgSearchSuggestCacheExpiry
Expiry time for search suggestion responses.
$wgUploadStashScalerBaseUrl
To enable remote on-demand scaling, set this to the thumbnail base URL.
$wgDisableQueryPages
Disable all query pages if miser mode is on, not just some.
$wgCategoryPagingLimit
Paging limit for categories.
$wgCookiePath
Set this variable if you want to restrict cookies to a certain path within the domain specified by $w...
$wgAutoConfirmAge
Number of seconds an account is required to age before it&#39;s given the implicit &#39;autoconfirm&#39; group me...
$wgMaxJobDBWriteDuration
Name of the external diff engine to use.
$wgStyleDirectory
Filesystem stylesheets directory.
$wgLogHeaders
Lists the message key string for descriptive text to be shown at the top of each log type...
$wgDeleteRevisionsLimit
Optional to restrict deletion of pages with higher revision counts to users with the &#39;bigdelete&#39; perm...
$wgDjvuToXML
Path of the djvutoxml executable This works like djvudump except much, much slower as of version 3...
$wgCanonicalServer
Canonical URL of the server, to use in IRC feeds and notification e-mails.
$wgXhtmlNamespaces
Permit other namespaces in addition to the w3.org default.
$wgCopyUploadsFromSpecialUpload
Enable copy uploads from Special:Upload.
$wgAddGroups
$wgAddGroups and $wgRemoveGroups can be used to give finer control over who can assign which groups a...
$wgHashedUploadDirectory
Set this to false if you do not want MediaWiki to divide your images directory into many subdirectori...
$wgExtensionEntryPointListFiles
Array of files with list(s) of extension entry points to be used in maintenance/mergeMessageFileList...
$wgAPIMetaModules
API Query meta module extensions.
$wgAllowSlowParserFunctions
Enable slow parser functions.
$wgNamespaceContentModels
Associative array mapping namespace IDs to the name of the content model pages in that namespace shou...
const CONTENT_MODEL_CSS
Definition: Defines.php:217
$wgLoggedOutMaxAge
Cache TTL for the user agent sent as max-age, for logged out users.
$wgLogo
The URL path of the wiki logo.
$wgUseTwoButtonsSearchForm
Search form behavior.
$wgDisableTextSearch
Set this to true to disable the full text search feature.
$wgAllowImageMoving
Allows to move images and other media files.
bool $wgEnotifRevealEditorAddress
Allow sending of e-mail notifications with the editor&#39;s address in "Reply-To".
$wgLocalTZoffset
Set an offset from UTC in minutes to use for the default timezone setting for anonymous users and new...
$wgAllowTitlesInSVG
Obsolete, no longer used.
$wgInterwikiFallbackSite
Fallback site, if unable to resolve from cache.
$wgExportMaxHistory
If set nonzero, Special:Export requests for history of pages with more revisions than this will be re...
$wgFallbackSkin
Fallback skin used when the skin defined by $wgDefaultSkin can&#39;t be found.
$wgPageInfoTransclusionLimit
InfoAction retrieves a list of transclusion links (both to and from).
$wgSiteNotice
Site notice shown at the top of each page.
$wgAPIMaxResultSize
The maximum size (in bytes) of an API result.
$wgCleanSignatures
If true, removes (by substituting) templates in signatures.
$wgAutoConfirmCount
Number of edits an account requires before it is autoconfirmed.
$wgExtraLanguageNames
List of language names or overrides for default names in Names.php.
$wgDisableInternalSearch
Disable the internal MySQL-based search, to allow it to be implemented by an extension instead...
$wgJobRunRate
Number of jobs to perform per request.
$wgRCFeeds
Recentchanges items are periodically purged; entries older than this many seconds will go...
$wgUnwatchedPageSecret
If active watchers (per above) are this number or less, do not disclose it.
$wgMemCachedServers
The list of MemCached servers and port numbers.
$wgArticlePath
The URL path for primary article page views.
$wgTrustedMediaFormats
list of trusted media-types and MIME types.
$wgObjectCaches
Advanced object cache configuration.
$wgServer
URL of the server.
$wgNonincludableNamespaces
Pages in namespaces in this array can not be used as templates.
$wgGitInfoCacheDirectory
Directory where GitInfo will look for pre-computed cache files.
bool $wgReadOnlyWatchedItemStore
Set this to true to put the wiki watchlists into read-only mode.
const NS_TALK
Definition: Defines.php:61
$wgResourceLoaderDebug
The default debug mode (on/off) for of ResourceLoader requests.
$wgLockManagers
Array of configuration arrays for each lock manager.
$wgLBFactoryConf
Load balancer factory configuration To set up a multi-master wiki farm, set the class here to somethi...
const APCOND_EDITCOUNT
Definition: Defines.php:185
$wgBlockAllowsUTEdit
Set this to true to allow blocked users to edit their own user talk page.
$wgResourceLoaderStorageVersion
Cache version for client-side ResourceLoader module storage.
$wgUseSiteJs
Use the site&#39;s Javascript page?
$wgRCShowChangedSize
Show the amount of changed characters in recent changes.
$wgMemCachedPersistent
Use persistent connections to MemCached, which are shared across multiple requests.
$wgSharedPrefix
$wgDisableSearchUpdate
If you&#39;ve disabled search semi-permanently, this also disables updates to the table.
$wgUploadThumbnailRenderHttpCustomHost
When using the "http" wgUploadThumbnailRenderMethod, lets one specify a custom Host HTTP header...
$wgPropagateErrors
If true, the MediaWiki error handler passes errors/warnings to the default error handler after loggin...
This is a class for holding configuration settings, particularly for multi-wiki sites.
$wgSitemapNamespaces
Array of namespaces to generate a Google sitemap for when the maintenance/generateSitemap.php script is run, or false if one is to be generated for all namespaces.
$wgUserrightsInterwikiDelimiter
Character used as a delimiter when testing for interwiki userrights (In Special:UserRights, it is possible to modify users on different databases if the delimiter is used, e.g.
$wgAllowSiteCSSOnRestrictedPages
Whether to allow site-wide CSS (MediaWiki:Common.css and friends) on restricted pages like Special:Us...
$wgShowRollbackEditCount
The $wgShowRollbackEditCount variable is used to show how many edits can be rolled back...
$wgExtensionFunctions
A list of callback functions which are called once MediaWiki is fully initialised.
$wgAutoloadClasses
Array mapping class names to filenames, for autoloading.
array $wgVirtualRestConfig
Global configuration variable for Virtual REST Services.
$wgUploadBaseUrl
If set, this URL is added to the start of $wgUploadPath to form a complete upload URL...
$wgAsyncHTTPTimeout
Timeout for Asynchronous (background) HTTP requests, in seconds.
$wgUseCombinedLoginLink
Login / create account link behavior when it&#39;s possible for anonymous users to create an account...
string [] $wgLocalDatabases
Other wikis on this site, can be administered from a single developer account.
$wgMaxPPExpandDepth
$wgEnableImageWhitelist
If $wgAllowExternalImages is false, you can allow an on-wiki whitelist of regular expression fragment...
$wgUsePigLatinVariant
Whether to enable the pig Latin variant of English (en-x-piglatin), used to ease variant development ...
$wgCopyUploadProxy
Proxy to use for copy upload requests.
$wgRCLinkDays
List of Days options to list in the Special:Recentchanges and Special:Recentchangeslinked pages...
$wgMimeTypeBlacklist
Files with these MIME types will never be allowed as uploads if $wgVerifyMimeType is enabled...
$wgSlaveLagWarning
If lag is higher than $wgSlaveLagWarning, show a warning in some special pages (like watchlist)...
int $wgResourceLoaderMaxQueryLength
ResourceLoader will not generate URLs whose query string is more than this many characters long...
$wgLogTypes
The logging system has two levels: an event type, which describes the general category and can be vie...
$wgAPIMaxUncachedDiffs
The maximum number of uncached diffs that can be retrieved in one API request.
const CACHE_NONE
Definition: Defines.php:82
string $wgPHPSessionHandling
Whether to use PHP session handling ($_SESSION and session_*() functions)
$wgSharpenReductionThreshold
Reduction in linear dimensions below which sharpening will be enabled.
$wgAjaxUploadDestCheck
Enable AJAX check for file overwrite, pre-upload.
$wgResourceLoaderEnableJSProfiler
When enabled, execution of JavaScript modules is profiled client-side.
$wgSQLMode
SQL Mode - default is turning off all modes, including strict, if set.
string bool $wgBotPasswordsDatabase
Database name for the bot_passwords table.
$wgExternalLinkTarget
Set a default target for external links, e.g.
$wgLinkHolderBatchSize
LinkHolderArray batch size For debugging.
$wgDataCenterUpdateStickTTL
After a state-changing request is done by a client, this determines how many seconds that client shou...
$wgVerifyMimeType
Determines if the MIME type of uploaded files should be checked.
$wgStructuredChangeFiltersLiveUpdatePollingRate
Polling rate, in seconds, used by the &#39;live update&#39; and &#39;view newest&#39; features of the RCFilters app o...
$wgExternalStores
External stores allow including content from non database sources following URL links.
$wgSend404Code
Some web hosts attempt to rewrite all responses with a 404 (not found) status code, mangling or hiding MediaWiki&#39;s output.
$wgRightsIcon
Override for copyright metadata.
$wgSessionInsecureSecrets
If for some reason you can&#39;t install the PHP OpenSSL extension, you can set this to true to make Medi...
$wgFileBlacklist
Files with these extensions will never be allowed as uploads.
$wgAllowDisplayTitle
Allow DISPLAYTITLE to change title display.
$wgUploadNavigationUrl
Point the upload navigation link to an external URL Useful if you want to use a shared repository by ...
$wgOpenSearchDescriptionLength
Minimum length of extract in .
$wgHTCPRouting
Routing configuration for HTCP multicast purging.
$wgSiteTypes
Register handlers for specific types of sites.
$wgResponsiveImages
Generate and use thumbnails suitable for screens with 1.5 and 2.0 pixel densities.
$wgProfiler
Profiler configuration.
$wgIgnoreImageErrors
If set, inline scaled images will still produce "<img>" tags ready for output instead of showing an e...
$wgTrackingCategories
Array holding default tracking category names.
$wgUploadMaintenance
To disable file delete/restore temporarily.
const NS_USER_TALK
Definition: Defines.php:63
$wgEnableProfileInfo
Allow the profileinfo.php entrypoint to be used.
$wgDiff
Path to the GNU diff utility.
$wgSVGConverter
Pick a converter defined in $wgSVGConverters.
$wgPasswordReminderResendTime
Minimum time, in hours, which must elapse between password reminder emails for a given account...
$wgRCLinkLimits
List of Limits options to list in the Special:Recentchanges and Special:Recentchangeslinked pages...
$wgCascadingRestrictionLevels
Restriction levels that can be used with cascading protection.
$wgShowArchiveThumbnails
Show thumbnails for old images on the image description page.
$wgSharedSchema
$wgLoadScript
The URL path to load.php.
$wgNoReplyAddress
Reply-To address for e-mail notifications.
$wgDirectoryMode
Default value for chmoding of new directories.
$wgUseTeX
To use inline TeX, you need to compile &#39;texvc&#39; (in the &#39;math&#39; subdirectory of the MediaWiki package a...
$wgCacheEpoch
Set this to current time to invalidate all prior cached pages.
$wgFileCacheDirectory
Directory where the cached page will be saved.
$wgDevelopmentWarnings
If set to true MediaWiki will throw notices for some possible error conditions and for deprecated fun...
$wgVariantArticlePath
Like $wgArticlePath, but on multi-variant wikis, this provides a path format that describes which par...
$wgEnotifWatchlist
Allow users to enable email notification ("enotif") on watchlist changes.
$wgMaximumMovedPages
Maximum number of pages to move at once when moving subpages with a page.
return true
Definition: router.php:92
float bool $wgJobSerialCommitThreshold
Make job runners commit changes for replica DB-lag prone jobs one job at a time.
$wgActionPaths
To set &#39;pretty&#39; URL paths for actions other than plain page views, add to this array.
bool array string $wgInterwikiCache
Interwiki cache, either as an associative array or a path to a constant database (.cdb) file.
bool $wgFetchCommonsDescriptions
Shortcut for the &#39;fetchDescription&#39; setting of $wgForeignFileRepos.
$wgUseCdn
Enable/disable CDN.
$wgServerName
Server name.
$wgEnotifUserTalk
Allow users to enable email notification ("enotif") when someone edits their user talk page...
$wgUpdateCompatibleMetadata
If to automatically update the img_metadata field if the metadata field is outdated but compatible wi...
$wgAutopromoteOnce
Automatically add a usergroup to any user who matches certain conditions.
$wgEnableAutoRotation
If set to true, images that contain certain the exif orientation tag will be rotated accordingly...
bool array $wgCSPReportOnlyHeader
Controls Content-Security-Policy-Report-Only header.
$wgUploadDirectory
The filesystem path of the images directory.
$wgCdnMaxageSubstitute
Cache timeout for the CDN when a response is known to be wrong or incomplete (due to load) ...
$wgFilterLogTypes
Show/hide links on Special:Log will be shown for these log types.
bool $wgEnableWANCacheReaper
Verify and enforce WAN cache purges using reliable DB sources as streams.
const NS_TEMPLATE_TALK
Definition: Defines.php:71
$wgDjvuPostProcessor
Shell command for the DJVU post processor Default: pnmtojpeg, since ddjvu generates ppm output Set th...
$wgAmericanDates
Enable dates like &#39;May 12&#39; instead of &#39;12 May&#39;, if the default date format is &#39;dmy or mdy&#39;...
const CACHE_DB
Definition: Defines.php:83
$wgEnableDnsBlacklist
Whether to use DNS blacklists in $wgDnsBlacklistUrls to check for open proxies.
$wgResourceModules
Client-side resource modules.
$wgCdnReboundPurgeDelay
If set, any SquidPurge call on a URL or URLs will send a second purge no less than this many seconds ...
$wgAutoblockExpiry
Number of seconds before autoblock entries expire.
$wgAntivirus
Internal name of virus scanner.
$wgFeedClasses
Available feeds objects.
$wgCSPFalsePositiveUrls
List of urls which appear often to be triggering CSP reports but do not appear to be caused by actual...
$wgEnableSidebarCache
If on, the sidebar navigation links are cached for users with the current language set...
$wgSpecialPageCacheUpdates
Additional functions to be performed with updateSpecialPages.
$wgUsePrivateIPs
Should forwarded Private IPs be accepted?
$wgAjaxExportList
List of Ajax-callable functions.
$wgShowHostnames
Expose backend server host names through the API and various HTML comments.
$wgSearchForwardUrl
Set this to a URL to forward search requests to some external location.
$wgTransactionalTimeLimit
The minimum amount of time that MediaWiki needs for "slow" write request, particularly ones with mult...
$wgParserOutputHooks
Parser output hooks.
$wgFavicon
The URL path of the shortcut icon.
$wgMemCachedTimeout
Read/write timeout for MemCached server communication, in microseconds.