DefaultSettings.php设置

来自Org
跳转至: 导航搜索

您当前所在的位置:首页 > 架设手册 > DefaultSettings.php设置

按照MediaWiki后可以在includes目录中找到这个文件,里面包括了各种关于MediaWiki的配置参数,不过千万不要直接编辑这个文件,而是需要把修改的参数复制到根目录下的LocalSettings.php这个文件中来,以免系统升级后修改的配置参数丢失。

官方网站中关于该文件的说明:

http://www.mediawiki.org/wiki/Manual:Configuration_settings

转录如下:


模板:RightTOC 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

General Settings

  • $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

Shared uploads

Email settings

  • $wgEmailAuthentication - Whether Email authentication (confirmation) is needed for that wiki for using any Email function (except password reminder which works independently from this setting)
  • $wgEmergencyContact - Site admin email address
  • $wgEnableEmail - Set to true to enable the e-mail basic features: Password reminders, etc.
  • $wgEnableUserEmail - Set to true to enable user-to-user e-mail.
  • $wgPasswordSender - Password reminder email address.
  • $wgSMTP - For using a direct (authenticated) SMTP server connection.

Email notification (Enotif) settings

  • $wgEnotifFromEditor - Email notifications appear to be coming from the page editor (not from Wiki server)
  • $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)
  • $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)

Database settings

Shared DB settings

  • $wgSharedDB - The name of the shared database (currently for shared user table only).

Sysop SQL queries

These settings are for sysops to make queries through Special:Asksql.

18px Warning: Dangerous if not configured properly.

Localization

Debug/logging

Profiling

Site customization

These are site-wide appearance settings.

Namespaces

Namespaces
-2 媒体文件: -1 特殊:
0  : 1 讨论:
2 用户: 3 用户讨论:
4 Org: 5 Org讨论:
6 文件: 7 文件讨论:
8 MediaWiki: 9 MediaWiki讨论:
10 模板: 11 模板讨论:
12 帮助: 13 帮助讨论:
14 分类: 15 分类讨论:

Per-page settings

Page customizations

These are pages not existing in vanilla MediaWiki which interface definition files (in any language) expect to exist though. If you want to avoid broken links in the interface you may want to make sure that either they contain some helpful content or redirect/customize them to appropriate pages (either via redirects at the pages or via editing the pages defintions):

On your local System messages special page you can search for interface strings using these page definitions.

Skins

Category

  • $wgCategoryMagicGallery - On category pages, show thumbnail gallery for images belonging to that category instead of listing them as articles.
  • $wgUseCategoryBrowser - Enable DMOZ-like category tree at the bottom of pages

Cache

Persistent Link Cache

Obsolete

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, user access options, blocking/banning, and some other related settings.

Rate limiter

Proxies

Squid

Cookies

Reduction

Uploads

Uploads have to be specially set up to be secure.

MIME types

See also Manual:Mime type detection

Antivirus

Parser

HTML

  • $wgRawHtml - Allow raw, unchecked HTML in <html>...</html> sections.
  • $wgUserHtml - Allow limited user-specified HTML in wiki pages? Removed in 1.10.

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.

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.

Images

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

  • $wgUseImageResize - Set $wgUseImageResize to true if you want to enable dynamic server side image resizing (Thumbnails)
  • $wgShowEXIF - Determines whether EXIF metadata is to be displayed. Set to false for not showing data.
  • parameters for upload path


See also Manual:Configuring file uploads

Recent changes

See Special:Recentchanges

UDP updates

Send RC updates via UDP. See: A Simple IRC RC bot

Copyright

Extensions

HTCP multicast purging

Miscellaneous settings

关于“DefaultSettings.php设置”的留言:

目前暂无留言

新增相关留言