Jump to content
MediaWiki

Manual:Maintenance scripts

From mediawiki.org
Maintenance scripts

v · d · e

Maintenance scripts are used to perform various administrative, import, maintenance, reporting and upgrade tasks. The scripts are written in PHP and live in the maintenance subdirectory of MediaWiki installs.

MediaWiki contains over 200 maintenance scripts, which have varying degrees of general utility and quality. You should carefully read the documentation on a script before using it; if a script isn't documented, take additional care running it.

Since MediaWiki 1.40, maintenance scripts should be invoked indirectly through maintenance/run.php . Invoking maintenance scripts directly will trigger a warning.

In order to run most scripts, you will need access to the command line of the server or shell access through an SSH client like ssh or PuTTY. For details, see our information about running scripts .

If a script needs to modify the structure of a database (as does Update.php, for example), special configuration variables may need to be set in LocalSettings.php to allow this. See the relevant configuration information for details.

For an extensive list of scripts that may be run, see our list of scripts broken down by type.

See also

AltStyle によって変換されたページ (->オリジナル) /