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.33.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 $wgStylePath = false;
203 
210 
217 
223 $wgExtensionDirectory = "{$IP}/extensions";
224 
230 $wgStyleDirectory = "{$IP}/skins";
231 
240 
246 
251 
257 
262 $wgLogo = false;
263 
290 $wgLogoHD = false;
291 
296 $wgFavicon = '/favicon.ico';
297 
304 
324 
340 
347 
356 
372 
375 /************************************************************************/
390 
394 $wgUploadStashMaxAge = 6 * 3600; // 6 hours
395 
400 
410 
418 $wgIllegalFileChars = ":\\/\\\\";
419 
425 
430 
446 
527 
542 
553 
583 
592 
601 
610 
617 $wgRepositoryBaseUrl = 'https://commons.wikimedia.org/wiki/File:';
618 
627 
637 
646 
655 
666 
677  // Fields to make available in the dialog. `true` means that this field is visible, `false` means
678  // that it is hidden. The "Name" field can't be hidden. Note that you also have to add the
679  // matching replacement to the 'filepage' format key below to make use of these.
680  'fields' => [
681  'description' => true,
682  'date' => false,
683  'categories' => false,
684  ],
685  // Suffix of localisation messages used to describe the license under which the uploaded file will
686  // be released. The same value may be set for both 'local' and 'foreign' uploads.
687  'licensemessages' => [
688  // The 'local' messages are used for local uploads on this wiki:
689  // * upload-form-label-own-work-message-generic-local
690  // * upload-form-label-not-own-work-message-generic-local
691  // * upload-form-label-not-own-work-local-generic-local
692  'local' => 'generic-local',
693  // The 'foreign' messages are used for cross-wiki uploads from other wikis to this wiki:
694  // * upload-form-label-own-work-message-generic-foreign
695  // * upload-form-label-not-own-work-message-generic-foreign
696  // * upload-form-label-not-own-work-local-generic-foreign
697  'foreign' => 'generic-foreign',
698  ],
699  // Upload comments to use for 'local' and 'foreign' uploads. This can also be set to a single
700  // string value, in which case it is used for both kinds of uploads. Available replacements:
701  // * $HOST - domain name from which a cross-wiki upload originates
702  // * $PAGENAME - wiki page name from which an upload originates
703  'comment' => [
704  'local' => '',
705  'foreign' => '',
706  ],
707  // Format of the file page wikitext to be generated from the fields input by the user.
708  'format' => [
709  // Wrapper for the whole page. Available replacements:
710  // * $DESCRIPTION - file description, as input by the user (only if the 'description' field is
711  // enabled), wrapped as defined below in the 'description' key
712  // * $DATE - file creation date, as input by the user (only if the 'date' field is enabled)
713  // * $SOURCE - as defined below in the 'ownwork' key, may be extended in the future
714  // * $AUTHOR - linked user name, may be extended in the future
715  // * $LICENSE - as defined below in the 'license' key, may be extended in the future
716  // * $CATEGORIES - file categories wikitext, as input by the user (only if the 'categories'
717  // field is enabled), or if no input, as defined below in the 'uncategorized' key
718  'filepage' => '$DESCRIPTION',
719  // Wrapped for file description. Available replacements:
720  // * $LANGUAGE - source wiki's content language
721  // * $TEXT - input by the user
722  'description' => '$TEXT',
723  'ownwork' => '',
724  'license' => '',
725  'uncategorized' => '',
726  ],
727 ];
728 
766 
782 
794 $wgShowEXIF = function_exists( 'exif_read_data' );
795 
802 
809 
816 
823 
829 
841 
858 $wgMaxUploadSize = 1024 * 1024 * 100; # 100MB
859 
867 
879 
886 
899 
908 
923 
932 $wgFileExtensions = [ 'png', 'gif', 'jpg', 'jpeg', 'webp' ];
933 
940  # HTML may contain cookie-stealing JavaScript and web bugs
941  'html', 'htm', 'js', 'jsb', 'mhtml', 'mht', 'xhtml', 'xht',
942  # PHP scripts may execute arbitrary code on the server
943  'php', 'phtml', 'php3', 'php4', 'php5', 'phps',
944  # Other types that may be interpreted by some servers
945  'shtml', 'jhtml', 'pl', 'py', 'cgi',
946  # May contain harmful executables for Windows victims
947  'exe', 'scr', 'dll', 'msi', 'vbs', 'bat', 'com', 'pif', 'cmd', 'vxd', 'cpl' ];
948 
954  # HTML may contain cookie-stealing JavaScript and web bugs
955  'text/html', 'text/javascript', 'text/x-javascript', 'application/x-shellscript',
956  # PHP scripts may execute arbitrary code on the server
957  'application/x-php', 'text/x-php',
958  # Other types that may be interpreted by some servers
959  'text/x-python', 'text/x-perl', 'text/x-bash', 'text/x-sh', 'text/x-csh',
960  # Client-side hazards on Internet Explorer
961  'text/scriptlet', 'application/x-msdownload',
962  # Windows metafile, client-side vulnerability on some systems
963  'application/x-msmetafile',
964 ];
965 
972 
979 
987 
995 
1000 
1012  MEDIATYPE_BITMAP, // all bitmap formats
1013  MEDIATYPE_AUDIO, // all audio formats
1014  MEDIATYPE_VIDEO, // all plain video formats
1015  "image/svg+xml", // svg (only needed if inline rendering of svg is not supported)
1016  "application/pdf", // PDF files
1017  # "application/x-shockwave-flash", //flash/shockwave movie
1018 ];
1019 
1028 
1034  'image/jpeg' => 'MockBitmapHandler',
1035  'image/png' => 'MockBitmapHandler',
1036  'image/gif' => 'MockBitmapHandler',
1037  'image/tiff' => 'MockBitmapHandler',
1038  'image/webp' => 'MockBitmapHandler',
1039  'image/x-ms-bmp' => 'MockBitmapHandler',
1040  'image/x-bmp' => 'MockBitmapHandler',
1041  'image/x-xcf' => 'MockBitmapHandler',
1042  'image/svg+xml' => 'MockSvgHandler',
1043  'image/vnd.djvu' => 'MockDjVuHandler',
1044 ];
1045 
1054  // the usual case
1056  // dumb version, no syntax highlighting
1058  // simple implementation, for use by extensions, etc.
1060  // dumb version, no syntax highlighting
1062  // plain text, for use by extensions, etc.
1064 ];
1065 
1072 
1082 
1086 $wgImageMagickConvertCommand = '/usr/bin/convert';
1087 
1093 
1098 
1103 
1109 
1123 
1129 $wgJpegTran = '/usr/bin/jpegtran';
1130 
1151 
1160 
1165 $wgExiv2Command = '/usr/bin/exiv2';
1166 
1172 $wgExiftool = '/usr/bin/exiftool';
1173 
1184  'ImageMagick' =>
1185  '$path/convert -background "#ffffff00" -thumbnail $widthx$height\! $input PNG:$output',
1186  'sodipodi' => '$path/sodipodi -z -w $width -f $input -e $output',
1187  'inkscape' => '$path/inkscape -z -w $width -f $input -e $output',
1188  'batik' => 'java -Djava.awt.headless=true -jar $path/batik-rasterizer.jar -w $width -d '
1189  . '$output $input',
1190  'rsvg' => '$path/rsvg-convert -w $width -h $height -o $output $input',
1191  'imgserv' => '$path/imgserv-wrapper -i svg -o png -w$width $input $output',
1192  'ImagickExt' => [ 'SvgHandler::rasterizeImagickExt' ],
1193 ];
1194 
1198 $wgSVGConverter = 'ImageMagick';
1199 
1204 
1209 
1215 
1228 
1238 
1253 
1261 
1276 
1283 $wgThumbnailEpoch = '20030516000000';
1284 
1292 
1305 
1314 
1319 
1326 
1333 
1369 
1370  # setup for clamav
1371  'clamav' => [
1372  'command' => 'clamscan --no-summary ',
1373  'codemap' => [
1374  "0" => AV_NO_VIRUS, # no virus
1375  "1" => AV_VIRUS_FOUND, # virus found
1376  "52" => AV_SCAN_ABORTED, # unsupported file format (probably immune)
1377  "*" => AV_SCAN_FAILED, # else scan failed
1378  ],
1379  'messagepattern' => '/.*?:(.*)/sim',
1380  ],
1381 ];
1382 
1387 
1392 
1398 $wgMimeTypeFile = 'includes/mime.types';
1399 
1404 $wgMimeInfoFile = 'includes/mime.info';
1405 
1418 
1425 
1431  'http://www.w3.org/2000/svg:svg' => 'image/svg+xml',
1432  'svg' => 'image/svg+xml',
1433  'http://www.lysator.liu.se/~alla/dia/:diagram' => 'application/x-dia-diagram',
1434  'http://www.w3.org/1999/xhtml:html' => 'text/html', // application/xhtml+xml?
1435  'html' => 'text/html', // application/xhtml+xml?
1436 ];
1437 
1447  [ 320, 240 ],
1448  [ 640, 480 ],
1449  [ 800, 600 ],
1450  [ 1024, 768 ],
1451  [ 1280, 1024 ]
1452 ];
1453 
1460  120,
1461  150,
1462  180,
1463  200,
1464  250,
1465  300
1466 ];
1467 
1478 
1495 
1507 
1520 
1527 
1535 
1543 
1559 
1566 
1571 
1579 
1591 
1598 
1604 $wgDjvuTxt = null;
1605 
1621 
1627 $wgDjvuPostProcessor = 'pnmtojpeg';
1628 
1633  # end of DJvu }
1635  # end of file uploads }
1637 
1638 /************************************************************************/
1649 
1659 
1666 
1673 
1679 
1686 
1697 
1703 
1707 $wgNewPasswordExpiry = 3600 * 24 * 7;
1708 
1713 
1719 
1724 $wgPasswordExpireGrace = 3600 * 24 * 7; // 7 days
1725 
1743 $wgSMTP = false;
1744 
1749 
1755 
1768 
1769 // TODO move UPO to preferences probably ?
1770 # If set to true, users get a corresponding option in their preferences and can choose to
1771 # enable or disable at their discretion
1772 # If set to false, the corresponding input form on the user preference page is suppressed
1773 # It call this to be a "user-preferences-option (UPO)"
1774 
1781 
1786 
1795 
1811 
1826 
1835 
1841 
1846 
1852  # end of email settings
1854 
1855 /************************************************************************/
1863 $wgDBserver = 'localhost';
1864 
1868 $wgDBport = 5432;
1869 
1873 $wgDBname = 'my_wiki';
1874 
1878 $wgDBuser = 'wikiuser';
1879 
1884 
1888 $wgDBtype = 'mysql';
1889 
1898 $wgDBssl = false;
1899 
1909 
1914 
1919 
1927 
1936 
1941 
1945 $wgDBTableOptions = 'ENGINE=InnoDB, DEFAULT CHARSET=binary';
1946 
1954 
1959 
1966 
1971 
1998 
2003 
2007 $wgSharedTables = [ 'user', 'user_properties' ];
2008 
2014 
2071 
2083 
2091 
2096 
2116 
2135 $wgDBmysql5 = false;
2136 
2164 
2179 
2186 
2191 
2196  # End of DB settings }
2198 
2199 /************************************************************************/
2211 
2224 
2240 
2256 
2264  # end text storage }
2266 
2267 /************************************************************************/
2276 
2281 
2286 
2291 
2296 
2301 
2306 
2312 
2320  # end performance hacks }
2322 
2323 /************************************************************************/
2337 
2356 
2364 
2372 
2379 
2389 
2404  CACHE_NONE => [ 'class' => EmptyBagOStuff::class, 'reportDupes' => false ],
2405  CACHE_DB => [ 'class' => SqlBagOStuff::class, 'loggroup' => 'SQLBagOStuff' ],
2406 
2407  CACHE_ANYTHING => [ 'factory' => 'ObjectCache::newAnything' ],
2408  CACHE_ACCEL => [ 'factory' => 'ObjectCache::getLocalServerInstance' ],
2409  CACHE_MEMCACHED => [ 'class' => MemcachedPhpBagOStuff::class, 'loggroup' => 'memcached' ],
2410 
2411  'db-replicated' => [
2412  'class' => ReplicatedBagOStuff::class,
2413  'readFactory' => [
2414  'class' => SqlBagOStuff::class,
2415  'args' => [ [ 'slaveOnly' => true ] ]
2416  ],
2417  'writeFactory' => [
2418  'class' => SqlBagOStuff::class,
2419  'args' => [ [ 'slaveOnly' => false ] ]
2420  ],
2421  'loggroup' => 'SQLBagOStuff',
2422  'reportDupes' => false
2423  ],
2424 
2425  'apc' => [ 'class' => APCBagOStuff::class, 'reportDupes' => false ],
2426  'apcu' => [ 'class' => APCUBagOStuff::class, 'reportDupes' => false ],
2427  'wincache' => [ 'class' => WinCacheBagOStuff::class, 'reportDupes' => false ],
2428  'memcached-php' => [ 'class' => MemcachedPhpBagOStuff::class, 'loggroup' => 'memcached' ],
2429  'memcached-pecl' => [ 'class' => MemcachedPeclBagOStuff::class, 'loggroup' => 'memcached' ],
2430  'hash' => [ 'class' => HashBagOStuff::class, 'reportDupes' => false ],
2431 ];
2432 
2449 
2466  CACHE_NONE => [
2467  'class' => WANObjectCache::class,
2468  'cacheId' => CACHE_NONE,
2469  'channels' => []
2470  ]
2471  /* Example of a simple single data-center cache:
2472  'memcached-php' => [
2473  'class' => WANObjectCache::class,
2474  'cacheId' => 'memcached-php',
2475  'channels' => [ 'purge' => 'wancache-main-memcached-purge' ]
2476  ]
2477  */
2478 ];
2479 
2492 
2507 $wgMainStash = 'db-replicated';
2508 
2514 
2519 
2524 
2529 
2547 
2554 
2559 
2563 $wgMemCachedServers = [ '127.0.0.1:11211' ];
2564 
2570 
2575 
2588 
2596 
2620  'class' => LocalisationCache::class,
2621  'store' => 'detect',
2622  'storeClass' => false,
2623  'storeDirectory' => false,
2624  'manualRecache' => false,
2625 ];
2626 
2631 
2640 $wgCacheEpoch = '20030516000000';
2641 
2647 
2654 
2662 
2668 
2674 
2685 
2690 
2697 $wgUseGzip = false;
2698 
2706 
2717 
2734  # end of cache settings
2736 
2737 /************************************************************************/
2754 $wgUseSquid = false;
2755 
2760 $wgUseESI = false;
2761 
2769 
2779 
2789 
2798 
2805 
2821 
2828 
2835 
2845 
2853 
2875 
2923 
2929 
2934  # end of HTTP proxy settings
2936 
2937 /************************************************************************/
2959 
2965 
2976 
2981 
2986 
3001 
3006 
3021  // Language codes of macro languages, which get mapped to the main language
3022  'bh' => 'bho', // Bihari language family
3023  'no' => 'nb', // Norwegian language family
3024 
3025  // Language variants which get mapped to the main language
3026  'simple' => 'en', // Simple English
3027 ];
3028 
3036 
3048 
3061 
3073 
3085 
3099 
3105 
3111 
3117 
3122 
3127 
3132 
3137 
3142 
3148 
3159 
3178 
3185 
3206 
3231 
3242  # End of language/charset settings
3244 
3245 /*************************************************************************/
3253 $wgMimeType = 'text/html';
3254 
3263 
3272 
3280 $wgHtml5 = true;
3281 
3291 
3300 
3308 
3317 
3333 
3342 
3347 $wgDefaultSkin = 'vector';
3348 
3354 $wgFallbackSkin = 'fallback';
3355 
3362 
3367 
3374 
3381 
3389 
3394 
3399 
3405 
3426 
3438 
3443 
3472 $wgFragmentMode = [ 'legacy', 'html5' ];
3473 
3483 
3515  "copyright" => [
3516  "copyright" => [], // placeholder for the built in copyright icon
3517  ],
3518  "poweredby" => [
3519  "mediawiki" => [
3520  // Defaults to point at
3521  // "$wgResourceBasePath/resources/assets/poweredby_mediawiki_88x31.png"
3522  // plus srcset for 1.5x, 2x resolution variants.
3523  "src" => null,
3524  "url" => "//www.mediawiki.org/",
3525  "alt" => "Powered by MediaWiki",
3526  ]
3527  ],
3528 ];
3529 
3537 
3541 $wgEdititis = false;
3542 
3555 
3566 
3574 
3584  # End of output format settings }
3586 
3587 /*************************************************************************/
3610 
3700 
3712 
3718 
3736  'versioned' => [
3737  'server' => 30 * 24 * 60 * 60, // 30 days
3738  'client' => 30 * 24 * 60 * 60, // 30 days
3739  ],
3740  'unversioned' => [
3741  'server' => 5 * 60, // 5 minutes
3742  'client' => 5 * 60, // 5 minutes
3743  ],
3744 ];
3745 
3752 
3759 
3786 
3801 
3810 
3820 
3826 
3834 
3847  # End of ResourceLoader settings }
3849 
3850 /*************************************************************************/
3860 
3869 
3897 
3905 
3925 
3950 $wgLegalTitleChars = " %!\"$&'()*,\\-.\\/0-9:;=?@A-Z\\\\^_`a-z~\\x80-\\xFF+";
3951 
3958 
3968 
3973 
3998 
4006 
4011  # end of Interwiki caching settings.
4013 
4022 $wgSitesCacheFile = false;
4023  # end of SiteStore caching settings.
4025 
4041 $wgRedirectSources = false;
4042 
4051 
4067 
4073  NS_TALK => true,
4074  NS_USER => true,
4075  NS_USER_TALK => true,
4076  NS_PROJECT => true,
4077  NS_PROJECT_TALK => true,
4078  NS_FILE_TALK => true,
4079  NS_MEDIAWIKI => true,
4080  NS_MEDIAWIKI_TALK => true,
4081  NS_TEMPLATE => true,
4082  NS_TEMPLATE_TALK => true,
4083  NS_HELP => true,
4084  NS_HELP_TALK => true,
4086 ];
4087 
4104 
4112 
4120 
4129 
4136 
4147 $wgInvalidRedirectTargets = [ 'Filepath', 'Mypage', 'Mytalk', 'Redirect' ];
4148  # End of title and interwiki settings }
4150 
4151 /************************************************************************/
4179  'class' => Parser::class,
4180  # 'preprocessorClass' => Preprocessor_Hash::class,
4181 ];
4182 
4187 
4193 
4204 
4212 
4217 
4229  'bitcoin:', 'ftp://', 'ftps://', 'geo:', 'git://', 'gopher://', 'http://',
4230  'https://', 'irc://', 'ircs://', 'magnet:', 'mailto:', 'mms://', 'news:',
4231  'nntp://', 'redis://', 'sftp://', 'sip:', 'sips:', 'sms:', 'ssh://',
4232  'svn://', 'tel:', 'telnet://', 'urn:', 'worldwind://', 'xmpp:', '//'
4233 ];
4234 
4239 
4244 
4258 
4271 
4281 
4301 $wgTidyConfig = [ 'driver' => 'RemexHtml' ];
4302 
4308 $wgRawHtml = false;
4309 
4320 
4328 
4334 
4348 $wgNoFollowDomainExceptions = [ 'mediawiki.org' ];
4349 
4354 
4361 
4367 
4373 
4378 
4384 
4392  'ISBN' => false,
4393  'PMID' => false,
4394  'RFC' => false
4395 ];
4396  # end of parser settings }
4398 
4399 /************************************************************************/
4421 
4430  # End of statistics }
4432 
4433 /************************************************************************/
4444  'local' => [ 'class' => LocalIdLookup::class ],
4445 ];
4446 
4452 
4479  'policies' => [
4480  'bureaucrat' => [
4481  'MinimalPasswordLength' => 8,
4482  'MinimumPasswordLengthToLogin' => 1,
4483  'PasswordCannotMatchUsername' => true,
4484  'PasswordCannotBePopular' => 25,
4485  'PasswordNotInLargeBlacklist' => true,
4486  ],
4487  'sysop' => [
4488  'MinimalPasswordLength' => 8,
4489  'MinimumPasswordLengthToLogin' => 1,
4490  'PasswordCannotMatchUsername' => true,
4491  'PasswordCannotBePopular' => 25,
4492  'PasswordNotInLargeBlacklist' => true,
4493  ],
4494  'interface-admin' => [
4495  'MinimalPasswordLength' => 8,
4496  'MinimumPasswordLengthToLogin' => 1,
4497  'PasswordCannotMatchUsername' => true,
4498  'PasswordCannotBePopular' => 25,
4499  'PasswordNotInLargeBlacklist' => true,
4500  ],
4501  'bot' => [
4502  'MinimalPasswordLength' => 8,
4503  'MinimumPasswordLengthToLogin' => 1,
4504  'PasswordCannotMatchUsername' => true,
4505  'PasswordNotInLargeBlacklist' => true,
4506  ],
4507  'default' => [
4508  'MinimalPasswordLength' => 1,
4509  'PasswordCannotMatchUsername' => true,
4510  'PasswordCannotMatchBlacklist' => true,
4511  'MaximalPasswordLength' => 4096,
4512  'PasswordNotInLargeBlacklist' => false,
4513  ],
4514  ],
4515  'checks' => [
4516  'MinimalPasswordLength' => 'PasswordPolicyChecks::checkMinimalPasswordLength',
4517  'MinimumPasswordLengthToLogin' => 'PasswordPolicyChecks::checkMinimumPasswordLengthToLogin',
4518  'PasswordCannotMatchUsername' => 'PasswordPolicyChecks::checkPasswordCannotMatchUsername',
4519  'PasswordCannotMatchBlacklist' => 'PasswordPolicyChecks::checkPasswordCannotMatchBlacklist',
4520  'MaximalPasswordLength' => 'PasswordPolicyChecks::checkMaximalPasswordLength',
4521  'PasswordCannotBePopular' => 'PasswordPolicyChecks::checkPopularPasswordBlacklist',
4522  'PasswordNotInLargeBlacklist' => 'PasswordPolicyChecks::checkPasswordNotInLargeBlacklist',
4523  ],
4524 ];
4525 
4546 
4552  'preauth' => [
4555  'sort' => 0,
4556  ],
4557  ],
4558  'primaryauth' => [
4559  // TemporaryPasswordPrimaryAuthenticationProvider should come before
4560  // any other PasswordAuthenticationRequest-based
4561  // PrimaryAuthenticationProvider (or at least any that might return
4562  // FAIL rather than ABSTAIN for a wrong password), or password reset
4563  // won't work right. Do not remove this (or change the key) or
4564  // auto-configuration of other such providers in extensions will
4565  // probably auto-insert themselves in the wrong place.
4568  'args' => [ [
4569  // Fall through to LocalPasswordPrimaryAuthenticationProvider
4570  'authoritative' => false,
4571  ] ],
4572  'sort' => 0,
4573  ],
4576  'args' => [ [
4577  // Last one should be authoritative, or else the user will get
4578  // a less-than-helpful error message (something like "supplied
4579  // authentication info not supported" rather than "wrong
4580  // password") if it too fails.
4581  'authoritative' => true,
4582  ] ],
4583  'sort' => 100,
4584  ],
4585  ],
4586  'secondaryauth' => [
4589  'sort' => 0,
4590  ],
4593  'sort' => 100,
4594  ],
4595  // Linking during login is experimental, enable at your own risk - T134952
4596  // MediaWiki\Auth\ConfirmLinkSecondaryAuthenticationProvider::class => [
4597  // 'class' => MediaWiki\Auth\ConfirmLinkSecondaryAuthenticationProvider::class,
4598  // 'sort' => 100,
4599  // ],
4602  'sort' => 200,
4603  ],
4604  ],
4605 ];
4606 
4646  'default' => 300,
4647 ];
4648 
4665  'default' => true,
4666 ];
4667 
4679 ];
4680 
4692 ];
4693 
4699 
4706 
4719 
4726 
4733 
4754  'A' => [
4755  'class' => MWOldPassword::class,
4756  ],
4757  'B' => [
4758  'class' => MWSaltedPassword::class,
4759  ],
4760  'pbkdf2-legacyA' => [
4762  'types' => [
4763  'A',
4764  'pbkdf2',
4765  ],
4766  ],
4767  'pbkdf2-legacyB' => [
4769  'types' => [
4770  'B',
4771  'pbkdf2',
4772  ],
4773  ],
4774  'bcrypt' => [
4775  'class' => BcryptPassword::class,
4776  'cost' => 9,
4777  ],
4778  'pbkdf2' => [
4779  'class' => Pbkdf2Password::class,
4780  'algo' => 'sha512',
4781  'cost' => '30000',
4782  'length' => '64',
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' => 0,
4864  'rcenhancedfilters-disable' => 0,
4865  'rclimit' => 50,
4866  'rows' => 25, // @deprecated since 1.29 No longer used in core
4867  'showhiddencats' => 0,
4868  'shownumberswatching' => 1,
4869  'skin' => false,
4870  'stubthreshold' => 0,
4871  'thumbsize' => 5,
4872  'underline' => 2,
4873  'uselivepreview' => 0,
4874  'usenewrc' => 1,
4875  'watchcreations' => 1,
4876  'watchdefault' => 1,
4877  'watchdeletion' => 0,
4878  'watchuploads' => 1,
4879  'watchlistdays' => 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 ];
4896 
4901 
4908 
4919 
4927 
4939 
4951  'args' => [ [
4952  'priority' => 30,
4953  'callUserSetCookiesHook' => true,
4954  ] ],
4955  ],
4958  'args' => [ [
4959  'priority' => 75,
4960  ] ],
4961  ],
4962 ];
4963  # end user accounts }
4965 
4966 /************************************************************************/
4975 
4984 
4989 
5005  'IPv4' => 16, # Blocks larger than a /16 (64k addresses) will not be allowed
5006  'IPv6' => 19,
5007 ];
5008 
5017 
5039 
5067 
5073 
5079 
5105 
5107 // Implicit group for all visitors
5108 $wgGroupPermissions['*']['createaccount'] = true;
5109 $wgGroupPermissions['*']['read'] = true;
5110 $wgGroupPermissions['*']['edit'] = true;
5111 $wgGroupPermissions['*']['createpage'] = true;
5112 $wgGroupPermissions['*']['createtalk'] = true;
5113 $wgGroupPermissions['*']['writeapi'] = true;
5114 $wgGroupPermissions['*']['viewmywatchlist'] = true;
5115 $wgGroupPermissions['*']['editmywatchlist'] = true;
5116 $wgGroupPermissions['*']['viewmyprivateinfo'] = true;
5117 $wgGroupPermissions['*']['editmyprivateinfo'] = true;
5118 $wgGroupPermissions['*']['editmyoptions'] = true;
5119 # $wgGroupPermissions['*']['patrolmarks'] = false; // let anons see what was patrolled
5120 
5121 // Implicit group for all logged-in accounts
5122 $wgGroupPermissions['user']['move'] = true;
5123 $wgGroupPermissions['user']['move-subpages'] = true;
5124 $wgGroupPermissions['user']['move-rootuserpages'] = true; // can move root userpages
5125 $wgGroupPermissions['user']['move-categorypages'] = true;
5126 $wgGroupPermissions['user']['movefile'] = true;
5127 $wgGroupPermissions['user']['read'] = true;
5128 $wgGroupPermissions['user']['edit'] = true;
5129 $wgGroupPermissions['user']['createpage'] = true;
5130 $wgGroupPermissions['user']['createtalk'] = true;
5131 $wgGroupPermissions['user']['writeapi'] = true;
5132 $wgGroupPermissions['user']['upload'] = true;
5133 $wgGroupPermissions['user']['reupload'] = true;
5134 $wgGroupPermissions['user']['reupload-shared'] = true;
5135 $wgGroupPermissions['user']['minoredit'] = true;
5136 $wgGroupPermissions['user']['editmyusercss'] = true;
5137 $wgGroupPermissions['user']['editmyuserjson'] = true;
5138 $wgGroupPermissions['user']['editmyuserjs'] = true;
5139 $wgGroupPermissions['user']['purge'] = true;
5140 $wgGroupPermissions['user']['sendemail'] = true;
5141 $wgGroupPermissions['user']['applychangetags'] = true;
5142 $wgGroupPermissions['user']['changetags'] = true;
5143 $wgGroupPermissions['user']['editcontentmodel'] = true;
5144 
5145 // Implicit group for accounts that pass $wgAutoConfirmAge
5146 $wgGroupPermissions['autoconfirmed']['autoconfirmed'] = true;
5147 $wgGroupPermissions['autoconfirmed']['editsemiprotected'] = true;
5148 
5149 // Users with bot privilege can have their edits hidden
5150 // from various log pages by default
5151 $wgGroupPermissions['bot']['bot'] = true;
5152 $wgGroupPermissions['bot']['autoconfirmed'] = true;
5153 $wgGroupPermissions['bot']['editsemiprotected'] = true;
5154 $wgGroupPermissions['bot']['nominornewtalk'] = true;
5155 $wgGroupPermissions['bot']['autopatrol'] = true;
5156 $wgGroupPermissions['bot']['suppressredirect'] = true;
5157 $wgGroupPermissions['bot']['apihighlimits'] = true;
5158 $wgGroupPermissions['bot']['writeapi'] = true;
5159 
5160 // Most extra permission abilities go to this group
5161 $wgGroupPermissions['sysop']['block'] = true;
5162 $wgGroupPermissions['sysop']['createaccount'] = true;
5163 $wgGroupPermissions['sysop']['delete'] = true;
5164 // can be separately configured for pages with > $wgDeleteRevisionsLimit revs
5165 $wgGroupPermissions['sysop']['bigdelete'] = true;
5166 // can view deleted history entries, but not see or restore the text
5167 $wgGroupPermissions['sysop']['deletedhistory'] = true;
5168 // can view deleted revision text
5169 $wgGroupPermissions['sysop']['deletedtext'] = true;
5170 $wgGroupPermissions['sysop']['undelete'] = true;
5171 $wgGroupPermissions['sysop']['editinterface'] = true;
5172 $wgGroupPermissions['sysop']['editsitejson'] = true;
5173 $wgGroupPermissions['sysop']['edituserjson'] = true;
5174 $wgGroupPermissions['sysop']['import'] = true;
5175 $wgGroupPermissions['sysop']['importupload'] = true;
5176 $wgGroupPermissions['sysop']['move'] = true;
5177 $wgGroupPermissions['sysop']['move-subpages'] = true;
5178 $wgGroupPermissions['sysop']['move-rootuserpages'] = true;
5179 $wgGroupPermissions['sysop']['move-categorypages'] = true;
5180 $wgGroupPermissions['sysop']['patrol'] = true;
5181 $wgGroupPermissions['sysop']['autopatrol'] = true;
5182 $wgGroupPermissions['sysop']['protect'] = true;
5183 $wgGroupPermissions['sysop']['editprotected'] = true;
5184 $wgGroupPermissions['sysop']['rollback'] = true;
5185 $wgGroupPermissions['sysop']['upload'] = true;
5186 $wgGroupPermissions['sysop']['reupload'] = true;
5187 $wgGroupPermissions['sysop']['reupload-shared'] = true;
5188 $wgGroupPermissions['sysop']['unwatchedpages'] = true;
5189 $wgGroupPermissions['sysop']['autoconfirmed'] = true;
5190 $wgGroupPermissions['sysop']['editsemiprotected'] = true;
5191 $wgGroupPermissions['sysop']['ipblock-exempt'] = true;
5192 $wgGroupPermissions['sysop']['blockemail'] = true;
5193 $wgGroupPermissions['sysop']['markbotedits'] = true;
5194 $wgGroupPermissions['sysop']['apihighlimits'] = true;
5195 $wgGroupPermissions['sysop']['browsearchive'] = true;
5196 $wgGroupPermissions['sysop']['noratelimit'] = true;
5197 $wgGroupPermissions['sysop']['movefile'] = true;
5198 $wgGroupPermissions['sysop']['unblockself'] = true;
5199 $wgGroupPermissions['sysop']['suppressredirect'] = true;
5200 # $wgGroupPermissions['sysop']['pagelang'] = true;
5201 # $wgGroupPermissions['sysop']['upload_by_url'] = true;
5202 $wgGroupPermissions['sysop']['mergehistory'] = true;
5203 $wgGroupPermissions['sysop']['managechangetags'] = true;
5204 $wgGroupPermissions['sysop']['deletechangetags'] = true;
5205 
5206 $wgGroupPermissions['interface-admin']['editinterface'] = true;
5207 $wgGroupPermissions['interface-admin']['editsitecss'] = true;
5208 $wgGroupPermissions['interface-admin']['editsitejson'] = true;
5209 $wgGroupPermissions['interface-admin']['editsitejs'] = true;
5210 $wgGroupPermissions['interface-admin']['editusercss'] = true;
5211 $wgGroupPermissions['interface-admin']['edituserjson'] = true;
5212 $wgGroupPermissions['interface-admin']['edituserjs'] = true;
5213 
5214 // Permission to change users' group assignments
5215 $wgGroupPermissions['bureaucrat']['userrights'] = true;
5216 $wgGroupPermissions['bureaucrat']['noratelimit'] = true;
5217 // Permission to change users' groups assignments across wikis
5218 # $wgGroupPermissions['bureaucrat']['userrights-interwiki'] = true;
5219 // Permission to export pages including linked pages regardless of $wgExportMaxLinkDepth
5220 # $wgGroupPermissions['bureaucrat']['override-export-depth'] = true;
5221 
5222 # $wgGroupPermissions['sysop']['deletelogentry'] = true;
5223 # $wgGroupPermissions['sysop']['deleterevision'] = true;
5224 // To hide usernames from users and Sysops
5225 # $wgGroupPermissions['suppress']['hideuser'] = true;
5226 // To hide revisions/log items from users and Sysops
5227 # $wgGroupPermissions['suppress']['suppressrevision'] = true;
5228 // To view revisions/log items hidden from users and Sysops
5229 # $wgGroupPermissions['suppress']['viewsuppressed'] = true;
5230 // For private suppression log access
5231 # $wgGroupPermissions['suppress']['suppressionlog'] = true;
5232 
5239 # $wgGroupPermissions['developer']['siteadmin'] = true;
5240 
5253 
5257 $wgImplicitGroups = [ '*', 'user', 'autoconfirmed' ];
5258 
5281 
5286 
5294 $wgRestrictionTypes = [ 'create', 'edit', 'move', 'upload' ];
5295 
5307 $wgRestrictionLevels = [ '', 'autoconfirmed', 'sysop' ];
5308 
5319 
5333 
5342 
5353 
5375 
5386 
5445  'autoconfirmed' => [ '&',
5448  ],
5449 ];
5450 
5470  'onEdit' => [],
5471 ];
5472 
5478 
5502 
5507 
5513 
5519 
5525 
5534 
5557  'count' => 0,
5558  'seconds' => 86400,
5559 ] ];
5560 
5573 
5578 
5585 
5609 $wgDnsBlacklistUrls = [ 'http.dnsbl.sorbs.net.' ];
5610 
5616 
5625 
5632 
5669  // Page edits
5670  'edit' => [
5671  'ip' => [ 8, 60 ],
5672  'newbie' => [ 8, 60 ],
5673  'user' => [ 90, 60 ],
5674  ],
5675  // Page moves
5676  'move' => [
5677  'newbie' => [ 2, 120 ],
5678  'user' => [ 8, 60 ],
5679  ],
5680  // File uploads
5681  'upload' => [
5682  'ip' => [ 8, 60 ],
5683  'newbie' => [ 8, 60 ],
5684  ],
5685  // Page rollbacks
5686  'rollback' => [
5687  'user' => [ 10, 60 ],
5688  'newbie' => [ 5, 120 ]
5689  ],
5690  // Triggering password resets emails
5691  'mailpassword' => [
5692  'ip' => [ 5, 3600 ],
5693  ],
5694  // Emailing other users using MediaWiki
5695  'emailuser' => [
5696  'ip' => [ 5, 86400 ],
5697  'newbie' => [ 5, 86400 ],
5698  'user' => [ 20, 86400 ],
5699  ],
5700  // Purging pages
5701  'purge' => [
5702  'ip' => [ 30, 60 ],
5703  'user' => [ 30, 60 ],
5704  ],
5705  // Purges of link tables
5706  'linkpurge' => [
5707  'ip' => [ 30, 60 ],
5708  'user' => [ 30, 60 ],
5709  ],
5710  // Files rendered via thumb.php or thumb_handler.php
5711  'renderfile' => [
5712  'ip' => [ 700, 30 ],
5713  'user' => [ 700, 30 ],
5714  ],
5715  // Same as above but for non-standard thumbnails
5716  'renderfile-nonstandard' => [
5717  'ip' => [ 70, 30 ],
5718  'user' => [ 70, 30 ],
5719  ],
5720  // Stashing edits into cache before save
5721  'stashedit' => [
5722  'ip' => [ 30, 60 ],
5723  'newbie' => [ 30, 60 ],
5724  ],
5725  // Adding or removing change tags
5726  'changetag' => [
5727  'ip' => [ 8, 60 ],
5728  'newbie' => [ 8, 60 ],
5729  ],
5730  // Changing the content model of a page
5731  'editcontentmodel' => [
5732  'newbie' => [ 2, 120 ],
5733  'user' => [ 8, 60 ],
5734  ],
5735 ];
5736 
5742 
5749 
5755 
5769  // Short term limit
5770  [ 'count' => 5, 'seconds' => 300 ],
5771  // Long term limit. We need to balance the risk
5772  // of somebody using this as a DoS attack to lock someone
5773  // out of their account, and someone doing a brute force attack.
5774  [ 'count' => 150, 'seconds' => 60 * 60 * 48 ],
5775 ];
5776 
5788 
5789 // @TODO: clean up grants
5790 // @TODO: auto-include read/editsemiprotected rights?
5791 
5792 $wgGrantPermissions['basic']['autoconfirmed'] = true;
5793 $wgGrantPermissions['basic']['autopatrol'] = true;
5794 $wgGrantPermissions['basic']['editsemiprotected'] = true;
5795 $wgGrantPermissions['basic']['ipblock-exempt'] = true;
5796 $wgGrantPermissions['basic']['nominornewtalk'] = true;
5797 $wgGrantPermissions['basic']['patrolmarks'] = true;
5798 $wgGrantPermissions['basic']['purge'] = true;
5799 $wgGrantPermissions['basic']['read'] = true;
5800 $wgGrantPermissions['basic']['skipcaptcha'] = true;
5801 $wgGrantPermissions['basic']['writeapi'] = true;
5802 
5803 $wgGrantPermissions['highvolume']['bot'] = true;
5804 $wgGrantPermissions['highvolume']['apihighlimits'] = true;
5805 $wgGrantPermissions['highvolume']['noratelimit'] = true;
5806 $wgGrantPermissions['highvolume']['markbotedits'] = true;
5807 
5808 $wgGrantPermissions['editpage']['edit'] = true;
5809 $wgGrantPermissions['editpage']['minoredit'] = true;
5810 $wgGrantPermissions['editpage']['applychangetags'] = true;
5811 $wgGrantPermissions['editpage']['changetags'] = true;
5812 
5813 $wgGrantPermissions['editprotected'] = $wgGrantPermissions['editpage'];
5814 $wgGrantPermissions['editprotected']['editprotected'] = true;
5815 
5816 // FIXME: Rename editmycssjs to editmyconfig
5817 $wgGrantPermissions['editmycssjs'] = $wgGrantPermissions['editpage'];
5818 $wgGrantPermissions['editmycssjs']['editmyusercss'] = true;
5819 $wgGrantPermissions['editmycssjs']['editmyuserjson'] = true;
5820 $wgGrantPermissions['editmycssjs']['editmyuserjs'] = true;
5821 
5822 $wgGrantPermissions['editmyoptions']['editmyoptions'] = true;
5823 
5824 $wgGrantPermissions['editinterface'] = $wgGrantPermissions['editpage'];
5825 $wgGrantPermissions['editinterface']['editinterface'] = true;
5826 $wgGrantPermissions['editinterface']['edituserjson'] = true;
5827 $wgGrantPermissions['editinterface']['editsitejson'] = true;
5828 
5829 $wgGrantPermissions['editsiteconfig'] = $wgGrantPermissions['editinterface'];
5830 $wgGrantPermissions['editsiteconfig']['editusercss'] = true;
5831 $wgGrantPermissions['editsiteconfig']['edituserjs'] = true;
5832 $wgGrantPermissions['editsiteconfig']['editsitecss'] = true;
5833 $wgGrantPermissions['editsiteconfig']['editsitejs'] = true;
5834 
5835 $wgGrantPermissions['createeditmovepage'] = $wgGrantPermissions['editpage'];
5836 $wgGrantPermissions['createeditmovepage']['createpage'] = true;
5837 $wgGrantPermissions['createeditmovepage']['createtalk'] = true;
5838 $wgGrantPermissions['createeditmovepage']['move'] = true;
5839 $wgGrantPermissions['createeditmovepage']['move-rootuserpages'] = true;
5840 $wgGrantPermissions['createeditmovepage']['move-subpages'] = true;
5841 $wgGrantPermissions['createeditmovepage']['move-categorypages'] = true;
5842 
5843 $wgGrantPermissions['uploadfile']['upload'] = true;
5844 $wgGrantPermissions['uploadfile']['reupload-own'] = true;
5845 
5846 $wgGrantPermissions['uploadeditmovefile'] = $wgGrantPermissions['uploadfile'];
5847 $wgGrantPermissions['uploadeditmovefile']['reupload'] = true;
5848 $wgGrantPermissions['uploadeditmovefile']['reupload-shared'] = true;
5849 $wgGrantPermissions['uploadeditmovefile']['upload_by_url'] = true;
5850 $wgGrantPermissions['uploadeditmovefile']['movefile'] = true;
5851 $wgGrantPermissions['uploadeditmovefile']['suppressredirect'] = true;
5852 
5853 $wgGrantPermissions['patrol']['patrol'] = true;
5854 
5855 $wgGrantPermissions['rollback']['rollback'] = true;
5856 
5857 $wgGrantPermissions['blockusers']['block'] = true;
5858 $wgGrantPermissions['blockusers']['blockemail'] = true;
5859 
5860 $wgGrantPermissions['viewdeleted']['browsearchive'] = true;
5861 $wgGrantPermissions['viewdeleted']['deletedhistory'] = true;
5862 $wgGrantPermissions['viewdeleted']['deletedtext'] = true;
5863 
5864 $wgGrantPermissions['viewrestrictedlogs']['suppressionlog'] = true;
5865 
5866 $wgGrantPermissions['delete'] = $wgGrantPermissions['editpage'] +
5867  $wgGrantPermissions['viewdeleted'];
5868 $wgGrantPermissions['delete']['delete'] = true;
5869 $wgGrantPermissions['delete']['bigdelete'] = true;
5870 $wgGrantPermissions['delete']['deletelogentry'] = true;
5871 $wgGrantPermissions['delete']['deleterevision'] = true;
5872 $wgGrantPermissions['delete']['undelete'] = true;
5873 
5874 $wgGrantPermissions['protect'] = $wgGrantPermissions['editprotected'];
5875 $wgGrantPermissions['protect']['protect'] = true;
5876 
5877 $wgGrantPermissions['viewmywatchlist']['viewmywatchlist'] = true;
5878 
5879 $wgGrantPermissions['editmywatchlist']['editmywatchlist'] = true;
5880 
5881 $wgGrantPermissions['sendemail']['sendemail'] = true;
5882 
5883 $wgGrantPermissions['createaccount']['createaccount'] = true;
5884 
5885 $wgGrantPermissions['privateinfo']['viewmyprivateinfo'] = true;
5886 
5892  // Hidden grants are implicitly present
5893  'basic' => 'hidden',
5894 
5895  'editpage' => 'page-interaction',
5896  'createeditmovepage' => 'page-interaction',
5897  'editprotected' => 'page-interaction',
5898  'patrol' => 'page-interaction',
5899 
5900  'uploadfile' => 'file-interaction',
5901  'uploadeditmovefile' => 'file-interaction',
5902 
5903  'sendemail' => 'email',
5904 
5905  'viewmywatchlist' => 'watchlist-interaction',
5906  'editviewmywatchlist' => 'watchlist-interaction',
5907 
5908  'editmycssjs' => 'customization',
5909  'editmyoptions' => 'customization',
5910 
5911  'editinterface' => 'administration',
5912  'editsiteconfig' => 'administration',
5913  'rollback' => 'administration',
5914  'blockusers' => 'administration',
5915  'delete' => 'administration',
5916  'viewdeleted' => 'administration',
5917  'viewrestrictedlogs' => 'administration',
5918  'protect' => 'administration',
5919  'createaccount' => 'administration',
5920 
5921  'highvolume' => 'high-volume',
5922 
5923  'privateinfo' => 'private-information',
5924 ];
5925 
5931 
5938 
5948  # end of user rights settings
5950 
5951 /************************************************************************/
5960 
5971  # end of proxy scanner settings
5973 
5974 /************************************************************************/
5982 $wgCookieExpiration = 30 * 86400;
5983 
5991 
5997 
6003 
6010 $wgCookieSecure = 'detect';
6011 
6019 
6026 
6033 
6038 
6043 
6052 
6061  # end of cookie settings }
6063 
6064 /************************************************************************/
6075 $wgUseTeX = false;
6076  # end LaTeX }
6078 
6079 /************************************************************************/
6093 
6098 
6105 
6112 
6122 
6132 
6139  // HTTP GET/HEAD requests.
6140  // Master queries should not happen on GET requests
6141  'GET' => [
6142  'masterConns' => 0,
6143  'writes' => 0,
6144  'readQueryTime' => 5,
6145  'readQueryRows' => 10000
6146  ],
6147  // HTTP POST requests.
6148  // Master reads and writes will happen for a subset of these.
6149  'POST' => [
6150  'readQueryTime' => 5,
6151  'writeQueryTime' => 1,
6152  'readQueryRows' => 100000,
6153  'maxAffected' => 1000
6154  ],
6155  'POST-nonwrite' => [
6156  'writes' => 0,
6157  'readQueryTime' => 5,
6158  'readQueryRows' => 10000
6159  ],
6160  // Deferred updates that run after HTTP response is sent for GET requests
6161  'PostSend-GET' => [
6162  'readQueryTime' => 5,
6163  'writeQueryTime' => 1,
6164  'readQueryRows' => 10000,
6165  'maxAffected' => 1000,
6166  // Log master queries under the post-send entry point as they are discouraged
6167  'masterConns' => 0,
6168  'writes' => 0,
6169  ],
6170  // Deferred updates that run after HTTP response is sent for POST requests
6171  'PostSend-POST' => [
6172  'readQueryTime' => 5,
6173  'writeQueryTime' => 1,
6174  'readQueryRows' => 100000,
6175  'maxAffected' => 1000
6176  ],
6177  // Background job runner
6178  'JobRunner' => [
6179  'readQueryTime' => 30,
6180  'writeQueryTime' => 5,
6181  'readQueryRows' => 100000,
6182  'maxAffected' => 500 // ballpark of $wgUpdateRowsPerQuery
6183  ],
6184  // Command-line scripts
6185  'Maintenance' => [
6186  'writeQueryTime' => 5,
6187  'maxAffected' => 1000
6188  ]
6189 ];
6190 
6222 
6246 ];
6247 
6254 
6260 
6265 
6270 
6280 
6288 
6300 
6305 
6311 
6316 
6323 
6329 
6336 
6394 
6401 
6407 
6415 
6427 
6436 
6444  'wanobjectcache:*' => 0.001
6445 ];
6446 
6453 
6461 
6476 
6481 
6487 
6496  # end of profiling, testing and debugging }
6498 
6499 /************************************************************************/
6508 
6514 
6519 $wgSearchHighlightBoundaries = '[\p{Z}\p{P}\p{C}]';
6520 
6532 
6542  'application/x-suggestions+json' => false,
6543  'application/x-suggestions+xml' => false,
6544 ];
6545 
6553 
6559 
6564 
6569 
6575 
6586  NS_MAIN => true,
6587 ];
6588 
6594 
6611 
6618 
6625 
6641 
6648  # end of search settings
6650 
6651 /************************************************************************/
6660 $wgDiff3 = '/usr/bin/diff3';
6661 
6665 $wgDiff = '/usr/bin/diff';
6666 
6673  NS_CATEGORY => true
6674 ];
6675 
6682 
6689  # end edit UI }
6691 
6692 /************************************************************************/
6702 if ( !isset( $wgCommandLineMode ) ) {
6703  $wgCommandLineMode = false;
6704 }
6711 
6721 
6728 
6737 
6748 
6752 $wgGitBin = '/usr/bin/git';
6753 
6768  'https://(?:[a-z0-9_]+@)?gerrit.wikimedia.org/r/(?:p/)?(.*)' =>
6769  'https://gerrit.wikimedia.org/g/%R/+/%H',
6770  'ssh://(?:[a-z0-9_]+@)?gerrit.wikimedia.org:29418/(.*)' =>
6771  'https://gerrit.wikimedia.org/g/%R/+/%H',
6772 ];
6773  # End of maintenance }
6775 
6776 /************************************************************************/
6786 $wgRCMaxAge = 90 * 24 * 3600;
6787 
6793 $wgWatchersMaxAge = 180 * 24 * 3600;
6794 
6802 
6811 
6816 $wgRCLinkLimits = [ 50, 100, 250, 500 ];
6817 
6822 $wgRCLinkDays = [ 1, 3, 7, 14, 30 ];
6823 
6878 
6885  'redis' => RedisPubSubFeedEngine::class,
6886  'udp' => UDPRCFeedEngine::class,
6887 ];
6888 
6901 
6911 
6918 
6927 
6938 
6942 $wgFeed = true;
6943 
6949 
6959 
6965 
6979 
6986  'rss' => RSSFeed::class,
6987  'atom' => AtomFeed::class,
6988 ];
6989 
6995 
7000 
7005 
7012 
7018 
7024 
7030 
7046  'mw-contentmodelchange' => true,
7047  'mw-new-redirect' => true,
7048  'mw-removed-redirect' => true,
7049  'mw-changed-redirect-target' => true,
7050  'mw-blank' => true,
7051  'mw-replace' => true,
7052  'mw-rollback' => true,
7053  'mw-undo' => true,
7054 ];
7055 
7064 
7090  'newpage' => [
7091  'letter' => 'newpageletter',
7092  'title' => 'recentchanges-label-newpage',
7093  'legend' => 'recentchanges-legend-newpage',
7094  'grouping' => 'any',
7095  ],
7096  'minor' => [
7097  'letter' => 'minoreditletter',
7098  'title' => 'recentchanges-label-minor',
7099  'legend' => 'recentchanges-legend-minor',
7100  'class' => 'minoredit',
7101  'grouping' => 'all',
7102  ],
7103  'bot' => [
7104  'letter' => 'boteditletter',
7105  'title' => 'recentchanges-label-bot',
7106  'legend' => 'recentchanges-legend-bot',
7107  'class' => 'botedit',
7108  'grouping' => 'all',
7109  ],
7110  'unpatrolled' => [
7111  'letter' => 'unpatrolledletter',
7112  'title' => 'recentchanges-label-unpatrolled',
7113  'legend' => 'recentchanges-legend-unpatrolled',
7114  'grouping' => 'any',
7115  ],
7116 ];
7117  # end RC/watchlist }
7119 
7120 /************************************************************************/
7133 
7140 
7148 
7153 
7158 
7167 
7173  # end of copyright and credits settings }
7175 
7176 /************************************************************************/
7204 
7213 
7220 
7227 
7232 
7245 
7250 
7255 
7263  # end of import/export }
7265 
7266 /*************************************************************************/
7276 
7304 
7331 
7338 
7354 
7359 
7369 
7377 
7382 
7389 
7443 
7449 $wgAuth = null;
7450 
7486 
7499  __DIR__ . '/ServiceWiring.php'
7500 ];
7501 
7509  'deletePage' => DeletePageJob::class,
7510  'refreshLinks' => RefreshLinksJob::class,
7511  'deleteLinks' => DeleteLinksJob::class,
7512  'htmlCacheUpdate' => HTMLCacheUpdateJob::class,
7513  'sendMail' => EmaillingJob::class,
7514  'enotifNotify' => EnotifNotifyJob::class,
7515  'fixDoubleRedirect' => DoubleRedirectJob::class,
7516  'AssembleUploadChunks' => AssembleUploadChunksJob::class,
7517  'PublishStashedFile' => PublishStashedFileJob::class,
7518  'ThumbnailRender' => ThumbnailRenderJob::class,
7519  'recentChangesUpdate' => RecentChangesUpdateJob::class,
7520  'refreshLinksPrioritized' => RefreshLinksJob::class,
7521  'refreshLinksDynamic' => RefreshLinksJob::class,
7522  'activityUpdateJob' => ActivityUpdateJob::class,
7523  'categoryMembershipChange' => function ( Title $title, $params = [] ) {
7524  $pc = MediaWikiServices::getInstance()->getParserCache();
7525  return new CategoryMembershipChangeJob( $pc, $title, $params );
7526  },
7527  'clearUserWatchlist' => ClearUserWatchlistJob::class,
7528  'cdnPurge' => CdnPurgeJob::class,
7529  'userGroupExpiry' => UserGroupExpiryJob::class,
7530  'clearWatchlistNotifications' => ClearWatchlistNotificationsJob::class,
7531  'enqueue' => EnqueueJob::class, // local queue for multi-DC setups
7532  'null' => NullJob::class,
7533 ];
7534 
7546 $wgJobTypesExcludedFromDefaultQueue = [ 'AssembleUploadChunks', 'PublishStashedFile' ];
7547 
7558 
7573 
7581  'default' => [ 'class' => JobQueueDB::class, 'order' => 'random', 'claimTTL' => 3600 ],
7582 ];
7583 
7590 ];
7591 
7604 
7610  'Statistics' => [ SiteStatsUpdate::class, 'cacheUpdate' ]
7611 ];
7612 
7621  'hiddencat' => 'categorylinks',
7622 ];
7623  # End extensions }
7625 
7626 /*************************************************************************/
7635 
7641 
7646 
7672 $wgCategoryCollation = 'uppercase';
7673  # End categories }
7675 
7676 /*************************************************************************/
7691  '',
7692  'block',
7693  'protect',
7694  'rights',
7695  'delete',
7696  'upload',
7697  'move',
7698  'import',
7699  'patrol',
7700  'merge',
7701  'suppress',
7702  'tag',
7703  'managetags',
7704  'contentmodel',
7705 ];
7706 
7715  'suppress' => 'suppressionlog'
7716 ];
7717 
7738  'patrol' => true,
7739  'tag' => true,
7740 ];
7741 
7752  '' => 'all-logs-page',
7753  'block' => 'blocklogpage',
7754  'protect' => 'protectlogpage',
7755  'rights' => 'rightslog',
7756  'delete' => 'dellogpage',
7757  'upload' => 'uploadlogpage',
7758  'move' => 'movelogpage',
7759  'import' => 'importlogpage',
7760  'patrol' => 'patrol-log-page',
7761  'merge' => 'mergelog',
7762  'suppress' => 'suppressionlog',
7763 ];
7764 
7775  '' => 'alllogstext',
7776  'block' => 'blocklogtext',
7777  'delete' => 'dellogpagetext',
7778  'import' => 'importlogpagetext',
7779  'merge' => 'mergelogpagetext',
7780  'move' => 'movelogpagetext',
7781  'patrol' => 'patrol-log-header',
7782  'protect' => 'protectlogtext',
7783  'rights' => 'rightslogtext',
7784  'suppress' => 'suppressionlogtext',
7785  'upload' => 'uploadlogpagetext',
7786 ];
7787 
7795 
7803  'block/block' => BlockLogFormatter::class,
7804  'block/reblock' => BlockLogFormatter::class,
7805  'block/unblock' => BlockLogFormatter::class,
7806  'contentmodel/change' => ContentModelLogFormatter::class,
7807  'contentmodel/new' => ContentModelLogFormatter::class,
7808  'delete/delete' => DeleteLogFormatter::class,
7809  'delete/delete_redir' => DeleteLogFormatter::class,
7810  'delete/event' => DeleteLogFormatter::class,
7811  'delete/restore' => DeleteLogFormatter::class,
7812  'delete/revision' => DeleteLogFormatter::class,
7813  'import/interwiki' => ImportLogFormatter::class,
7814  'import/upload' => ImportLogFormatter::class,
7815  'managetags/activate' => LogFormatter::class,
7816  'managetags/create' => LogFormatter::class,
7817  'managetags/deactivate' => LogFormatter::class,
7818  'managetags/delete' => LogFormatter::class,
7819  'merge/merge' => MergeLogFormatter::class,
7820  'move/move' => MoveLogFormatter::class,
7821  'move/move_redir' => MoveLogFormatter::class,
7822  'patrol/patrol' => PatrolLogFormatter::class,
7823  'patrol/autopatrol' => PatrolLogFormatter::class,
7824  'protect/modify' => ProtectLogFormatter::class,
7825  'protect/move_prot' => ProtectLogFormatter::class,
7826  'protect/protect' => ProtectLogFormatter::class,
7827  'protect/unprotect' => ProtectLogFormatter::class,
7828  'rights/autopromote' => RightsLogFormatter::class,
7829  'rights/rights' => RightsLogFormatter::class,
7830  'suppress/block' => BlockLogFormatter::class,
7831  'suppress/delete' => DeleteLogFormatter::class,
7832  'suppress/event' => DeleteLogFormatter::class,
7833  'suppress/reblock' => BlockLogFormatter::class,
7834  'suppress/revision' => DeleteLogFormatter::class,
7835  'tag/update' => TagLogFormatter::class,
7836  'upload/overwrite' => UploadLogFormatter::class,
7837  'upload/revert' => UploadLogFormatter::class,
7838  'upload/upload' => UploadLogFormatter::class,
7839 ];
7840 
7850  'block' => [
7851  'block' => [ 'block' ],
7852  'reblock' => [ 'reblock' ],
7853  'unblock' => [ 'unblock' ],
7854  ],
7855  'contentmodel' => [
7856  'change' => [ 'change' ],
7857  'new' => [ 'new' ],
7858  ],
7859  'delete' => [
7860  'delete' => [ 'delete' ],
7861  'delete_redir' => [ 'delete_redir' ],
7862  'restore' => [ 'restore' ],
7863  'event' => [ 'event' ],
7864  'revision' => [ 'revision' ],
7865  ],
7866  'import' => [
7867  'interwiki' => [ 'interwiki' ],
7868  'upload' => [ 'upload' ],
7869  ],
7870  'managetags' => [
7871  'create' => [ 'create' ],
7872  'delete' => [ 'delete' ],
7873  'activate' => [ 'activate' ],
7874  'deactivate' => [ 'deactivate' ],
7875  ],
7876  'move' => [
7877  'move' => [ 'move' ],
7878  'move_redir' => [ 'move_redir' ],
7879  ],
7880  'newusers' => [
7881  'create' => [ 'create', 'newusers' ],
7882  'create2' => [ 'create2' ],
7883  'autocreate' => [ 'autocreate' ],
7884  'byemail' => [ 'byemail' ],
7885  ],
7886  'protect' => [
7887  'protect' => [ 'protect' ],
7888  'modify' => [ 'modify' ],
7889  'unprotect' => [ 'unprotect' ],
7890  'move_prot' => [ 'move_prot' ],
7891  ],
7892  'rights' => [
7893  'rights' => [ 'rights' ],
7894  'autopromote' => [ 'autopromote' ],
7895  ],
7896  'suppress' => [
7897  'event' => [ 'event' ],
7898  'revision' => [ 'revision' ],
7899  'delete' => [ 'delete' ],
7900  'block' => [ 'block' ],
7901  'reblock' => [ 'reblock' ],
7902  ],
7903  'upload' => [
7904  'upload' => [ 'upload' ],
7905  'overwrite' => [ 'overwrite' ],
7906  ],
7907 ];
7908 
7913 
7919  # end logging }
7921 
7922 /*************************************************************************/
7931 
7937 
7943 
7949  # end special pages }
7951 
7952 /*************************************************************************/
7968  'credits' => true,
7969  'delete' => true,
7970  'edit' => true,
7971  'editchangetags' => SpecialPageAction::class,
7972  'history' => true,
7973  'info' => true,
7974  'markpatrolled' => true,
7975  'mcrundo' => McrUndoAction::class,
7976  'mcrrestore' => McrRestoreAction::class,
7977  'protect' => true,
7978  'purge' => true,
7979  'raw' => true,
7980  'render' => true,
7981  'revert' => true,
7982  'revisiondelete' => SpecialPageAction::class,
7983  'rollback' => true,
7984  'submit' => true,
7985  'unprotect' => true,
7986  'unwatch' => true,
7987  'view' => true,
7988  'watch' => true,
7989 ];
7990  # end actions }
7992 
7993 /*************************************************************************/
8004 $wgDefaultRobotPolicy = 'index,follow';
8005 
8021 
8049 
8061  # End robot policy }
8063 
8064 /************************************************************************/
8086 $wgDebugAPI = false;
8087 
8125 
8134 
8143 
8152 
8161 
8167 
8173 
8179 
8186 
8192 
8197 
8203  'MIMEsearch', // aiprop=mime
8204  'LinkSearch', // list=exturlusage
8205  'FileDuplicateSearch', // prop=duplicatefiles
8206 ];
8207 
8213 $wgUseAjax = true;
8214 
8221 
8226 
8231 
8237 
8259 
8266  # End AJAX and API }
8268 
8269 /************************************************************************/
8278 
8284 
8289 
8295 
8320 
8324 $wgPhpCli = '/usr/bin/php';
8325 
8360 $wgShellLocale = 'C.UTF-8';
8361 
8377  # End shell }
8379 
8380 /************************************************************************/
8390 
8396 
8401 
8406 
8421 
8427  # End HTTP client }
8429 
8430 /************************************************************************/
8442 
8451 
8456 
8461  # End job queue }
8463 
8464 /************************************************************************/
8476 
8490 
8500 
8506 
8512 
8517 
8523 
8529 
8563 
8568 
8581 
8593 
8608 
8620  CONTENT_MODEL_WIKITEXT, // Just for completeness, wikitext will always be parsed.
8621  CONTENT_MODEL_JAVASCRIPT, // Make categories etc work, people put them into comments.
8622  CONTENT_MODEL_CSS, // Make categories etc work, people put them into comments.
8623 ];
8624 
8631  'mediawiki' => MediaWikiSite::class,
8632 ];
8633 
8640 
8653 
8661 
8670 
8680 
8687 $wgHKDFAlgorithm = 'sha256';
8688 
8696 
8735  'paths' => [],
8736  'modules' => [],
8737  'global' => [
8738  # Timeout in seconds
8739  'timeout' => 360,
8740  # 'domain' is set to $wgCanonicalServer in Setup.php
8741  'forwardCookies' => false,
8742  'HTTPProxy' => null
8743  ]
8744 ];
8745 
8754 
8766 $wgPopularPasswordFile = __DIR__ . '/password/commonpasswords.cdb';
8767 
8768 /*
8769  * Max time (in seconds) a user-generated transaction can spend in writes.
8770  * If exceeded, the transaction is rolled back with an error instead of being committed.
8771  *
8772  * @var int|bool Disabled if false
8773  * @since 1.27
8774  */
8776 
8777 /*
8778  * Max time (in seconds) a job-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.30
8783  */
8785 
8807 
8815 
8827  'copyright',
8828  'history_copyright',
8829  'googlesearch',
8830  'feedback-terms',
8831  'feedback-termsofuse',
8832 ];
8833 
8854  'default' => [
8855  'class' => EventRelayerNull::class,
8856  ]
8857 ];
8858 
8872 $wgPingback = false;
8873 
8883  'https://3hub.co' => true,
8884  'https://morepro.info' => true,
8885  'https://p.ato.mx' => true,
8886  'https://s.ato.mx' => true,
8887  'https://adserver.adtech.de' => true,
8888  'https://ums.adtechus.com' => true,
8889  'https://cas.criteo.com' => true,
8890  'https://cat.nl.eu.criteo.com' => true,
8891  'https://atpixel.alephd.com' => true,
8892  'https://rtb.metrigo.com' => true,
8893  'https://d5p.de17a.com' => true,
8894  'https://ad.lkqd.net/vpaid/vpaid.js' => true,
8895  'https://ad.lkqd.net/vpaid/vpaid.js?fusion=1.0' => true,
8896  'https://t.lkqd.net/t' => true,
8897  'chrome-extension' => true,
8898 ];
8899 
8908  'IPv4' => 16,
8909  'IPv6' => 32,
8910 ];
8911 
8928 
8947 
8954 
8975 
8993 
9003 
9013 
$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.
$wgSquidMaxage
Cache TTL for the CDN sent as s-maxage (without ESI) or Surrogate-Control (with ESI).
int $wgCommentTableSchemaMigrationStage
Comment table schema migration stage.
$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
Main object stash type.
$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...
$wgPagePropsHaveSortkey
Whether the page_props table has a pp_sortkey column.
const CONTENT_MODEL_WIKITEXT
Definition: Defines.php:235
$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.
$wgUseESI
If you run Squid3 with ESI support, enable this (default:false):
$wgCopyUploadsDomains
A list of domains copy uploads can come from.
$wgMaxNameChars
Maximum number of bytes in username.
const APCOND_AGE
Definition: Defines.php:206
$wgSquidServers
List of proxy servers to purge on changes; default port is 80.
$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:64
$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:105
$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. ...
$wgUseKeyHeader
Send the Key HTTP header for better caching.
$wgNamespacesWithSubpages
Which namespaces should support subpages? See Language.php for a list of namespaces.
processing should stop and the error should be shown to the user * false
Definition: hooks.txt:187
$wgJsMimeType
Previously used as content type in HTML script tags.
$wgSysopEmailBans
Allow sysops to ban users from accessing Emailuser.
CACHE_MEMCACHED $wgMainCacheType
Definition: memcached.txt:63
$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.
Apache License January AND DISTRIBUTION Definitions License shall mean the terms and conditions for use
$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:112
$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.
globals txt Globals are evil The original MediaWiki code relied on globals for processing context far too often MediaWiki development since then has been a story of slowly moving context out of global variables and into objects Storing processing context in object member variables allows those objects to be reused in a much more flexible way Consider the elegance of
database rows
Definition: globals.txt:10
$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.
int $wgActorTableSchemaMigrationStage
Actor table schema migration stage.
$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.
$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
Mediawiki schema; this should be alphanumeric and not contain spaces nor hyphens. ...
$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...
$wgJobQueueAggregator
Which aggregator to use for tracking which queues have jobs.
const SCHEMA_COMPAT_READ_NEW
Definition: Defines.php:287
$wgMimeInfoFile
Sets the MIME type info file to use by includes/libs/mime/MimeAnalyzer.php.
const AV_NO_VIRUS
Definition: Defines.php:111
$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.
injection txt This is an overview of how MediaWiki makes use of dependency injection The design described here grew from the discussion of RFC T384 The term dependency this means that anything an object needs to operate should be injected from the the object itself should only know narrow no concrete implementation of the logic it relies on The requirement to inject everything typically results in an architecture that based on two main types of and essentially stateless service objects that use other service objects to operate on the value objects As of the beginning MediaWiki is only starting to use the DI approach Much of the code still relies on global state or direct resulting in a highly cyclical dependency MediaWikiServices
Definition: injection.txt:23
$wgUrlProtocols
URL schemes that should be recognized as valid by wfParseUrl().
MediaWiki has optional support for a high performance
Definition: memcached.txt:1
$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...
$wgAuth $wgAuth
Authentication plugin.
$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:238
$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:114
$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...
$wgMimeTypeFile
Sets the MIME type definition file to use by includes/libs/mime/MimeAnalyzer.php. ...
$wgRevokePermissions
Permission keys revoked from users in each group.
$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:74
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:239
$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.
title
$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.
This list may contain false positives That usually means there is additional text with links below the first Each row contains links to the first and second as well as the first line of the second redirect text
$wgUserEmailUseReplyTo
If true put the sending user&#39;s email in a Reply-To header instead of From (false).
$wgDebugLogFile
Filename for debug logging.
$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...
$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:104
const AV_SCAN_ABORTED
Definition: Defines.php:113
$wgCacheDirectory
Directory for caching data in the local filesystem.
$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.
$wgUseSquid
Enable/disable CDN.
$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.
you have access to all of the normal MediaWiki so you can get a DB use the cache
Definition: maintenance.txt:52
null means default in associative array with keys and values unescaped Should be merged with default with a value of false meaning to suppress the attribute in associative array with keys and values unescaped noclasses just before the function returns a value If you return true
Definition: hooks.txt:1996
$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 $wgSquidServer...
static detectServer()
Work out an appropriate URL prefix containing scheme and host, based on information detected from $_S...
Definition: WebRequest.php:200
$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.
$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.
$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 local wiki users.
array string bool $wgReferrerPolicy
Value for the referrer policy meta tag.
const NS_PROJECT
Definition: Defines.php:68
$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...
The ContentHandler facility adds support for arbitrary content types on wiki instead of relying on wikitext for everything It was introduced in MediaWiki Each kind of and so on Built in content types as usual *javascript user provided javascript code *json simple implementation for use by extensions
$wgSVGConverterPath
If not in the executable PATH, specify the SVG converter path.
$wgMaxRedirects
Max number of redirects to follow when resolving redirects.
Using a hook running we can avoid having all this option specific stuff in our mainline code Using the function We ve cleaned up the code here by removing clumps of infrequently used code and moving them off somewhere else It s much easier for someone working with this code to see what s _really_ going and make changes or fix bugs In we can take all the code that deals with the little used title reversing we can concentrate it all in an extension file
Definition: hooks.txt:91
$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.
$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.
$wgWikiDiff2MovedParagraphDetectionCutoff
wikidiff2 supports detection of changes in moved paragraphs.
$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:73
$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:69
$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.
$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.
in the Source form of any Derivative Works that You all copyright
$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.
$wgSiteStatsAsyncFactor
Set this to an integer to only do synchronous site_stats updates one every this many updates...
$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.
This document is intended to provide useful advice for parties seeking to redistribute MediaWiki to end users It s targeted particularly at maintainers for Linux since it s been observed that distribution packages of MediaWiki often break We ve consistently had to recommend that users seeking support use official tarballs instead of their distribution s and this often solves whatever problem the user is having It would be nice if this could such and we might be restricted by PHP settings such as safe mode or open_basedir We cannot assume that the software even has read access anywhere useful Many shared hosts run all users web applications under the same user
Wikitext formatted, in the key only.
Definition: distributors.txt:9
storage can be distributed across multiple and multiple web servers can use the same cache cluster *********************W A R N I N G ***********************Memcached has no security or authentication Please ensure that your server is appropriately and that the anyone on the internet can put data into and read data from your cache An attacker familiar with MediaWiki internals could use this to steal passwords and email addresses
Definition: memcached.txt:43
$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:78
$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. ...
and(b) You must cause any modified files to carry prominent notices stating that You changed the files
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
$wgEnableParserCache
Kept for extension compatibility; see $wgParserCacheType.
$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.
namespace and then decline to actually register it file or subcat img or subcat $title
Definition: hooks.txt:936
$wgRateLimits
Simple rate limiter options to brake edit floods.
$wgInterwikiMagic
Treat language links as magic connectors, not inline links.
$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.
$wgClockSkewFudge
Clock skew or the one-second resolution of time() can occasionally cause cache problems when the user...
$wgAutopromoteOnceLogInRC
Put user rights log entries for autopromotion in recent changes?
$wgExperiencedUserMemberSince
Name of the external diff engine to use.
$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:71
$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.
globals will be eliminated from MediaWiki replaced by an application object which would be passed to constructors Whether that would be an convenient solution remains to be but certainly PHP makes such object oriented programming models easier than they were in previous versions For the time being MediaWiki programmers will have to work in an environment with some global context At the time of globals were initialised on startup by MediaWiki of these were configuration settings
Definition: globals.txt:25
$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.
$wgMemCachedDebug
If enabled, will send MemCached debugging information to $wgDebugLogFile.
$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:72
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:288
$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.
$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
Name of the database; this should be alphanumeric and not contain spaces nor hyphens.
bool $wgPageLanguageUseDB
Enable page language feature Allows setting page language in database.
$wgSquidServersNoPurge
As above, except these servers aren&#39;t purged on page changes; use to set a list of trusted proxies...
$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.
$wgSessionsInObjectCache
$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. ...
injection txt This is an overview of how MediaWiki makes use of dependency injection The design described here grew from the discussion of RFC T384 The term dependency this means that anything an object needs to operate should be injected from the the object itself should only know narrow no concrete implementation of the logic it relies on The requirement to inject everything typically results in an architecture that based on two main types of and essentially stateless service objects that use other service objects to operate on the value objects As of the beginning MediaWiki is only starting to use the DI approach Much of the code still relies on global state or direct resulting in a highly cyclical dependency which acts as the top level factory for services in MediaWiki which can be used to gain access to default instances of various services MediaWikiServices however also allows new services to be defined and default services to be redefined Services are defined or redefined by providing a callback the instantiator that will return a new instance of the service When it will create an instance of MediaWikiServices and populate it with the services defined in the files listed by thereby bootstrapping the DI framework Per $wgServiceWiringFiles lists includes ServiceWiring php
Definition: injection.txt:35
bool $wgEnableBlockNoticeStats
Enable stats monitoring when Block Notices are displayed in different places around core and extensio...
$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:79
$wgLegacyJavaScriptGlobals
Whether or not to assign configuration variables to the global window object.
const NS_HELP
Definition: Defines.php:76
$wgHideInterlanguageLinks
Hide interlanguage links from the sidebar.
The ContentHandler facility adds support for arbitrary content types on wiki pages
$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:77
const MEDIATYPE_AUDIO
Definition: defines.php:32
bool $wgHashedSharedUploadDirectory
Shortcut for the &#39;hashLevels&#39; setting of $wgForeignFileRepos.
you have access to all of the normal MediaWiki so you can get a DB use the etc For full docs on the Maintenance class
Definition: maintenance.txt:52
$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.
$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.
$wgMsgCacheExpiry
Expiry time for the message cache key.
$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
Table name prefix; this should be alphanumeric and not contain spaces nor hyphens.
$wgMaxCredits
Set this to the number of authors that you want to be credited below an article text.
const CACHE_ANYTHING
Definition: Defines.php:101
$wgHtml5
Previously used to determine if we should output an HTML5 doctype.
$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.
$wgPasswordSalt
For compatibility with old installations set to false.
$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...
$wgSessionHandler
$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:237
$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
Disallow <title> element in SVG files.
$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:65
$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:205
$wgXhtmlDefaultNamespace
The default xmlns attribute.
$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.
</td >< td > &</td >< td > t want your writing to be edited mercilessly and redistributed at will
$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.
const MIGRATION_NEW
Definition: Defines.php:318
$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)...
$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:102
$wgResourceLoaderMaxQueryLength
If set to a positive number, ResourceLoader will not generate URLs whose query string is more than th...
$wgDBOracleDRCP
Set true to enable Oracle DCRP (supported from 11gR1 onward)
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.
$wgDebugPrintHttpHeaders
Print HTTP headers for every request in the debug information.
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 or mcrypt extensions, you can set this to true t...
$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 ...
const SCHEMA_COMPAT_OLD
Definition: Defines.php:290
$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:67
$wgEnableProfileInfo
Allow the profileinfo.php entrypoint to be used.
$wgDiff
Path to the GNU diff utility.
$wgSVGConverter
Pick a converter defined in $wgSVGConverters.
Dynamic JavaScript and CSS resource loading system.
$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.
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.
$wgDBmysql5
Set to true to engage MySQL 4.1/5.0 charset-related features; for now will just cause sending of &#39;SET...
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.
$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.
if the prop value should be in the metadata multi language array format
Definition: hooks.txt:1655
bool $wgEnableWANCacheReaper
Verify and enforce WAN cache purges using reliable DB sources as streams.
const NS_TEMPLATE_TALK
Definition: Defines.php:75
$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:103
$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.