帮助:MediaWiki/设置

来自GIPRs
跳转至: 导航搜索

[[mw:Manual

项目文档
项目主页 GIPRs语义维基
文档类型 日志
优先级
状 态 进行中
发布日期 2013/03/13
完成日期
作 者 GIPRs语义维基项目团队
来 源 www.giprs.org
源语言 中文

为方便查看和记录,参考并直接引用:http://www.mediawiki.org/wiki/Manual:Configuration_settings

目录

General Settings

  • $wgProto {{deprecated-inline|1.18}} - The URL prefix defining the protocol in use.

// 启用

// 安装时设置

  • $wgServerName {{deprecated-inline|1.17}} - The name of the server without the protocol. (eg, en.wikipedia.org)

// 弃用

  • $wgCanonicalServer - Canonical URL of the server, to use in IRC feeds and notification e-mails.

// 不需要

  • $wgSitename - The name of the site. Should be changed

// 安装时设置

  • $wgVersion - Contains the current version of MediaWiki, as displayed to the user. You should not change this!

// 不能改

2013.02.23确认:

$wgServer = "http://giprs.org";
$wgSitename = "GIPRs";

Paths

  • $IP - The filesystem installation directory. Not in DefaultSettings.php.

// 安装时形成,无需设置

  • $wgActionPaths - Paths for various user actions. Used to 'pretty' URLs.

// 不启用

  • $wgAppleTouchIcon - Optional URL to an icon to use when bookmarking to the home screen on Apple handheld devices.

// 待处理

// 暂不使用

// 不启用

  • $wgDiff - Path to the GNU diff utility.

// 安装时形成,无需设置

  • $wgDiff3 - Path to the GNU diff3 utility.

// 启用,但安装时不能自动指定,需要设置

// 待处理

// 暂不使用

  • $wgLogo - The URL of the site logo.

// 使用默认路径,升级时需要同时更换中英文版Logo

  • $wgPhpCli - Executable name of PHP cli client (php/php5).

// 默认,未改动

// 默认,未改动

// 默认,未改动

// 默认,未改动

  • $wgSQLiteDataDirMode {{deprecated-inline|1.17}} - Default directory mode for SQLite data directory on creation.

// 弃用

// 默认,未改动

// DefaultSettings.php中默认设置:“$wgTmpDirectory = false;” 未改动

// 默认,未改动

// 默认,未改动

See also TeX for LaTeX specific path settings. // 不使用
See also Uploads for file/image upload path settings.
See also Skins for skins path settings.

2013.02.23 Check:

$wgDiff3 = "/usr/bin/diff3";
$wgLogo = "giprs_logo.png";

Global Objects

  • $wgConf - Create a site configuration object. Not used for much in a default install. // 默认,未改动

Email & Notification (Enotif) settings

Database settings

Localization

Debug/logging

Site customization

Site Statistics

  • $wgArticleCountMethod - Method used to determine if a page in a content namespace should be counted as a valid article.

// DefaultSettings.php:“null”
// LocalSettings.php:"any"

// DefaultSettings.php:“false”
// LocalSettings.php:"true"

  • $wgDisableCounters - Disable view counter shown in the footer of an article/page as: "This page has been accessed X times"

// DefaultSettings.php:“false”
// LocalSettings.php:"true"

// 启用“$wgDisableCounters = true;”后,无需设置

  • $wgUseCommaCount {{deprecated-inline|1.18}} - Specifies the criteria used to define a 'valid article' when counting.

// 弃用

// DefaultSettings.php:“false”
// LocalSettings.php:与Memcached settings有关,待处理

// DefaultSettings.php:“1”
// LocalSettings.php:"1" (测试)

// DefaultSettings.php:“array( NS_MAIN )”
// LocalSettings.php:测试中


2013.02.23,启用以下设置会报错,将“$wgDisableCounters = true;”归类到“性能优化-NO DB HITS!”下,其他均不启用:

$wgArticleCountMethod = any;
$wgCountCategorizedImagesAsUsed = true;
$wgDisableCounters = true;
$wgWantedPagesThreshold =1;
$wgContentNamespaces = array( NS_MAIN, NS_TALK, NS_PROJECT, NS_ND );

Skins

Category

Cache

Interwiki

See: Interwiki cache

Access

Reduction

Uploads

Parser

Special pages

Users

Cookies

Feed

  • $wgFeed - Toggle syndication feeds on and off.
  • $wgAdvertisedFeedTypes - Which feed types should be provided by default.
  • $wgFeedCacheTimeout - 'Minimum' timeout for cached Recentchanges feed, in seconds.
  • $wgFeedClasses - Available feeds objects.
  • $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

Search

Jobs

Proxies

Squid

HTCP multicast purging

Extensions

Maintenance Scripts setting

Miscellaneous settings