Manual:Configuration settings

From DrugPedia: A Wikipedia for Drug discovery

(Difference between revisions)
Jump to: navigation, search
m (1 revision)
Current revision (05:16, 13 September 2008) (view source)
m (Protected "Manual:Configuration settings" [edit=sysop:move=sysop])
 

Current revision

Template:TOCright This is an index of all supported configuration options based on the DefaultSettings.php file.

Never edit DefaultSettings.php; copy appropriate lines to LocalSettings.php instead and amend them as appropriate.

Listed alphabetically | Listed by function | Category:MediaWiki configuration settings

Contents

General Settings

  • $wgProto - The secure server prefix.
  • $wgServer - The base URL of the server.
  • $wgServerName - The name of the server without the protocol. (eg, en.wikipedia.org)
  • $wgSitename - The name of the site. Should be changed
  • $wgVersion - Contains the current version of MediaWiki, as displayed to the user.

Paths

See also TeX for LaTeX specific path settings.
See also Uploads for file/image upload path settings.
See also Interwiki for interwiki path settings.
See also Skins for skins path settings.

Global Objects

  • $wgConf - Create a site configuration object. Not used for much in a default install.

Email settings

See Also User Access:$wgEmailConfirmToEdit

Email notification (Enotif) settings

  • $wgEnotifFromEditor - Email notifications appear to be coming from the page editor (not from Wiki server)
  • $wgEnotifImpersonal - Send a generic mail instead of a personalised mail for each user.
  • $wgEnotifMaxRecips - Maximum number of users to mail at once when using impersonal mail.
  • $wgEnotifMinorEdits - Email notifications also for "minor edits" (user preference is shown and user needs to opt-in)
  • $wgEnotifRevealEditorAddress - reply-to address of Email notifications may be filled with page editor's address (user preference is shown and user needs to opt-in)
  • $wgEnotifUseJobQ - Send mails via the job queue.
  • $wgEnotifUserTalk - Email notifications can be sent for first change on a user_talk page (user preference is shown and user needs to opt-in)
  • $wgEnotifWatchlist - Email notifications can be sent for the first change on watched pages (user preference is shown and user needs to opt-in)
  • $wgUsersNotifiedOnAllChanges (formerly $wgUsersNotifedOnAllChanges!) - Array of usernames who will be sent a notification email for every change which occurs on a wiki

Database settings

LoadBalancer settings

MySQL specific

  • $wgDBminWordLen - Used to discard words that MySQL will not return any results for shorter values configure mysql directly.
  • $wgDBmysql4 (deprecated) - Set to true to use enhanced fulltext search.
  • $wgDBmysql5 - Set to true to set MySQL connection into UTF-8 encoding
  • $wgDBTableOptions - MySQL table options to use during installation or update.
  • $wgDBtransactions - Set to true if using InnoDB tables.
  • $wgExternalServers - An array of external MySQL servers.

PostgreSQL specific

  • $wgDBmwschema - Schema that Postgres stores the MediaWiki tables in. Defaults to 'mediawiki'
  • $wgDBts2schema - Schema that the Tsearch2 tables live in for Postgres. Defaults to 'public'

SQLite specific

Shared DB settings

Sysop SQL queries

These settings are for sysops to make queries through Extension:Asksql. Template:Warning

Compressed Storage Support

Localization

Timezone settings

Chinese-specific

Hindi/Arabic-specific

  • $wgTranslateNumerals - For Hindi and Arabic use local numerals instead of Western style (0-9) numerals in interface.

Debug/logging

Profiling

Site customization

Ajax

CSS/Js

Namespaces

Robot policies

Site Statistics

Skins

Category

Cache

See Interwiki for Interwiki cache settings.

Client side caching

File Cache

Setting for Server side file caching

  • $wgFileCacheDirectory - Directory where the cached page will be saved when using server-side caching.
  • $wgUseFileCache - This will cache static pages for non-logged-in users to reduce database traffic on public sites.

Message Cache

Sidebar Cache

Parser Cache

Persistent Link Cache

Memcached settings

Settings for configuring the Memcached memory-based object store (if you are using it) docs/memcached.txt has more details.

Interwiki

Access

Wiki locking, blocking/banning, and some other related settings.

See Manual:Preventing access for more methods and settings concerning access. See also Manual:User rights management for more information about $wgGroupPermissions, $wgAddGroups, $wgRemoveGroups, etc.

See User Access for User Access settings.

API

  • $wgEnableAPI - Enable direct access to the data API through api.php.
  • $wgEnableWriteAPI - Allow the API to be used to perform write operations (page edits, rollback, etc.) when an authorised user accesses it.

Wiki locking

  • $wgReadOnly - Disallows editing, displaying the string given as the reason.
  • $wgReadOnlyFile - If this file is found, the database is locked for the reason given in the contents of the file.

Rate limiter

Proxies

Squid

Cookies

Reduction

Uploads

Uploads have to be specially set up to be secure.

Shared uploads

These settings are kept for backward compatibility, see $wgForeignFileRepos for the new setting.

MIME types

Template:Warning This is not a configuration setting, but a global state variable. It should be used solely by thumb.php!

See also Manual:Mime type detection

Images

See also Manual:Configuring file uploads

DjVu

EXIF

  • $wgShowEXIF - Determines whether EXIF metadata is to be displayed. Set to false for not showing data. Windows Only.

ImageMagick

Set $wgUseImageMagick to true to use ImageMagick instead of the builtin functions.

SVG

Thumbnail settings

Antivirus

Parser

HTML

  • $wgMakeDumpLinks (deprecated) - Produce hashed HTML article paths.
  • $wgRawHtml - Allow raw, unchecked HTML in <html>...</html> sections.
  • $wgUserHtml (deprecated) - Allow limited user-specified HTML in wiki pages?

TeX

To use inline TeX, you need to compile 'texvc' (in the 'math' subdirectory of the MediaWiki package and have latex, dvips, gs (ghostscript), and convert (ImageMagick) installed and available in the PATH. Please see math/README for more information.

  • $wgMathDirectory - The file system path of the directory containing LaTeX math images.
  • $wgMathPath - The URL base of the directory containing LaTeX math images.
  • $wgTexvc - Location of the texvc binary.
  • $wgUseTeX - Enables the use of <math> (TeX) tags.

Tidy

Tidy is an open source tool that cleans up broken HTML. You can use this to ensure that broken HTML in articles doesn't affect the layout of your wiki.

  • $wgAlwaysUseTidy
  • $wgDebugTidy - Put tidy warnings in HTML comments, only works for internal tidy.
  • $wgTidyBin - Should be set to the path of the tidy binary.
  • $wgTidyConf - Should be set to the path of the tidy configuration file.
  • $wgTidyInternal - Controls the use of the PECL extension to use an inprocess tidy library instead of spawning a separate program.
  • $wgTidyOpts - Options passed to tidy on the command line.
  • $wgUseTidy - Use tidy to make sure HTML output is sane.
  • $wgValidateAllHtml - Validate the overall output using tidy and refuse to display the page if it's not valid.

See also Manual:Build Tidy from source.

Special pages

Recent changes

See Special:Recentchanges

UDP updates

Send RC updates via UDP. See: Manual:Simple IRC RC Bot

Users

User Access

User agent

Feed

  • $wgFeed - Toggle syndication feeds on and off.
  • $wgFeedCacheTimeout - 'Minimum' timeout for cached Recentchanges feed, in seconds.
  • $wgFeedDiffCutoff - When generating Recentchanges RSS/Atom feed, diffs will not be generated for pages larger than this size.
  • $wgFeedLimit - Set maximum number of results to return in syndication feeds (RSS, Atom) for eg Recentchanges, Newpages.
  • $wgOverrideSiteFeed - Override the site's default rss/atom feed that appears on every page.

Copyright

Jobs

Extensions

Search

HTCP multicast purging

Maintenance Scripts setting

Miscellaneous settings

Template:Languages

Template:Categories