Manual:Rebuildall.php

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.

You should run this script after importing some data into your mediawiki. It will fill up categorylinks, pagelinks, imagelinks tables and create search index. It will not import or "register" images (even if they are in upload directory and there are articles referencing them). You should use importImages.php script to do it.


 * 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.

Using the script

 * Please complete this section

Example
vi-notebook:/var/lib/mediawiki1.7# cat AdminSettings.php  # Create this file if not exist 

vi-notebook:/var/lib/mediawiki1.7# php maintenance/rebuildall.php Dropping index... Rebuilding index fields for 1426 pages... 1000 Rebuild the index...
 * Rebuilding fulltext search index (if you abort this will break searching; run this script again to fix):

Loading from page and revision tables... Updating links...
 * Rebuilding recentchanges table:

Refreshing link table. Starting from page_id 1 of 1426. 100 200 300 400 500 600 700 800 900 1000 1100 1200 1300 1400 Done.
 * Rebuilding links tables -- this can take a long time. It should be safe to abort via ctrl+C if you get bored.