MediaWiki  master
DefaultSettings.php
Go to the documentation of this file.
1 <?php
50 if ( !defined( 'MEDIAWIKI' ) ) {
51  echo "This file is part of MediaWiki and is not a valid entry point\n";
52  die( 1 );
53 }
54 
63 
71  'main' => 'GlobalVarConfig::newInstance'
72 ];
73 
78 $wgVersion = '1.28.0-alpha';
79 
83 $wgSitename = 'MediaWiki';
84 
92 
110 
119 
126 
127 /************************************************************************/
141 $wgScriptPath = '/wiki';
142 
160 $wgUsePathInfo = ( strpos( PHP_SAPI, 'cgi' ) === false ) &&
161  ( strpos( PHP_SAPI, 'apache2filter' ) === false ) &&
162  ( strpos( PHP_SAPI, 'isapi' ) === false );
163 
176 
179 /************************************************************************/
202 $wgScript = false;
203 
211 
217 $wgStylePath = false;
219 
226 
233 
239 $wgExtensionDirectory = "{$IP}/extensions";
240 
246 $wgStyleDirectory = "{$IP}/skins";
247 
256 
262 
267 
273 
278 $wgLogo = false;
279 
295 $wgLogoHD = false;
296 
301 $wgFavicon = '/favicon.ico';
302 
309 
319 
335 
342 
351 
367 
370 /************************************************************************/
379 
383 $wgUploadStashMaxAge = 6 * 3600; // 6 hours
384 
389 
399 
407 $wgIllegalFileChars = ":\\/\\\\";
408 
414 
419 
435 
519 
524 
531 
542 
553  // Fields to make available in the dialog. `true` means that this field is visible, `false` means
554  // that it is hidden. The "Name" field can't be hidden. Note that you also have to add the
555  // matching replacement to the 'filepage' format key below to make use of these.
556  'fields' => [
557  'description' => true,
558  'date' => false,
559  'categories' => false,
560  ],
561  // Suffix of localisation messages used to describe the license under which the uploaded file will
562  // be released. The same value may be set for both 'local' and 'foreign' uploads.
563  'licensemessages' => [
564  // The 'local' messages are used for local uploads on this wiki:
565  // * upload-form-label-own-work-message-generic-local
566  // * upload-form-label-not-own-work-message-generic-local
567  // * upload-form-label-not-own-work-local-generic-local
568  'local' => 'generic-local',
569  // The 'foreign' messages are used for cross-wiki uploads from other wikis to this wiki:
570  // * upload-form-label-own-work-message-generic-foreign
571  // * upload-form-label-not-own-work-message-generic-foreign
572  // * upload-form-label-not-own-work-local-generic-foreign
573  'foreign' => 'generic-foreign',
574  ],
575  // Upload comments to use for 'local' and 'foreign' uploads. This can also be set to a single
576  // string value, in which case it is used for both kinds of uploads. Available replacements:
577  // * $HOST - domain name from which a cross-wiki upload originates
578  // * $PAGENAME - wiki page name from which an upload originates
579  'comment' => [
580  'local' => '',
581  'foreign' => '',
582  ],
583  // Format of the file page wikitext to be generated from the fields input by the user.
584  'format' => [
585  // Wrapper for the whole page. Available replacements:
586  // * $DESCRIPTION - file description, as input by the user (only if the 'description' field is
587  // enabled), wrapped as defined below in the 'description' key
588  // * $DATE - file creation date, as input by the user (only if the 'date' field is enabled)
589  // * $SOURCE - as defined below in the 'ownwork' key, may be extended in the future
590  // * $AUTHOR - linked user name, may be extended in the future
591  // * $LICENSE - as defined below in the 'license' key, may be extended in the future
592  // * $CATEGORIES - file categories wikitext, as input by the user (only if the 'categories'
593  // field is enabled), or if no input, as defined below in the 'uncategorized' key
594  'filepage' => '$DESCRIPTION',
595  // Wrapped for file description. Available replacements:
596  // * $LANGUAGE - source wiki's content language
597  // * $TEXT - input by the user
598  'description' => '$TEXT',
599  'ownwork' => '',
600  'license' => '',
601  'uncategorized' => '',
602  ],
603 ];
604 
637 
649 
661 $wgShowEXIF = function_exists( 'exif_read_data' );
662 
669 
684 
688 $wgSharedUploadPath = "http://commons.wikimedia.org/shared/images";
689 
694 
698 $wgSharedUploadDirectory = "/var/www/wiki3/images";
699 
705 
710 
716 
723 
730 
737 
743 
753 
770 $wgMaxUploadSize = 1024 * 1024 * 100; # 100MB
771 
779 
791 
798 
811 
816 
831 
838 
847 $wgRepositoryBaseUrl = "https://commons.wikimedia.org/wiki/File:";
848 
857 $wgFileExtensions = [ 'png', 'gif', 'jpg', 'jpeg', 'webp' ];
858 
865  # HTML may contain cookie-stealing JavaScript and web bugs
866  'html', 'htm', 'js', 'jsb', 'mhtml', 'mht', 'xhtml', 'xht',
867  # PHP scripts may execute arbitrary code on the server
868  'php', 'phtml', 'php3', 'php4', 'php5', 'phps',
869  # Other types that may be interpreted by some servers
870  'shtml', 'jhtml', 'pl', 'py', 'cgi',
871  # May contain harmful executables for Windows victims
872  'exe', 'scr', 'dll', 'msi', 'vbs', 'bat', 'com', 'pif', 'cmd', 'vxd', 'cpl' ];
873 
879  # HTML may contain cookie-stealing JavaScript and web bugs
880  'text/html', 'text/javascript', 'text/x-javascript', 'application/x-shellscript',
881  # PHP scripts may execute arbitrary code on the server
882  'application/x-php', 'text/x-php',
883  # Other types that may be interpreted by some servers
884  'text/x-python', 'text/x-perl', 'text/x-bash', 'text/x-sh', 'text/x-csh',
885  # Client-side hazards on Internet Explorer
886  'text/scriptlet', 'application/x-msdownload',
887  # Windows metafile, client-side vulnerability on some systems
888  'application/x-msmetafile',
889 ];
890 
897 
904 
912 
920 
925 
937  MEDIATYPE_BITMAP, // all bitmap formats
938  MEDIATYPE_AUDIO, // all audio formats
939  MEDIATYPE_VIDEO, // all plain video formats
940  "image/svg+xml", // svg (only needed if inline rendering of svg is not supported)
941  "application/pdf", // PDF files
942  # "application/x-shockwave-flash", //flash/shockwave movie
943 ];
944 
950  'image/jpeg' => 'JpegHandler',
951  'image/png' => 'PNGHandler',
952  'image/gif' => 'GIFHandler',
953  'image/tiff' => 'TiffHandler',
954  'image/webp' => 'WebPHandler',
955  'image/x-ms-bmp' => 'BmpHandler',
956  'image/x-bmp' => 'BmpHandler',
957  'image/x-xcf' => 'XCFHandler',
958  'image/svg+xml' => 'SvgHandler', // official
959  'image/svg' => 'SvgHandler', // compat
960  'image/vnd.djvu' => 'DjVuHandler', // official
961  'image/x.djvu' => 'DjVuHandler', // compat
962  'image/x-djvu' => 'DjVuHandler', // compat
963 ];
964 
973  // the usual case
974  CONTENT_MODEL_WIKITEXT => 'WikitextContentHandler',
975  // dumb version, no syntax highlighting
976  CONTENT_MODEL_JAVASCRIPT => 'JavaScriptContentHandler',
977  // simple implementation, for use by extensions, etc.
978  CONTENT_MODEL_JSON => 'JsonContentHandler',
979  // dumb version, no syntax highlighting
980  CONTENT_MODEL_CSS => 'CssContentHandler',
981  // plain text, for use by extensions, etc.
982  CONTENT_MODEL_TEXT => 'TextContentHandler',
983 ];
984 
991 
1001 
1005 $wgImageMagickConvertCommand = '/usr/bin/convert';
1006 
1012 
1017 
1022 
1028 
1042 
1048 $wgJpegTran = '/usr/bin/jpegtran';
1049 
1070 
1075 $wgExiv2Command = '/usr/bin/exiv2';
1076 
1082 $wgExiftool = '/usr/bin/exiftool';
1083 
1094  'ImageMagick' =>
1095  '$path/convert -background "#ffffff00" -thumbnail $widthx$height\! $input PNG:$output',
1096  'sodipodi' => '$path/sodipodi -z -w $width -f $input -e $output',
1097  'inkscape' => '$path/inkscape -z -w $width -f $input -e $output',
1098  'batik' => 'java -Djava.awt.headless=true -jar $path/batik-rasterizer.jar -w $width -d '
1099  . '$output $input',
1100  'rsvg' => '$path/rsvg-convert -w $width -h $height -o $output $input',
1101  'imgserv' => '$path/imgserv-wrapper -i svg -o png -w$width $input $output',
1102  'ImagickExt' => [ 'SvgHandler::rasterizeImagickExt' ],
1103 ];
1104 
1108 $wgSVGConverter = 'ImageMagick';
1109 
1114 
1119 
1125 
1138 
1153 
1161 
1176 
1183 $wgThumbnailEpoch = '20030516000000';
1184 
1192 
1205 
1214 
1219 
1226 
1233 
1269 
1270  # setup for clamav
1271  'clamav' => [
1272  'command' => 'clamscan --no-summary ',
1273  'codemap' => [
1274  "0" => AV_NO_VIRUS, # no virus
1275  "1" => AV_VIRUS_FOUND, # virus found
1276  "52" => AV_SCAN_ABORTED, # unsupported file format (probably immune)
1277  "*" => AV_SCAN_FAILED, # else scan failed
1278  ],
1279  'messagepattern' => '/.*?:(.*)/sim',
1280  ],
1281 ];
1282 
1287 
1292 
1298 $wgMimeTypeFile = 'includes/mime.types';
1299 
1304 $wgMimeInfoFile = 'includes/mime.info';
1305 
1318 
1325 
1331  'http://www.w3.org/2000/svg:svg' => 'image/svg+xml',
1332  'svg' => 'image/svg+xml',
1333  'http://www.lysator.liu.se/~alla/dia/:diagram' => 'application/x-dia-diagram',
1334  'http://www.w3.org/1999/xhtml:html' => 'text/html', // application/xhtml+xml?
1335  'html' => 'text/html', // application/xhtml+xml?
1336 ];
1337 
1347  [ 320, 240 ],
1348  [ 640, 480 ],
1349  [ 800, 600 ],
1350  [ 1024, 768 ],
1351  [ 1280, 1024 ]
1352 ];
1353 
1360  120,
1361  150,
1362  180,
1363  200,
1364  250,
1365  300
1366 ];
1367 
1378 
1395 
1407 
1420 
1427 
1435 
1443 
1448  'imagesPerRow' => 0, // Default number of images per-row in the gallery. 0 -> Adapt to screensize
1449  'imageWidth' => 120, // Width of the cells containing images in galleries (in "px")
1450  'imageHeight' => 120, // Height of the cells containing images in galleries (in "px")
1451  'captionLength' => true, // Deprecated @since 1.28
1452  // Length to truncate filename to in caption when using "showfilename".
1453  // A value of 'true' will truncate the filename to one line using CSS
1454  // and will be the behaviour after deprecation.
1455  'showBytes' => true, // Show the filesize in bytes in categories
1456  'mode' => 'traditional',
1457 ];
1458 
1465 
1470 
1482 
1494 
1501 
1507 $wgDjvuTxt = null;
1508 
1524 
1530 $wgDjvuPostProcessor = 'pnmtojpeg';
1531 
1536  # end of DJvu }
1538  # end of file uploads }
1540 
1541 /************************************************************************/
1552 
1561 
1567 $wgPasswordSenderName = 'MediaWiki Mail';
1568 
1575 
1582 
1588 
1598 
1604 
1608 $wgNewPasswordExpiry = 3600 * 24 * 7;
1609 
1614 
1620 
1625 $wgPasswordExpireGrace = 3600 * 24 * 7; // 7 days
1626 
1644 $wgSMTP = false;
1645 
1650 
1656 
1662 
1663 // TODO move UPO to preferences probably ?
1664 # If set to true, users get a corresponding option in their preferences and can choose to
1665 # enable or disable at their discretion
1666 # If set to false, the corresponding input form on the user preference page is suppressed
1667 # It call this to be a "user-preferences-option (UPO)"
1668 
1675 
1680 
1686 
1692 
1699 
1708 
1714 
1719 
1725  # end of email settings
1727 
1728 /************************************************************************/
1736 $wgDBserver = 'localhost';
1737 
1741 $wgDBport = 5432;
1742 
1746 $wgDBname = 'my_wiki';
1747 
1751 $wgDBuser = 'wikiuser';
1752 
1757 
1761 $wgDBtype = 'mysql';
1762 
1771 $wgDBssl = false;
1772 
1782 
1787 
1792 
1800 
1809 
1814 
1818 $wgDBTableOptions = 'ENGINE=InnoDB';
1819 
1827 
1832 
1837 
1844 
1871 
1876 
1880 $wgSharedTables = [ 'user', 'user_properties' ];
1881 
1887 
1940 
1951 $wgLBFactoryConf = [ 'class' => 'LBFactorySimple' ];
1952 
1960 
1965 
1985 
2002 $wgDBmysql5 = false;
2003 
2032 
2039 
2046 
2051 
2056  # End of DB settings }
2058 
2059 /************************************************************************/
2071 
2084 
2100 
2116 
2124  # end text storage }
2126 
2127 /************************************************************************/
2136 
2141 
2146 
2151 
2156 
2161 
2166 
2172 
2180  # end performance hacks }
2182 
2183 /************************************************************************/
2197 
2216 
2224 
2232 
2239 
2249 
2264  CACHE_NONE => [ 'class' => 'EmptyBagOStuff', 'reportDupes' => false ],
2265  CACHE_DB => [ 'class' => 'SqlBagOStuff', 'loggroup' => 'SQLBagOStuff' ],
2266 
2267  CACHE_ANYTHING => [ 'factory' => 'ObjectCache::newAnything' ],
2268  CACHE_ACCEL => [ 'factory' => 'ObjectCache::getLocalServerInstance' ],
2269  CACHE_MEMCACHED => [ 'class' => 'MemcachedPhpBagOStuff', 'loggroup' => 'memcached' ],
2270 
2271  'db-replicated' => [
2272  'class' => 'ReplicatedBagOStuff',
2273  'readFactory' => [
2274  'class' => 'SqlBagOStuff',
2275  'args' => [ [ 'slaveOnly' => true ] ]
2276  ],
2277  'writeFactory' => [
2278  'class' => 'SqlBagOStuff',
2279  'args' => [ [ 'slaveOnly' => false ] ]
2280  ],
2281  'loggroup' => 'SQLBagOStuff'
2282  ],
2283 
2284  'apc' => [ 'class' => 'APCBagOStuff', 'reportDupes' => false ],
2285  'xcache' => [ 'class' => 'XCacheBagOStuff', 'reportDupes' => false ],
2286  'wincache' => [ 'class' => 'WinCacheBagOStuff', 'reportDupes' => false ],
2287  'memcached-php' => [ 'class' => 'MemcachedPhpBagOStuff', 'loggroup' => 'memcached' ],
2288  'memcached-pecl' => [ 'class' => 'MemcachedPeclBagOStuff', 'loggroup' => 'memcached' ],
2289  'hash' => [ 'class' => 'HashBagOStuff', 'reportDupes' => false ],
2290 ];
2291 
2308 
2325  CACHE_NONE => [
2326  'class' => 'WANObjectCache',
2327  'cacheId' => CACHE_NONE,
2328  'channels' => []
2329  ]
2330  /* Example of a simple single data-center cache:
2331  'memcached-php' => [
2332  'class' => 'WANObjectCache',
2333  'cacheId' => 'memcached-php',
2334  'channels' => [ 'purge' => 'wancache-main-memcached-purge' ]
2335  ]
2336  */
2337 ];
2338 
2353 $wgMainStash = 'db-replicated';
2354 
2360 
2367 
2372 
2377 
2382 
2400 
2407 
2412 
2416 $wgMemCachedServers = [ '127.0.0.1:11211' ];
2417 
2423 
2428 
2441 
2449 
2473  'class' => 'LocalisationCache',
2474  'store' => 'detect',
2475  'storeClass' => false,
2476  'storeDirectory' => false,
2477  'manualRecache' => false,
2478 ];
2479 
2484 
2493 $wgCacheEpoch = '20030516000000';
2494 
2500 
2509 
2516 
2524 
2530 
2536 
2547 
2552 
2559 $wgUseGzip = false;
2560 
2568 
2579 
2596  # end of cache settings
2598 
2599 /************************************************************************/
2616 $wgUseSquid = false;
2617 
2621 $wgUseESI = false;
2622 
2629 
2639 
2649 
2658 
2665 
2681 
2688 
2695 
2705 
2713 
2734 
2787 
2793 
2798  # end of HTTP proxy settings
2800 
2801 /************************************************************************/
2822 
2828 
2839 
2844 
2849 
2864 
2869 
2877  'als' => 'gsw',
2878  'bat-smg' => 'sgs',
2879  'be-x-old' => 'be-tarask',
2880  'bh' => 'bho',
2881  'fiu-vro' => 'vro',
2882  'no' => 'nb',
2883  'qqq' => 'qqq', # Used for message documentation.
2884  'qqx' => 'qqx', # Used for viewing message keys.
2885  'roa-rup' => 'rup',
2886  'simple' => 'en',
2887  'zh-classical' => 'lzh',
2888  'zh-min-nan' => 'nan',
2889  'zh-yue' => 'yue',
2890 ];
2891 
2901 
2912 
2924 
2936 
2953  '/^Mozilla\/2\.[^ ]+ [^(]*?\((?!compatible).*; [UIN]/',
2954  '/^Mozilla\/3\.[^ ]+ [^(]*?\((?!compatible).*; [UIN]/',
2955  '/^Mozilla\/4\.[^ ]+ [^(]*?\((?!compatible).*; [UIN]/',
2956 
2970  '/^Mozilla\/4\.0 \(compatible; MSIE \d+\.\d+; Mac_PowerPC\)/',
2971 
2976  '/^Mozilla\/4\.0 \(compatible; MSIE 6.0; Windows NT 5.0; Google Wireless Transcoder;\)/'
2977 ];
2978 
2992 
2998 
3004 
3010 
3015 
3020 
3025 
3030 
3035 
3046 
3065 
3072 
3093 
3118 
3129  # End of language/charset settings
3131 
3132 /*************************************************************************/
3140 $wgMimeType = 'text/html';
3141 
3150 
3159 
3167 $wgHtml5 = true;
3168 
3178 
3187 
3195 
3211 
3220 
3225 
3231 
3236 $wgDefaultSkin = 'vector';
3237 
3243 $wgFallbackSkin = 'fallback';
3244 
3251 
3256 
3263 
3270 
3277 
3282 
3287 
3293 
3314 
3326 
3331 
3342 
3374  "copyright" => [
3375  "copyright" => [], // placeholder for the built in copyright icon
3376  ],
3377  "poweredby" => [
3378  "mediawiki" => [
3379  // Defaults to point at
3380  // "$wgResourceBasePath/resources/assets/poweredby_mediawiki_88x31.png"
3381  // plus srcset for 1.5x, 2x resolution variants.
3382  "src" => null,
3383  "url" => "//www.mediawiki.org/",
3384  "alt" => "Powered by MediaWiki",
3385  ]
3386  ],
3387 ];
3388 
3396 
3400 $wgEdititis = false;
3401 
3414 
3425 
3433 
3443  # End of output format settings }
3445 
3446 /*************************************************************************/
3469 
3559 
3571 
3577 
3595  'versioned' => [
3596  'server' => 30 * 24 * 60 * 60, // 30 days
3597  'client' => 30 * 24 * 60 * 60, // 30 days
3598  ],
3599  'unversioned' => [
3600  'server' => 5 * 60, // 5 minutes
3601  'client' => 5 * 60, // 5 minutes
3602  ],
3603 ];
3604 
3611 
3619 
3628 
3635 
3662 
3677 
3686 
3696 
3727  'deviceWidthTablet' => '720px',
3728 ];
3729 
3744  "$IP/resources/src/mediawiki.less/",
3745 ];
3746 
3754 
3762 
3775  # End of ResourceLoader settings }
3777 
3778 /*************************************************************************/
3788 
3797 
3825 
3833 
3853 
3881 $wgLegalTitleChars = " %!\"$&'()*,\\-.\\/0-9:;=?@A-Z\\\\^_`a-z~\\x80-\\xFF+";
3882 
3889 
3899 
3904 
3929 
3937 
3942  # end of Interwiki caching settings.
3944 
3953 $wgSitesCacheFile = false;
3954  # end of SiteStore caching settings.
3956 
3972 $wgRedirectSources = false;
3973 
3982 
3998 
4004  NS_TALK => true,
4005  NS_USER => true,
4006  NS_USER_TALK => true,
4007  NS_PROJECT => true,
4008  NS_PROJECT_TALK => true,
4009  NS_FILE_TALK => true,
4010  NS_MEDIAWIKI => true,
4011  NS_MEDIAWIKI_TALK => true,
4012  NS_TEMPLATE_TALK => true,
4013  NS_HELP => true,
4014  NS_HELP_TALK => true,
4016 ];
4017 
4034 
4042 
4050 $wgExtraSignatureNamespaces = [];
4051 
4057 $wgMaxRedirects = 1;
4058 
4069 $wgInvalidRedirectTargets = [ 'Filepath', 'Mypage', 'Mytalk', 'Redirect' ];
4070  # End of title and interwiki settings }
4072 
4073 /************************************************************************/
4100 $wgParserConf = [
4101  'class' => 'Parser',
4102  # 'preprocessorClass' => 'Preprocessor_Hash',
4103 ];
4104 
4108 $wgMaxTocLevel = 999;
4109 
4114 $wgMaxPPNodeCount = 1000000;
4115 
4125 $wgMaxGeneratedPPNodeCount = 1000000;
4126 
4133 $wgMaxTemplateDepth = 40;
4134 
4138 $wgMaxPPExpandDepth = 40;
4139 
4150 $wgUrlProtocols = [
4151  'bitcoin:', 'ftp://', 'ftps://', 'geo:', 'git://', 'gopher://', 'http://',
4152  'https://', 'irc://', 'ircs://', 'magnet:', 'mailto:', 'mms://', 'news:',
4153  'nntp://', 'redis://', 'sftp://', 'sip:', 'sips:', 'sms:', 'ssh://',
4154  'svn://', 'tel:', 'telnet://', 'urn:', 'worldwind://', 'xmpp:', '//'
4155 ];
4156 
4160 $wgCleanSignatures = true;
4161 
4165 $wgAllowExternalImages = false;
4166 
4180 
4191 
4201 
4226 
4231 $wgUseTidy = false;
4232 
4237 $wgTidyBin = 'tidy';
4238 
4243 $wgTidyConf = $IP . '/includes/tidy/tidy.conf';
4244 
4250 
4255 $wgTidyInternal = extension_loaded( 'tidy' );
4256 
4262 
4268 $wgRawHtml = false;
4269 
4280 
4288 
4294 
4308 $wgNoFollowDomainExceptions = [ 'mediawiki.org' ];
4309 
4314 
4321 
4327 
4333 
4338 
4344  # end of parser settings }
4346 
4347 /************************************************************************/
4370 
4379  # End of statistics }
4381 
4382 /************************************************************************/
4393  'local' => [ 'class' => 'LocalIdLookup' ],
4394 ];
4395 
4401 
4426  'policies' => [
4427  'bureaucrat' => [
4428  'MinimalPasswordLength' => 8,
4429  'MinimumPasswordLengthToLogin' => 1,
4430  'PasswordCannotMatchUsername' => true,
4431  'PasswordCannotBePopular' => 25,
4432  ],
4433  'sysop' => [
4434  'MinimalPasswordLength' => 8,
4435  'MinimumPasswordLengthToLogin' => 1,
4436  'PasswordCannotMatchUsername' => true,
4437  'PasswordCannotBePopular' => 25,
4438  ],
4439  'bot' => [
4440  'MinimalPasswordLength' => 8,
4441  'MinimumPasswordLengthToLogin' => 1,
4442  'PasswordCannotMatchUsername' => true,
4443  ],
4444  'default' => [
4445  'MinimalPasswordLength' => 1,
4446  'PasswordCannotMatchUsername' => true,
4447  'PasswordCannotMatchBlacklist' => true,
4448  'MaximalPasswordLength' => 4096,
4449  ],
4450  ],
4451  'checks' => [
4452  'MinimalPasswordLength' => 'PasswordPolicyChecks::checkMinimalPasswordLength',
4453  'MinimumPasswordLengthToLogin' => 'PasswordPolicyChecks::checkMinimumPasswordLengthToLogin',
4454  'PasswordCannotMatchUsername' => 'PasswordPolicyChecks::checkPasswordCannotMatchUsername',
4455  'PasswordCannotMatchBlacklist' => 'PasswordPolicyChecks::checkPasswordCannotMatchBlacklist',
4456  'MaximalPasswordLength' => 'PasswordPolicyChecks::checkMaximalPasswordLength',
4457  'PasswordCannotBePopular' => 'PasswordPolicyChecks::checkPopularPasswordBlacklist'
4458  ],
4459 ];
4460 
4467 
4488 
4494  'preauth' => [
4497  'sort' => 0,
4498  ],
4501  'sort' => 0,
4502  ],
4503  ],
4504  'primaryauth' => [
4505  // TemporaryPasswordPrimaryAuthenticationProvider should come before
4506  // any other PasswordAuthenticationRequest-based
4507  // PrimaryAuthenticationProvider (or at least any that might return
4508  // FAIL rather than ABSTAIN for a wrong password), or password reset
4509  // won't work right. Do not remove this (or change the key) or
4510  // auto-configuration of other such providers in extensions will
4511  // probably auto-insert themselves in the wrong place.
4514  'args' => [ [
4515  // Fall through to LocalPasswordPrimaryAuthenticationProvider
4516  'authoritative' => false,
4517  ] ],
4518  'sort' => 0,
4519  ],
4522  'args' => [ [
4523  // Last one should be authoritative, or else the user will get
4524  // a less-than-helpful error message (something like "supplied
4525  // authentication info not supported" rather than "wrong
4526  // password") if it too fails.
4527  'authoritative' => true,
4528  ] ],
4529  'sort' => 100,
4530  ],
4531  ],
4532  'secondaryauth' => [
4535  'sort' => 0,
4536  ],
4539  'sort' => 100,
4540  ],
4541  // Linking during login is experimental, enable at your own risk - T134952
4542  // MediaWiki\Auth\ConfirmLinkSecondaryAuthenticationProvider::class => [
4543  // 'class' => MediaWiki\Auth\ConfirmLinkSecondaryAuthenticationProvider::class,
4544  // 'sort' => 100,
4545  // ],
4548  'sort' => 200,
4549  ],
4550  ],
4551 ];
4552 
4592  'default' => 300,
4593 ];
4594 
4611  'default' => true,
4612 ];
4613 
4625 ];
4626 
4638 ];
4639 
4645 
4652 
4665 
4672 
4679 
4700  'A' => [
4701  'class' => 'MWOldPassword',
4702  ],
4703  'B' => [
4704  'class' => 'MWSaltedPassword',
4705  ],
4706  'pbkdf2-legacyA' => [
4707  'class' => 'LayeredParameterizedPassword',
4708  'types' => [
4709  'A',
4710  'pbkdf2',
4711  ],
4712  ],
4713  'pbkdf2-legacyB' => [
4714  'class' => 'LayeredParameterizedPassword',
4715  'types' => [
4716  'B',
4717  'pbkdf2',
4718  ],
4719  ],
4720  'bcrypt' => [
4721  'class' => 'BcryptPassword',
4722  'cost' => 9,
4723  ],
4724  'pbkdf2' => [
4725  'class' => 'Pbkdf2Password',
4726  'algo' => 'sha512',
4727  'cost' => '30000',
4728  'length' => '64',
4729  ],
4730 ];
4731 
4739  'username' => true,
4740  'email' => true,
4741 ];
4742 
4747 
4753 
4759  'MediaWiki default', // Default 'Main Page' and MediaWiki: message pages
4760  'Conversion script', // Used for the old Wikipedia software upgrade
4761  'Maintenance script', // Maintenance scripts which perform editing, image import script
4762  'Template namespace initialisation script', // Used in 1.2->1.3 upgrade
4763  'ScriptImporter', // Default user name used by maintenance/importSiteScripts.php
4764  'msg:double-redirect-fixer', // Automatic double redirect fix
4765  'msg:usermessage-editor', // Default user for leaving user messages
4766  'msg:proxyblocker', // For $wgProxyList and Special:Blockme (removed in 1.22)
4767  'msg:spambot_username', // Used by cleanupSpam.php
4768  'msg:autochange-username', // Used by anon category RC entries (parser functions, Lua & purges)
4769 ];
4770 
4778  'ccmeonemails' => 0,
4779  'cols' => 80,
4780  'date' => 'default',
4781  'diffonly' => 0,
4782  'disablemail' => 0,
4783  'editfont' => 'default',
4784  'editondblclick' => 0,
4785  'editsectiononrightclick' => 0,
4786  'enotifminoredits' => 0,
4787  'enotifrevealaddr' => 0,
4788  'enotifusertalkpages' => 1,
4789  'enotifwatchlistpages' => 1,
4790  'extendwatchlist' => 1,
4791  'fancysig' => 0,
4792  'forceeditsummary' => 0,
4793  'gender' => 'unknown',
4794  'hideminor' => 0,
4795  'hidepatrolled' => 0,
4796  'hidecategorization' => 1,
4797  'imagesize' => 2,
4798  'math' => 1,
4799  'minordefault' => 0,
4800  'newpageshidepatrolled' => 0,
4801  'nickname' => '',
4802  'norollbackdiff' => 0,
4803  'numberheadings' => 0,
4804  'previewonfirst' => 0,
4805  'previewontop' => 1,
4806  'rcdays' => 7,
4807  'rclimit' => 50,
4808  'rows' => 25,
4809  'showhiddencats' => 0,
4810  'shownumberswatching' => 1,
4811  'showtoolbar' => 1,
4812  'skin' => false,
4813  'stubthreshold' => 0,
4814  'thumbsize' => 5,
4815  'underline' => 2,
4816  'uselivepreview' => 0,
4817  'usenewrc' => 1,
4818  'watchcreations' => 1,
4819  'watchdefault' => 1,
4820  'watchdeletion' => 0,
4821  'watchuploads' => 1,
4822  'watchlistdays' => 3.0,
4823  'watchlisthideanons' => 0,
4824  'watchlisthidebots' => 0,
4825  'watchlisthideliu' => 0,
4826  'watchlisthideminor' => 0,
4827  'watchlisthideown' => 0,
4828  'watchlisthidepatrolled' => 0,
4829  'watchlisthidecategorization' => 1,
4830  'watchlistreloadautomatically' => 0,
4831  'watchmoves' => 0,
4832  'watchrollback' => 0,
4833  'wllimit' => 250,
4834  'useeditwarning' => 1,
4835  'prefershttps' => 1,
4836 ];
4837 
4842 
4849 
4860 
4868 
4880 
4892  'args' => [ [
4893  'priority' => 30,
4894  'callUserSetCookiesHook' => true,
4895  ] ],
4896  ],
4899  'args' => [ [
4900  'priority' => 75,
4901  ] ],
4902  ],
4903 ];
4904  # end user accounts }
4906 
4907 /************************************************************************/
4916 
4921 
4926 
4942  'IPv4' => 16, # Blocks larger than a /16 (64k addresses) will not be allowed
4943  'IPv6' => 19,
4944 ];
4945 
4954 
4973 
5001 
5007 
5013 
5039 
5041 // Implicit group for all visitors
5042 $wgGroupPermissions['*']['createaccount'] = true;
5043 $wgGroupPermissions['*']['read'] = true;
5044 $wgGroupPermissions['*']['edit'] = true;
5045 $wgGroupPermissions['*']['createpage'] = true;
5046 $wgGroupPermissions['*']['createtalk'] = true;
5047 $wgGroupPermissions['*']['writeapi'] = true;
5048 $wgGroupPermissions['*']['editmyusercss'] = true;
5049 $wgGroupPermissions['*']['editmyuserjs'] = true;
5050 $wgGroupPermissions['*']['viewmywatchlist'] = true;
5051 $wgGroupPermissions['*']['editmywatchlist'] = true;
5052 $wgGroupPermissions['*']['viewmyprivateinfo'] = true;
5053 $wgGroupPermissions['*']['editmyprivateinfo'] = true;
5054 $wgGroupPermissions['*']['editmyoptions'] = true;
5055 # $wgGroupPermissions['*']['patrolmarks'] = false; // let anons see what was patrolled
5056 
5057 // Implicit group for all logged-in accounts
5058 $wgGroupPermissions['user']['move'] = true;
5059 $wgGroupPermissions['user']['move-subpages'] = true;
5060 $wgGroupPermissions['user']['move-rootuserpages'] = true; // can move root userpages
5061 $wgGroupPermissions['user']['move-categorypages'] = true;
5062 $wgGroupPermissions['user']['movefile'] = true;
5063 $wgGroupPermissions['user']['read'] = true;
5064 $wgGroupPermissions['user']['edit'] = true;
5065 $wgGroupPermissions['user']['createpage'] = true;
5066 $wgGroupPermissions['user']['createtalk'] = true;
5067 $wgGroupPermissions['user']['writeapi'] = true;
5068 $wgGroupPermissions['user']['upload'] = true;
5069 $wgGroupPermissions['user']['reupload'] = true;
5070 $wgGroupPermissions['user']['reupload-shared'] = true;
5071 $wgGroupPermissions['user']['minoredit'] = true;
5072 $wgGroupPermissions['user']['purge'] = true; // can use ?action=purge without clicking "ok"
5073 $wgGroupPermissions['user']['sendemail'] = true;
5074 $wgGroupPermissions['user']['applychangetags'] = true;
5075 $wgGroupPermissions['user']['changetags'] = true;
5076 
5077 // Implicit group for accounts that pass $wgAutoConfirmAge
5078 $wgGroupPermissions['autoconfirmed']['autoconfirmed'] = true;
5079 $wgGroupPermissions['autoconfirmed']['editsemiprotected'] = true;
5080 
5081 // Users with bot privilege can have their edits hidden
5082 // from various log pages by default
5083 $wgGroupPermissions['bot']['bot'] = true;
5084 $wgGroupPermissions['bot']['autoconfirmed'] = true;
5085 $wgGroupPermissions['bot']['editsemiprotected'] = true;
5086 $wgGroupPermissions['bot']['nominornewtalk'] = true;
5087 $wgGroupPermissions['bot']['autopatrol'] = true;
5088 $wgGroupPermissions['bot']['suppressredirect'] = true;
5089 $wgGroupPermissions['bot']['apihighlimits'] = true;
5090 $wgGroupPermissions['bot']['writeapi'] = true;
5091 
5092 // Most extra permission abilities go to this group
5093 $wgGroupPermissions['sysop']['block'] = true;
5094 $wgGroupPermissions['sysop']['createaccount'] = true;
5095 $wgGroupPermissions['sysop']['delete'] = true;
5096 // can be separately configured for pages with > $wgDeleteRevisionsLimit revs
5097 $wgGroupPermissions['sysop']['bigdelete'] = true;
5098 // can view deleted history entries, but not see or restore the text
5099 $wgGroupPermissions['sysop']['deletedhistory'] = true;
5100 // can view deleted revision text
5101 $wgGroupPermissions['sysop']['deletedtext'] = true;
5102 $wgGroupPermissions['sysop']['undelete'] = true;
5103 $wgGroupPermissions['sysop']['editinterface'] = true;
5104 $wgGroupPermissions['sysop']['editusercss'] = true;
5105 $wgGroupPermissions['sysop']['edituserjs'] = true;
5106 $wgGroupPermissions['sysop']['editcontentmodel'] = true;
5107 $wgGroupPermissions['sysop']['import'] = true;
5108 $wgGroupPermissions['sysop']['importupload'] = true;
5109 $wgGroupPermissions['sysop']['move'] = true;
5110 $wgGroupPermissions['sysop']['move-subpages'] = true;
5111 $wgGroupPermissions['sysop']['move-rootuserpages'] = true;
5112 $wgGroupPermissions['sysop']['move-categorypages'] = true;
5113 $wgGroupPermissions['sysop']['patrol'] = true;
5114 $wgGroupPermissions['sysop']['autopatrol'] = true;
5115 $wgGroupPermissions['sysop']['protect'] = true;
5116 $wgGroupPermissions['sysop']['editprotected'] = true;
5117 $wgGroupPermissions['sysop']['rollback'] = true;
5118 $wgGroupPermissions['sysop']['upload'] = true;
5119 $wgGroupPermissions['sysop']['reupload'] = true;
5120 $wgGroupPermissions['sysop']['reupload-shared'] = true;
5121 $wgGroupPermissions['sysop']['unwatchedpages'] = true;
5122 $wgGroupPermissions['sysop']['autoconfirmed'] = true;
5123 $wgGroupPermissions['sysop']['editsemiprotected'] = true;
5124 $wgGroupPermissions['sysop']['ipblock-exempt'] = true;
5125 $wgGroupPermissions['sysop']['blockemail'] = true;
5126 $wgGroupPermissions['sysop']['markbotedits'] = true;
5127 $wgGroupPermissions['sysop']['apihighlimits'] = true;
5128 $wgGroupPermissions['sysop']['browsearchive'] = true;
5129 $wgGroupPermissions['sysop']['noratelimit'] = true;
5130 $wgGroupPermissions['sysop']['movefile'] = true;
5131 $wgGroupPermissions['sysop']['unblockself'] = true;
5132 $wgGroupPermissions['sysop']['suppressredirect'] = true;
5133 # $wgGroupPermissions['sysop']['pagelang'] = true;
5134 # $wgGroupPermissions['sysop']['upload_by_url'] = true;
5135 $wgGroupPermissions['sysop']['mergehistory'] = true;
5136 $wgGroupPermissions['sysop']['managechangetags'] = true;
5137 $wgGroupPermissions['sysop']['deletechangetags'] = true;
5138 
5139 // Permission to change users' group assignments
5140 $wgGroupPermissions['bureaucrat']['userrights'] = true;
5141 $wgGroupPermissions['bureaucrat']['noratelimit'] = true;
5142 // Permission to change users' groups assignments across wikis
5143 # $wgGroupPermissions['bureaucrat']['userrights-interwiki'] = true;
5144 // Permission to export pages including linked pages regardless of $wgExportMaxLinkDepth
5145 # $wgGroupPermissions['bureaucrat']['override-export-depth'] = true;
5146 
5147 # $wgGroupPermissions['sysop']['deletelogentry'] = true;
5148 # $wgGroupPermissions['sysop']['deleterevision'] = true;
5149 // To hide usernames from users and Sysops
5150 # $wgGroupPermissions['suppress']['hideuser'] = true;
5151 // To hide revisions/log items from users and Sysops
5152 # $wgGroupPermissions['suppress']['suppressrevision'] = true;
5153 // To view revisions/log items hidden from users and Sysops
5154 # $wgGroupPermissions['suppress']['viewsuppressed'] = true;
5155 // For private suppression log access
5156 # $wgGroupPermissions['suppress']['suppressionlog'] = true;
5157 
5164 # $wgGroupPermissions['developer']['siteadmin'] = true;
5165 
5178 
5182 $wgImplicitGroups = [ '*', 'user', 'autoconfirmed' ];
5183 
5206 
5211 
5219 $wgRestrictionTypes = [ 'create', 'edit', 'move', 'upload' ];
5220 
5232 $wgRestrictionLevels = [ '', 'autoconfirmed', 'sysop' ];
5233 
5244 
5258 
5267 
5278 
5300 
5311 
5336  'autoconfirmed' => [ '&',
5339  ],
5340 ];
5341 
5361  'onEdit' => [],
5362 ];
5363 
5369 
5393 
5398 
5404 
5410 
5419 
5426 
5439 
5444 
5451 
5475 $wgDnsBlacklistUrls = [ 'http.dnsbl.sorbs.net.' ];
5476 
5482 
5489 
5520  // Page edits
5521  'edit' => [
5522  'ip' => [ 8, 60 ],
5523  'newbie' => [ 8, 60 ],
5524  ],
5525  // Page moves
5526  'move' => [
5527  'newbie' => [ 2, 120 ],
5528  'user' => [ 8, 60 ],
5529  ],
5530  // File uploads
5531  'upload' => [
5532  'ip' => [ 8, 60 ],
5533  'newbie' => [ 8, 60 ],
5534  ],
5535  // Page rollbacks
5536  'rollback' => [
5537  'user' => [ 10, 60 ],
5538  'newbie' => [ 5, 120 ]
5539  ],
5540  // Triggering password resets emails
5541  'mailpassword' => [
5542  'ip' => [ 5, 3600 ],
5543  ],
5544  // Emailing other users using MediaWiki
5545  'emailuser' => [
5546  'ip' => [ 5, 86400 ],
5547  'newbie' => [ 5, 86400 ],
5548  'user' => [ 20, 86400 ],
5549  ],
5550  // Purging pages
5551  'purge' => [
5552  'ip' => [ 30, 60 ],
5553  'user' => [ 30, 60 ],
5554  ],
5555  // Purges of link tables
5556  'linkpurge' => [
5557  'ip' => [ 30, 60 ],
5558  'user' => [ 30, 60 ],
5559  ],
5560  // Files rendered via thumb.php or thumb_handler.php
5561  'renderfile' => [
5562  'ip' => [ 700, 30 ],
5563  'user' => [ 700, 30 ],
5564  ],
5565  // Same as above but for non-standard thumbnails
5566  'renderfile-nonstandard' => [
5567  'ip' => [ 70, 30 ],
5568  'user' => [ 70, 30 ],
5569  ],
5570  // Stashing edits into cache before save
5571  'stashedit' => [
5572  'ip' => [ 30, 60 ],
5573  'newbie' => [ 30, 60 ],
5574  ],
5575  // Adding or removing change tags
5576  'changetag' => [
5577  'ip' => [ 8, 60 ],
5578  'newbie' => [ 8, 60 ],
5579  ],
5580 ];
5581 
5587 
5594 
5600 
5614  // Short term limit
5615  [ 'count' => 5, 'seconds' => 300 ],
5616  // Long term limit. We need to balance the risk
5617  // of somebody using this as a DoS attack to lock someone
5618  // out of their account, and someone doing a brute force attack.
5619  [ 'count' => 150, 'seconds' => 60*60*48 ],
5620 ];
5621 
5633 
5634 // @TODO: clean up grants
5635 // @TODO: auto-include read/editsemiprotected rights?
5636 
5637 $wgGrantPermissions['basic']['autoconfirmed'] = true;
5638 $wgGrantPermissions['basic']['autopatrol'] = true;
5639 $wgGrantPermissions['basic']['editsemiprotected'] = true;
5640 $wgGrantPermissions['basic']['ipblock-exempt'] = true;
5641 $wgGrantPermissions['basic']['nominornewtalk'] = true;
5642 $wgGrantPermissions['basic']['patrolmarks'] = true;
5643 $wgGrantPermissions['basic']['purge'] = true;
5644 $wgGrantPermissions['basic']['read'] = true;
5645 $wgGrantPermissions['basic']['skipcaptcha'] = true;
5646 $wgGrantPermissions['basic']['writeapi'] = true;
5647 
5648 $wgGrantPermissions['highvolume']['bot'] = true;
5649 $wgGrantPermissions['highvolume']['apihighlimits'] = true;
5650 $wgGrantPermissions['highvolume']['noratelimit'] = true;
5651 $wgGrantPermissions['highvolume']['markbotedits'] = true;
5652 
5653 $wgGrantPermissions['editpage']['edit'] = true;
5654 $wgGrantPermissions['editpage']['minoredit'] = true;
5655 $wgGrantPermissions['editpage']['applychangetags'] = true;
5656 $wgGrantPermissions['editpage']['changetags'] = true;
5657 
5658 $wgGrantPermissions['editprotected'] = $wgGrantPermissions['editpage'];
5659 $wgGrantPermissions['editprotected']['editprotected'] = true;
5660 
5661 $wgGrantPermissions['editmycssjs'] = $wgGrantPermissions['editpage'];
5662 $wgGrantPermissions['editmycssjs']['editmyusercss'] = true;
5663 $wgGrantPermissions['editmycssjs']['editmyuserjs'] = true;
5664 
5665 $wgGrantPermissions['editmyoptions']['editmyoptions'] = true;
5666 
5667 $wgGrantPermissions['editinterface'] = $wgGrantPermissions['editpage'];
5668 $wgGrantPermissions['editinterface']['editinterface'] = true;
5669 $wgGrantPermissions['editinterface']['editusercss'] = true;
5670 $wgGrantPermissions['editinterface']['edituserjs'] = true;
5671 
5672 $wgGrantPermissions['createeditmovepage'] = $wgGrantPermissions['editpage'];
5673 $wgGrantPermissions['createeditmovepage']['createpage'] = true;
5674 $wgGrantPermissions['createeditmovepage']['createtalk'] = true;
5675 $wgGrantPermissions['createeditmovepage']['move'] = true;
5676 $wgGrantPermissions['createeditmovepage']['move-rootuserpages'] = true;
5677 $wgGrantPermissions['createeditmovepage']['move-subpages'] = true;
5678 $wgGrantPermissions['createeditmovepage']['move-categorypages'] = true;
5679 
5680 $wgGrantPermissions['uploadfile']['upload'] = true;
5681 $wgGrantPermissions['uploadfile']['reupload-own'] = true;
5682 
5683 $wgGrantPermissions['uploadeditmovefile'] = $wgGrantPermissions['uploadfile'];
5684 $wgGrantPermissions['uploadeditmovefile']['reupload'] = true;
5685 $wgGrantPermissions['uploadeditmovefile']['reupload-shared'] = true;
5686 $wgGrantPermissions['uploadeditmovefile']['upload_by_url'] = true;
5687 $wgGrantPermissions['uploadeditmovefile']['movefile'] = true;
5688 $wgGrantPermissions['uploadeditmovefile']['suppressredirect'] = true;
5689 
5690 $wgGrantPermissions['patrol']['patrol'] = true;
5691 
5692 $wgGrantPermissions['rollback']['rollback'] = true;
5693 
5694 $wgGrantPermissions['blockusers']['block'] = true;
5695 $wgGrantPermissions['blockusers']['blockemail'] = true;
5696 
5697 $wgGrantPermissions['viewdeleted']['browsearchive'] = true;
5698 $wgGrantPermissions['viewdeleted']['deletedhistory'] = true;
5699 $wgGrantPermissions['viewdeleted']['deletedtext'] = true;
5700 
5701 $wgGrantPermissions['delete'] = $wgGrantPermissions['editpage'] +
5702  $wgGrantPermissions['viewdeleted'];
5703 $wgGrantPermissions['delete']['delete'] = true;
5704 $wgGrantPermissions['delete']['bigdelete'] = true;
5705 $wgGrantPermissions['delete']['deletelogentry'] = true;
5706 $wgGrantPermissions['delete']['deleterevision'] = true;
5707 $wgGrantPermissions['delete']['undelete'] = true;
5708 
5709 $wgGrantPermissions['protect'] = $wgGrantPermissions['editprotected'];
5710 $wgGrantPermissions['protect']['protect'] = true;
5711 
5712 $wgGrantPermissions['viewmywatchlist']['viewmywatchlist'] = true;
5713 
5714 $wgGrantPermissions['editmywatchlist']['editmywatchlist'] = true;
5715 
5716 $wgGrantPermissions['sendemail']['sendemail'] = true;
5717 
5718 $wgGrantPermissions['createaccount']['createaccount'] = true;
5719 
5725  // Hidden grants are implicitly present
5726  'basic' => 'hidden',
5727 
5728  'editpage' => 'page-interaction',
5729  'createeditmovepage' => 'page-interaction',
5730  'editprotected' => 'page-interaction',
5731  'patrol' => 'page-interaction',
5732 
5733  'uploadfile' => 'file-interaction',
5734  'uploadeditmovefile' => 'file-interaction',
5735 
5736  'sendemail' => 'email',
5737 
5738  'viewmywatchlist' => 'watchlist-interaction',
5739  'editviewmywatchlist' => 'watchlist-interaction',
5740 
5741  'editmycssjs' => 'customization',
5742  'editmyoptions' => 'customization',
5743 
5744  'editinterface' => 'administration',
5745  'rollback' => 'administration',
5746  'blockusers' => 'administration',
5747  'delete' => 'administration',
5748  'viewdeleted' => 'administration',
5749  'protect' => 'administration',
5750  'createaccount' => 'administration',
5751 
5752  'highvolume' => 'high-volume',
5753 ];
5754 
5760 
5767 
5777  # end of user rights settings
5779 
5780 /************************************************************************/
5789 
5800  # end of proxy scanner settings
5802 
5803 /************************************************************************/
5811 $wgCookieExpiration = 180 * 86400;
5812 
5820 
5826 
5832 
5839 $wgCookieSecure = 'detect';
5840 
5848 
5855 
5862 
5867 
5872  # end of cookie settings }
5874 
5875 /************************************************************************/
5886 $wgUseTeX = false;
5887  # end LaTeX }
5889 
5890 /************************************************************************/
5904 
5909 
5916 
5923 
5933 
5943 
5950  // HTTP GET/HEAD requests.
5951  // Master queries should not happen on GET requests
5952  'GET' => [
5953  'masterConns' => 0,
5954  'writes' => 0,
5955  'readQueryTime' => 5
5956  ],
5957  // HTTP POST requests.
5958  // Master reads and writes will happen for a subset of these.
5959  'POST' => [
5960  'readQueryTime' => 5,
5961  'writeQueryTime' => 1,
5962  'maxAffected' => 500
5963  ],
5964  'POST-nonwrite' => [
5965  'masterConns' => 0,
5966  'writes' => 0,
5967  'readQueryTime' => 5
5968  ],
5969  // Deferred updates that run after HTTP response is sent
5970  'PostSend' => [
5971  'readQueryTime' => 5,
5972  'writeQueryTime' => 1,
5973  'maxAffected' => 500
5974  ],
5975  // Background job runner
5976  'JobRunner' => [
5977  'readQueryTime' => 30,
5978  'writeQueryTime' => 5,
5979  'maxAffected' => 1000
5980  ],
5981  // Command-line scripts
5982  'Maintenance' => [
5983  'writeQueryTime' => 5,
5984  'maxAffected' => 1000
5985  ]
5986 ];
5987 
6019 
6042  'class' => '\\MediaWiki\\Logger\\LegacySpi',
6043 ];
6044 
6051 
6057 
6062 
6067 
6074 
6082 
6092 
6097 
6102 
6109 
6115 
6122 
6128 
6136 
6148 
6157 
6164 
6172 
6183  "$IP/tests/parser/parserTests.txt",
6184  "$IP/tests/parser/extraParserTests.txt"
6185 ];
6186 
6191 
6197 
6206  # end of profiling, testing and debugging }
6208 
6209 /************************************************************************/
6218 
6224 
6229 $wgSearchHighlightBoundaries = '[\p{Z}\p{P}\p{C}]';
6230 
6242 
6252  'application/x-suggestions+json' => false,
6253  'application/x-suggestions+xml' => false,
6254 ];
6255 
6263 
6269 
6274 
6279 
6285 
6296  NS_MAIN => true,
6297 ];
6298 
6304 
6321 
6328 
6335 
6351 
6358  # end of search settings
6360 
6361 /************************************************************************/
6370 $wgDiff3 = '/usr/bin/diff3';
6371 
6375 $wgDiff = '/usr/bin/diff';
6376 
6383  NS_CATEGORY => true
6384 ];
6385 
6392 
6399  # end edit UI }
6401 
6402 /************************************************************************/
6412 if ( !isset( $wgCommandLineMode ) ) {
6413  $wgCommandLineMode = false;
6414 }
6421 
6431 
6440 
6451 
6455 $wgGitBin = '/usr/bin/git';
6456 
6471  'https://(?:[a-z0-9_]+@)?gerrit.wikimedia.org/r/(?:p/)?(.*)' =>
6472  'https://phabricator.wikimedia.org/r/revision/%R;%H',
6473  'ssh://(?:[a-z0-9_]+@)?gerrit.wikimedia.org:29418/(.*)' =>
6474  'https://phabricator.wikimedia.org/r/revision/%R;%H',
6475 ];
6476  # End of maintenance }
6478 
6479 /************************************************************************/
6489 $wgRCMaxAge = 90 * 24 * 3600;
6490 
6496 $wgWatchersMaxAge = 180 * 24 * 3600;
6497 
6505 
6514 
6519 $wgRCLinkLimits = [ 50, 100, 250, 500 ];
6520 
6525 $wgRCLinkDays = [ 1, 3, 7, 14, 30 ];
6526 
6569 
6575  'redis' => 'RedisPubSubFeedEngine',
6576  'udp' => 'UDPRCFeedEngine',
6577 ];
6578 
6591 
6597 
6602 
6609 
6614 
6618 $wgFeed = true;
6619 
6625 
6635 
6641 
6655 
6662  'rss' => 'RSSFeed',
6663  'atom' => 'AtomFeed',
6664 ];
6665 
6671 
6676 
6681 
6688 
6694 
6700 
6705 
6711 
6720 
6746  'newpage' => [
6747  'letter' => 'newpageletter',
6748  'title' => 'recentchanges-label-newpage',
6749  'legend' => 'recentchanges-legend-newpage',
6750  'grouping' => 'any',
6751  ],
6752  'minor' => [
6753  'letter' => 'minoreditletter',
6754  'title' => 'recentchanges-label-minor',
6755  'legend' => 'recentchanges-legend-minor',
6756  'class' => 'minoredit',
6757  'grouping' => 'all',
6758  ],
6759  'bot' => [
6760  'letter' => 'boteditletter',
6761  'title' => 'recentchanges-label-bot',
6762  'legend' => 'recentchanges-legend-bot',
6763  'class' => 'botedit',
6764  'grouping' => 'all',
6765  ],
6766  'unpatrolled' => [
6767  'letter' => 'unpatrolledletter',
6768  'title' => 'recentchanges-label-unpatrolled',
6769  'legend' => 'recentchanges-legend-unpatrolled',
6770  'grouping' => 'any',
6771  ],
6772 ];
6773  # end RC/watchlist }
6775 
6776 /************************************************************************/
6789 
6796 
6804 
6809 
6814 
6823 
6829  # end of copyright and credits settings }
6831 
6832 /************************************************************************/
6860 
6869 
6876 
6883 
6888 
6901 
6906 
6911 
6919  # end of import/export }
6921 
6922 /*************************************************************************/
6932 
6960 
6987 
6994 
7010 
7015 
7025 
7033 
7038 
7045 
7099 
7105 $wgAuth = null;
7106 
7142 
7155  __DIR__ . '/ServiceWiring.php'
7156 ];
7157 
7163  'refreshLinks' => 'RefreshLinksJob',
7164  'deleteLinks' => 'DeleteLinksJob',
7165  'htmlCacheUpdate' => 'HTMLCacheUpdateJob',
7166  'sendMail' => 'EmaillingJob',
7167  'enotifNotify' => 'EnotifNotifyJob',
7168  'fixDoubleRedirect' => 'DoubleRedirectJob',
7169  'AssembleUploadChunks' => 'AssembleUploadChunksJob',
7170  'PublishStashedFile' => 'PublishStashedFileJob',
7171  'ThumbnailRender' => 'ThumbnailRenderJob',
7172  'recentChangesUpdate' => 'RecentChangesUpdateJob',
7173  'refreshLinksPrioritized' => 'RefreshLinksJob',
7174  'refreshLinksDynamic' => 'RefreshLinksJob',
7175  'activityUpdateJob' => 'ActivityUpdateJob',
7176  'categoryMembershipChange' => 'CategoryMembershipChangeJob',
7177  'cdnPurge' => 'CdnPurgeJob',
7178  'enqueue' => 'EnqueueJob', // local queue for multi-DC setups
7179  'null' => 'NullJob'
7180 ];
7181 
7193 $wgJobTypesExcludedFromDefaultQueue = [ 'AssembleUploadChunks', 'PublishStashedFile' ];
7194 
7205 
7220 
7228  'default' => [ 'class' => 'JobQueueDB', 'order' => 'random', 'claimTTL' => 3600 ],
7229 ];
7230 
7236  'class' => 'JobQueueAggregatorNull'
7237 ];
7238 
7244  'Statistics' => [ 'SiteStatsUpdate', 'cacheUpdate' ]
7245 ];
7246 
7255 
7264  'hiddencat' => 'categorylinks',
7265 ];
7266  # End extensions }
7268 
7269 /*************************************************************************/
7278 
7284 
7289 
7315 $wgCategoryCollation = 'uppercase';
7316  # End categories }
7318 
7319 /*************************************************************************/
7331  '',
7332  'block',
7333  'protect',
7334  'rights',
7335  'delete',
7336  'upload',
7337  'move',
7338  'import',
7339  'patrol',
7340  'merge',
7341  'suppress',
7342  'tag',
7343  'managetags',
7344  'contentmodel',
7345 ];
7346 
7355  'suppress' => 'suppressionlog'
7356 ];
7357 
7378  'patrol' => true,
7379  'tag' => true,
7380 ];
7381 
7392  '' => 'all-logs-page',
7393  'block' => 'blocklogpage',
7394  'protect' => 'protectlogpage',
7395  'rights' => 'rightslog',
7396  'delete' => 'dellogpage',
7397  'upload' => 'uploadlogpage',
7398  'move' => 'movelogpage',
7399  'import' => 'importlogpage',
7400  'patrol' => 'patrol-log-page',
7401  'merge' => 'mergelog',
7402  'suppress' => 'suppressionlog',
7403 ];
7404 
7415  '' => 'alllogstext',
7416  'block' => 'blocklogtext',
7417  'delete' => 'dellogpagetext',
7418  'import' => 'importlogpagetext',
7419  'merge' => 'mergelogpagetext',
7420  'move' => 'movelogpagetext',
7421  'patrol' => 'patrol-log-header',
7422  'protect' => 'protectlogtext',
7423  'rights' => 'rightslogtext',
7424  'suppress' => 'suppressionlogtext',
7425  'upload' => 'uploadlogpagetext',
7426 ];
7427 
7435 
7443  'block/block' => 'BlockLogFormatter',
7444  'block/reblock' => 'BlockLogFormatter',
7445  'block/unblock' => 'BlockLogFormatter',
7446  'contentmodel/change' => 'ContentModelLogFormatter',
7447  'contentmodel/new' => 'ContentModelLogFormatter',
7448  'delete/delete' => 'DeleteLogFormatter',
7449  'delete/event' => 'DeleteLogFormatter',
7450  'delete/restore' => 'DeleteLogFormatter',
7451  'delete/revision' => 'DeleteLogFormatter',
7452  'import/interwiki' => 'ImportLogFormatter',
7453  'import/upload' => 'ImportLogFormatter',
7454  'managetags/activate' => 'LogFormatter',
7455  'managetags/create' => 'LogFormatter',
7456  'managetags/deactivate' => 'LogFormatter',
7457  'managetags/delete' => 'LogFormatter',
7458  'merge/merge' => 'MergeLogFormatter',
7459  'move/move' => 'MoveLogFormatter',
7460  'move/move_redir' => 'MoveLogFormatter',
7461  'patrol/patrol' => 'PatrolLogFormatter',
7462  'patrol/autopatrol' => 'PatrolLogFormatter',
7463  'protect/modify' => 'ProtectLogFormatter',
7464  'protect/move_prot' => 'ProtectLogFormatter',
7465  'protect/protect' => 'ProtectLogFormatter',
7466  'protect/unprotect' => 'ProtectLogFormatter',
7467  'rights/autopromote' => 'RightsLogFormatter',
7468  'rights/rights' => 'RightsLogFormatter',
7469  'suppress/block' => 'BlockLogFormatter',
7470  'suppress/delete' => 'DeleteLogFormatter',
7471  'suppress/event' => 'DeleteLogFormatter',
7472  'suppress/reblock' => 'BlockLogFormatter',
7473  'suppress/revision' => 'DeleteLogFormatter',
7474  'tag/update' => 'TagLogFormatter',
7475  'upload/overwrite' => 'UploadLogFormatter',
7476  'upload/revert' => 'UploadLogFormatter',
7477  'upload/upload' => 'UploadLogFormatter',
7478 ];
7479 
7489  'block' => [
7490  'block' => [ 'block' ],
7491  'reblock' => [ 'reblock' ],
7492  'unblock' => [ 'unblock' ],
7493  ],
7494  'contentmodel' => [
7495  'change' => [ 'change' ],
7496  'new' => [ 'new' ],
7497  ],
7498  'delete' => [
7499  'delete' => [ 'delete' ],
7500  'restore' => [ 'restore' ],
7501  'event' => [ 'event' ],
7502  'revision' => [ 'revision' ],
7503  ],
7504  'import' => [
7505  'interwiki' => [ 'interwiki' ],
7506  'upload' => [ 'upload' ],
7507  ],
7508  'managetags' => [
7509  'create' => [ 'create' ],
7510  'delete' => [ 'delete' ],
7511  'activate' => [ 'activate' ],
7512  'deactivate' => [ 'deactivate' ],
7513  ],
7514  'move' => [
7515  'move' => [ 'move' ],
7516  'move_redir' => [ 'move_redir' ],
7517  ],
7518  'newusers' => [
7519  'create' => [ 'create', 'newusers' ],
7520  'create2' => [ 'create2' ],
7521  'autocreate' => [ 'autocreate' ],
7522  'byemail' => [ 'byemail' ],
7523  ],
7524  'patrol' => [
7525  'patrol' => [ 'patrol' ],
7526  'autopatrol' => [ 'autopatrol' ],
7527  ],
7528  'protect' => [
7529  'protect' => [ 'protect' ],
7530  'modify' => [ 'modify' ],
7531  'unprotect' => [ 'unprotect' ],
7532  'move_prot' => [ 'move_prot' ],
7533  ],
7534  'rights' => [
7535  'rights' => [ 'rights' ],
7536  'autopromote' => [ 'autopromote' ],
7537  ],
7538  'suppress' => [
7539  'event' => [ 'event' ],
7540  'revision' => [ 'revision' ],
7541  'delete' => [ 'delete' ],
7542  'block' => [ 'block' ],
7543  'reblock' => [ 'reblock' ],
7544  ],
7545  'upload' => [
7546  'upload' => [ 'upload' ],
7547  'overwrite' => [ 'overwrite' ],
7548  ],
7549 ];
7550 
7555  # end logging }
7557 
7558 /*************************************************************************/
7567 
7573 
7579 
7585  # end special pages }
7587 
7588 /*************************************************************************/
7604  'credits' => true,
7605  'delete' => true,
7606  'edit' => true,
7607  'editchangetags' => 'SpecialPageAction',
7608  'history' => true,
7609  'info' => true,
7610  'markpatrolled' => true,
7611  'protect' => true,
7612  'purge' => true,
7613  'raw' => true,
7614  'render' => true,
7615  'revert' => true,
7616  'revisiondelete' => 'SpecialPageAction',
7617  'rollback' => true,
7618  'submit' => true,
7619  'unprotect' => true,
7620  'unwatch' => true,
7621  'view' => true,
7622  'watch' => true,
7623 ];
7624  # end actions }
7626 
7627 /*************************************************************************/
7638 $wgDefaultRobotPolicy = 'index,follow';
7639 
7655 
7683 
7695  # End robot policy }
7697 
7698 /************************************************************************/
7713 
7720 
7735 $wgDebugAPI = false;
7736 
7774 
7783 
7792 
7801 
7810 
7816 
7822 
7828 
7835 
7841 
7846 
7852  'MIMEsearch', // aiprop=mime
7853  'LinkSearch', // list=exturlusage
7854  'FileDuplicateSearch', // prop=duplicatefiles
7855 ];
7856 
7860 $wgUseAjax = true;
7861 
7868 
7873 
7878 
7884 
7906 
7913  # End AJAX and API }
7915 
7916 /************************************************************************/
7925 
7931 
7936 
7942 
7967 
7971 $wgPhpCli = '/usr/bin/php';
7972 
7978 $wgShellLocale = 'en_US.utf8';
7979  # End shell }
7981 
7982 /************************************************************************/
7991 
7996 
8001 
8013 
8019  # End HTTP client }
8021 
8022 /************************************************************************/
8034 
8042 
8047 
8052  # End job queue }
8054 
8055 /************************************************************************/
8067 
8077 
8083 
8089 
8094 
8100 
8106 
8128 
8133 
8143 
8155 
8170 
8182  CONTENT_MODEL_WIKITEXT, // Just for completeness, wikitext will always be parsed.
8183  CONTENT_MODEL_JAVASCRIPT, // Make categories etc work, people put them into comments.
8184  CONTENT_MODEL_CSS, // Make categories etc work, people put them into comments.
8185 ];
8186 
8193 
8200  'mediawiki' => 'MediaWikiSite',
8201 ];
8202 
8209 
8217 
8225 
8234 
8244 
8251 $wgHKDFAlgorithm = 'sha256';
8252 
8260 
8281  'modules' => [],
8282  'global' => [
8283  # Timeout in seconds
8284  'timeout' => 360,
8285  # 'domain' is set to $wgCanonicalServer in Setup.php
8286  'forwardCookies' => false,
8287  'HTTPProxy' => null
8288  ]
8289 ];
8290 
8299 
8311 $wgPopularPasswordFile = __DIR__ . '/../serialized/commonpasswords.cdb';
8312 
8313 /*
8314  * Max time (in seconds) a user-generated transaction can spend in writes.
8315  * If exceeded, the transaction is rolled back with an error instead of being committed.
8316  *
8317  * @var int|bool Disabled if false
8318  * @since 1.27
8319  */
8321 
8342  'default' => [
8343  'class' => 'EventRelayerNull',
8344  ]
8345 ];
8346 
8360 $wgPingback = false;
8361 
$wgPasswordSenderName
Sender name for e-mail notifications.
$wgStrictFileExtensions
If this is turned off, users may override the warning for files not covered by $wgFileExtensions.
$wgLogExceptionBacktrace
If true, send the exception backtrace to the error log.
$wgForeignFileRepos
$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)
$wgResourceLoaderLESSVars
Global LESS variables.
$wgShowCreditsIfMax
If there are more than $wgMaxCredits authors, show $wgMaxCredits of them.
$wgUseInstantCommons
Use Commons as a remote file repository.
bool $wgPingback
Share data about this installation with MediaWiki developers.
string null $wgAuthenticationTokenVersion
Versioning for authentication tokens.
For QUnit the mediawiki tests qunit testrunner dependency will be added to any module it s the URL of the revision text in external storage
Definition: hooks.txt:2581
$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'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).
$wgNewUserLog
Maintain a log of newusers at 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...
$wgHashedSharedUploadDirectory
Set the following to false especially if you have a set of files that need to be accessible by all wi...
$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:278
$wgCdnMaxageLagged
Cache timeout for the CDN when DB slave lag is high.
$wgPasswordExpirationDays
The number of days that a user's password is good for.
$wgSVGMetadataCutoff
Don't read SVG metadata beyond this point.
$wgAllowSpecialInclusion
Allow special page inclusions such as {{Special:Allpages}}.
$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's checks for HTML/JavaScript. ...
$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:249
$wgSquidServers
List of proxy servers to purge on changes; default port is 80.
$wgEnableAPI
Enable the MediaWiki API for convenient access to machine-readable data via api.php.
$wgDefaultUserOptions
Settings added to this array will override the default globals for the user preferences used by anony...
$wgAllowExternalImagesFrom
If $wgAllowExternalImages is false, you can allow an on-wiki whitelist of regular expression fragment...
$wgMessagesDirs
Extension messages directories.
const NS_MAIN
Definition: Defines.php:69
$wgSitename
Name of the site.
$wgUseAutomaticEditSummaries
If user doesn't specify any edit summary when making a an edit, MediaWiki will try to automatically c...
$wgQueryCacheLimit
Number of rows to cache in 'querycache' 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:189
$wgJsMimeType
Previously used as content type in HTML script tags.
$wgSysopEmailBans
Allow sysops to ban users from accessing Emailuser.
$IP
Definition: WebStart.php:58
$wgCookieDomain
Set to set an explicit domain on the login cookies eg, "justthis.domain.org" or ".any.subdomain.net".
$wgDBadminpassword
Separate password for maintenance tasks.
$wgTidyBin
The path to the tidy binary.
$wgSitemapNamespacesPriorities
Custom namespace priorities for sitemaps.
$wgDebugLogGroups
Map of string log group names to log destinations.
$wgUseTagFilter
Allow filtering by change tag in recentchanges, history, etc Has no effect if no tags are defined in ...
$wgJobTypesExcludedFromDefaultQueue
Jobs that must be explicitly requested, i.e.
$wgExpensiveParserFunctionLimit
Maximum number of calls per parse to expensive parser functions such as PAGESINCATEGORY.
string $wgPopularPasswordFile
Where popular password file is located.
$wgCookiePrefix
Cookies generated by MediaWiki have names starting with this prefix.
$wgPasswordDefault
Default password type to use when hashing user passwords.
$wgNamespaceRobotPolicies
Robot policies per namespaces.
$wgResourceLoaderValidateStaticJS
If set to true, statically-sourced (file-backed) JavaScript resources will be parsed for validity bef...
$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'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:139
$wgUpdateRowsPerJob
Number of rows to update per job.
$wgImageMagickTempDir
Temporary directory used for ImageMagick.
$wgDBpassword
Database user'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.
$wgSharedUploadDBname
DB name with metadata about shared directory.
$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'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
Base URL for a repository wiki.
$wgEnotifUseRealName
Use real name instead of username in e-mail "from" field.
$wgEnableWriteAPI
Allow the API to be used to perform write operations (page edits, rollback, etc.) when an authorised ...
$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
Port where you have HTTPS running Supports HTTPS on non-standard ports.
$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.
$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's contributions page.
$wgStatsdMetricPrefix
Prefix for metric names sent to $wgStatsdServer.
$wgLocalFileRepo
File repository structures.
$wgResourceLoaderMinifierStatementsOnOwnLine
Put each statement on its own line when minifying JavaScript.
$wgOpenSearchDefaultLimit
Integer defining default number of entries to show on OpenSearch call.
$wgAllowCategorizedRecentChanges
Enable filtering of categories in Recentchanges.
$wgHTTPTimeout
Timeout for HTTP requests done internally, in seconds.
$wgSecureLogin
This is to let user authenticate using https when they come from http.
$wgDBmwschema
Mediawiki schema.
$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...
Array $wgGrantPermissionGroups
Map of grants to their UI grouping.
$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 'rss', 'atom', neither, or both.
$wgJpegPixelFormat
At default setting of 'yuv420', JPEG thumbnails will use 4:2:0 chroma subsampling to reduce file size...
$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.
$wgMimeInfoFile
Sets the MIME type info file to use by MimeMagic.php.
const AV_NO_VIRUS
Definition: Defines.php:138
$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.
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)
$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".
const MEDIATYPE_VIDEO
Definition: Defines.php:122
$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.
$wgSharedUploadDirectory
Path on the file system where shared uploads can be found.
$wgEmailConfirmToEdit
Should editors be required to have a validated e-mail address before being allowed to edit...
$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...
$wgLogAutopatrol
Log autopatrol actions to the log table.
$wgSidebarCacheExpiry
Expiry time for the sidebar cache, in seconds.
$wgShowExceptionDetails
If set to true, uncaught exceptions will print a complete stack trace to output.
$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:281
$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:141
$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 MimeMagic.php.
$wgRevokePermissions
Permission keys revoked from users in each group.
$wgShowDBErrorBacktrace
If true, show a backtrace for database errors.
$wgAPIModules
API module extensions.
$wgJobClasses
Maps jobs to their handling classes; 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...
int[] $wgReauthenticateTime
Time frame for re-authentication.
$wgAuthManagerAutoConfig
const CONTENT_MODEL_JSON
Definition: Defines.php:282
$wgAllowCopyUploads
Allow for upload to be copied from an URL.
$wgExtraGenderNamespaces
Same as above, but for namespaces with gender distinction.
$wgStyleVersion
Bump this number when changing the global style sheets and JavaScript.
$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.
$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 'text' table.
$wgAttemptFailureEpoch
Certain operations are avoided if there were too many recent failures, for example, thumbnail generation.
$wgUserEmailUseReplyTo
Set to true to put the sending user's email in a Reply-To header instead of From. ...
$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'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.
$wgValidateAllHtml
Validate the overall output using tidy and refuse to display the page if it's not valid...
$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'll send an email with a tempo...
$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:140
$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...
$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'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.
$wgUnwatchedPageThreshold
If set to an integer, pages that are watched by this many users or more will not require the unwatche...
$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'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.
$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
Uploads have to be specially set up to be secure.
$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
$wgUseSiteCss
Use the site'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's internal image libraries or using ImageMagick or another third-party...
$wgNoFollowNsExceptions
Namespaces in which $wgNoFollowLinks doesn't apply.
$wgPhpCli
Executable path of the PHP cli binary (php/php5).
$wgResourceLoaderMinifierMaxLineLength
Maximum line length when minifying JavaScript.
$wgLanguageCode
Site language code.
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:1816
$wgExportAllowListContributors
Return distinct author list (when not returning full history)
$wgLoginLanguageSelector
Show a bar of language selection links in the user login and user registration forms; edit the "login...
$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:193
$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
Send notification mails on minor edits to watchlist pages.
global $wgCommandLineMode
Definition: Setup.php:511
$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.
const NS_PROJECT
Definition: Defines.php:73
$wgShowEXIF
Show Exif data, on by default if available.
$wgRateLimitsExcludedIPs
Array of IPs 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 'ISO-8859-1' 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.
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:93
$wgCachePages
Allow client-side caching of pages.
$wgGitBin
Fully specified path to git binary.
$wgTidyConf
The path to the tidy config file.
$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.
$wgWhitelistRead
Pages anonymous user may see, set as an array of pages titles.
$wgUseAjax
Enable AJAX framework.
$wgDeletedDirectory
What directory to place deleted uploads in.
$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:78
$wgExemptFromUserRobotsControl
An array of namespace keys in which the INDEX/__NOINDEX__ magic words will not function, so users can'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 ...
$wgSharedUploadPath
Full path on the web server where shared uploads can be found.
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 just before the function returns a value If you return an< a > element with HTML attributes $attribs and contents $html will be returned If you return $ret will be returned after processing after in associative array form externallinks including delete and has completed for all link tables whether this was an auto creation default is conds Array Extra conditions for the No matching items in log is displayed if loglist is empty msgKey Array If you want a nice box with a message
Definition: hooks.txt:1972
$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 'upright' 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...
const NS_PROJECT_TALK
Definition: Defines.php:74
$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.
$wgImplicitGroups
Implicit groups, aren'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 'false' 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...
$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.
$wgResourceLoaderLESSImportPaths
Default import paths for LESS modules.
$wgDummyLanguageCodes
List of language codes that don't correspond to an actual language.
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...
$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 slaves to tolerate before forcing bots to retry any writ...
$wgTiffThumbnailType
Browsers don'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:83
$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 'remoteBasePath' value for instances of ResourceLoaderFileModule.
$wgThumbLimits
Adjust thumbnails on image pages according to a user setting.
$wgResourceModuleSkinStyles
Skin-specific styles for resource modules.
bool $wgAssumeProxiesUseDefaultProtocolPorts
When the wiki is running behind a proxy and this is set to true, assumes that the proxy exposes the w...
$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
$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...
CACHE_MEMCACHED $wgMainCacheType
Definition: memcached.txt:63
$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 ...
$wgProfileOnly
Don't put non-profiling info into log file.
$wgRCEngines
Used by RecentChange::getEngine to find the correct engine to use 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 transcache database table.
$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.
$wgRequirePasswordforEmailChange
Whether the user must enter their password to change their e-mail address.
$wgMetaNamespaceTalk
Name of the project talk namespace.
$wgMimeDetectorCommand
Sets an external MIME detector program.
$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...
design txt This is a brief overview of the new design More thorough and up to date information is available on the documentation wiki at etc Handles the details of getting and saving to the user table of the and dealing with sessions and cookies OutputPage Encapsulates the entire HTML page that will be sent in response to any server request It is used by calling its functions to add text
Definition: design.txt:12
$wgDebugAPI
WARNING: SECURITY THREAT - debug use only.
$wgGalleryOptions
Default 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?
$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.
$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.
const NS_FILE_TALK
Definition: Defines.php:76
$wgLocaltimezone
Fake out the timezone that the server thinks it'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.
$wgScriptExtension
The extension to append to script names by default.
$wgArticleRobotPolicies
Robot policies per article.
$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.
This directory contains media files for use with the tests in includes media directory Image credits
Definition: README:9
$wgSessionsInMemcached
Deprecated alias for $wgSessionsInObjectCache.
$wgIncludeLegacyJavaScript
Whether to ensure the mediawiki.legacy library is loaded before other modules.
$wgAllowUserCssPrefs
Allow user-preferences implemented in CSS? This allows users to customise the site appearance to a gr...
$wgReferrerPolicy
Value for the referrer policy meta tag.
const NS_MEDIAWIKI
Definition: Defines.php:77
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.
$wgAutopromote
Automatically add a usergroup to any user who matches certain conditions.
$wgCopyUploadTimeout
Different timeout for upload by url This could be useful since when fetching large files...
$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't scale a SVG larger than this.
$wgPasswordSender
Sender email address for e-mail notifications.
$wgActiveUserDays
How many days user must be idle before he is considered inactive.
CONTENT_MODEL_JAVASCRIPT
Uploads have to be specially set up to be secure.
$wgDebugLogPrefix
Prefix for debug log lines.
$wgDBname
Name of the database.
bool $wgPageLanguageUseDB
Enable page language feature Allows setting page language in database.
$wgSquidServersNoPurge
As above, except these servers aren't purged on page changes; use to set a list of trusted proxies...
$wgAccountCreationThrottle
Number of accounts each IP address may create, 0 to disable.
$wgRedirectOnLogin
Allow redirection to another page when a user logs in.
$wgMaxUploadSize
Max size for uploads, in bytes.
$wgAntivirusSetup
Configuration for different virus scanners.
$wgEmailAuthentication
Require email authentication before sending mail to an email address.
$wgSharedUploadDBprefix
Optional table prefix used in database.
$wgSummarySpamRegex
Same as the above except for edit summaries.
$wgLocalVirtualHosts
Local virtual hosts.
$wgShellLocale
Locale for LC_CTYPE, to work around http://bugs.php.net/bug.php?id=45132 For Unix-like operating syst...
$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.
$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'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's memory limit...
$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't change this unless you know what you'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
$wgEnotifRevealEditorAddress
Set the Reply-to address in notifications to the editor's address, if user allowed this in the prefer...
$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't meet t...
$wgUploadSizeWarning
Warn if uploaded files are larger than this (in bytes), or false to disable.
$wgEnotifFromEditor
True: from page editor if s/he opted-in.
$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:84
$wgSharedThumbnailScriptPath
$wgLegacyJavaScriptGlobals
Whether or not to assign configuration variables to the global window object.
const NS_HELP
Definition: Defines.php:81
$wgUseTidy
Set this to true to use the deprecated tidy configuration parameters.
$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).
$wgAllDBsAreLocalhost
Make all database connections secretly go to localhost.
$wgTidyInternal
Set this to true to use the tidy extension.
$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:82
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.
Array $wgGrantPermissions
Map of (grant => right => boolean) Users authorize consumers (like Apps) to act on their behalf but onl...
$wgLocalInterwiki
The interwiki prefix of the current wiki, or false if it doesn't have one.
$wgEdititis
Display user edit counts in various prominent places.
$wgLocalDatabases
Other wikis on this site, can be administered from a single developer account.
$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 'main' key must be set, and the value should be a valid callable.
$wgMsgCacheExpiry
Expiry time for the message cache key.
$wgCacheSharedUploads
Cache shared metadata in memcached.
$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.
$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...
$wgSlaveLagCritical
$wgGrammarForms
Some languages need different word forms, usually for different cases.
$wgDisableAuthManager
Disable AuthManager.
$wgUpdateRowsPerQuery
Number of rows to update per query.
$wgDBprefix
Table name prefix.
$wgMaxCredits
Set this to the number of authors that you want to be credited below an article text.
const CACHE_ANYTHING
Definition: Defines.php: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's given the implicit 'autoconfirm' group me...
$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 'bigdelete' perm...
to move a page</td >< td > &*You are moving the page across *A non empty talk page already exists under the new or *You uncheck the box below In those you will have to move or merge the page manually if desired</td >< td > be sure to &You are responsible for making sure that links continue to point where they are supposed to go Note that the page will &a page at the new title
$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:280
$wgExperimentalHtmlIds
Should we allow a broader set of characters in id attributes, per HTML5? If not, use only HTML 4-comp...
$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.
$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'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.
$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.
design txt This is a brief overview of the new design More thorough and up to date information is available on the documentation wiki at etc Handles the details of getting and saving to the user table of the and dealing with sessions and cookies OutputPage Encapsulates the entire HTML page that will be sent in response to any server request It is used by calling its functions to add in any and then calling output() to send it all.It could be easily changed to send incrementally if that becomes useful
$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.
$wgFetchCommonsDescriptions
Fetch commons image description pages and display them on the local wiki?
Apache License January AND DISTRIBUTION Definitions License shall mean the terms and conditions for and distribution as defined by Sections through of this document Licensor shall mean the copyright owner or entity authorized by the copyright owner that is granting the License Legal Entity shall mean the union of the acting entity and all other entities that control are controlled by or are under common control with that entity For the purposes of this definition control direct or to cause the direction or management of such whether by contract or including but not limited to software source documentation and configuration files Object form shall mean any form resulting from mechanical transformation or translation of a Source including but not limited to compiled object generated documentation
const NS_TALK
Definition: Defines.php:70
$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:248
$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'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've disabled search semi-permanently, this also disables updates to the table.
$wgTidyOpts
The command line options to the tidy binary.
$wgUploadThumbnailRenderHttpCustomHost
When using the "http" wgUploadThumbnailRenderMethod, lets one specify a custom Host HTTP header...
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
$wgDebugTidy
Put tidy warnings in HTML comments Only works for internal tidy.
$wgUseCombinedLoginLink
Login / create account link behavior when it's possible for anonymous users to create an account...
$wgEnableImageWhitelist
If $wgAllowExternalImages is false, you can allow an on-wiki whitelist of regular expression fragment...
$wgCopyUploadProxy
Proxy to use for copy upload requests.
$wgRCLinkDays
List of Days options to list in the Special:Recentchanges and Special:Recentchangeslinked pages...
$wgMimeTypeBlacklist
Files with these MIME types will never be allowed as uploads if $wgVerifyMimeType is enabled...
$wgSlaveLagWarning
If lag is higher than $wgSlaveLagWarning, show a warning in some special pages (like watchlist)...
$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.
$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.
$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's output.
$wgRightsIcon
Override for copyright metadata.
$wgSessionInsecureSecrets
If for some reason you can'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.
Array bool $wgEnableBotPasswords
Whether to enable bot passwords.
$wgUploadNavigationUrl
Point the upload navigation link to an external URL Useful if you want to use a shared repository by ...
$wgOpenSearchDescriptionLength
Minimum length of extract in .
$wgHTCPRouting
Routing configuration for HTCP multicast purging.
$wgSiteTypes
Register handlers for specific types of sites.
$wgResponsiveImages
Generate and use thumbnails suitable for screens with 1.5 and 2.0 pixel densities.
$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:72
$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 'texvc' (in the 'math' 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...
$wgUseSharedUploads
If you operate multiple wikis, you can define a shared upload path here.
$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 slave-lag prone jobs one job at a time.
$wgActionPaths
To set 'pretty' 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 'SET...
bool array string $wgInterwikiCache
Interwiki cache, either as an associative array or a path to a constant database (.cdb) file.
$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...
$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:1490
const NS_TEMPLATE_TALK
Definition: Defines.php:80
$wgDjvuPostProcessor
Shell command for the DJVU post processor Default: pnmtojpeg, since ddjvu generates ppm output Set th...
$wgAmericanDates
Enable dates like 'May 12' instead of '12 May', if the default date format is 'dmy or mdy'...
const CACHE_DB
Definition: Defines.php:103
$wgEnableDnsBlacklist
Whether to use DNS blacklists in $wgDnsBlacklistUrls to check for open proxies.
$wgBrowserBlackList
Browser Blacklist for unicode non compliant browsers.
$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.
$wgEnableSidebarCache
If on, the sidebar navigation links are cached for users with the current language set...
$wgExceptionHooks
Hooks that are used for outputting exceptions.
$wgSiteSupportPage
If this is set, a "donate" link will appear in the sidebar.
$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.
const MEDIATYPE_AUDIO
Definition: Defines.php:119
$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.
const MEDIATYPE_BITMAP
Definition: Defines.php:115