Append a <sup>*</sup> if a tooltip is available
[mediawiki.git] / includes / DefaultSettings.php
blob58efcbbc4aa9212dff24e33686cb669fc05229cd
1 <?php
2 /**
4 * NEVER EDIT THIS FILE
7 * To customize your installation, edit "LocalSettings.php". If you make
8 * changes here, they will be lost on next upgrade of MediaWiki!
10 * Note that since all these string interpolations are expanded
11 * before LocalSettings is included, if you localize something
12 * like $wgScriptPath, you must also localize everything that
13 * depends on it.
15 * Documentation is in the source and on:
16 * http://www.mediawiki.org/wiki/Manual:Configuration_settings
20 # This is not a valid entry point, perform no further processing unless MEDIAWIKI is defined
21 if( !defined( 'MEDIAWIKI' ) ) {
22 echo "This file is part of MediaWiki and is not a valid entry point\n";
23 die( 1 );
26 /**
27 * Create a site configuration object
28 * Not used for much in a default install
30 require_once( "$IP/includes/SiteConfiguration.php" );
31 $wgConf = new SiteConfiguration;
33 /** MediaWiki version number */
34 $wgVersion = '1.14alpha';
36 /** Name of the site. It must be changed in LocalSettings.php */
37 $wgSitename = 'MediaWiki';
39 /**
40 * Name of the project namespace. If left set to false, $wgSitename will be
41 * used instead.
43 $wgMetaNamespace = false;
45 /**
46 * Name of the project talk namespace.
48 * Normally you can ignore this and it will be something like
49 * $wgMetaNamespace . "_talk". In some languages, you may want to set this
50 * manually for grammatical reasons. It is currently only respected by those
51 * languages where it might be relevant and where no automatic grammar converter
52 * exists.
54 $wgMetaNamespaceTalk = false;
57 /** URL of the server. It will be automatically built including https mode */
58 $wgServer = '';
60 if( isset( $_SERVER['SERVER_NAME'] ) ) {
61 $wgServerName = $_SERVER['SERVER_NAME'];
62 } elseif( isset( $_SERVER['HOSTNAME'] ) ) {
63 $wgServerName = $_SERVER['HOSTNAME'];
64 } elseif( isset( $_SERVER['HTTP_HOST'] ) ) {
65 $wgServerName = $_SERVER['HTTP_HOST'];
66 } elseif( isset( $_SERVER['SERVER_ADDR'] ) ) {
67 $wgServerName = $_SERVER['SERVER_ADDR'];
68 } else {
69 $wgServerName = 'localhost';
72 # check if server use https:
73 $wgProto = (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == 'on') ? 'https' : 'http';
75 $wgServer = $wgProto.'://' . $wgServerName;
76 # If the port is a non-standard one, add it to the URL
77 if( isset( $_SERVER['SERVER_PORT'] )
78 && !strpos( $wgServerName, ':' )
79 && ( ( $wgProto == 'http' && $_SERVER['SERVER_PORT'] != 80 )
80 || ( $wgProto == 'https' && $_SERVER['SERVER_PORT'] != 443 ) ) ) {
82 $wgServer .= ":" . $_SERVER['SERVER_PORT'];
86 /**
87 * The path we should point to.
88 * It might be a virtual path in case with use apache mod_rewrite for example
90 * This *needs* to be set correctly.
92 * Other paths will be set to defaults based on it unless they are directly
93 * set in LocalSettings.php
95 $wgScriptPath = '/wiki';
97 /**
98 * Whether to support URLs like index.php/Page_title These often break when PHP
99 * is set up in CGI mode. PATH_INFO *may* be correct if cgi.fix_pathinfo is set,
100 * but then again it may not; lighttpd converts incoming path data to lowercase
101 * on systems with case-insensitive filesystems, and there have been reports of
102 * problems on Apache as well.
104 * To be safe we'll continue to keep it off by default.
106 * Override this to false if $_SERVER['PATH_INFO'] contains unexpectedly
107 * incorrect garbage, or to true if it is really correct.
109 * The default $wgArticlePath will be set based on this value at runtime, but if
110 * you have customized it, having this incorrectly set to true can cause
111 * redirect loops when "pretty URLs" are used.
113 $wgUsePathInfo =
114 ( strpos( php_sapi_name(), 'cgi' ) === false ) &&
115 ( strpos( php_sapi_name(), 'apache2filter' ) === false ) &&
116 ( strpos( php_sapi_name(), 'isapi' ) === false );
119 /**@{
120 * Script users will request to get articles
121 * ATTN: Old installations used wiki.phtml and redirect.phtml - make sure that
122 * LocalSettings.php is correctly set!
124 * Will be set based on $wgScriptPath in Setup.php if not overridden in
125 * LocalSettings.php. Generally you should not need to change this unless you
126 * don't like seeing "index.php".
128 $wgScriptExtension = '.php'; ///< extension to append to script names by default
129 $wgScript = false; ///< defaults to "{$wgScriptPath}/index{$wgScriptExtension}"
130 $wgRedirectScript = false; ///< defaults to "{$wgScriptPath}/redirect{$wgScriptExtension}"
131 /**@}*/
134 /**@{
135 * These various web and file path variables are set to their defaults
136 * in Setup.php if they are not explicitly set from LocalSettings.php.
137 * If you do override them, be sure to set them all!
139 * These will relatively rarely need to be set manually, unless you are
140 * splitting style sheets or images outside the main document root.
143 * style path as seen by users
145 $wgStylePath = false; ///< defaults to "{$wgScriptPath}/skins"
147 * filesystem stylesheets directory
149 $wgStyleDirectory = false; ///< defaults to "{$IP}/skins"
150 $wgStyleSheetPath = &$wgStylePath;
151 $wgArticlePath = false; ///< default to "{$wgScript}/$1" or "{$wgScript}?title=$1", depending on $wgUsePathInfo
152 $wgVariantArticlePath = false;
153 $wgUploadPath = false; ///< defaults to "{$wgScriptPath}/images"
154 $wgUploadDirectory = false; ///< defaults to "{$IP}/images"
155 $wgHashedUploadDirectory = true;
156 $wgLogo = false; ///< defaults to "{$wgStylePath}/common/images/wiki.png"
157 $wgFavicon = '/favicon.ico';
158 $wgAppleTouchIcon = false; ///< This one'll actually default to off. For iPhone and iPod Touch web app bookmarks
159 $wgMathPath = false; ///< defaults to "{$wgUploadPath}/math"
160 $wgMathDirectory = false; ///< defaults to "{$wgUploadDirectory}/math"
161 $wgTmpDirectory = false; ///< defaults to "{$wgUploadDirectory}/tmp"
162 $wgUploadBaseUrl = "";
163 /**@}*/
166 * Default value for chmoding of new directories.
168 $wgDirectoryMode = 0777;
171 * New file storage paths; currently used only for deleted files.
172 * Set it like this:
174 * $wgFileStore['deleted']['directory'] = '/var/wiki/private/deleted';
177 $wgFileStore = array();
178 $wgFileStore['deleted']['directory'] = false;///< Defaults to $wgUploadDirectory/deleted
179 $wgFileStore['deleted']['url'] = null; ///< Private
180 $wgFileStore['deleted']['hash'] = 3; ///< 3-level subdirectory split
182 /**@{
183 * File repository structures
185 * $wgLocalFileRepo is a single repository structure, and $wgForeignFileRepo is
186 * a an array of such structures. Each repository structure is an associative
187 * array of properties configuring the repository.
189 * Properties required for all repos:
190 * class The class name for the repository. May come from the core or an extension.
191 * The core repository classes are LocalRepo, ForeignDBRepo, FSRepo.
193 * name A unique name for the repository.
195 * For all core repos:
196 * url Base public URL
197 * hashLevels The number of directory levels for hash-based division of files
198 * thumbScriptUrl The URL for thumb.php (optional, not recommended)
199 * transformVia404 Whether to skip media file transformation on parse and rely on a 404
200 * handler instead.
201 * initialCapital Equivalent to $wgCapitalLinks, determines whether filenames implicitly
202 * start with a capital letter. The current implementation may give incorrect
203 * description page links when the local $wgCapitalLinks and initialCapital
204 * are mismatched.
205 * pathDisclosureProtection
206 * May be 'paranoid' to remove all parameters from error messages, 'none' to
207 * leave the paths in unchanged, or 'simple' to replace paths with
208 * placeholders. Default for LocalRepo is 'simple'.
210 * These settings describe a foreign MediaWiki installation. They are optional, and will be ignored
211 * for local repositories:
212 * descBaseUrl URL of image description pages, e.g. http://en.wikipedia.org/wiki/Image:
213 * scriptDirUrl URL of the MediaWiki installation, equivalent to $wgScriptPath, e.g.
214 * http://en.wikipedia.org/w
216 * articleUrl Equivalent to $wgArticlePath, e.g. http://en.wikipedia.org/wiki/$1
217 * fetchDescription Fetch the text of the remote file description page. Equivalent to
218 * $wgFetchCommonsDescriptions.
220 * ForeignDBRepo:
221 * dbType, dbServer, dbUser, dbPassword, dbName, dbFlags
222 * equivalent to the corresponding member of $wgDBservers
223 * tablePrefix Table prefix, the foreign wiki's $wgDBprefix
224 * hasSharedCache True if the wiki's shared cache is accessible via the local $wgMemc
226 * The default is to initialise these arrays from the MW<1.11 backwards compatible settings:
227 * $wgUploadPath, $wgThumbnailScriptPath, $wgSharedUploadDirectory, etc.
229 $wgLocalFileRepo = false;
230 $wgForeignFileRepos = array();
231 /**@}*/
234 * Allowed title characters -- regex character class
235 * Don't change this unless you know what you're doing
237 * Problematic punctuation:
238 * []{}|# Are needed for link syntax, never enable these
239 * <> Causes problems with HTML escaping, don't use
240 * % Enabled by default, minor problems with path to query rewrite rules, see below
241 * + Enabled by default, but doesn't work with path to query rewrite rules, corrupted by apache
242 * ? Enabled by default, but doesn't work with path to PATH_INFO rewrites
244 * All three of these punctuation problems can be avoided by using an alias, instead of a
245 * rewrite rule of either variety.
247 * The problem with % is that when using a path to query rewrite rule, URLs are
248 * double-unescaped: once by Apache's path conversion code, and again by PHP. So
249 * %253F, for example, becomes "?". Our code does not double-escape to compensate
250 * for this, indeed double escaping would break if the double-escaped title was
251 * passed in the query string rather than the path. This is a minor security issue
252 * because articles can be created such that they are hard to view or edit.
254 * In some rare cases you may wish to remove + for compatibility with old links.
256 * Theoretically 0x80-0x9F of ISO 8859-1 should be disallowed, but
257 * this breaks interlanguage links
259 $wgLegalTitleChars = " %!\"$&'()*,\\-.\\/0-9:;=?@A-Z\\\\^_`a-z~\\x80-\\xFF+";
263 * The external URL protocols
265 $wgUrlProtocols = array(
266 'http://',
267 'https://',
268 'ftp://',
269 'irc://',
270 'gopher://',
271 'telnet://', // Well if we're going to support the above.. -ævar
272 'nntp://', // @bug 3808 RFC 1738
273 'worldwind://',
274 'mailto:',
275 'news:'
278 /** internal name of virus scanner. This servers as a key to the $wgAntivirusSetup array.
279 * Set this to NULL to disable virus scanning. If not null, every file uploaded will be scanned for viruses.
281 $wgAntivirus= NULL;
283 /** Configuration for different virus scanners. This an associative array of associative arrays:
284 * it contains on setup array per known scanner type. The entry is selected by $wgAntivirus, i.e.
285 * valid values for $wgAntivirus are the keys defined in this array.
287 * The configuration array for each scanner contains the following keys: "command", "codemap", "messagepattern";
289 * "command" is the full command to call the virus scanner - %f will be replaced with the name of the
290 * file to scan. If not present, the filename will be appended to the command. Note that this must be
291 * overwritten if the scanner is not in the system path; in that case, plase set
292 * $wgAntivirusSetup[$wgAntivirus]['command'] to the desired command with full path.
294 * "codemap" is a mapping of exit code to return codes of the detectVirus function in SpecialUpload.
295 * An exit code mapped to AV_SCAN_FAILED causes the function to consider the scan to be failed. This will pass
296 * the file if $wgAntivirusRequired is not set.
297 * An exit code mapped to AV_SCAN_ABORTED causes the function to consider the file to have an usupported format,
298 * which is probably imune to virusses. This causes the file to pass.
299 * An exit code mapped to AV_NO_VIRUS will cause the file to pass, meaning no virus was found.
300 * All other codes (like AV_VIRUS_FOUND) will cause the function to report a virus.
301 * You may use "*" as a key in the array to catch all exit codes not mapped otherwise.
303 * "messagepattern" is a perl regular expression to extract the meaningful part of the scanners
304 * output. The relevant part should be matched as group one (\1).
305 * If not defined or the pattern does not match, the full message is shown to the user.
307 $wgAntivirusSetup = array(
309 #setup for clamav
310 'clamav' => array (
311 'command' => "clamscan --no-summary ",
313 'codemap' => array (
314 "0" => AV_NO_VIRUS, # no virus
315 "1" => AV_VIRUS_FOUND, # virus found
316 "52" => AV_SCAN_ABORTED, # unsupported file format (probably imune)
317 "*" => AV_SCAN_FAILED, # else scan failed
320 'messagepattern' => '/.*?:(.*)/sim',
323 #setup for f-prot
324 'f-prot' => array (
325 'command' => "f-prot ",
327 'codemap' => array (
328 "0" => AV_NO_VIRUS, # no virus
329 "3" => AV_VIRUS_FOUND, # virus found
330 "6" => AV_VIRUS_FOUND, # virus found
331 "*" => AV_SCAN_FAILED, # else scan failed
334 'messagepattern' => '/.*?Infection:(.*)$/m',
339 /** Determines if a failed virus scan (AV_SCAN_FAILED) will cause the file to be rejected. */
340 $wgAntivirusRequired= true;
342 /** Determines if the mime type of uploaded files should be checked */
343 $wgVerifyMimeType= true;
345 /** Sets the mime type definition file to use by MimeMagic.php. */
346 $wgMimeTypeFile= "includes/mime.types";
347 #$wgMimeTypeFile= "/etc/mime.types";
348 #$wgMimeTypeFile= NULL; #use built-in defaults only.
350 /** Sets the mime type info file to use by MimeMagic.php. */
351 $wgMimeInfoFile= "includes/mime.info";
352 #$wgMimeInfoFile= NULL; #use built-in defaults only.
354 /** Switch for loading the FileInfo extension by PECL at runtime.
355 * This should be used only if fileinfo is installed as a shared object
356 * or a dynamic libary
358 $wgLoadFileinfoExtension= false;
360 /** Sets an external mime detector program. The command must print only
361 * the mime type to standard output.
362 * The name of the file to process will be appended to the command given here.
363 * If not set or NULL, mime_content_type will be used if available.
365 $wgMimeDetectorCommand= NULL; # use internal mime_content_type function, available since php 4.3.0
366 #$wgMimeDetectorCommand= "file -bi"; #use external mime detector (Linux)
368 /** Switch for trivial mime detection. Used by thumb.php to disable all fance
369 * things, because only a few types of images are needed and file extensions
370 * can be trusted.
372 $wgTrivialMimeDetection= false;
375 * Additional XML types we can allow via mime-detection.
376 * array = ( 'rootElement' => 'associatedMimeType' )
378 $wgXMLMimeTypes = array(
379 'http://www.w3.org/2000/svg:svg' => 'image/svg+xml',
380 'svg' => 'image/svg+xml',
381 'http://www.lysator.liu.se/~alla/dia/:diagram' => 'application/x-dia-diagram',
382 'http://www.w3.org/1999/xhtml:html' => 'text/html', // application/xhtml+xml?
383 'html' => 'text/html', // application/xhtml+xml?
387 * To set 'pretty' URL paths for actions other than
388 * plain page views, add to this array. For instance:
389 * 'edit' => "$wgScriptPath/edit/$1"
391 * There must be an appropriate script or rewrite rule
392 * in place to handle these URLs.
394 $wgActionPaths = array();
397 * If you operate multiple wikis, you can define a shared upload path here.
398 * Uploads to this wiki will NOT be put there - they will be put into
399 * $wgUploadDirectory.
400 * If $wgUseSharedUploads is set, the wiki will look in the shared repository if
401 * no file of the given name is found in the local repository (for [[Image:..]],
402 * [[Media:..]] links). Thumbnails will also be looked for and generated in this
403 * directory.
405 * Note that these configuration settings can now be defined on a per-
406 * repository basis for an arbitrary number of file repositories, using the
407 * $wgForeignFileRepos variable.
409 $wgUseSharedUploads = false;
410 /** Full path on the web server where shared uploads can be found */
411 $wgSharedUploadPath = "http://commons.wikimedia.org/shared/images";
412 /** Fetch commons image description pages and display them on the local wiki? */
413 $wgFetchCommonsDescriptions = false;
414 /** Path on the file system where shared uploads can be found. */
415 $wgSharedUploadDirectory = "/var/www/wiki3/images";
416 /** DB name with metadata about shared directory. Set this to false if the uploads do not come from a wiki. */
417 $wgSharedUploadDBname = false;
418 /** Optional table prefix used in database. */
419 $wgSharedUploadDBprefix = '';
420 /** Cache shared metadata in memcached. Don't do this if the commons wiki is in a different memcached domain */
421 $wgCacheSharedUploads = true;
422 /** Allow for upload to be copied from an URL. Requires Special:Upload?source=web */
423 $wgAllowCopyUploads = false;
425 * Max size for uploads, in bytes. Currently only works for uploads from URL
426 * via CURL (see $wgAllowCopyUploads). The only way to impose limits on
427 * normal uploads is currently to edit php.ini.
429 $wgMaxUploadSize = 1024*1024*100; # 100MB
432 * Point the upload navigation link to an external URL
433 * Useful if you want to use a shared repository by default
434 * without disabling local uploads (use $wgEnableUploads = false for that)
435 * e.g. $wgUploadNavigationUrl = 'http://commons.wikimedia.org/wiki/Special:Upload';
437 $wgUploadNavigationUrl = false;
440 * Give a path here to use thumb.php for thumbnail generation on client request, instead of
441 * generating them on render and outputting a static URL. This is necessary if some of your
442 * apache servers don't have read/write access to the thumbnail path.
444 * Example:
445 * $wgThumbnailScriptPath = "{$wgScriptPath}/thumb{$wgScriptExtension}";
447 $wgThumbnailScriptPath = false;
448 $wgSharedThumbnailScriptPath = false;
451 * Set the following to false especially if you have a set of files that need to
452 * be accessible by all wikis, and you do not want to use the hash (path/a/aa/)
453 * directory layout.
455 $wgHashedSharedUploadDirectory = true;
458 * Base URL for a repository wiki. Leave this blank if uploads are just stored
459 * in a shared directory and not meant to be accessible through a separate wiki.
460 * Otherwise the image description pages on the local wiki will link to the
461 * image description page on this wiki.
463 * Please specify the namespace, as in the example below.
465 $wgRepositoryBaseUrl = "http://commons.wikimedia.org/wiki/Image:";
468 # Email settings
472 * Site admin email address
473 * Default to wikiadmin@SERVER_NAME
475 $wgEmergencyContact = 'wikiadmin@' . $wgServerName;
478 * Password reminder email address
479 * The address we should use as sender when a user is requesting his password
480 * Default to apache@SERVER_NAME
482 $wgPasswordSender = 'MediaWiki Mail <apache@' . $wgServerName . '>';
485 * dummy address which should be accepted during mail send action
486 * It might be necessay to adapt the address or to set it equal
487 * to the $wgEmergencyContact address
489 #$wgNoReplyAddress = $wgEmergencyContact;
490 $wgNoReplyAddress = 'reply@not.possible';
493 * Set to true to enable the e-mail basic features:
494 * Password reminders, etc. If sending e-mail on your
495 * server doesn't work, you might want to disable this.
497 $wgEnableEmail = true;
500 * Set to true to enable user-to-user e-mail.
501 * This can potentially be abused, as it's hard to track.
503 $wgEnableUserEmail = true;
506 * Set to true to put the sending user's email in a Reply-To header
507 * instead of From. ($wgEmergencyContact will be used as From.)
509 * Some mailers (eg sSMTP) set the SMTP envelope sender to the From value,
510 * which can cause problems with SPF validation and leak recipient addressses
511 * when bounces are sent to the sender.
513 $wgUserEmailUseReplyTo = false;
516 * Minimum time, in hours, which must elapse between password reminder
517 * emails for a given account. This is to prevent abuse by mail flooding.
519 $wgPasswordReminderResendTime = 24;
522 * SMTP Mode
523 * For using a direct (authenticated) SMTP server connection.
524 * Default to false or fill an array :
525 * <code>
526 * "host" => 'SMTP domain',
527 * "IDHost" => 'domain for MessageID',
528 * "port" => "25",
529 * "auth" => true/false,
530 * "username" => user,
531 * "password" => password
532 * </code>
534 $wgSMTP = false;
537 /**@{
538 * Database settings
540 /** database host name or ip address */
541 $wgDBserver = 'localhost';
542 /** database port number */
543 $wgDBport = '';
544 /** name of the database */
545 $wgDBname = 'wikidb';
546 /** */
547 $wgDBconnection = '';
548 /** Database username */
549 $wgDBuser = 'wikiuser';
550 /** Database user's password */
551 $wgDBpassword = '';
552 /** Database type */
553 $wgDBtype = 'mysql';
555 /** Search type
556 * Leave as null to select the default search engine for the
557 * selected database type (eg SearchMySQL), or set to a class
558 * name to override to a custom search engine.
560 $wgSearchType = null;
562 /** Table name prefix */
563 $wgDBprefix = '';
564 /** MySQL table options to use during installation or update */
565 $wgDBTableOptions = 'ENGINE=InnoDB';
567 /** Mediawiki schema */
568 $wgDBmwschema = 'mediawiki';
569 /** Tsearch2 schema */
570 $wgDBts2schema = 'public';
572 /** To override default SQLite data directory ($docroot/../data) */
573 $wgSQLiteDataDir = '';
575 /** Default directory mode for SQLite data directory on creation.
576 * Note that this is different from the default directory mode used
577 * elsewhere.
579 $wgSQLiteDataDirMode = 0700;
582 * Make all database connections secretly go to localhost. Fool the load balancer
583 * thinking there is an arbitrarily large cluster of servers to connect to.
584 * Useful for debugging.
586 $wgAllDBsAreLocalhost = false;
588 /**@}*/
591 /** Live high performance sites should disable this - some checks acquire giant mysql locks */
592 $wgCheckDBSchema = true;
596 * Shared database for multiple wikis. Commonly used for storing a user table
597 * for single sign-on. The server for this database must be the same as for the
598 * main database.
599 * For backwards compatibility the shared prefix is set to the same as the local
600 * prefix, and the user table is listed in the default list of shared tables.
602 * $wgSharedTables may be customized with a list of tables to share in the shared
603 * datbase. However it is advised to limit what tables you do share as many of
604 * MediaWiki's tables may have side effects if you try to share them.
605 * EXPERIMENTAL
607 $wgSharedDB = null;
608 $wgSharedPrefix = false; # Defaults to $wgDBprefix
609 $wgSharedTables = array( 'user' );
612 * Database load balancer
613 * This is a two-dimensional array, an array of server info structures
614 * Fields are:
615 * host: Host name
616 * dbname: Default database name
617 * user: DB user
618 * password: DB password
619 * type: "mysql" or "postgres"
620 * load: ratio of DB_SLAVE load, must be >=0, the sum of all loads must be >0
621 * groupLoads: array of load ratios, the key is the query group name. A query may belong
622 * to several groups, the most specific group defined here is used.
624 * flags: bit field
625 * DBO_DEFAULT -- turns on DBO_TRX only if !$wgCommandLineMode (recommended)
626 * DBO_DEBUG -- equivalent of $wgDebugDumpSql
627 * DBO_TRX -- wrap entire request in a transaction
628 * DBO_IGNORE -- ignore errors (not useful in LocalSettings.php)
629 * DBO_NOBUFFER -- turn off buffering (not useful in LocalSettings.php)
631 * max lag: (optional) Maximum replication lag before a slave will taken out of rotation
632 * max threads: (optional) Maximum number of running threads
634 * These and any other user-defined properties will be assigned to the mLBInfo member
635 * variable of the Database object.
637 * Leave at false to use the single-server variables above. If you set this
638 * variable, the single-server variables will generally be ignored (except
639 * perhaps in some command-line scripts).
641 * The first server listed in this array (with key 0) will be the master. The
642 * rest of the servers will be slaves. To prevent writes to your slaves due to
643 * accidental misconfiguration or MediaWiki bugs, set read_only=1 on all your
644 * slaves in my.cnf. You can set read_only mode at runtime using:
646 * SET @@read_only=1;
648 * Since the effect of writing to a slave is so damaging and difficult to clean
649 * up, we at Wikimedia set read_only=1 in my.cnf on all our DB servers, even
650 * our masters, and then set read_only=0 on masters at runtime.
652 $wgDBservers = false;
655 * Load balancer factory configuration
656 * To set up a multi-master wiki farm, set the class here to something that
657 * can return a LoadBalancer with an appropriate master on a call to getMainLB().
658 * The class identified here is responsible for reading $wgDBservers,
659 * $wgDBserver, etc., so overriding it may cause those globals to be ignored.
661 * The LBFactory_Multi class is provided for this purpose, please see
662 * includes/db/LBFactory_Multi.php for configuration information.
664 $wgLBFactoryConf = array( 'class' => 'LBFactory_Simple' );
666 /** How long to wait for a slave to catch up to the master */
667 $wgMasterWaitTimeout = 10;
669 /** File to log database errors to */
670 $wgDBerrorLog = false;
672 /** When to give an error message */
673 $wgDBClusterTimeout = 10;
676 * Scale load balancer polling time so that under overload conditions, the database server
677 * receives a SHOW STATUS query at an average interval of this many microseconds
679 $wgDBAvgStatusPoll = 2000;
681 /** Set to true if using InnoDB tables */
682 $wgDBtransactions = false;
683 /** Set to true for compatibility with extensions that might be checking.
684 * MySQL 3.23.x is no longer supported. */
685 $wgDBmysql4 = true;
688 * Set to true to engage MySQL 4.1/5.0 charset-related features;
689 * for now will just cause sending of 'SET NAMES=utf8' on connect.
691 * WARNING: THIS IS EXPERIMENTAL!
693 * May break if you're not using the table defs from mysql5/tables.sql.
694 * May break if you're upgrading an existing wiki if set differently.
695 * Broken symptoms likely to include incorrect behavior with page titles,
696 * usernames, comments etc containing non-ASCII characters.
697 * Might also cause failures on the object cache and other things.
699 * Even correct usage may cause failures with Unicode supplementary
700 * characters (those not in the Basic Multilingual Plane) unless MySQL
701 * has enhanced their Unicode support.
703 $wgDBmysql5 = false;
706 * Other wikis on this site, can be administered from a single developer
707 * account.
708 * Array numeric key => database name
710 $wgLocalDatabases = array();
712 /** @{
713 * Object cache settings
714 * See Defines.php for types
716 $wgMainCacheType = CACHE_NONE;
717 $wgMessageCacheType = CACHE_ANYTHING;
718 $wgParserCacheType = CACHE_ANYTHING;
719 /**@}*/
721 $wgParserCacheExpireTime = 86400;
723 $wgSessionsInMemcached = false;
725 /**@{
726 * Memcached-specific settings
727 * See docs/memcached.txt
729 $wgUseMemCached = false;
730 $wgMemCachedDebug = false; ///< Will be set to false in Setup.php, if the server isn't working
731 $wgMemCachedServers = array( '127.0.0.1:11000' );
732 $wgMemCachedPersistent = false;
733 /**@}*/
736 * Directory for local copy of message cache, for use in addition to memcached
738 $wgLocalMessageCache = false;
740 * Defines format of local cache
741 * true - Serialized object
742 * false - PHP source file (Warning - security risk)
744 $wgLocalMessageCacheSerialized = true;
747 * Directory for compiled constant message array databases
748 * WARNING: turning anything on will just break things, aaaaaah!!!!
750 $wgCachedMessageArrays = false;
752 # Language settings
754 /** Site language code, should be one of ./languages/Language(.*).php */
755 $wgLanguageCode = 'en';
758 * Some languages need different word forms, usually for different cases.
759 * Used in Language::convertGrammar().
761 $wgGrammarForms = array();
762 #$wgGrammarForms['en']['genitive']['car'] = 'car\'s';
764 /** Treat language links as magic connectors, not inline links */
765 $wgInterwikiMagic = true;
767 /** Hide interlanguage links from the sidebar */
768 $wgHideInterlanguageLinks = false;
770 /** List of language names or overrides for default names in Names.php */
771 $wgExtraLanguageNames = array();
773 /** We speak UTF-8 all the time now, unless some oddities happen */
774 $wgInputEncoding = 'UTF-8';
775 $wgOutputEncoding = 'UTF-8';
776 $wgEditEncoding = '';
779 * Set this to eg 'ISO-8859-1' to perform character set
780 * conversion when loading old revisions not marked with
781 * "utf-8" flag. Use this when converting wiki to UTF-8
782 * without the burdensome mass conversion of old text data.
784 * NOTE! This DOES NOT touch any fields other than old_text.
785 * Titles, comments, user names, etc still must be converted
786 * en masse in the database before continuing as a UTF-8 wiki.
788 $wgLegacyEncoding = false;
791 * If set to true, the MediaWiki 1.4 to 1.5 schema conversion will
792 * create stub reference rows in the text table instead of copying
793 * the full text of all current entries from 'cur' to 'text'.
795 * This will speed up the conversion step for large sites, but
796 * requires that the cur table be kept around for those revisions
797 * to remain viewable.
799 * maintenance/migrateCurStubs.php can be used to complete the
800 * migration in the background once the wiki is back online.
802 * This option affects the updaters *only*. Any present cur stub
803 * revisions will be readable at runtime regardless of this setting.
805 $wgLegacySchemaConversion = false;
807 $wgMimeType = 'text/html';
808 $wgJsMimeType = 'text/javascript';
809 $wgDocType = '-//W3C//DTD XHTML 1.0 Transitional//EN';
810 $wgDTD = 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd';
811 $wgXhtmlDefaultNamespace = 'http://www.w3.org/1999/xhtml';
814 * Permit other namespaces in addition to the w3.org default.
815 * Use the prefix for the key and the namespace for the value. For
816 * example:
817 * $wgXhtmlNamespaces['svg'] = 'http://www.w3.org/2000/svg';
818 * Normally we wouldn't have to define this in the root <html>
819 * element, but IE needs it there in some circumstances.
821 $wgXhtmlNamespaces = array();
823 /** Enable to allow rewriting dates in page text.
824 * DOES NOT FORMAT CORRECTLY FOR MOST LANGUAGES */
825 $wgUseDynamicDates = false;
826 /** Enable dates like 'May 12' instead of '12 May', this only takes effect if
827 * the interface is set to English
829 $wgAmericanDates = false;
831 * For Hindi and Arabic use local numerals instead of Western style (0-9)
832 * numerals in interface.
834 $wgTranslateNumerals = true;
837 * Translation using MediaWiki: namespace.
838 * This will increase load times by 25-60% unless memcached is installed.
839 * Interface messages will be loaded from the database.
841 $wgUseDatabaseMessages = true;
844 * Expiry time for the message cache key
846 $wgMsgCacheExpiry = 86400;
849 * Maximum entry size in the message cache, in bytes
851 $wgMaxMsgCacheEntrySize = 10000;
854 * Set to false if you are thorough system admin who always remembers to keep
855 * serialized files up to date to save few mtime calls.
857 $wgCheckSerialized = true;
859 /** Whether to enable language variant conversion. */
860 $wgDisableLangConversion = false;
862 /** Whether to enable language variant conversion for links. */
863 $wgDisableTitleConversion = false;
865 /** Default variant code, if false, the default will be the language code */
866 $wgDefaultLanguageVariant = false;
869 * Show a bar of language selection links in the user login and user
870 * registration forms; edit the "loginlanguagelinks" message to
871 * customise these
873 $wgLoginLanguageSelector = false;
876 * Whether to use zhdaemon to perform Chinese text processing
877 * zhdaemon is under developement, so normally you don't want to
878 * use it unless for testing
880 $wgUseZhdaemon = false;
881 $wgZhdaemonHost="localhost";
882 $wgZhdaemonPort=2004;
885 # Miscellaneous configuration settings
888 $wgLocalInterwiki = 'w';
889 $wgInterwikiExpiry = 10800; # Expiry time for cache of interwiki table
891 /** Interwiki caching settings.
892 $wgInterwikiCache specifies path to constant database file
893 This cdb database is generated by dumpInterwiki from maintenance
894 and has such key formats:
895 dbname:key - a simple key (e.g. enwiki:meta)
896 _sitename:key - site-scope key (e.g. wiktionary:meta)
897 __global:key - global-scope key (e.g. __global:meta)
898 __sites:dbname - site mapping (e.g. __sites:enwiki)
899 Sites mapping just specifies site name, other keys provide
900 "local url" data layout.
901 $wgInterwikiScopes specify number of domains to check for messages:
902 1 - Just wiki(db)-level
903 2 - wiki and global levels
904 3 - site levels
905 $wgInterwikiFallbackSite - if unable to resolve from cache
907 $wgInterwikiCache = false;
908 $wgInterwikiScopes = 3;
909 $wgInterwikiFallbackSite = 'wiki';
912 * If local interwikis are set up which allow redirects,
913 * set this regexp to restrict URLs which will be displayed
914 * as 'redirected from' links.
916 * It might look something like this:
917 * $wgRedirectSources = '!^https?://[a-z-]+\.wikipedia\.org/!';
919 * Leave at false to avoid displaying any incoming redirect markers.
920 * This does not affect intra-wiki redirects, which don't change
921 * the URL.
923 $wgRedirectSources = false;
926 $wgShowIPinHeader = true; # For non-logged in users
927 $wgMaxSigChars = 255; # Maximum number of Unicode characters in signature
928 $wgMaxArticleSize = 2048; # Maximum article size in kilobytes
929 # Maximum number of bytes in username. You want to run the maintenance
930 # script ./maintenancecheckUsernames.php once you have changed this value
931 $wgMaxNameChars = 255;
933 $wgMaxPPNodeCount = 1000000; # A complexity limit on template expansion
936 * Maximum recursion depth for templates within templates.
937 * The current parser adds two levels to the PHP call stack for each template,
938 * and xdebug limits the call stack to 100 by default. So this should hopefully
939 * stop the parser before it hits the xdebug limit.
941 $wgMaxTemplateDepth = 40;
942 $wgMaxPPExpandDepth = 40;
945 * If true, removes (substitutes) templates in "~~~~" signatures.
947 $wgCleanSignatures = true;
949 $wgExtraSubtitle = '';
950 $wgSiteSupportPage = ''; # A page where you users can receive donations
952 /***
953 * If this lock file exists, the wiki will be forced into read-only mode.
954 * Its contents will be shown to users as part of the read-only warning
955 * message.
957 $wgReadOnlyFile = false; ///< defaults to "{$wgUploadDirectory}/lock_yBgMBwiR";
960 * The debug log file should be not be publicly accessible if it is used, as it
961 * may contain private data. */
962 $wgDebugLogFile = '';
964 $wgDebugRedirects = false;
965 $wgDebugRawPage = false; # Avoid overlapping debug entries by leaving out CSS
967 $wgDebugComments = false;
968 $wgReadOnly = null;
969 $wgLogQueries = false;
972 * Write SQL queries to the debug log
974 $wgDebugDumpSql = false;
977 * Set to an array of log group keys to filenames.
978 * If set, wfDebugLog() output for that group will go to that file instead
979 * of the regular $wgDebugLogFile. Useful for enabling selective logging
980 * in production.
982 $wgDebugLogGroups = array();
985 * Show the contents of $wgHooks in Special:Version
987 $wgSpecialVersionShowHooks = false;
990 * Whether to show "we're sorry, but there has been a database error" pages.
991 * Displaying errors aids in debugging, but may display information useful
992 * to an attacker.
994 $wgShowSQLErrors = false;
997 * If true, some error messages will be colorized when running scripts on the
998 * command line; this can aid picking important things out when debugging.
999 * Ignored when running on Windows or when output is redirected to a file.
1001 $wgColorErrors = true;
1004 * If set to true, uncaught exceptions will print a complete stack trace
1005 * to output. This should only be used for debugging, as it may reveal
1006 * private information in function parameters due to PHP's backtrace
1007 * formatting.
1009 $wgShowExceptionDetails = false;
1012 * Expose backend server host names through the API and various HTML comments
1014 $wgShowHostnames = false;
1017 * Use experimental, DMOZ-like category browser
1019 $wgUseCategoryBrowser = false;
1022 * Keep parsed pages in a cache (objectcache table, turck, or memcached)
1023 * to speed up output of the same page viewed by another user with the
1024 * same options.
1026 * This can provide a significant speedup for medium to large pages,
1027 * so you probably want to keep it on.
1029 $wgEnableParserCache = true;
1032 * Append a configured value to the parser cache and the sitenotice key so
1033 * that they can be kept separate for some class of activity.
1035 $wgRenderHashAppend = '';
1038 * If on, the sidebar navigation links are cached for users with the
1039 * current language set. This can save a touch of load on a busy site
1040 * by shaving off extra message lookups.
1042 * However it is also fragile: changing the site configuration, or
1043 * having a variable $wgArticlePath, can produce broken links that
1044 * don't update as expected.
1046 $wgEnableSidebarCache = false;
1049 * Expiry time for the sidebar cache, in seconds
1051 $wgSidebarCacheExpiry = 86400;
1054 * Under which condition should a page in the main namespace be counted
1055 * as a valid article? If $wgUseCommaCount is set to true, it will be
1056 * counted if it contains at least one comma. If it is set to false
1057 * (default), it will only be counted if it contains at least one [[wiki
1058 * link]]. See http://meta.wikimedia.org/wiki/Help:Article_count
1060 * Retroactively changing this variable will not affect
1061 * the existing count (cf. maintenance/recount.sql).
1063 $wgUseCommaCount = false;
1066 * wgHitcounterUpdateFreq sets how often page counters should be updated, higher
1067 * values are easier on the database. A value of 1 causes the counters to be
1068 * updated on every hit, any higher value n cause them to update *on average*
1069 * every n hits. Should be set to either 1 or something largish, eg 1000, for
1070 * maximum efficiency.
1072 $wgHitcounterUpdateFreq = 1;
1074 # Basic user rights and block settings
1075 $wgSysopUserBans = true; # Allow sysops to ban logged-in users
1076 $wgSysopRangeBans = true; # Allow sysops to ban IP ranges
1077 $wgAutoblockExpiry = 86400; # Number of seconds before autoblock entries expire
1078 $wgBlockAllowsUTEdit = false; # Blocks allow users to edit their own user talk page
1079 $wgSysopEmailBans = true; # Allow sysops to ban users from accessing Emailuser
1081 # Pages anonymous user may see as an array, e.g.:
1082 # array ( "Main Page", "Wikipedia:Help");
1083 # Special:Userlogin and Special:Resetpass are always whitelisted.
1084 # NOTE: This will only work if $wgGroupPermissions['*']['read']
1085 # is false -- see below. Otherwise, ALL pages are accessible,
1086 # regardless of this setting.
1087 # Also note that this will only protect _pages in the wiki_.
1088 # Uploaded files will remain readable. Make your upload
1089 # directory name unguessable, or use .htaccess to protect it.
1090 $wgWhitelistRead = false;
1093 * Should editors be required to have a validated e-mail
1094 * address before being allowed to edit?
1096 $wgEmailConfirmToEdit=false;
1099 * Permission keys given to users in each group.
1100 * All users are implicitly in the '*' group including anonymous visitors;
1101 * logged-in users are all implicitly in the 'user' group. These will be
1102 * combined with the permissions of all groups that a given user is listed
1103 * in in the user_groups table.
1105 * Note: Don't set $wgGroupPermissions = array(); unless you know what you're
1106 * doing! This will wipe all permissions, and may mean that your users are
1107 * unable to perform certain essential tasks or access new functionality
1108 * when new permissions are introduced and default grants established.
1110 * Functionality to make pages inaccessible has not been extensively tested
1111 * for security. Use at your own risk!
1113 * This replaces wgWhitelistAccount and wgWhitelistEdit
1115 $wgGroupPermissions = array();
1117 // Implicit group for all visitors
1118 $wgGroupPermissions['*' ]['createaccount'] = true;
1119 $wgGroupPermissions['*' ]['read'] = true;
1120 $wgGroupPermissions['*' ]['edit'] = true;
1121 $wgGroupPermissions['*' ]['createpage'] = true;
1122 $wgGroupPermissions['*' ]['createtalk'] = true;
1123 $wgGroupPermissions['*' ]['writeapi'] = true;
1125 // Implicit group for all logged-in accounts
1126 $wgGroupPermissions['user' ]['move'] = true;
1127 $wgGroupPermissions['user' ]['move-subpages'] = true;
1128 $wgGroupPermissions['user' ]['read'] = true;
1129 $wgGroupPermissions['user' ]['edit'] = true;
1130 $wgGroupPermissions['user' ]['createpage'] = true;
1131 $wgGroupPermissions['user' ]['createtalk'] = true;
1132 $wgGroupPermissions['user' ]['writeapi'] = true;
1133 $wgGroupPermissions['user' ]['upload'] = true;
1134 $wgGroupPermissions['user' ]['reupload'] = true;
1135 $wgGroupPermissions['user' ]['reupload-shared'] = true;
1136 $wgGroupPermissions['user' ]['minoredit'] = true;
1137 $wgGroupPermissions['user' ]['purge'] = true; // can use ?action=purge without clicking "ok"
1139 // Implicit group for accounts that pass $wgAutoConfirmAge
1140 $wgGroupPermissions['autoconfirmed']['autoconfirmed'] = true;
1142 // Users with bot privilege can have their edits hidden
1143 // from various log pages by default
1144 $wgGroupPermissions['bot' ]['bot'] = true;
1145 $wgGroupPermissions['bot' ]['autoconfirmed'] = true;
1146 $wgGroupPermissions['bot' ]['nominornewtalk'] = true;
1147 $wgGroupPermissions['bot' ]['autopatrol'] = true;
1148 $wgGroupPermissions['bot' ]['suppressredirect'] = true;
1149 $wgGroupPermissions['bot' ]['apihighlimits'] = true;
1150 $wgGroupPermissions['bot' ]['writeapi'] = true;
1151 #$wgGroupPermissions['bot' ]['editprotected'] = true; // can edit all protected pages without cascade protection enabled
1153 // Most extra permission abilities go to this group
1154 $wgGroupPermissions['sysop']['block'] = true;
1155 $wgGroupPermissions['sysop']['createaccount'] = true;
1156 $wgGroupPermissions['sysop']['delete'] = true;
1157 $wgGroupPermissions['sysop']['bigdelete'] = true; // can be separately configured for pages with > $wgDeleteRevisionsLimit revs
1158 $wgGroupPermissions['sysop']['deletedhistory'] = true; // can view deleted history entries, but not see or restore the text
1159 $wgGroupPermissions['sysop']['undelete'] = true;
1160 $wgGroupPermissions['sysop']['editinterface'] = true;
1161 $wgGroupPermissions['sysop']['editusercssjs'] = true;
1162 $wgGroupPermissions['sysop']['import'] = true;
1163 $wgGroupPermissions['sysop']['importupload'] = true;
1164 $wgGroupPermissions['sysop']['move'] = true;
1165 $wgGroupPermissions['sysop']['move-subpages'] = true;
1166 $wgGroupPermissions['sysop']['patrol'] = true;
1167 $wgGroupPermissions['sysop']['autopatrol'] = true;
1168 $wgGroupPermissions['sysop']['protect'] = true;
1169 $wgGroupPermissions['sysop']['proxyunbannable'] = true;
1170 $wgGroupPermissions['sysop']['rollback'] = true;
1171 $wgGroupPermissions['sysop']['trackback'] = true;
1172 $wgGroupPermissions['sysop']['upload'] = true;
1173 $wgGroupPermissions['sysop']['reupload'] = true;
1174 $wgGroupPermissions['sysop']['reupload-shared'] = true;
1175 $wgGroupPermissions['sysop']['unwatchedpages'] = true;
1176 $wgGroupPermissions['sysop']['autoconfirmed'] = true;
1177 $wgGroupPermissions['sysop']['upload_by_url'] = true;
1178 $wgGroupPermissions['sysop']['ipblock-exempt'] = true;
1179 $wgGroupPermissions['sysop']['blockemail'] = true;
1180 $wgGroupPermissions['sysop']['markbotedits'] = true;
1181 $wgGroupPermissions['sysop']['suppressredirect'] = true;
1182 $wgGroupPermissions['sysop']['apihighlimits'] = true;
1183 $wgGroupPermissions['sysop']['browsearchive'] = true;
1184 $wgGroupPermissions['sysop']['noratelimit'] = true;
1185 #$wgGroupPermissions['sysop']['mergehistory'] = true;
1187 // Permission to change users' group assignments
1188 $wgGroupPermissions['bureaucrat']['userrights'] = true;
1189 $wgGroupPermissions['bureaucrat']['noratelimit'] = true;
1190 // Permission to change users' groups assignments across wikis
1191 #$wgGroupPermissions['bureaucrat']['userrights-interwiki'] = true;
1193 #$wgGroupPermissions['sysop']['deleterevision'] = true;
1194 // To hide usernames from users and Sysops
1195 #$wgGroupPermissions['suppress']['hideuser'] = true;
1196 // To hide revisions/log items from users and Sysops
1197 #$wgGroupPermissions['suppress']['suppressrevision'] = true;
1198 // For private suppression log access
1199 #$wgGroupPermissions['suppress']['suppressionlog'] = true;
1202 * The developer group is deprecated, but can be activated if need be
1203 * to use the 'lockdb' and 'unlockdb' special pages. Those require
1204 * that a lock file be defined and creatable/removable by the web
1205 * server.
1207 # $wgGroupPermissions['developer']['siteadmin'] = true;
1211 * Implicit groups, aren't shown on Special:Listusers or somewhere else
1213 $wgImplicitGroups = array( '*', 'user', 'autoconfirmed' );
1216 * These are the groups that users are allowed to add to or remove from
1217 * their own account via Special:Userrights.
1219 $wgGroupsAddToSelf = array();
1220 $wgGroupsRemoveFromSelf = array();
1223 * Set of available actions that can be restricted via action=protect
1224 * You probably shouldn't change this.
1225 * Translated trough restriction-* messages.
1227 $wgRestrictionTypes = array( 'edit', 'move' );
1230 * Rights which can be required for each protection level (via action=protect)
1232 * You can add a new protection level that requires a specific
1233 * permission by manipulating this array. The ordering of elements
1234 * dictates the order on the protection form's lists.
1236 * '' will be ignored (i.e. unprotected)
1237 * 'sysop' is quietly rewritten to 'protect' for backwards compatibility
1239 $wgRestrictionLevels = array( '', 'autoconfirmed', 'sysop' );
1242 * Set the minimum permissions required to edit pages in each
1243 * namespace. If you list more than one permission, a user must
1244 * have all of them to edit pages in that namespace.
1246 * Note: NS_MEDIAWIKI is implicitly restricted to editinterface.
1248 $wgNamespaceProtection = array();
1251 * Pages in namespaces in this array can not be used as templates.
1252 * Elements must be numeric namespace ids.
1253 * Among other things, this may be useful to enforce read-restrictions
1254 * which may otherwise be bypassed by using the template machanism.
1256 $wgNonincludableNamespaces = array();
1259 * Number of seconds an account is required to age before
1260 * it's given the implicit 'autoconfirm' group membership.
1261 * This can be used to limit privileges of new accounts.
1263 * Accounts created by earlier versions of the software
1264 * may not have a recorded creation date, and will always
1265 * be considered to pass the age test.
1267 * When left at 0, all registered accounts will pass.
1269 $wgAutoConfirmAge = 0;
1270 //$wgAutoConfirmAge = 600; // ten minutes
1271 //$wgAutoConfirmAge = 3600*24; // one day
1273 # Number of edits an account requires before it is autoconfirmed
1274 # Passing both this AND the time requirement is needed
1275 $wgAutoConfirmCount = 0;
1276 //$wgAutoConfirmCount = 50;
1279 * Automatically add a usergroup to any user who matches certain conditions.
1280 * The format is
1281 * array( '&' or '|' or '^', cond1, cond2, ... )
1282 * where cond1, cond2, ... are themselves conditions; *OR*
1283 * APCOND_EMAILCONFIRMED, *OR*
1284 * array( APCOND_EMAILCONFIRMED ), *OR*
1285 * array( APCOND_EDITCOUNT, number of edits ), *OR*
1286 * array( APCOND_AGE, seconds since registration ), *OR*
1287 * similar constructs defined by extensions.
1289 * If $wgEmailAuthentication is off, APCOND_EMAILCONFIRMED will be true for any
1290 * user who has provided an e-mail address.
1292 $wgAutopromote = array(
1293 'autoconfirmed' => array( '&',
1294 array( APCOND_EDITCOUNT, &$wgAutoConfirmCount ),
1295 array( APCOND_AGE, &$wgAutoConfirmAge ),
1300 * These settings can be used to give finer control over who can assign which
1301 * groups at Special:Userrights. Example configuration:
1303 * // Bureaucrat can add any group
1304 * $wgAddGroups['bureaucrat'] = true;
1305 * // Bureaucrats can only remove bots and sysops
1306 * $wgRemoveGroups['bureaucrat'] = array( 'bot', 'sysop' );
1307 * // Sysops can make bots
1308 * $wgAddGroups['sysop'] = array( 'bot' );
1309 * // Sysops can disable other sysops in an emergency, and disable bots
1310 * $wgRemoveGroups['sysop'] = array( 'sysop', 'bot' );
1312 $wgAddGroups = array();
1313 $wgRemoveGroups = array();
1316 * A list of available rights, in addition to the ones defined by the core.
1317 * For extensions only.
1319 $wgAvailableRights = array();
1322 * Optional to restrict deletion of pages with higher revision counts
1323 * to users with the 'bigdelete' permission. (Default given to sysops.)
1325 $wgDeleteRevisionsLimit = 0;
1328 * Used to figure out if a user is "active" or not. User::isActiveEditor()
1329 * sees if a user has made at least $wgActiveUserEditCount number of edits
1330 * within the last $wgActiveUserDays days.
1332 $wgActiveUserEditCount = 30;
1333 $wgActiveUserDays = 30;
1335 # Proxy scanner settings
1339 * If you enable this, every editor's IP address will be scanned for open HTTP
1340 * proxies.
1342 * Don't enable this. Many sysops will report "hostile TCP port scans" to your
1343 * ISP and ask for your server to be shut down.
1345 * You have been warned.
1347 $wgBlockOpenProxies = false;
1348 /** Port we want to scan for a proxy */
1349 $wgProxyPorts = array( 80, 81, 1080, 3128, 6588, 8000, 8080, 8888, 65506 );
1350 /** Script used to scan */
1351 $wgProxyScriptPath = "$IP/includes/proxy_check.php";
1352 /** */
1353 $wgProxyMemcExpiry = 86400;
1354 /** This should always be customised in LocalSettings.php */
1355 $wgSecretKey = false;
1356 /** big list of banned IP addresses, in the keys not the values */
1357 $wgProxyList = array();
1358 /** deprecated */
1359 $wgProxyKey = false;
1361 /** Number of accounts each IP address may create, 0 to disable.
1362 * Requires memcached */
1363 $wgAccountCreationThrottle = 0;
1365 # Client-side caching:
1367 /** Allow client-side caching of pages */
1368 $wgCachePages = true;
1371 * Set this to current time to invalidate all prior cached pages. Affects both
1372 * client- and server-side caching.
1373 * You can get the current date on your server by using the command:
1374 * date +%Y%m%d%H%M%S
1376 $wgCacheEpoch = '20030516000000';
1379 * Bump this number when changing the global style sheets and JavaScript.
1380 * It should be appended in the query string of static CSS and JS includes,
1381 * to ensure that client-side caches don't keep obsolete copies of global
1382 * styles.
1384 $wgStyleVersion = '177';
1387 # Server-side caching:
1390 * This will cache static pages for non-logged-in users to reduce
1391 * database traffic on public sites.
1392 * Must set $wgShowIPinHeader = false
1394 $wgUseFileCache = false;
1396 /** Directory where the cached page will be saved */
1397 $wgFileCacheDirectory = false; ///< defaults to "{$wgUploadDirectory}/cache";
1400 * When using the file cache, we can store the cached HTML gzipped to save disk
1401 * space. Pages will then also be served compressed to clients that support it.
1402 * THIS IS NOT COMPATIBLE with ob_gzhandler which is now enabled if supported in
1403 * the default LocalSettings.php! If you enable this, remove that setting first.
1405 * Requires zlib support enabled in PHP.
1407 $wgUseGzip = false;
1409 /** Whether MediaWiki should send an ETag header */
1410 $wgUseETag = false;
1412 # Email notification settings
1415 /** For email notification on page changes */
1416 $wgPasswordSender = $wgEmergencyContact;
1418 # true: from page editor if s/he opted-in
1419 # false: Enotif mails appear to come from $wgEmergencyContact
1420 $wgEnotifFromEditor = false;
1422 // TODO move UPO to preferences probably ?
1423 # If set to true, users get a corresponding option in their preferences and can choose to enable or disable at their discretion
1424 # If set to false, the corresponding input form on the user preference page is suppressed
1425 # It call this to be a "user-preferences-option (UPO)"
1426 $wgEmailAuthentication = true; # UPO (if this is set to false, texts referring to authentication are suppressed)
1427 $wgEnotifWatchlist = false; # UPO
1428 $wgEnotifUserTalk = false; # UPO
1429 $wgEnotifRevealEditorAddress = false; # UPO; reply-to address may be filled with page editor's address (if user allowed this in the preferences)
1430 $wgEnotifMinorEdits = true; # UPO; false: "minor edits" on pages do not trigger notification mails.
1431 # # Attention: _every_ change on a user_talk page trigger a notification mail (if the user is not yet notified)
1433 # Send a generic mail instead of a personalised mail for each user. This
1434 # always uses UTC as the time zone, and doesn't include the username.
1436 # For pages with many users watching, this can significantly reduce mail load.
1437 # Has no effect when using sendmail rather than SMTP;
1439 $wgEnotifImpersonal = false;
1441 # Maximum number of users to mail at once when using impersonal mail. Should
1442 # match the limit on your mail server.
1443 $wgEnotifMaxRecips = 500;
1445 # Send mails via the job queue.
1446 $wgEnotifUseJobQ = false;
1449 * Array of usernames who will be sent a notification email for every change which occurs on a wiki
1451 $wgUsersNotifiedOnAllChanges = array();
1453 /** Show watching users in recent changes, watchlist and page history views */
1454 $wgRCShowWatchingUsers = false; # UPO
1455 /** Show watching users in Page views */
1456 $wgPageShowWatchingUsers = false;
1457 /** Show the amount of changed characters in recent changes */
1458 $wgRCShowChangedSize = true;
1461 * If the difference between the character counts of the text
1462 * before and after the edit is below that value, the value will be
1463 * highlighted on the RC page.
1465 $wgRCChangedSizeThreshold = -500;
1468 * Show "Updated (since my last visit)" marker in RC view, watchlist and history
1469 * view for watched pages with new changes */
1470 $wgShowUpdatedMarker = true;
1473 * Default cookie expiration time. Setting to 0 makes all cookies session-only.
1475 $wgCookieExpiration = 30*86400;
1477 /** Clock skew or the one-second resolution of time() can occasionally cause cache
1478 * problems when the user requests two pages within a short period of time. This
1479 * variable adds a given number of seconds to vulnerable timestamps, thereby giving
1480 * a grace period.
1482 $wgClockSkewFudge = 5;
1484 # Squid-related settings
1487 /** Enable/disable Squid */
1488 $wgUseSquid = false;
1490 /** If you run Squid3 with ESI support, enable this (default:false): */
1491 $wgUseESI = false;
1493 /** Internal server name as known to Squid, if different */
1494 # $wgInternalServer = 'http://yourinternal.tld:8000';
1495 $wgInternalServer = $wgServer;
1498 * Cache timeout for the squid, will be sent as s-maxage (without ESI) or
1499 * Surrogate-Control (with ESI). Without ESI, you should strip out s-maxage in
1500 * the Squid config. 18000 seconds = 5 hours, more cache hits with 2678400 = 31
1501 * days
1503 $wgSquidMaxage = 18000;
1506 * Default maximum age for raw CSS/JS accesses
1508 $wgForcedRawSMaxage = 300;
1511 * List of proxy servers to purge on changes; default port is 80. Use IP addresses.
1513 * When MediaWiki is running behind a proxy, it will trust X-Forwarded-For
1514 * headers sent/modified from these proxies when obtaining the remote IP address
1516 * For a list of trusted servers which *aren't* purged, see $wgSquidServersNoPurge.
1518 $wgSquidServers = array();
1521 * As above, except these servers aren't purged on page changes; use to set a
1522 * list of trusted proxies, etc.
1524 $wgSquidServersNoPurge = array();
1526 /** Maximum number of titles to purge in any one client operation */
1527 $wgMaxSquidPurgeTitles = 400;
1529 /** HTCP multicast purging */
1530 $wgHTCPPort = 4827;
1531 $wgHTCPMulticastTTL = 1;
1532 # $wgHTCPMulticastAddress = "224.0.0.85";
1533 $wgHTCPMulticastAddress = false;
1535 # Cookie settings:
1538 * Set to set an explicit domain on the login cookies eg, "justthis.domain. org"
1539 * or ".any.subdomain.net"
1541 $wgCookieDomain = '';
1542 $wgCookiePath = '/';
1543 $wgCookieSecure = ($wgProto == 'https');
1544 $wgDisableCookieCheck = false;
1547 * Set $wgCookiePrefix to use a custom one. Setting to false sets the default of
1548 * using the database name.
1550 $wgCookiePrefix = false;
1553 * Set authentication cookies to HttpOnly to prevent access by JavaScript,
1554 * in browsers that support this feature. This can mitigates some classes of
1555 * XSS attack.
1557 * Only supported on PHP 5.2 or higher.
1559 $wgCookieHttpOnly = version_compare("5.2", PHP_VERSION, "<");
1562 * If the requesting browser matches a regex in this blacklist, we won't
1563 * send it cookies with HttpOnly mode, even if $wgCookieHttpOnly is on.
1565 $wgHttpOnlyBlacklist = array(
1566 // Internet Explorer for Mac; sometimes the cookies work, sometimes
1567 // they don't. It's difficult to predict, as combinations of path
1568 // and expiration options affect its parsing.
1569 '/^Mozilla\/4\.0 \(compatible; MSIE \d+\.\d+; Mac_PowerPC\)/',
1572 /** A list of cookies that vary the cache (for use by extensions) */
1573 $wgCacheVaryCookies = array();
1575 /** Override to customise the session name */
1576 $wgSessionName = false;
1578 /** Whether to allow inline image pointing to other websites */
1579 $wgAllowExternalImages = false;
1581 /** If the above is false, you can specify an exception here. Image URLs
1582 * that start with this string are then rendered, while all others are not.
1583 * You can use this to set up a trusted, simple repository of images.
1584 * You may also specify an array of strings to allow multiple sites
1586 * Examples:
1587 * $wgAllowExternalImagesFrom = 'http://127.0.0.1/';
1588 * $wgAllowExternalImagesFrom = array( 'http://127.0.0.1/', 'http://example.com' );
1590 $wgAllowExternalImagesFrom = '';
1592 /** If $wgAllowExternalImages is false, you can allow an on-wiki
1593 * whitelist of regular expression fragments to match the image URL
1594 * against. If the image matches one of the regular expression fragments,
1595 * The image will be displayed.
1597 * Set this to true to enable the on-wiki whitelist (MediaWiki:External image whitelist)
1598 * Or false to disable it
1600 $wgEnableImageWhitelist = true;
1602 /** Allows to move images and other media files. Experemintal, not sure if it always works */
1603 $wgAllowImageMoving = false;
1605 /** Disable database-intensive features */
1606 $wgMiserMode = false;
1607 /** Disable all query pages if miser mode is on, not just some */
1608 $wgDisableQueryPages = false;
1609 /** Number of rows to cache in 'querycache' table when miser mode is on */
1610 $wgQueryCacheLimit = 1000;
1611 /** Number of links to a page required before it is deemed "wanted" */
1612 $wgWantedPagesThreshold = 1;
1613 /** Enable slow parser functions */
1614 $wgAllowSlowParserFunctions = false;
1617 * Maps jobs to their handling classes; extensions
1618 * can add to this to provide custom jobs
1620 $wgJobClasses = array(
1621 'refreshLinks' => 'RefreshLinksJob',
1622 'refreshLinks2' => 'RefreshLinksJob2',
1623 'htmlCacheUpdate' => 'HTMLCacheUpdateJob',
1624 'html_cache_update' => 'HTMLCacheUpdateJob', // backwards-compatible
1625 'sendMail' => 'EmaillingJob',
1626 'enotifNotify' => 'EnotifNotifyJob',
1627 'fixDoubleRedirect' => 'DoubleRedirectJob',
1631 * Additional functions to be performed with updateSpecialPages.
1632 * Expensive Querypages are already updated.
1634 $wgSpecialPageCacheUpdates = array(
1635 'Statistics' => array('SiteStatsUpdate','cacheUpdate')
1639 * To use inline TeX, you need to compile 'texvc' (in the 'math' subdirectory of
1640 * the MediaWiki package and have latex, dvips, gs (ghostscript), andconvert
1641 * (ImageMagick) installed and available in the PATH.
1642 * Please see math/README for more information.
1644 $wgUseTeX = false;
1645 /** Location of the texvc binary */
1646 $wgTexvc = './math/texvc';
1649 # Profiling / debugging
1651 # You have to create a 'profiling' table in your database before using
1652 # profiling see maintenance/archives/patch-profiling.sql .
1654 # To enable profiling, edit StartProfiler.php
1656 /** Only record profiling info for pages that took longer than this */
1657 $wgProfileLimit = 0.0;
1658 /** Don't put non-profiling info into log file */
1659 $wgProfileOnly = false;
1660 /** Log sums from profiling into "profiling" table in db. */
1661 $wgProfileToDatabase = false;
1662 /** If true, print a raw call tree instead of per-function report */
1663 $wgProfileCallTree = false;
1664 /** Should application server host be put into profiling table */
1665 $wgProfilePerHost = false;
1667 /** Settings for UDP profiler */
1668 $wgUDPProfilerHost = '127.0.0.1';
1669 $wgUDPProfilerPort = '3811';
1671 /** Detects non-matching wfProfileIn/wfProfileOut calls */
1672 $wgDebugProfiling = false;
1673 /** Output debug message on every wfProfileIn/wfProfileOut */
1674 $wgDebugFunctionEntry = 0;
1675 /** Lots of debugging output from SquidUpdate.php */
1676 $wgDebugSquid = false;
1679 * Destination for wfIncrStats() data...
1680 * 'cache' to go into the system cache, if enabled (memcached)
1681 * 'udp' to be sent to the UDP profiler (see $wgUDPProfilerHost)
1682 * false to disable
1684 $wgStatsMethod = 'cache';
1686 /** Whereas to count the number of time an article is viewed.
1687 * Does not work if pages are cached (for example with squid).
1689 $wgDisableCounters = false;
1691 $wgDisableTextSearch = false;
1692 $wgDisableSearchContext = false;
1696 * Set to true to have nicer highligted text in search results,
1697 * by default off due to execution overhead
1699 $wgAdvancedSearchHighlighting = false;
1702 * Regexp to match word boundaries, defaults for non-CJK languages
1703 * should be empty for CJK since the words are not separate
1705 $wgSearchHighlightBoundaries = version_compare("5.1", PHP_VERSION, "<")? '[\p{Z}\p{P}\p{C}]'
1706 : '[ ,.;:!?~!@#$%\^&*\(\)+=\-\\|\[\]"\'<>\n\r\/{}]'; // PHP 5.0 workaround
1709 * Template for OpenSearch suggestions, defaults to API action=opensearch
1711 * Sites with heavy load would tipically have these point to a custom
1712 * PHP wrapper to avoid firing up mediawiki for every keystroke
1714 * Placeholders: {searchTerms}
1717 $wgOpenSearchTemplate = false;
1720 * Enable suggestions while typing in search boxes
1721 * (results are passed around in OpenSearch format)
1723 $wgEnableMWSuggest = false;
1726 * Template for internal MediaWiki suggestion engine, defaults to API action=opensearch
1728 * Placeholders: {searchTerms}, {namespaces}, {dbname}
1731 $wgMWSuggestTemplate = false;
1734 * If you've disabled search semi-permanently, this also disables updates to the
1735 * table. If you ever re-enable, be sure to rebuild the search table.
1737 $wgDisableSearchUpdate = false;
1738 /** Uploads have to be specially set up to be secure */
1739 $wgEnableUploads = false;
1741 * Show EXIF data, on by default if available.
1742 * Requires PHP's EXIF extension: http://www.php.net/manual/en/ref.exif.php
1744 * NOTE FOR WINDOWS USERS:
1745 * To enable EXIF functions, add the folloing lines to the
1746 * "Windows extensions" section of php.ini:
1748 * extension=extensions/php_mbstring.dll
1749 * extension=extensions/php_exif.dll
1751 $wgShowEXIF = function_exists( 'exif_read_data' );
1754 * Set to true to enable the upload _link_ while local uploads are disabled.
1755 * Assumes that the special page link will be bounced to another server where
1756 * uploads do work.
1758 $wgRemoteUploads = false;
1759 $wgDisableAnonTalk = false;
1761 * Do DELETE/INSERT for link updates instead of incremental
1763 $wgUseDumbLinkUpdate = false;
1766 * Anti-lock flags - bitfield
1767 * ALF_PRELOAD_LINKS
1768 * Preload links during link update for save
1769 * ALF_PRELOAD_EXISTENCE
1770 * Preload cur_id during replaceLinkHolders
1771 * ALF_NO_LINK_LOCK
1772 * Don't use locking reads when updating the link table. This is
1773 * necessary for wikis with a high edit rate for performance
1774 * reasons, but may cause link table inconsistency
1775 * ALF_NO_BLOCK_LOCK
1776 * As for ALF_LINK_LOCK, this flag is a necessity for high-traffic
1777 * wikis.
1779 $wgAntiLockFlags = 0;
1782 * Path to the GNU diff3 utility. If the file doesn't exist, edit conflicts will
1783 * fall back to the old behaviour (no merging).
1785 $wgDiff3 = '/usr/bin/diff3';
1788 * Path to the GNU diff utility.
1790 $wgDiff = '/usr/bin/diff';
1793 * We can also compress text stored in the 'text' table. If this is set on, new
1794 * revisions will be compressed on page save if zlib support is available. Any
1795 * compressed revisions will be decompressed on load regardless of this setting
1796 * *but will not be readable at all* if zlib support is not available.
1798 $wgCompressRevisions = false;
1801 * This is the list of preferred extensions for uploading files. Uploading files
1802 * with extensions not in this list will trigger a warning.
1804 $wgFileExtensions = array( 'png', 'gif', 'jpg', 'jpeg' );
1806 /** Files with these extensions will never be allowed as uploads. */
1807 $wgFileBlacklist = array(
1808 # HTML may contain cookie-stealing JavaScript and web bugs
1809 'html', 'htm', 'js', 'jsb', 'mhtml', 'mht',
1810 # PHP scripts may execute arbitrary code on the server
1811 'php', 'phtml', 'php3', 'php4', 'php5', 'phps',
1812 # Other types that may be interpreted by some servers
1813 'shtml', 'jhtml', 'pl', 'py', 'cgi',
1814 # May contain harmful executables for Windows victims
1815 'exe', 'scr', 'dll', 'msi', 'vbs', 'bat', 'com', 'pif', 'cmd', 'vxd', 'cpl' );
1817 /** Files with these mime types will never be allowed as uploads
1818 * if $wgVerifyMimeType is enabled.
1820 $wgMimeTypeBlacklist= array(
1821 # HTML may contain cookie-stealing JavaScript and web bugs
1822 'text/html', 'text/javascript', 'text/x-javascript', 'application/x-shellscript',
1823 # PHP scripts may execute arbitrary code on the server
1824 'application/x-php', 'text/x-php',
1825 # Other types that may be interpreted by some servers
1826 'text/x-python', 'text/x-perl', 'text/x-bash', 'text/x-sh', 'text/x-csh',
1827 # Windows metafile, client-side vulnerability on some systems
1828 'application/x-msmetafile',
1829 # A ZIP file may be a valid Java archive containing an applet which exploits the
1830 # same-origin policy to steal cookies
1831 'application/zip',
1834 /** This is a flag to determine whether or not to check file extensions on upload. */
1835 $wgCheckFileExtensions = true;
1838 * If this is turned off, users may override the warning for files not covered
1839 * by $wgFileExtensions.
1841 $wgStrictFileExtensions = true;
1843 /** Warn if uploaded files are larger than this (in bytes), or false to disable*/
1844 $wgUploadSizeWarning = false;
1846 /** For compatibility with old installations set to false */
1847 $wgPasswordSalt = true;
1849 /** Which namespaces should support subpages?
1850 * See Language.php for a list of namespaces.
1852 $wgNamespacesWithSubpages = array(
1853 NS_TALK => true,
1854 NS_USER => true,
1855 NS_USER_TALK => true,
1856 NS_PROJECT_TALK => true,
1857 NS_IMAGE_TALK => true,
1858 NS_MEDIAWIKI_TALK => true,
1859 NS_TEMPLATE_TALK => true,
1860 NS_HELP_TALK => true,
1861 NS_CATEGORY_TALK => true
1864 $wgNamespacesToBeSearchedDefault = array(
1865 NS_MAIN => true,
1869 * Site notice shown at the top of each page
1871 * This message can contain wiki text, and can also be set through the
1872 * MediaWiki:Sitenotice page. You can also provide a separate message for
1873 * logged-out users using the MediaWiki:Anonnotice page.
1875 $wgSiteNotice = '';
1878 # Images settings
1882 * Plugins for media file type handling.
1883 * Each entry in the array maps a MIME type to a class name
1885 $wgMediaHandlers = array(
1886 'image/jpeg' => 'BitmapHandler',
1887 'image/png' => 'BitmapHandler',
1888 'image/gif' => 'BitmapHandler',
1889 'image/x-ms-bmp' => 'BmpHandler',
1890 'image/x-bmp' => 'BmpHandler',
1891 'image/svg+xml' => 'SvgHandler', // official
1892 'image/svg' => 'SvgHandler', // compat
1893 'image/vnd.djvu' => 'DjVuHandler', // official
1894 'image/x.djvu' => 'DjVuHandler', // compat
1895 'image/x-djvu' => 'DjVuHandler', // compat
1900 * Resizing can be done using PHP's internal image libraries or using
1901 * ImageMagick or another third-party converter, e.g. GraphicMagick.
1902 * These support more file formats than PHP, which only supports PNG,
1903 * GIF, JPG, XBM and WBMP.
1905 * Use Image Magick instead of PHP builtin functions.
1907 $wgUseImageMagick = false;
1908 /** The convert command shipped with ImageMagick */
1909 $wgImageMagickConvertCommand = '/usr/bin/convert';
1911 /** Sharpening parameter to ImageMagick */
1912 $wgSharpenParameter = '0x0.4';
1914 /** Reduction in linear dimensions below which sharpening will be enabled */
1915 $wgSharpenReductionThreshold = 0.85;
1918 * Use another resizing converter, e.g. GraphicMagick
1919 * %s will be replaced with the source path, %d with the destination
1920 * %w and %h will be replaced with the width and height
1922 * An example is provided for GraphicMagick
1923 * Leave as false to skip this
1925 #$wgCustomConvertCommand = "gm convert %s -resize %wx%h %d"
1926 $wgCustomConvertCommand = false;
1928 # Scalable Vector Graphics (SVG) may be uploaded as images.
1929 # Since SVG support is not yet standard in browsers, it is
1930 # necessary to rasterize SVGs to PNG as a fallback format.
1932 # An external program is required to perform this conversion:
1933 $wgSVGConverters = array(
1934 'ImageMagick' => '$path/convert -background white -geometry $width $input PNG:$output',
1935 'sodipodi' => '$path/sodipodi -z -w $width -f $input -e $output',
1936 'inkscape' => '$path/inkscape -z -w $width -f $input -e $output',
1937 'batik' => 'java -Djava.awt.headless=true -jar $path/batik-rasterizer.jar -w $width -d $output $input',
1938 'rsvg' => '$path/rsvg -w$width -h$height $input $output',
1939 'imgserv' => '$path/imgserv-wrapper -i svg -o png -w$width $input $output',
1941 /** Pick one of the above */
1942 $wgSVGConverter = 'ImageMagick';
1943 /** If not in the executable PATH, specify */
1944 $wgSVGConverterPath = '';
1945 /** Don't scale a SVG larger than this */
1946 $wgSVGMaxSize = 2048;
1948 * Don't thumbnail an image if it will use too much working memory
1949 * Default is 50 MB if decompressed to RGBA form, which corresponds to
1950 * 12.5 million pixels or 3500x3500
1952 $wgMaxImageArea = 1.25e7;
1954 * If rendered thumbnail files are older than this timestamp, they
1955 * will be rerendered on demand as if the file didn't already exist.
1956 * Update if there is some need to force thumbs and SVG rasterizations
1957 * to rerender, such as fixes to rendering bugs.
1959 $wgThumbnailEpoch = '20030516000000';
1962 * If set, inline scaled images will still produce <img> tags ready for
1963 * output instead of showing an error message.
1965 * This may be useful if errors are transitory, especially if the site
1966 * is configured to automatically render thumbnails on request.
1968 * On the other hand, it may obscure error conditions from debugging.
1969 * Enable the debug log or the 'thumbnail' log group to make sure errors
1970 * are logged to a file for review.
1972 $wgIgnoreImageErrors = false;
1975 * Allow thumbnail rendering on page view. If this is false, a valid
1976 * thumbnail URL is still output, but no file will be created at
1977 * the target location. This may save some time if you have a
1978 * thumb.php or 404 handler set up which is faster than the regular
1979 * webserver(s).
1981 $wgGenerateThumbnailOnParse = true;
1983 /** Obsolete, always true, kept for compatibility with extensions */
1984 $wgUseImageResize = true;
1987 /** Set $wgCommandLineMode if it's not set already, to avoid notices */
1988 if( !isset( $wgCommandLineMode ) ) {
1989 $wgCommandLineMode = false;
1992 /** For colorized maintenance script output, is your terminal background dark ? */
1993 $wgCommandLineDarkBg = false;
1996 # Recent changes settings
1999 /** Log IP addresses in the recentchanges table; can be accessed only by extensions (e.g. CheckUser) or a DB admin */
2000 $wgPutIPinRC = true;
2003 * Recentchanges items are periodically purged; entries older than this many
2004 * seconds will go.
2005 * For one week : 7 * 24 * 3600
2007 $wgRCMaxAge = 7 * 24 * 3600;
2010 * Filter $wgRCLinkDays by $wgRCMaxAge to avoid showing links for numbers higher than what will be stored.
2011 * Note that this is disabled by default because we sometimes do have RC data which is beyond the limit
2012 * for some reason, and some users may use the high numbers to display that data which is still there.
2014 $wgRCFilterByAge = false;
2017 * List of Days and Limits options to list in the Special:Recentchanges and Special:Recentchangeslinked pages.
2019 $wgRCLinkLimits = array( 50, 100, 250, 500 );
2020 $wgRCLinkDays = array( 1, 3, 7, 14, 30 );
2022 # Send RC updates via UDP
2023 $wgRC2UDPAddress = false;
2024 $wgRC2UDPPort = false;
2025 $wgRC2UDPPrefix = '';
2026 $wgRC2UDPOmitBots = false;
2029 * Enable user search in Special:Newpages
2030 * This is really a temporary hack around an index install bug on some Wikipedias.
2031 * Kill it once fixed.
2033 $wgEnableNewpagesUserFilter = true;
2036 * Whether to use metadata edition
2037 * This will put categories, language links and allowed templates in a separate text box
2038 * while editing pages
2039 * EXPERIMENTAL
2041 $wgUseMetadataEdit = false;
2042 /** Full name (including namespace) of the page containing templates names that will be allowed as metadata */
2043 $wgMetadataWhitelist = '';
2046 # Copyright and credits settings
2049 /** RDF metadata toggles */
2050 $wgEnableDublinCoreRdf = false;
2051 $wgEnableCreativeCommonsRdf = false;
2053 /** Override for copyright metadata.
2054 * TODO: these options need documentation
2056 $wgRightsPage = NULL;
2057 $wgRightsUrl = NULL;
2058 $wgRightsText = NULL;
2059 $wgRightsIcon = NULL;
2061 /** Set this to some HTML to override the rights icon with an arbitrary logo */
2062 $wgCopyrightIcon = NULL;
2064 /** Set this to true if you want detailed copyright information forms on Upload. */
2065 $wgUseCopyrightUpload = false;
2067 /** Set this to false if you want to disable checking that detailed copyright
2068 * information values are not empty. */
2069 $wgCheckCopyrightUpload = true;
2072 * Set this to the number of authors that you want to be credited below an
2073 * article text. Set it to zero to hide the attribution block, and a negative
2074 * number (like -1) to show all authors. Note that this will require 2-3 extra
2075 * database hits, which can have a not insignificant impact on performance for
2076 * large wikis.
2078 $wgMaxCredits = 0;
2080 /** If there are more than $wgMaxCredits authors, show $wgMaxCredits of them.
2081 * Otherwise, link to a separate credits page. */
2082 $wgShowCreditsIfMax = true;
2087 * Set this to false to avoid forcing the first letter of links to capitals.
2088 * WARNING: may break links! This makes links COMPLETELY case-sensitive. Links
2089 * appearing with a capital at the beginning of a sentence will *not* go to the
2090 * same place as links in the middle of a sentence using a lowercase initial.
2092 $wgCapitalLinks = true;
2095 * List of interwiki prefixes for wikis we'll accept as sources for
2096 * Special:Import (for sysops). Since complete page history can be imported,
2097 * these should be 'trusted'.
2099 * If a user has the 'import' permission but not the 'importupload' permission,
2100 * they will only be able to run imports through this transwiki interface.
2102 $wgImportSources = array();
2105 * Optional default target namespace for interwiki imports.
2106 * Can use this to create an incoming "transwiki"-style queue.
2107 * Set to numeric key, not the name.
2109 * Users may override this in the Special:Import dialog.
2111 $wgImportTargetNamespace = null;
2114 * If set to false, disables the full-history option on Special:Export.
2115 * This is currently poorly optimized for long edit histories, so is
2116 * disabled on Wikimedia's sites.
2118 $wgExportAllowHistory = true;
2121 * If set nonzero, Special:Export requests for history of pages with
2122 * more revisions than this will be rejected. On some big sites things
2123 * could get bogged down by very very long pages.
2125 $wgExportMaxHistory = 0;
2127 $wgExportAllowListContributors = false ;
2131 * Edits matching these regular expressions in body text or edit summary
2132 * will be recognised as spam and rejected automatically.
2134 * There's no administrator override on-wiki, so be careful what you set. :)
2135 * May be an array of regexes or a single string for backwards compatibility.
2137 * See http://en.wikipedia.org/wiki/Regular_expression
2139 $wgSpamRegex = array();
2141 /** Similarly you can get a function to do the job. The function will be given
2142 * the following args:
2143 * - a Title object for the article the edit is made on
2144 * - the text submitted in the textarea (wpTextbox1)
2145 * - the section number.
2146 * The return should be boolean indicating whether the edit matched some evilness:
2147 * - true : block it
2148 * - false : let it through
2150 * For a complete example, have a look at the SpamBlacklist extension.
2152 $wgFilterCallback = false;
2154 /** Go button goes straight to the edit screen if the article doesn't exist. */
2155 $wgGoToEdit = false;
2157 /** Allow raw, unchecked HTML in <html>...</html> sections.
2158 * THIS IS VERY DANGEROUS on a publically editable site, so USE wgGroupPermissions
2159 * TO RESTRICT EDITING to only those that you trust
2161 $wgRawHtml = false;
2164 * $wgUseTidy: use tidy to make sure HTML output is sane.
2165 * Tidy is a free tool that fixes broken HTML.
2166 * See http://www.w3.org/People/Raggett/tidy/
2167 * $wgTidyBin should be set to the path of the binary and
2168 * $wgTidyConf to the path of the configuration file.
2169 * $wgTidyOpts can include any number of parameters.
2171 * $wgTidyInternal controls the use of the PECL extension to use an in-
2172 * process tidy library instead of spawning a separate program.
2173 * Normally you shouldn't need to override the setting except for
2174 * debugging. To install, use 'pear install tidy' and add a line
2175 * 'extension=tidy.so' to php.ini.
2177 $wgUseTidy = false;
2178 $wgAlwaysUseTidy = false;
2179 $wgTidyBin = 'tidy';
2180 $wgTidyConf = $IP.'/includes/tidy.conf';
2181 $wgTidyOpts = '';
2182 $wgTidyInternal = extension_loaded( 'tidy' );
2185 * Put tidy warnings in HTML comments
2186 * Only works for internal tidy.
2188 $wgDebugTidy = false;
2191 * Validate the overall output using tidy and refuse
2192 * to display the page if it's not valid.
2194 $wgValidateAllHtml = false;
2196 /** See list of skins and their symbolic names in languages/Language.php */
2197 $wgDefaultSkin = 'monobook';
2200 * Optionally, we can specify a stylesheet to use for media="handheld".
2201 * This is recognized by some, but not all, handheld/mobile/PDA browsers.
2202 * If left empty, compliant handheld browsers won't pick up the skin
2203 * stylesheet, which is specified for 'screen' media.
2205 * Can be a complete URL, base-relative path, or $wgStylePath-relative path.
2206 * Try 'chick/main.css' to apply the Chick styles to the MonoBook HTML.
2208 * Will also be switched in when 'handheld=yes' is added to the URL, like
2209 * the 'printable=yes' mode for print media.
2211 $wgHandheldStyle = false;
2214 * If set, 'screen' and 'handheld' media specifiers for stylesheets are
2215 * transformed such that they apply to the iPhone/iPod Touch Mobile Safari,
2216 * which doesn't recognize 'handheld' but does support media queries on its
2217 * screen size.
2219 * Consider only using this if you have a *really good* handheld stylesheet,
2220 * as iPhone users won't have any way to disable it and use the "grown-up"
2221 * styles instead.
2223 $wgHandheldForIPhone = false;
2226 * Settings added to this array will override the default globals for the user
2227 * preferences used by anonymous visitors and newly created accounts.
2228 * For instance, to disable section editing links:
2229 * $wgDefaultUserOptions ['editsection'] = 0;
2232 $wgDefaultUserOptions = array(
2233 'quickbar' => 1,
2234 'underline' => 2,
2235 'cols' => 80,
2236 'rows' => 25,
2237 'searchlimit' => 20,
2238 'contextlines' => 5,
2239 'contextchars' => 50,
2240 'disablesuggest' => 0,
2241 'skin' => false,
2242 'math' => 1,
2243 'usenewrc' => 0,
2244 'rcdays' => 7,
2245 'rclimit' => 50,
2246 'wllimit' => 250,
2247 'hideminor' => 0,
2248 'highlightbroken' => 1,
2249 'stubthreshold' => 0,
2250 'previewontop' => 1,
2251 'previewonfirst' => 0,
2252 'editsection' => 1,
2253 'editsectiononrightclick' => 0,
2254 'editondblclick' => 0,
2255 'editwidth' => 0,
2256 'showtoc' => 1,
2257 'showtoolbar' => 1,
2258 'minordefault' => 0,
2259 'date' => 'default',
2260 'imagesize' => 2,
2261 'thumbsize' => 2,
2262 'rememberpassword' => 0,
2263 'enotifwatchlistpages' => 0,
2264 'enotifusertalkpages' => 1,
2265 'enotifminoredits' => 0,
2266 'enotifrevealaddr' => 0,
2267 'shownumberswatching' => 1,
2268 'fancysig' => 0,
2269 'externaleditor' => 0,
2270 'externaldiff' => 0,
2271 'showjumplinks' => 1,
2272 'numberheadings' => 0,
2273 'uselivepreview' => 0,
2274 'watchlistdays' => 3.0,
2275 'extendwatchlist' => 0,
2276 'watchlisthideminor' => 0,
2277 'watchlisthidebots' => 0,
2278 'watchlisthideown' => 0,
2279 'watchcreations' => 0,
2280 'watchdefault' => 0,
2281 'watchmoves' => 0,
2282 'watchdeletion' => 0,
2283 'noconvertlink' => 0,
2286 /** Whether or not to allow and use real name fields. Defaults to true. */
2287 $wgAllowRealName = true;
2289 /*****************************************************************************
2290 * Extensions
2294 * A list of callback functions which are called once MediaWiki is fully initialised
2296 $wgExtensionFunctions = array();
2299 * Extension functions for initialisation of skins. This is called somewhat earlier
2300 * than $wgExtensionFunctions.
2302 $wgSkinExtensionFunctions = array();
2305 * Extension messages files
2306 * Associative array mapping extension name to the filename where messages can be found.
2307 * The file must create a variable called $messages.
2308 * When the messages are needed, the extension should call wfLoadExtensionMessages().
2310 * Example:
2311 * $wgExtensionMessagesFiles['ConfirmEdit'] = dirname(__FILE__).'/ConfirmEdit.i18n.php';
2314 $wgExtensionMessagesFiles = array();
2317 * Aliases for special pages provided by extensions.
2318 * Associative array mapping special page to array of aliases. First alternative
2319 * for each special page will be used as the normalised name for it. English
2320 * aliases will be added to the end of the list so that they always work. The
2321 * file must define a variable $aliases.
2323 * Example:
2324 * $wgExtensionAliasesFiles['Translate'] = dirname(__FILE__).'/Translate.alias.php';
2326 $wgExtensionAliasesFiles = array();
2329 * Parser output hooks.
2330 * This is an associative array where the key is an extension-defined tag
2331 * (typically the extension name), and the value is a PHP callback.
2332 * These will be called as an OutputPageParserOutput hook, if the relevant
2333 * tag has been registered with the parser output object.
2335 * Registration is done with $pout->addOutputHook( $tag, $data ).
2337 * The callback has the form:
2338 * function outputHook( $outputPage, $parserOutput, $data ) { ... }
2340 $wgParserOutputHooks = array();
2343 * List of valid skin names.
2344 * The key should be the name in all lower case, the value should be a display name.
2345 * The default skins will be added later, by Skin::getSkinNames(). Use
2346 * Skin::getSkinNames() as an accessor if you wish to have access to the full list.
2348 $wgValidSkinNames = array();
2351 * Special page list.
2352 * See the top of SpecialPage.php for documentation.
2354 $wgSpecialPages = array();
2357 * Array mapping class names to filenames, for autoloading.
2359 $wgAutoloadClasses = array();
2362 * An array of extension types and inside that their names, versions, authors,
2363 * urls, descriptions and pointers to localized description msgs. Note that
2364 * the version, url, description and descriptionmsg key can be omitted.
2366 * <code>
2367 * $wgExtensionCredits[$type][] = array(
2368 * 'name' => 'Example extension',
2369 * 'version' => 1.9,
2370 * 'svn-revision' => '$LastChangedRevision$',
2371 * 'author' => 'Foo Barstein',
2372 * 'url' => 'http://wwww.example.com/Example%20Extension/',
2373 * 'description' => 'An example extension',
2374 * 'descriptionmsg' => 'exampleextension-desc',
2375 * );
2376 * </code>
2378 * Where $type is 'specialpage', 'parserhook', 'variable', 'media' or 'other'.
2380 $wgExtensionCredits = array();
2382 * end extensions
2383 ******************************************************************************/
2386 * Allow user Javascript page?
2387 * This enables a lot of neat customizations, but may
2388 * increase security risk to users and server load.
2390 $wgAllowUserJs = false;
2393 * Allow user Cascading Style Sheets (CSS)?
2394 * This enables a lot of neat customizations, but may
2395 * increase security risk to users and server load.
2397 $wgAllowUserCss = false;
2399 /** Use the site's Javascript page? */
2400 $wgUseSiteJs = true;
2402 /** Use the site's Cascading Style Sheets (CSS)? */
2403 $wgUseSiteCss = true;
2405 /** Filter for Special:Randompage. Part of a WHERE clause */
2406 $wgExtraRandompageSQL = false;
2408 /** Allow the "info" action, very inefficient at the moment */
2409 $wgAllowPageInfo = false;
2411 /** Maximum indent level of toc. */
2412 $wgMaxTocLevel = 999;
2414 /** Name of the external diff engine to use */
2415 $wgExternalDiffEngine = false;
2417 /** Whether to use inline diff */
2418 $wgEnableHtmlDiff = false;
2420 /** Use RC Patrolling to check for vandalism */
2421 $wgUseRCPatrol = true;
2423 /** Use new page patrolling to check new pages on Special:Newpages */
2424 $wgUseNPPatrol = true;
2426 /** Provide syndication feeds (RSS, Atom) for, e.g., Recentchanges, Newpages */
2427 $wgFeed = true;
2429 /** Set maximum number of results to return in syndication feeds (RSS, Atom) for
2430 * eg Recentchanges, Newpages. */
2431 $wgFeedLimit = 50;
2433 /** _Minimum_ timeout for cached Recentchanges feed, in seconds.
2434 * A cached version will continue to be served out even if changes
2435 * are made, until this many seconds runs out since the last render.
2437 * If set to 0, feed caching is disabled. Use this for debugging only;
2438 * feed generation can be pretty slow with diffs.
2440 $wgFeedCacheTimeout = 60;
2442 /** When generating Recentchanges RSS/Atom feed, diffs will not be generated for
2443 * pages larger than this size. */
2444 $wgFeedDiffCutoff = 32768;
2446 /** Override the site's default RSS/ATOM feed for recentchanges that appears on
2447 * every page. Some sites might have a different feed they'd like to promote
2448 * instead of the RC feed (maybe like a "Recent New Articles" or "Breaking news" one).
2449 * Ex: $wgSiteFeed['format'] = "http://example.com/somefeed.xml"; Format can be one
2450 * of either 'rss' or 'atom'.
2452 $wgOverrideSiteFeed = array();
2455 * Additional namespaces. If the namespaces defined in Language.php and
2456 * Namespace.php are insufficient, you can create new ones here, for example,
2457 * to import Help files in other languages.
2458 * PLEASE NOTE: Once you delete a namespace, the pages in that namespace will
2459 * no longer be accessible. If you rename it, then you can access them through
2460 * the new namespace name.
2462 * Custom namespaces should start at 100 to avoid conflicting with standard
2463 * namespaces, and should always follow the even/odd main/talk pattern.
2465 #$wgExtraNamespaces =
2466 # array(100 => "Hilfe",
2467 # 101 => "Hilfe_Diskussion",
2468 # 102 => "Aide",
2469 # 103 => "Discussion_Aide"
2470 # );
2471 $wgExtraNamespaces = NULL;
2474 * Namespace aliases
2475 * These are alternate names for the primary localised namespace names, which
2476 * are defined by $wgExtraNamespaces and the language file. If a page is
2477 * requested with such a prefix, the request will be redirected to the primary
2478 * name.
2480 * Set this to a map from namespace names to IDs.
2481 * Example:
2482 * $wgNamespaceAliases = array(
2483 * 'Wikipedian' => NS_USER,
2484 * 'Help' => 100,
2485 * );
2487 $wgNamespaceAliases = array();
2490 * Limit images on image description pages to a user-selectable limit. In order
2491 * to reduce disk usage, limits can only be selected from a list.
2492 * The user preference is saved as an array offset in the database, by default
2493 * the offset is set with $wgDefaultUserOptions['imagesize']. Make sure you
2494 * change it if you alter the array (see bug 8858).
2495 * This is the list of settings the user can choose from:
2497 $wgImageLimits = array (
2498 array(320,240),
2499 array(640,480),
2500 array(800,600),
2501 array(1024,768),
2502 array(1280,1024),
2503 array(10000,10000) );
2506 * Adjust thumbnails on image pages according to a user setting. In order to
2507 * reduce disk usage, the values can only be selected from a list. This is the
2508 * list of settings the user can choose from:
2510 $wgThumbLimits = array(
2511 120,
2512 150,
2513 180,
2514 200,
2515 250,
2520 * Adjust width of upright images when parameter 'upright' is used
2521 * This allows a nicer look for upright images without the need to fix the width
2522 * by hardcoded px in wiki sourcecode.
2524 $wgThumbUpright = 0.75;
2527 * On category pages, show thumbnail gallery for images belonging to that
2528 * category instead of listing them as articles.
2530 $wgCategoryMagicGallery = true;
2533 * Paging limit for categories
2535 $wgCategoryPagingLimit = 200;
2538 * Should the default category sortkey be the prefixed title?
2539 * Run maintenance/refreshLinks.php after changing this.
2541 $wgCategoryPrefixedDefaultSortkey = true;
2544 * Browser Blacklist for unicode non compliant browsers
2545 * Contains a list of regexps : "/regexp/" matching problematic browsers
2547 $wgBrowserBlackList = array(
2549 * Netscape 2-4 detection
2550 * The minor version may contain strings such as "Gold" or "SGoldC-SGI"
2551 * Lots of non-netscape user agents have "compatible", so it's useful to check for that
2552 * with a negative assertion. The [UIN] identifier specifies the level of security
2553 * in a Netscape/Mozilla browser, checking for it rules out a number of fakers.
2554 * The language string is unreliable, it is missing on NS4 Mac.
2556 * Reference: http://www.psychedelix.com/agents/index.shtml
2558 '/^Mozilla\/2\.[^ ]+ [^(]*?\((?!compatible).*; [UIN]/',
2559 '/^Mozilla\/3\.[^ ]+ [^(]*?\((?!compatible).*; [UIN]/',
2560 '/^Mozilla\/4\.[^ ]+ [^(]*?\((?!compatible).*; [UIN]/',
2563 * MSIE on Mac OS 9 is teh sux0r, converts þ to <thorn>, ð to <eth>, Þ to <THORN> and Ð to <ETH>
2565 * Known useragents:
2566 * - Mozilla/4.0 (compatible; MSIE 5.0; Mac_PowerPC)
2567 * - Mozilla/4.0 (compatible; MSIE 5.15; Mac_PowerPC)
2568 * - Mozilla/4.0 (compatible; MSIE 5.23; Mac_PowerPC)
2569 * - [...]
2571 * @link http://en.wikipedia.org/w/index.php?title=User%3A%C6var_Arnfj%F6r%F0_Bjarmason%2Ftestme&diff=12356041&oldid=12355864
2572 * @link http://en.wikipedia.org/wiki/Template%3AOS9
2574 '/^Mozilla\/4\.0 \(compatible; MSIE \d+\.\d+; Mac_PowerPC\)/',
2577 * Google wireless transcoder, seems to eat a lot of chars alive
2578 * http://it.wikipedia.org/w/index.php?title=Luciano_Ligabue&diff=prev&oldid=8857361
2580 '/^Mozilla\/4\.0 \(compatible; MSIE 6.0; Windows NT 5.0; Google Wireless Transcoder;\)/'
2584 * Fake out the timezone that the server thinks it's in. This will be used for
2585 * date display and not for what's stored in the DB. Leave to null to retain
2586 * your server's OS-based timezone value. This is the same as the timezone.
2588 * This variable is currently used ONLY for signature formatting, not for
2589 * anything else.
2591 # $wgLocaltimezone = 'GMT';
2592 # $wgLocaltimezone = 'PST8PDT';
2593 # $wgLocaltimezone = 'Europe/Sweden';
2594 # $wgLocaltimezone = 'CET';
2595 $wgLocaltimezone = null;
2598 * Set an offset from UTC in minutes to use for the default timezone setting
2599 * for anonymous users and new user accounts.
2601 * This setting is used for most date/time displays in the software, and is
2602 * overrideable in user preferences. It is *not* used for signature timestamps.
2604 * You can set it to match the configured server timezone like this:
2605 * $wgLocalTZoffset = date("Z") / 60;
2607 * If your server is not configured for the timezone you want, you can set
2608 * this in conjunction with the signature timezone and override the TZ
2609 * environment variable like so:
2610 * $wgLocaltimezone="Europe/Berlin";
2611 * putenv("TZ=$wgLocaltimezone");
2612 * $wgLocalTZoffset = date("Z") / 60;
2614 * Leave at NULL to show times in universal time (UTC/GMT).
2616 $wgLocalTZoffset = null;
2620 * When translating messages with wfMsg(), it is not always clear what should be
2621 * considered UI messages and what shoud be content messages.
2623 * For example, for regular wikipedia site like en, there should be only one
2624 * 'mainpage', therefore when getting the link of 'mainpage', we should treate
2625 * it as content of the site and call wfMsgForContent(), while for rendering the
2626 * text of the link, we call wfMsg(). The code in default behaves this way.
2627 * However, sites like common do offer different versions of 'mainpage' and the
2628 * like for different languages. This array provides a way to override the
2629 * default behavior. For example, to allow language specific mainpage and
2630 * community portal, set
2632 * $wgForceUIMsgAsContentMsg = array( 'mainpage', 'portal-url' );
2634 $wgForceUIMsgAsContentMsg = array();
2638 * Authentication plugin.
2640 $wgAuth = null;
2643 * Global list of hooks.
2644 * Add a hook by doing:
2645 * $wgHooks['event_name'][] = $function;
2646 * or:
2647 * $wgHooks['event_name'][] = array($function, $data);
2648 * or:
2649 * $wgHooks['event_name'][] = array($object, 'method');
2651 $wgHooks = array();
2654 * The logging system has two levels: an event type, which describes the
2655 * general category and can be viewed as a named subset of all logs; and
2656 * an action, which is a specific kind of event that can exist in that
2657 * log type.
2659 $wgLogTypes = array( '',
2660 'block',
2661 'protect',
2662 'rights',
2663 'delete',
2664 'upload',
2665 'move',
2666 'import',
2667 'patrol',
2668 'merge',
2669 'suppress',
2673 * This restricts log access to those who have a certain right
2674 * Users without this will not see it in the option menu and can not view it
2675 * Restricted logs are not added to recent changes
2676 * Logs should remain non-transcludable
2678 $wgLogRestrictions = array(
2679 'suppress' => 'suppressionlog'
2683 * Lists the message key string for each log type. The localized messages
2684 * will be listed in the user interface.
2686 * Extensions with custom log types may add to this array.
2688 $wgLogNames = array(
2689 '' => 'all-logs-page',
2690 'block' => 'blocklogpage',
2691 'protect' => 'protectlogpage',
2692 'rights' => 'rightslog',
2693 'delete' => 'dellogpage',
2694 'upload' => 'uploadlogpage',
2695 'move' => 'movelogpage',
2696 'import' => 'importlogpage',
2697 'patrol' => 'patrol-log-page',
2698 'merge' => 'mergelog',
2699 'suppress' => 'suppressionlog',
2703 * Lists the message key string for descriptive text to be shown at the
2704 * top of each log type.
2706 * Extensions with custom log types may add to this array.
2708 $wgLogHeaders = array(
2709 '' => 'alllogstext',
2710 'block' => 'blocklogtext',
2711 'protect' => 'protectlogtext',
2712 'rights' => 'rightslogtext',
2713 'delete' => 'dellogpagetext',
2714 'upload' => 'uploadlogpagetext',
2715 'move' => 'movelogpagetext',
2716 'import' => 'importlogpagetext',
2717 'patrol' => 'patrol-log-header',
2718 'merge' => 'mergelogpagetext',
2719 'suppress' => 'suppressionlogtext',
2723 * Lists the message key string for formatting individual events of each
2724 * type and action when listed in the logs.
2726 * Extensions with custom log types may add to this array.
2728 $wgLogActions = array(
2729 'block/block' => 'blocklogentry',
2730 'block/unblock' => 'unblocklogentry',
2731 'protect/protect' => 'protectedarticle',
2732 'protect/modify' => 'modifiedarticleprotection',
2733 'protect/unprotect' => 'unprotectedarticle',
2734 'rights/rights' => 'rightslogentry',
2735 'delete/delete' => 'deletedarticle',
2736 'delete/restore' => 'undeletedarticle',
2737 'delete/revision' => 'revdelete-logentry',
2738 'delete/event' => 'logdelete-logentry',
2739 'upload/upload' => 'uploadedimage',
2740 'upload/overwrite' => 'overwroteimage',
2741 'upload/revert' => 'uploadedimage',
2742 'move/move' => '1movedto2',
2743 'move/move_redir' => '1movedto2_redir',
2744 'import/upload' => 'import-logentry-upload',
2745 'import/interwiki' => 'import-logentry-interwiki',
2746 'merge/merge' => 'pagemerge-logentry',
2747 'suppress/revision' => 'revdelete-logentry',
2748 'suppress/file' => 'revdelete-logentry',
2749 'suppress/event' => 'logdelete-logentry',
2750 'suppress/delete' => 'suppressedarticle',
2751 'suppress/block' => 'blocklogentry',
2755 * The same as above, but here values are names of functions,
2756 * not messages
2758 $wgLogActionsHandlers = array();
2761 * Maintain a log of newusers at Log/newusers?
2763 $wgNewUserLog = true;
2766 * List of special pages, followed by what subtitle they should go under
2767 * at Special:SpecialPages
2769 $wgSpecialPageGroups = array(
2770 'DoubleRedirects' => 'maintenance',
2771 'BrokenRedirects' => 'maintenance',
2772 'Lonelypages' => 'maintenance',
2773 'Uncategorizedpages' => 'maintenance',
2774 'Uncategorizedcategories' => 'maintenance',
2775 'Uncategorizedimages' => 'maintenance',
2776 'Uncategorizedtemplates' => 'maintenance',
2777 'Unusedcategories' => 'maintenance',
2778 'Unusedimages' => 'maintenance',
2779 'Protectedpages' => 'maintenance',
2780 'Protectedtitles' => 'maintenance',
2781 'Unusedtemplates' => 'maintenance',
2782 'Withoutinterwiki' => 'maintenance',
2783 'Longpages' => 'maintenance',
2784 'Shortpages' => 'maintenance',
2785 'Ancientpages' => 'maintenance',
2786 'Deadendpages' => 'maintenance',
2787 'Wantedpages' => 'maintenance',
2788 'Wantedcategories' => 'maintenance',
2789 'Wantedfiles' => 'maintenance',
2790 'Unwatchedpages' => 'maintenance',
2791 'Fewestrevisions' => 'maintenance',
2793 'Userlogin' => 'login',
2794 'Userlogout' => 'login',
2795 'CreateAccount' => 'login',
2797 'Recentchanges' => 'changes',
2798 'Recentchangeslinked' => 'changes',
2799 'Watchlist' => 'changes',
2800 'Newimages' => 'changes',
2801 'Newpages' => 'changes',
2802 'Log' => 'changes',
2804 'Upload' => 'media',
2805 'Imagelist' => 'media',
2806 'MIMEsearch' => 'media',
2807 'FileDuplicateSearch' => 'media',
2808 'Filepath' => 'media',
2810 'Listusers' => 'users',
2811 'Listgrouprights' => 'users',
2812 'Ipblocklist' => 'users',
2813 'Contributions' => 'users',
2814 'Emailuser' => 'users',
2815 'Listadmins' => 'users',
2816 'Listbots' => 'users',
2817 'Userrights' => 'users',
2818 'Blockip' => 'users',
2819 'Preferences' => 'users',
2820 'Resetpass' => 'users',
2822 'Mostlinked' => 'highuse',
2823 'Mostlinkedcategories' => 'highuse',
2824 'Mostlinkedtemplates' => 'highuse',
2825 'Mostcategories' => 'highuse',
2826 'Mostimages' => 'highuse',
2827 'Mostrevisions' => 'highuse',
2829 'Allpages' => 'pages',
2830 'Prefixindex' => 'pages',
2831 'Listredirects' => 'pages',
2832 'Categories' => 'pages',
2833 'Disambiguations' => 'pages',
2835 'Randompage' => 'redirects',
2836 'Randomredirect' => 'redirects',
2837 'Mypage' => 'redirects',
2838 'Mytalk' => 'redirects',
2839 'Mycontributions' => 'redirects',
2840 'Search' => 'redirects',
2841 'LinkSearch' => 'redirects',
2843 'Movepage' => 'pagetools',
2844 'MergeHistory' => 'pagetools',
2845 'Revisiondelete' => 'pagetools',
2846 'Undelete' => 'pagetools',
2847 'Export' => 'pagetools',
2848 'Import' => 'pagetools',
2849 'Whatlinkshere' => 'pagetools',
2851 'Statistics' => 'wiki',
2852 'Version' => 'wiki',
2853 'Lockdb' => 'wiki',
2854 'Unlockdb' => 'wiki',
2855 'Allmessages' => 'wiki',
2856 'Popularpages' => 'wiki',
2858 'Specialpages' => 'other',
2859 'Blockme' => 'other',
2860 'Booksources' => 'other',
2864 * Experimental preview feature to fetch rendered text
2865 * over an XMLHttpRequest from JavaScript instead of
2866 * forcing a submit and reload of the whole page.
2867 * Leave disabled unless you're testing it.
2869 $wgLivePreview = false;
2872 * Disable the internal MySQL-based search, to allow it to be
2873 * implemented by an extension instead.
2875 $wgDisableInternalSearch = false;
2878 * Set this to a URL to forward search requests to some external location.
2879 * If the URL includes '$1', this will be replaced with the URL-encoded
2880 * search term.
2882 * For example, to forward to Google you'd have something like:
2883 * $wgSearchForwardUrl = 'http://www.google.com/search?q=$1' .
2884 * '&domains=http://example.com' .
2885 * '&sitesearch=http://example.com' .
2886 * '&ie=utf-8&oe=utf-8';
2888 $wgSearchForwardUrl = null;
2891 * If true, external URL links in wiki text will be given the
2892 * rel="nofollow" attribute as a hint to search engines that
2893 * they should not be followed for ranking purposes as they
2894 * are user-supplied and thus subject to spamming.
2896 $wgNoFollowLinks = true;
2899 * Namespaces in which $wgNoFollowLinks doesn't apply.
2900 * See Language.php for a list of namespaces.
2902 $wgNoFollowNsExceptions = array();
2905 * Default robot policy. The default policy is to encourage indexing and fol-
2906 * lowing of links. It may be overridden on a per-namespace and/or per-page
2907 * basis.
2909 $wgDefaultRobotPolicy = 'index,follow';
2912 * Robot policies per namespaces. The default policy is given above, the array
2913 * is made of namespace constants as defined in includes/Defines.php. You can-
2914 * not specify a different default policy for NS_SPECIAL: it is always noindex,
2915 * nofollow. This is because a number of special pages (e.g., ListPages) have
2916 * many permutations of options that display the same data under redundant
2917 * URLs, so search engine spiders risk getting lost in a maze of twisty special
2918 * pages, all alike, and never reaching your actual content.
2920 * Example:
2921 * $wgNamespaceRobotPolicies = array( NS_TALK => 'noindex' );
2923 $wgNamespaceRobotPolicies = array();
2926 * Robot policies per article. These override the per-namespace robot policies.
2927 * Must be in the form of an array where the key part is a properly canonical-
2928 * ised text form title and the value is a robot policy.
2929 * Example:
2930 * $wgArticleRobotPolicies = array( 'Main Page' => 'noindex,follow',
2931 * 'User:Bob' => 'index,follow' );
2932 * Example that DOES NOT WORK because the names are not canonical text forms:
2933 * $wgArticleRobotPolicies = array(
2934 * # Underscore, not space!
2935 * 'Main_Page' => 'noindex,follow',
2936 * # "Project", not the actual project name!
2937 * 'Project:X' => 'index,follow',
2938 * # Needs to be "Abc", not "abc" (unless $wgCapitalLinks is false)!
2939 * 'abc' => 'noindex,nofollow'
2940 * );
2942 $wgArticleRobotPolicies = array();
2945 * An array of namespace keys in which the __INDEX__/__NOINDEX__ magic words
2946 * will not function, so users can't decide whether pages in that namespace are
2947 * indexed by search engines. If set to null, default to $wgContentNamespaces.
2948 * Example:
2949 * $wgExemptFromUserRobotsControl = array( NS_MAIN, NS_TALK, NS_PROJECT );
2951 $wgExemptFromUserRobotsControl = null;
2954 * Specifies the minimal length of a user password. If set to 0, empty pass-
2955 * words are allowed.
2957 $wgMinimalPasswordLength = 0;
2960 * Activate external editor interface for files and pages
2961 * See http://meta.wikimedia.org/wiki/Help:External_editors
2963 $wgUseExternalEditor = true;
2965 /** Whether or not to sort special pages in Special:Specialpages */
2967 $wgSortSpecialPages = true;
2970 * Specify the name of a skin that should not be presented in the list of a-
2971 * vailable skins. Use for blacklisting a skin which you do not want to remove
2972 * from the .../skins/ directory
2974 $wgSkipSkin = '';
2975 $wgSkipSkins = array(); # More of the same
2978 * Array of disabled article actions, e.g. view, edit, dublincore, delete, etc.
2980 $wgDisabledActions = array();
2983 * Disable redirects to special pages and interwiki redirects, which use a 302
2984 * and have no "redirected from" link.
2986 $wgDisableHardRedirects = false;
2989 * Use http.dnsbl.sorbs.net to check for open proxies
2991 $wgEnableSorbs = false;
2992 $wgSorbsUrl = 'http.dnsbl.sorbs.net.';
2995 * Proxy whitelist, list of addresses that are assumed to be non-proxy despite
2996 * what the other methods might say.
2998 $wgProxyWhitelist = array();
3001 * Simple rate limiter options to brake edit floods. Maximum number actions
3002 * allowed in the given number of seconds; after that the violating client re-
3003 * ceives HTTP 500 error pages until the period elapses.
3005 * array( 4, 60 ) for a maximum of 4 hits in 60 seconds.
3007 * This option set is experimental and likely to change. Requires memcached.
3009 $wgRateLimits = array(
3010 'edit' => array(
3011 'anon' => null, // for any and all anonymous edits (aggregate)
3012 'user' => null, // for each logged-in user
3013 'newbie' => null, // for each recent (autoconfirmed) account; overrides 'user'
3014 'ip' => null, // for each anon and recent account
3015 'subnet' => null, // ... with final octet removed
3017 'move' => array(
3018 'user' => null,
3019 'newbie' => null,
3020 'ip' => null,
3021 'subnet' => null,
3023 'mailpassword' => array(
3024 'anon' => NULL,
3026 'emailuser' => array(
3027 'user' => null,
3032 * Set to a filename to log rate limiter hits.
3034 $wgRateLimitLog = null;
3037 * Array of groups which should never trigger the rate limiter
3039 * @deprecated as of 1.13.0, the preferred method is using
3040 * $wgGroupPermissions[]['noratelimit']. However, this will still
3041 * work if desired.
3043 * $wgRateLimitsExcludedGroups = array( 'sysop', 'bureaucrat' );
3045 $wgRateLimitsExcludedGroups = array();
3048 * On Special:Unusedimages, consider images "used", if they are put
3049 * into a category. Default (false) is not to count those as used.
3051 $wgCountCategorizedImagesAsUsed = false;
3054 * External stores allow including content
3055 * from non database sources following URL links
3057 * Short names of ExternalStore classes may be specified in an array here:
3058 * $wgExternalStores = array("http","file","custom")...
3060 * CAUTION: Access to database might lead to code execution
3062 $wgExternalStores = false;
3065 * An array of external mysql servers, e.g.
3066 * $wgExternalServers = array( 'cluster1' => array( 'srv28', 'srv29', 'srv30' ) );
3067 * Used by LBFactory_Simple, may be ignored if $wgLBFactoryConf is set to another class.
3069 $wgExternalServers = array();
3072 * The place to put new revisions, false to put them in the local text table.
3073 * Part of a URL, e.g. DB://cluster1
3075 * Can be an array instead of a single string, to enable data distribution. Keys
3076 * must be consecutive integers, starting at zero. Example:
3078 * $wgDefaultExternalStore = array( 'DB://cluster1', 'DB://cluster2' );
3081 $wgDefaultExternalStore = false;
3084 * Revision text may be cached in $wgMemc to reduce load on external storage
3085 * servers and object extraction overhead for frequently-loaded revisions.
3087 * Set to 0 to disable, or number of seconds before cache expiry.
3089 $wgRevisionCacheExpiry = 0;
3092 * list of trusted media-types and mime types.
3093 * Use the MEDIATYPE_xxx constants to represent media types.
3094 * This list is used by Image::isSafeFile
3096 * Types not listed here will have a warning about unsafe content
3097 * displayed on the images description page. It would also be possible
3098 * to use this for further restrictions, like disabling direct
3099 * [[media:...]] links for non-trusted formats.
3101 $wgTrustedMediaFormats= array(
3102 MEDIATYPE_BITMAP, //all bitmap formats
3103 MEDIATYPE_AUDIO, //all audio formats
3104 MEDIATYPE_VIDEO, //all plain video formats
3105 "image/svg+xml", //svg (only needed if inline rendering of svg is not supported)
3106 "application/pdf", //PDF files
3107 #"application/x-shockwave-flash", //flash/shockwave movie
3111 * Allow special page inclusions such as {{Special:Allpages}}
3113 $wgAllowSpecialInclusion = true;
3116 * Timeout for HTTP requests done via CURL
3118 $wgHTTPTimeout = 3;
3121 * Proxy to use for CURL requests.
3123 $wgHTTPProxy = false;
3126 * Enable interwiki transcluding. Only when iw_trans=1.
3128 $wgEnableScaryTranscluding = false;
3130 * Expiry time for interwiki transclusion
3132 $wgTranscludeCacheExpiry = 3600;
3135 * Support blog-style "trackbacks" for articles. See
3136 * http://www.sixapart.com/pronet/docs/trackback_spec for details.
3138 $wgUseTrackbacks = false;
3141 * Enable filtering of categories in Recentchanges
3143 $wgAllowCategorizedRecentChanges = false ;
3146 * Number of jobs to perform per request. May be less than one in which case
3147 * jobs are performed probabalistically. If this is zero, jobs will not be done
3148 * during ordinary apache requests. In this case, maintenance/runJobs.php should
3149 * be run periodically.
3151 $wgJobRunRate = 1;
3154 * Number of rows to update per job
3156 $wgUpdateRowsPerJob = 500;
3159 * Number of rows to update per query
3161 $wgUpdateRowsPerQuery = 10;
3164 * Enable AJAX framework
3166 $wgUseAjax = true;
3169 * List of Ajax-callable functions.
3170 * Extensions acting as Ajax callbacks must register here
3172 $wgAjaxExportList = array( );
3175 * Enable watching/unwatching pages using AJAX.
3176 * Requires $wgUseAjax to be true too.
3177 * Causes wfAjaxWatch to be added to $wgAjaxExportList
3179 $wgAjaxWatch = true;
3182 * Enable AJAX check for file overwrite, pre-upload
3184 $wgAjaxUploadDestCheck = true;
3187 * Enable previewing licences via AJAX
3189 $wgAjaxLicensePreview = true;
3192 * Allow DISPLAYTITLE to change title display
3194 $wgAllowDisplayTitle = true;
3197 * for consistency, restrict DISPLAYTITLE to titles that normalize to the same canonical DB key
3199 $wgRestrictDisplayTitle = true;
3202 * Array of usernames which may not be registered or logged in from
3203 * Maintenance scripts can still use these
3205 $wgReservedUsernames = array(
3206 'MediaWiki default', // Default 'Main Page' and MediaWiki: message pages
3207 'Conversion script', // Used for the old Wikipedia software upgrade
3208 'Maintenance script', // Maintenance scripts which perform editing, image import script
3209 'Template namespace initialisation script', // Used in 1.2->1.3 upgrade
3210 'msg:double-redirect-fixer', // Automatic double redirect fix
3214 * MediaWiki will reject HTMLesque tags in uploaded files due to idiotic browsers which can't
3215 * perform basic stuff like MIME detection and which are vulnerable to further idiots uploading
3216 * crap files as images. When this directive is on, <title> will be allowed in files with
3217 * an "image/svg+xml" MIME type. You should leave this disabled if your web server is misconfigured
3218 * and doesn't send appropriate MIME types for SVG images.
3220 $wgAllowTitlesInSVG = false;
3223 * Array of namespaces which can be deemed to contain valid "content", as far
3224 * as the site statistics are concerned. Useful if additional namespaces also
3225 * contain "content" which should be considered when generating a count of the
3226 * number of articles in the wiki.
3228 $wgContentNamespaces = array( NS_MAIN );
3231 * Maximum amount of virtual memory available to shell processes under linux, in KB.
3233 $wgMaxShellMemory = 102400;
3236 * Maximum file size created by shell processes under linux, in KB
3237 * ImageMagick convert for example can be fairly hungry for scratch space
3239 $wgMaxShellFileSize = 102400;
3242 * Executable name of PHP cli client (php/php5)
3244 $wgPhpCli = 'php';
3247 * DJVU settings
3248 * Path of the djvudump executable
3249 * Enable this and $wgDjvuRenderer to enable djvu rendering
3251 # $wgDjvuDump = 'djvudump';
3252 $wgDjvuDump = null;
3255 * Path of the ddjvu DJVU renderer
3256 * Enable this and $wgDjvuDump to enable djvu rendering
3258 # $wgDjvuRenderer = 'ddjvu';
3259 $wgDjvuRenderer = null;
3262 * Path of the djvutoxml executable
3263 * This works like djvudump except much, much slower as of version 3.5.
3265 * For now I recommend you use djvudump instead. The djvuxml output is
3266 * probably more stable, so we'll switch back to it as soon as they fix
3267 * the efficiency problem.
3268 * http://sourceforge.net/tracker/index.php?func=detail&aid=1704049&group_id=32953&atid=406583
3270 # $wgDjvuToXML = 'djvutoxml';
3271 $wgDjvuToXML = null;
3275 * Shell command for the DJVU post processor
3276 * Default: pnmtopng, since ddjvu generates ppm output
3277 * Set this to false to output the ppm file directly.
3279 $wgDjvuPostProcessor = 'pnmtojpeg';
3281 * File extension for the DJVU post processor output
3283 $wgDjvuOutputExtension = 'jpg';
3286 * Enable the MediaWiki API for convenient access to
3287 * machine-readable data via api.php
3289 * See http://www.mediawiki.org/wiki/API
3291 $wgEnableAPI = true;
3294 * Allow the API to be used to perform write operations
3295 * (page edits, rollback, etc.) when an authorised user
3296 * accesses it
3298 $wgEnableWriteAPI = false;
3301 * API module extensions
3302 * Associative array mapping module name to class name.
3303 * Extension modules may override the core modules.
3305 $wgAPIModules = array();
3306 $wgAPIMetaModules = array();
3307 $wgAPIPropModules = array();
3308 $wgAPIListModules = array();
3311 * Maximum amount of rows to scan in a DB query in the API
3312 * The default value is generally fine
3314 $wgAPIMaxDBRows = 5000;
3317 * Parser test suite files to be run by parserTests.php when no specific
3318 * filename is passed to it.
3320 * Extensions may add their own tests to this array, or site-local tests
3321 * may be added via LocalSettings.php
3323 * Use full paths.
3325 $wgParserTestFiles = array(
3326 "$IP/maintenance/parserTests.txt",
3330 * Break out of framesets. This can be used to prevent external sites from
3331 * framing your site with ads.
3333 $wgBreakFrames = false;
3336 * Set this to an array of special page names to prevent
3337 * maintenance/updateSpecialPages.php from updating those pages.
3339 $wgDisableQueryPageUpdate = false;
3342 * Disable output compression (enabled by default if zlib is available)
3344 $wgDisableOutputCompression = false;
3347 * If lag is higher than $wgSlaveLagWarning, show a warning in some special
3348 * pages (like watchlist). If the lag is higher than $wgSlaveLagCritical,
3349 * show a more obvious warning.
3351 $wgSlaveLagWarning = 10;
3352 $wgSlaveLagCritical = 30;
3355 * Parser configuration. Associative array with the following members:
3357 * class The class name
3359 * preprocessorClass The preprocessor class. Two classes are currently available:
3360 * Preprocessor_Hash, which uses plain PHP arrays for tempoarary
3361 * storage, and Preprocessor_DOM, which uses the DOM module for
3362 * temporary storage. Preprocessor_DOM generally uses less memory;
3363 * the speed of the two is roughly the same.
3365 * If this parameter is not given, it uses Preprocessor_DOM if the
3366 * DOM module is available, otherwise it uses Preprocessor_Hash.
3368 * Has no effect on Parser_OldPP.
3370 * The entire associative array will be passed through to the constructor as
3371 * the first parameter. Note that only Setup.php can use this variable --
3372 * the configuration will change at runtime via $wgParser member functions, so
3373 * the contents of this variable will be out-of-date. The variable can only be
3374 * changed during LocalSettings.php, in particular, it can't be changed during
3375 * an extension setup function.
3377 $wgParserConf = array(
3378 'class' => 'Parser',
3379 #'preprocessorClass' => 'Preprocessor_Hash',
3383 * LinkHolderArray batch size
3384 * For debugging
3386 $wgLinkHolderBatchSize = 1000;
3389 * Hooks that are used for outputting exceptions. Format is:
3390 * $wgExceptionHooks[] = $funcname
3391 * or:
3392 * $wgExceptionHooks[] = array( $class, $funcname )
3393 * Hooks should return strings or false
3395 $wgExceptionHooks = array();
3398 * Page property link table invalidation lists. Should only be set by exten-
3399 * sions.
3401 $wgPagePropLinkInvalidations = array(
3402 'hiddencat' => 'categorylinks',
3406 * Maximum number of links to a redirect page listed on
3407 * Special:Whatlinkshere/RedirectDestination
3409 $wgMaxRedirectLinksRetrieved = 500;
3412 * Maximum number of calls per parse to expensive parser functions such as
3413 * PAGESINCATEGORY.
3415 $wgExpensiveParserFunctionLimit = 100;
3418 * Maximum number of pages to move at once when moving subpages with a page.
3420 $wgMaximumMovedPages = 100;
3423 * Array of namespaces to generate a sitemap for when the
3424 * maintenance/generateSitemap.php script is run, or false if one is to be ge-
3425 * nerated for all namespaces.
3427 $wgSitemapNamespaces = false;
3431 * If user doesn't specify any edit summary when making a an edit, MediaWiki
3432 * will try to automatically create one. This feature can be disabled by set-
3433 * ting this variable false.
3435 $wgUseAutomaticEditSummaries = true;
3438 * Limit password attempts to X attempts per Y seconds per IP per account.
3439 * Requires memcached.
3441 $wgPasswordAttemptThrottle = array( 'count' => 5, 'seconds' => 300 );