Manual:Maintenance scripts

From Linux Web Expert

Revision as of 07:49, 16 January 2024 by imported>MathXplore (Reverted edits by 2404:160:815A:6E3D:17AA:D47E:74CE:C4E (talk) to last version by Shirayuki: unnecessary links or spam)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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.

There are dozens of scripts with 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.

As of MediaWiki 1.38 , there are more than 200 maintenance scripts.

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

See also