Extensión:HostStats

This page is a translated version of the page Extension:HostStats and the translation is 47% complete.
Outdated translations are marked like this.
Manual de extensiones de MediaWiki
HostStats
Estado de lanzamiento: estable
Implementación Página especial
Descripción Provee una página especial que genera información sobre el host wiki.
Autor(es) Hydrizdiscusión
Última versión 2.0.0 (2019-09-16)
MediaWiki 1.32+
PHP 7.0+
Cambios de la base de datos No
Licencia GNU Licencia Pública general 3.0 o posterior
Descarga
README
CHANGELOG
$wgHostStatsCommands
hoststats
Descargas trimestrales 2 (Ranked 136th)
Traduce la extensión HostStats si está disponible en translatewiki.net
Asuntos Tareas abiertas · Reportar 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.

Instalación

  • Descarga y extrae los archivos en un directorio denominado «HostStats» dentro de la carpeta extensions/.
    Developers and code contributors should install the extension from Git instead, using:cd extensions/
    git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/HostStats
  • Añade el siguiente código en la parte final de tu archivo LocalSettings.php :
    wfLoadExtension( 'HostStats' );
    
  • Configuralo a tu gusto
  •   Hecho – Navega a Special:Version en el wiki para verificar que la extensión se haya instalado correctamente.

Configuración

Parámetro

$wgHostStatsCommands

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

$wgHostStatsCommands = [
	'hostname',
	'df -h'
];
Este valor ejemplo sólo aplica a usuarios *nix. Los usuarios de Windows quizás deban cambiar esto acordemente.

Derecho del usuario

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;