以下是一个从 DefaultSettings.php 中提取的参数列表。
请不要直接修改 DefaultSettings.php 文件,而应该把您需要的参数复制到 LocalSettings.php 中并替换掉原有的参数。
按字母顺序排列 |
按功能排列 |
分类:mediawiki配置设定分类列表
一般设置[edit | edit source]
$wgProto - 加密链接的前缀
$wgServer - 服务器URL
$wgServerName - 主机的名称,不含协议(http or https). (如, en.wikipedia.org)
$wgSitename - 网站名称. 可能被更改
$wgVersion - MediaWiki的版本号, 用户能够看到.
路径[edit | edit source]
$IP - 文件系统安装路径。不在 defaultsettings.php 文件之中。
$wgActionPaths - 不同用户行为的路径。用于‘美化’ url 地址。
$wgAppleTouchIcon - 在苹果手持设备上收藏主页时的可选图标地址。Optional URL to an icon to use when bookmarking to the home screen on Apple handheld devices.
$wgArticlePath - 用于创建文章链接的 URL 范例。
$wgDiff3 - GNU diff3 工具的安装路径。
$wgFavicon - 站点 favicon 图标的地址。
$wgHashedUploadDirectory - 如果这个变量的值为真,那么就会采用/a/ab/foo.png的目录结构。
$wgLogo - 站点的 logo 地址(URL)。
$wgMathDirectory - 包含 latex 数学图标目录的文件系统路径。包含LaTeX格式数学图片的目录。
$wgMathPath - LaTeX 格式数学图片的目录的地址(URL)。
$wgRedirectScript - The URL of redirect.php, needed for backwards compatibility.
$wgScript - The URL of index.php.
$wgScriptExtension - Extension to append to script names by default.
$wgScriptPath - The base URL path.
$wgStockPath (deprecated) - For stock images that come with MediaWiki.
$wgStyleDirectory - The file system path to the skins directory.
$wgStylePath - 皮肤目录地址(URL)。
$wgStyleSheetDirectory (deprecated) - The file system path of the directory containing the stylesheets.
$wgStyleSheetPath - The URL of the directory containing the stylesheets.
$wgTmpDirectory - 模板目录地址(URL)。
$wgUploadBaseUrl -
$wgUsePathInfo - Whether to use 'pretty' URLs.
$wgUploadDirectory - The file system path of the upload directory.
$wgUploadNavigationUrl - Point the upload navigation link to an external URL.
$wgUploadPath - 上传文件目录地址(URL)。
$wgVariantArticlePath - Used for interwiki links.
全局对象[edit | edit source]
$wgConf - Create a site configuration object. Not used for much in a default install.
邮件设置[edit | edit source]
$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 | edit source]
$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 source]
$wgAllDBsAreLocalhost - Make all database connections secretly go to localhost. Useful for debugging.
$wgBufferSQLResults (deprecated) - Use buffered queries by default.
$wgCheckDBSchema (deprecated)
$wgDBAvgStatusPoll - Time before the server get a SHOW STATUS query under overload conditions.
$wgDBconnection - (deprecated)
$wgDBerrorLog - File to log database errors to.
$wgDBname - Name of the database.
$wgDBpassword - The password for $wgDBuser.
$wgDBport - Database port.
$wgDBprefix - Table name prefix.
$wgDBschema - (deprecated) On some databases this allows separate logical namespace for application data.
$wgDBserver - Database host name or ip address.
$wgDBtype - Type of database.
$wgDBuser - Database username.
$wgLocalDatabases - Other wikis on this site, can be administered from a single developer account.
$wgSearchType - Type of DB search used.
$wgSecondaryMessageDB (deprecated) - DB to fall back on if the message isn't in the main DB.
$wgSqlLogFile (deprecated)
$wgSqlTimeout (deprecated)
MySQL专有属性[edit | edit source]
$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专有属性[edit | edit source]
$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[edit | edit source]
$wgSQLiteDataDir - To override default SQLite data directory.
Shared DB settings[edit | edit source]
$wgSharedDB - The name of the shared database.
$wgSharedPrefix - Prefix to use for the shared database.
$wgSharedTables - Tables to use in shared database
Sysop SQL queries[edit | edit source]
These settings are for sysops to make queries through Extension:Asksql.
--转自
该贴由system转至本版2014-10-30 23:21:08