Help:Maintenance scripts overview

From lensowiki
Revision as of 15:23, 22 June 2006 by GunterS (talk) (1.5rc4: started 1.6.7)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Mediawiki includes a range of maintenance scripts in the maintenance/ directory of the installation. These scripts are designed to be run from the command line on the server. To run the php scripts (eg refreshLinks.php , rebuildall.php), use the following syntax at a command prompt on your wiki server:

foo@bar:~/www/mediawiki/maintenance$ php refreshLinks.php

To be able to use these scripts, you have to setup the file AdminSettings.php in the base directory of the installation. This can be done by renaming and editing the file AdminSettings.sample in the same directory.

Remember that MediaWiki is developed mainly for the WikiMedia foundation projects : it just happens to work for other people. Most maintenance scripts are used by the wiki administrator to do .. maintenance. As the maintainers of WikiMedia sites are also developers, most of the time they don't write any documentation :-/

1.5rc4

alltrans.php 
Prints a list of allmessages in english, to facilitate translations.
attribute.php 
Has not been updated for 1.5x database schema.
rebuildall.php 
rebuildall is designed to rebuild the database links and indices.
clear_stats.php 
Resets statistics in the Special:Statistics page.
deleteOldRevisions.php 
Removes page histories.
Rebuildall.php
is one of the scripts included in the maintenance/ directory of your Mediawiki installation. Its purpose is to rebuild the links and indices used for searching your site.

warning: In Mediawiki 1.5rc4 Rebuildall.php will empty your recent changes table in the process. You will not be able to discern what has recently been changed on your site.

1.6.7

Rebuildall.php
is one of the scripts included in the maintenance/ directory of your Mediawiki installation. Its purpose is to rebuild the links and indices used for searching your site.

Template:Stub