From MediaWiki.org
Jump to navigation Jump to search
Other languages:
English • ‎español • ‎lietuvių • ‎português do Brasil • ‎中文 • ‎日本語
MediaWiki extensions manual
OOjs UI icon advanced.svg
Release status: stable
Implementation Special page
Description Provides a special page that outputs information about the wiki's host.
Author(s) Hydriztalk
Latest version 2.0.0 (2019-09-16)
MediaWiki 1.32+
PHP 7.0+
Database changes No
License GNU General Public License 3.0 or later
Translate the HostStats extension if it is available at translatewiki.net
Check usage and version matrix.
Issues Open tasks · Report a bug

The HostStats extension implements a special page "Special:HostStats" that outputs information about the wiki's hosting server. The extension will run a set of commands based on the $wgHostStatsCommands parameter, which the output will be displayed as different sections in the "Special:HostStats" special page.

This extension, if misused, can potentially expose your server and put it at risk! Please use with extreme care and if in doubt, do not install.


  • Download and place the file(s) in a directory called HostStats in your extensions/ folder.




An array of commands to output. Since version 2.0.0 empty by default. Example:

$wgHostStatsCommands = [
	'df -h'
This example only applies for *nix users only. Windows users might need to change this accordingly.

User right[edit]

The user right "hoststats" will have to be set for an existing user group, e.g. "sysop" or preferably for a new user group:

$wgGroupPermissions['hoststats']['hoststats'] = true;
$wgGroupPermissions['sysop']['hoststats'] = true;