Extension:HostStats/de

From Linux Web Expert

Revision as of 03:50, 6 December 2023 by imported>FuzzyBot (Updating to match new version of source page)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

MediaWiki-Erweiterungen
HostStats
Freigabestatus: stabil
Einbindung Spezialseite
Beschreibung Provides a special page that outputs information about the wiki's host.
Autor(en) Hydriztalk
Letzte Version 2.0.0 (2019-09-16)
MediaWiki 1.32+
PHP 7.0+
Datenbankänderungen Nein
Lizenz GNU General Public License 3.0 oder neuer
Herunterladen
README
CHANGELOG
$wgHostStatsCommands
hoststats
Quarterly downloads Lua error in Module:Extension at line 172: bad argument #1 to 'inNamespace' (unrecognized namespace name 'skin').
Public wikis using Lua error in Module:Extension at line 172: bad argument #1 to 'inNamespace' (unrecognized namespace name 'skin').
Übersetze die HostStats-Erweiterung, wenn sie auf translatewiki.net verfügbar ist
Probleme Offene Aufgaben · Einen Fehler melden

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.

Installation

  • <translate> [[<tvar name=2>Special:ExtensionDistributor/HostStats/de</tvar>|Download]] and move the extracted <tvar name=name>HostStats/de</tvar> folder to your <tvar name=ext>extensions/</tvar> directory.</translate>
    <translate> Developers and code contributors should install the extension [[<tvar name=git>Special:MyLanguage/Download from Git</tvar>|from Git]] instead, using:</translate>cd extensions/
    git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/HostStats%2Fde
  • <translate> Add the following code at the bottom of your <tvar name=1>LocalSettings.php </tvar> file:</translate>
    wfLoadExtension( 'HostStats/de' );
    
  • Konfiguriere nach Bedarf
  • File:OOjs UI icon check-constructive.svg <translate> Done</translate> – <translate> Navigate to <tvar name=special>Special:Version</tvar> on your wiki to verify that the extension is successfully installed.</translate>

Konfiguration

Parameter

$wgHostStatsCommands

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

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

Benutzerrecht

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;