Manual:Configuration settings/zh

From MediaWiki.org

Jump to: navigation, search

使用指南:配置与设定 以下是一个基于DefaultSettings.php文件的所有设置索引 This is an index of all supported configuration options based on the [1] file.

永远不要编辑 DefaultSettings.php文件; 复制恰当的行到 LocalSettings.php 合适地替代和修订它们。

按字母顺序排列 | 按功能排列 | 分类:mediawiki配置设定分类列表

Contents

[edit] 一般设置

[edit] 路径

  • $IP - 文件系统安装路径。不在 defaultsettings.php 文件之中。
  • $wgActionPaths - 不同用户行为的路径。用于‘美化’ url 地址。
  • $wgAppleTouchIcon - 在苹果手持设备上收藏主页时的可选图标地址。Optional URL to an icon to use when bookmarking to the home screen on Apple handheld devices.
  • $wgDiff3 - GNU diff3 工具的安装路径。
  • $wgLogo - 站点的 logo 地址(URL)。
  • $wgMathDirectory - 包含 latex 数学图标目录的文件系统路径。包含LaTeX格式数学图片的目录。
  • $wgMathPath - LaTeX 格式数学图片的目录的地址(URL)。

[edit] 全局对象

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

[edit] 邮件设置

  • $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.
  • $wgNoReplyAddress - Dummy address which should be accepted during mail send action.
  • $wgPasswordSender - Password reminder email address.
  • $wgSMTP - For using a direct (authenticated) SMTP server connection.
  • $wgUserEmailUseReplyTo - Should the sending user's email be in a Reply-To header instead of From.

[edit] 邮件通知设置

  • $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)
  • $wgShowUpdatedMarker - Show "Updated (since my last visit)" marker in RC view, watchlist and history.
  • $wgUsersNotifedOnAllChanges - Array of usernames who will be sent a notification email for every change which occurs on a wiki

[edit] 数据库设置

[edit] 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.

[edit] 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'

[edit] SQLite specific

[edit] Shared DB settings

[edit] Sysop SQL queries

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

Warning Warning: Dangerous if not configured properly.

[edit] 压缩存储支持

  • $wgCompressRevisions - If this is set on, all future revisions will be compressed on page save, but only if zlib support is available and enabled in PHP.
  • $wgDisableOutputCompression - Disable output compression (enabled by default if zlib is available).dkkdkdk

[edit] 本地化

[edit] 时区

[edit] 中文特定设置

[edit] Hindi/Arabic-specific

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

[edit] 调试/日志

[edit] Profiling

[edit] 站点自定义

[edit] 名字空间

[edit] Per-page settings

See also Manual:Page customizations/zh.

[edit] 皮肤

[edit] 分类

[edit] 缓存

[edit] Persistent Link Cache

[edit] Memcached 设置

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

[edit] 跨维基

[edit] 权限控制

Wiki locking, 用户权限设定, blocking/banning, and some other related settings.

  • $wgAutopromote - 允许自动提示用户一些flags如果他符合标准。 Allow automatically promote user some flags if he matches criterias
  • $wgAccountCreationThrottle - 每个IP地址可以创建的用户数量,(从0---禁用) 需要 memcached。Number of accounts each IP address may create, 0 to disable. Requires memcached.
  • $wgAllowPageInfo - 允许信息动作,目前非常低效。Allow the info action, very inefficient at the moment.
  • $wgBlockAllowsUTEdit - 允许被封锁的用户编辑他们的讨论页面。Allow blocked users to edit their talk pages.
  • $wgDeleteRevisionsLimit - 设置一个整数用来表明在“bigdelete”权限要求删除一篇文章之前该文章必须修改多少次。Integer of how many revisions an article must have before the bigdelete right is required to delete it.
  • $wgDisabledActions - 被禁止文章行为数列,例如:浏览、编辑、删除等等。 Array of disabled article actions, e.g. view, edit, dublincore, delete, etc.
  • $wgEmailConfirmToEdit - 在用户被允许编辑之前,请求他们进行邮件地址认证。Require users to confirm email address before they can edit, true to enable.
  • $wgEnableAPI - 启动由 API 数据到 api.php 的直接通道。 Enable direct access to the data API through api.php.
  • $wgEnableWriteAPI - 当授权用户访问时,允许被用于执行写入操作系统(页面编辑、回滚等等)的API启用Allow the API to be used to perform write operations (page edits, rollback, etc.) when an authorised user accesses it.
  • $wgGroupsAddToSelf - 允许用户从指定组添加自己 allow users to add themselves from specified groups via Special:Userrights
  • $wgGroupsRemoveFromSelf - 允许用户从制定组删除自己。allow users to remove themselves from specified groups via Special:Userrights
  • $wgPasswordSalt - 将兼容旧版本的安装设为false For compatibility with old installations set to false.
  • $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.
  • $wgSysopEmailBans - 让系统禁止将那些电子邮件用户进行访问 Allow sysops to ban users from accessing Emailuser.
  • $wgSysopUserBans - 系统禁止登陆的用户 Allow sysops to ban logged-in users
  • $wgWhitelistAccount (deprecated) - 可以建立用户的帐户类型 Types of accounts that can create new users.
  • $wgWhitelistEdit (deprecated) - 如果这个变量的值为true,那么用户必须登陆才能进行编辑。(1.4以前的版本)If true, users must login to edit. (versions 1.4 and previous)

See Manual:Preventing access/zh 有关更多的关于访问的想法与设置,参见:Manual:User rights management/zh了解更多信息。$wgGroupPermissions, $wgAddGroups, $wgRemoveGroups,等等。for more methods and settings concerning access. See also Manual:User rights management/zh for more information about $wgGroupPermissions, $wgAddGroups, $wgRemoveGroups, etc.

[edit] Rate limiter

[edit] Squid

[edit] Cookies

[edit] Reduction

[edit] 上传

Uploads have to be specially set up to be secure.

[edit] 共享上传

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

[edit] MIME 类型

See also Manual:Mime type detection/zh

[edit] 图片

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

  • $wgUseImageResize (deprecated) - 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
  • $wgThumbLimits - List of image sizes users can pick from
  • $wgTrustedMediaFormats - List of trusted media-types and mime types.
  • $wgSVGMaxSize - Don't scale a SVG larger than this unless its native size is larger.

See also Manual:Configuring file uploads/zh

[edit] 反病毒

[edit] 解析器

[edit] HTML

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

[edit] 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.

[edit] 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/zh.

[edit] 特殊页面

[edit] 最近更改

参见 Special:Recentchanges

[edit] UDP 更新

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

[edit] 用户

  • $wgActiveUserEditCount - 将被系统当做“活动”用户的编辑次数 The number of edits a person must make to be considered an "active" user .
  • $wgActiveUserDays - 将被系统看做“活动”用户的人的天数 The number of days a person must make edits to be considered an "active" user .
  • $wgAutoConfirmAge - 在一个帐户被授予隐含的‘自动认证’组成员之前需要多少秒 Number of seconds an account is required to age before it's given the implicit 'autoconfirm' group membership.
  • $wgAutoConfirmCount - 在一个帐户被授予隐含的‘自动认证’组成员之前需要编辑多少次 Number of edits an account requires before it's given the implicit 'autoconfirm' group membership.
  • $wgAllowRealName - 是否允许实名域 Whether or not to allow real name fields.
  • $wgDefaultUserOptions - 添加到这个列的设置会废除默认设置中匿名访问与新注册用户的参数 Settings added to this array will override the default settings for the user preferences used by anonymous visitors and newly created accounts.
  • $wgDisableAnonTalk - 对匿名用户禁用‘talk’页面(IPs)Disable talk pages for anonymous users (IPs)
  • $wgMaxNameChars - 用户名最多是多少字节 Maximum number of bytes in username.
  • $wgMaxSigChars - 最大的自定义签名长度 Maximum customized signature length.
  • $wgShowIPinHeader - 默认为匿名用户在用户工具栏显示IP地址Show the IP in the user bar for anonymous users by default.

[edit] 用户代理

[edit] 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.

[edit] 版权

[edit] 任务

[edit] 扩展

[edit] HTCP multicast purging

[edit] 其他设置