Erweiterung:HostStats
![]() Freigabestatus: stabil |
|
---|---|
Einbindung | Spezialseite |
Beschreibung | Provides a special page that outputs information about the wiki's host. |
Autor(en) | HydrizDiskussion |
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 | 2 (Ranked 156th) |
Ü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
- Die Erweiterung herunterladen und die Datei(en) in ein Verzeichnis namens
HostStats
im Ordnerextensions/
ablegen. - Folgenden Code am Ende deiner LocalSettings.php -Datei einfügen:
wfLoadExtension( 'HostStats' );
- Konfiguriere nach Bedarf
- Erledigt – Zu Special:Version in dem Wiki (bei Einstellung auf deutsch nach Spezial:Version) navigieren, um die erfolgreiche Installierung der Erweiterung zu überprüfen.
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;