Estensione:HostStats

From MediaWiki.org
Jump to navigation Jump to search
This page is a translated version of the page Extension:HostStats and the translation is 31% complete.

Other languages:
Deutsch • ‎English • ‎català • ‎dansk • ‎español • ‎français • ‎italiano • ‎polski • ‎português • ‎português do Brasil • ‎sicilianu • ‎suomi • ‎中文 • ‎日本語
Manuale sulle Estensioni MediaWiki
Crystal Clear action run.svg
HostStats
Stato della release: stabile
Implementazione Special page
Descrizione Provides a special page that outputs information about the wiki's host.
Autore(i) Hydriztalk
Versione 1.5.0 (2018-03-07)
MediaWiki 1.29+
PHP 5.5+
Cambi della base di dati No
Licenza GNU General Public License 3.0 or later
Scaricare
README
CHANGELOG
Parametri
$wgHostStatsCommands
Diritti aggiunti
hoststats
Traducete l'estensione HostStats se è disponibile su translatewiki.net
Verificare uso e versione della matrice.
Problemi Compiti aperti · Riportare un 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.

Installazione

  • Download and place the file(s) in a directory called HostStats in your extensions/ folder.
  • Add the following code at the bottom of your LocalSettings.php:
    wfLoadExtension( 'HostStats' );
    
  • Configure at your convenience
  • Yes Done – Navigate to Special:Version on your wiki to verify that the extension is successfully installed.

To users running MediaWiki 1.30 or earlier:

The instructions above describe the new way of installing this extension using wfLoadExtension() If you need to install this extension on these earlier versions (MediaWiki 1.30 and earlier), instead of wfLoadExtension( 'HostStats' );, you need to use:

require_once "$IP/extensions/HostStats/HostStats.php";

Configurazione

Parametro

$wgHostStatsCommands

An array of commands to output. Default:

$wgHostStatsCommands = [
	'hostname',
	'df -h'
];
This default only applies for *nix users only. Windows users might need to change this accordingly.

User right

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;