wiki.techinc.nl/maintenance
Tim Starling 43b2fb56b6 Merged localisation-work branch:
* Made lines from initialiseMessages() appear as list items during installation
* Moved the bulk of the localisation data from the Language*.php files to the Messages*.php files. Deleted most of the Languages*.php files.
* Introduced "stub global" framework to provide deferred initialisation of core modules. 
* Removed placeholder values for $wgTitle and $wgArticle, these variables will now be null during the initialisation process, until they are set by index.php or another entry point.
* Added DBA cache type, for BDB-style caches. 
* Removed custom date format functions, replacing them with a format string in the style of PHP's date(). Used string identifiers instead of integer identifiers, in both the language files and user preferences. Migration should be transparent in most cases.
* Simplified the initialisation API for LoadBalancer objects.
* Removed the broken altencoding feature.
* Moved default user options and toggles from Language to User. Language objects are still able to define default preference overrides and extra user toggles, via a slightly different interface.
* Don't include the date option in the parser cache rendering hash unless $wgUseDynamicDates is enabled.
* Merged LanguageUtf8 with Language. Removed LanguageUtf8.php. 
* Removed inclusion of language files from the bottom of Language.php. This is now consistently done from Language::factory(). 
* Add the name of the executing maintenance script to the debug log. Start the profiler during maintenance scripts.
* Added "serialized" directory, for storing precompiled data in serialized form.
2006-07-26 07:15:39 +00:00
..
archives Added missing update query 2006-07-11 08:37:16 +00:00
dtrace some example dtrace scripts 2005-08-15 01:46:19 +00:00
mysql5 Use bool not boolean for 4.0.x compatibility 2006-07-11 06:56:27 +00:00
oracle Remove unused "validation" table definitions from the schema files 2006-06-21 22:40:40 +00:00
postgres Allow for renamed tables. 2006-07-25 00:28:03 +00:00
storage * Converted to Unix newlines 2006-07-20 01:21:41 +00:00
.htaccess htaccessing some directories for dev using cvs tree as www tree ;) 2004-04-21 23:17:36 +00:00
addwiki.php * Adding a trailing ?> 2006-03-07 13:32:27 +00:00
alltrans.php * Trivial script to print out all avalible messages, useful for other scripts 2005-06-24 02:19:13 +00:00
apache-ampersand.diff Initial revision 2003-04-14 23:10:40 +00:00
attachLatest.php Update the FSF's address in all these GPL stub headers 2006-04-05 07:43:17 +00:00
attribute.php * s~\t+$~~ 2006-01-07 13:31:29 +00:00
backup.inc Remove forced dereferencements (new() returns a reference in PHP5) 2006-07-11 14:11:23 +00:00
backupPrefetch.inc * Fix backup dump text prefetch for XMLReader constant changes in PHP 5.1 2006-01-22 04:05:30 +00:00
benchmarkPurge.php * Added wfDie() wrapper, and some manual die(-1), to force the return code 2006-01-14 02:49:43 +00:00
build-intl-wiki.sql put TYPE back in, now as it's back in 5.1 ;-) 2006-04-08 21:11:13 +00:00
changePassword.php * Adding a trailing ?> 2006-03-07 13:32:27 +00:00
changeuser.sql Add basic support for table prefixes to the installer. (Probably will fail on upgrades yet.) .sql files should still be usable 'raw' on a wiki with no prefix. 2004-12-01 13:15:13 +00:00
checktrans.php revert, wrong file 2005-07-06 22:33:08 +00:00
checkUsernames.php * Adding a trailing ?> 2006-03-07 13:32:27 +00:00
cleanupCaps.php Update the FSF's address in all these GPL stub headers 2006-04-05 07:43:17 +00:00
cleanupDupes.inc Update the FSF's address in all these GPL stub headers 2006-04-05 07:43:17 +00:00
cleanupDupes.php Update the FSF's address in all these GPL stub headers 2006-04-05 07:43:17 +00:00
cleanupImages.php duh, typo 2006-07-14 06:37:03 +00:00
cleanupSpam.php Live fix: support running on all wikis on a farm site 2006-04-02 04:15:37 +00:00
cleanupTable.inc Add script to clean up badly named image records. Doesn't touch files yet 2006-07-13 21:54:13 +00:00
cleanupTitles.php Add script to clean up badly named image records. Doesn't touch files yet 2006-07-13 21:54:13 +00:00
cleanupWatchlist.php Update the FSF's address in all these GPL stub headers 2006-04-05 07:43:17 +00:00
clear_interwiki_cache.php Committing various live hacks from Wikimedia servers 2005-10-22 20:52:30 +00:00
clear_stats.php Job::pop() may occasionally return false when there are actually more jobs remaining, but there is too much contention to efficiently delete one. runJobs can keep trying, as opposed to apache threads which should stop in this case. 2006-02-28 05:24:52 +00:00
commandLine.inc Merged localisation-work branch: 2006-07-26 07:15:39 +00:00
convertLinks.inc Revert to r15092; massive breakage, unable to connect to MySQL at all 2006-06-27 16:11:47 +00:00
convertLinks.php Phpdoc comments and place holder. Part of the subpackage "maintenance", archives in subpackage "maintenanceArchive" 2004-09-03 20:33:01 +00:00
counter.php * A function for pretty counts 2005-11-01 19:17:31 +00:00
createAndPromote.php Maintenance script to create an account and promote it to administrator 2006-06-17 23:07:16 +00:00
database.sql some necessary escaping for table names 2004-01-18 21:10:07 +00:00
delete-idle-wiki-users.pl perl script for deleting user accounts with no contributions, by Ralf Baechle 2005-06-25 14:24:08 +00:00
deleteBatch.php A batch-deletion script based on the batch-move script 2006-06-15 04:58:03 +00:00
deleteImageMemcached.php * Adding a trailing ?> 2006-03-07 13:32:27 +00:00
deleteOldRevisions.inc * Maintenance script to delete unused text records 2006-01-25 21:08:29 +00:00
deleteOldRevisions.php * Maintenance script to delete unused text records 2006-01-25 21:08:29 +00:00
deleteOrphanedRevisions.inc.php Maintenance script to remove orphaned revisions from the database 2006-05-17 07:37:20 +00:00
deleteOrphanedRevisions.php Maintenance script to remove orphaned revisions from the database 2006-05-17 07:37:20 +00:00
deleteRevision.php Delete (i.e. move to archive) a list of revisions 2006-05-12 08:14:57 +00:00
diffLanguage.php Remove forced dereferencements (new() returns a reference in PHP5) 2006-07-11 14:11:23 +00:00
Doxyfile Switching from phpdoc to doxygen (use less than 32MB of memory). 2006-04-19 15:46:24 +00:00
dumpBackup.php Update the FSF's address in all these GPL stub headers 2006-04-05 07:43:17 +00:00
dumpHTML.inc cleaner error message when file cant be wrote 2006-07-11 20:06:55 +00:00
dumpHTML.php * (bug 6479) Allow specification of the skin to use during HTML dumps 2006-06-28 20:35:16 +00:00
dumpInterwiki.inc When reading from meta's interwiki map, *.wikimedia.org should be set as local (e.g. commons). 2006-01-21 13:25:41 +00:00
dumpInterwiki.php somewhatdirtyhack: build constant slightly compact database of interwiki prefixes 2006-01-21 13:05:43 +00:00
dumpLinks.php Update the FSF's address in all these GPL stub headers 2006-04-05 07:43:17 +00:00
dumpMessages.php restoring 2005-05-16 06:47:24 +00:00
dumpReplayLog.php * s~\t+$~~ 2006-01-07 13:31:29 +00:00
dumpTextPass.php * dumpTextPass can now use 7zip files for prefetch 2006-05-12 11:14:40 +00:00
duplicatetrans.php * Adding a tool to find duplicate translations 2005-08-10 22:11:09 +00:00
entities2literals.pl Fix 4249 : typo 2005-12-11 19:56:44 +00:00
eval.php Remove some stray executable bits 2006-04-04 07:57:48 +00:00
fetchInterwiki.pl * rmed redundant code 2005-04-06 17:53:58 +00:00
findhooks.php basic script to find undocumented / deprecated hooks. 2006-05-02 20:59:56 +00:00
FiveUpgrade.inc Remove forced dereferencements (new() returns a reference in PHP5) 2006-07-11 14:11:23 +00:00
fixSlaveDesync.php In fixSlaveDesync.php, don't check slaves that have zero load. 2006-06-03 22:20:31 +00:00
fixTimestamps.php fix line endings 2006-04-18 00:10:54 +00:00
fixUserRegistration.php Script to update user_registration to an approximation, for old rows. 2006-06-05 05:21:12 +00:00
generateSitemap.php * Fixed fatal error introduced by brion in version 1.20, wfDie() has not been 2006-03-11 21:25:03 +00:00
importDump.php Update the FSF's address in all these GPL stub headers 2006-04-05 07:43:17 +00:00
importImages.inc.php Maintenance script to import multiple files into the wiki 2006-05-15 10:57:52 +00:00
importImages.php Maintenance script to import multiple files into the wiki 2006-05-15 10:57:52 +00:00
importLogs.inc Update the FSF's address in all these GPL stub headers 2006-04-05 07:43:17 +00:00
importLogs.php * (bug 1103) Fix up redirect handling for images, categories 2006-01-13 00:29:20 +00:00
importPhase2.php Update the FSF's address in all these GPL stub headers 2006-04-05 07:43:17 +00:00
importTextFile.inc These files somehow got committed with DOS line endings, but are declared as native... Weeeeird 2006-05-16 22:19:23 +00:00
importTextFile.php These files somehow got committed with DOS line endings, but are declared as native... Weeeeird 2006-05-16 22:19:23 +00:00
importUseModWiki.php * Added wfDie() wrapper, and some manual die(-1), to force the return code 2006-01-14 02:49:43 +00:00
InitialiseMessages.inc Merged localisation-work branch: 2006-07-26 07:15:39 +00:00
initStats.php Introduce $wgContentNamespaces which allows for articles to exist in namespaces other than the main namespace, and still be counted as valid content in the site statistics. 2006-06-12 11:59:12 +00:00
interwiki.sql moved external links to where they should be 2005-06-01 19:13:03 +00:00
lang2po.php * Added wfDie() wrapper, and some manual die(-1), to force the return code 2006-01-14 02:49:43 +00:00
langmemusage.php * Added wfDie() wrapper, and some manual die(-1), to force the return code 2006-01-14 02:49:43 +00:00
languages.inc Ignore the .deps files 2006-04-05 13:28:55 +00:00
Makefile filename error 2005-08-15 12:54:55 +00:00
mcc.php Remove some stray executable bits 2006-04-04 07:57:48 +00:00
mctest.php Was never committed to HEAD for some reason 2006-01-28 08:22:24 +00:00
moveBatch.php * Allow page moves over historyless self-redirects. Such are usually created 2006-06-28 20:31:04 +00:00
mwdocgen.php Switching from phpdoc to doxygen (use less than 32MB of memory). 2006-04-19 15:46:24 +00:00
mwdoxygen.cfg Unsupported doxygen configuration: 2005-08-11 00:28:51 +00:00
namespace2sql.php Fix #4418: remove $id and $header that causes conflicts 2006-01-03 11:59:39 +00:00
namespaceDupes.php Allow use of arbitrray prefix *and* dest namespace key 2006-06-28 19:15:32 +00:00
nukePage.inc Clean up recent changes entries when a page is nuked 2006-02-26 02:07:50 +00:00
nukePage.php * Maintenance script to delete unused text records 2006-01-25 21:08:29 +00:00
orphans.php Update the FSF's address in all these GPL stub headers 2006-04-05 07:43:17 +00:00
ourusers.php * Adding a trailing ?> 2006-03-07 13:32:27 +00:00
parserTests.inc Merged localisation-work branch: 2006-07-26 07:15:39 +00:00
parserTests.php Remove forced dereferencements (new() returns a reference in PHP5) 2006-07-11 14:11:23 +00:00
parserTests.txt * Pre-strip characters ignored in IDNs from URLs so they can't be used to break the blacklists for regular URLs 2006-07-11 19:54:20 +00:00
parserTestsParserHook.php * Renamed functions to make more sense 2006-02-27 04:04:44 +00:00
parserTestsParserTime.php * Adding a trailing ?> 2006-03-07 13:32:27 +00:00
parserTestsStaticParserHook.php * parserTests.php accepts a --file parameter to run an alternate test sutie 2006-06-01 04:00:41 +00:00
purgeOldText.inc Fix oversight - was using $tbl_text instead of $tbl_txt 2006-02-04 17:38:42 +00:00
purgeOldText.php * Maintenance script to delete unused text records 2006-01-25 21:08:29 +00:00
README Maintenance script to import multiple files into the wiki 2006-05-15 10:57:52 +00:00
reassignEdits.inc.php Rewrite reassignEdits script to be more efficient; support optional updates to recent changes table; add reporting and silent modes 2006-04-29 18:44:00 +00:00
reassignEdits.php Rewrite reassignEdits script to be more efficient; support optional updates to recent changes table; add reporting and silent modes 2006-04-29 18:44:00 +00:00
rebuildall.php Revert to r15092; massive breakage, unable to connect to MySQL at all 2006-06-27 16:11:47 +00:00
rebuildImages.php Update the FSF's address in all these GPL stub headers 2006-04-05 07:43:17 +00:00
rebuildInterwiki.inc some unused globals as per #3692 2006-04-30 16:23:01 +00:00
rebuildInterwiki.php * s~\t+$~~ 2006-01-07 13:31:29 +00:00
rebuildMessages.php µ update 2006-04-19 11:00:08 +00:00
rebuildrecentchanges.inc * (bug 5195) rebuildrecentchanges.php works again; Database::insertSelect now has a parameter for select options. 2006-04-04 06:06:36 +00:00
rebuildrecentchanges.php Fix include 2004-09-07 02:20:02 +00:00
rebuildtextindex.inc * Extra newline for pretty output 2005-11-25 06:38:12 +00:00
rebuildtextindex.php Revert to r15092; massive breakage, unable to connect to MySQL at all 2006-06-27 16:11:47 +00:00
recount.sql Reset the additional fields; committing live hack from Wikimedia 2005-08-17 07:52:21 +00:00
refreshImageCount.php First set to NULL so that it changes on the master 2006-03-28 21:56:12 +00:00
refreshLinks.inc unused variables as per #3692 2006-05-01 10:53:59 +00:00
refreshLinks.php Don't use tidy. Command line option to specify the end ID. Clear the link cache after each article to keep memory usage down. 2006-01-26 11:25:26 +00:00
removeUnusedAccounts.inc Rewritten removeUnusedAccounts to be more efficient, print names of inactive accounts 2006-05-05 01:38:22 +00:00
removeUnusedAccounts.php Update site_stats.ss_users after deleting unused accounts, to keep the internal statistics tables consistent 2006-06-20 14:03:58 +00:00
renderDump.php fix error display 2006-06-05 20:35:33 +00:00
runJobs.php * Adding a trailing ?> 2006-03-07 13:32:27 +00:00
showJobs.php Fix line endings (hope I did this right) 2006-04-19 21:20:03 +00:00
splitLanguageFiles.inc * s~ +$~~ 2006-01-07 13:09:30 +00:00
splitLanguageFiles.php * s~ +$~~ 2006-01-07 13:09:30 +00:00
stats.php live extensions to statistics 2005-12-26 13:11:25 +00:00
tables.sql Standardize whitespace and caps a bit. 2006-07-22 16:43:28 +00:00
transstat.php oops! the messages are old ones that need deletion (eg deprecated) 2006-04-26 20:20:07 +00:00
trivialCmdLine.php * Fixed up the trivial command line example so that it doesn't crash in a 2005-05-25 04:14:19 +00:00
unusedMessages.php Renamed maintainace script redundanttrans.php to unusedMessages.php like 2006-07-16 12:44:44 +00:00
update.php cleanup: remove redundant condition, already checked above 2006-07-17 21:36:19 +00:00
updateArticleCount.inc.php * Introduce updateArticleCount maintenance script which uses a better check that reflects what Article::isCountable() tests for 2006-07-02 21:35:25 +00:00
updateArticleCount.php * Introduce updateArticleCount maintenance script which uses a better check that reflects what Article::isCountable() tests for 2006-07-02 21:35:25 +00:00
updaters.inc * (bug 6448) Allow filtering of Special:Newpages according to username 2006-07-10 08:38:48 +00:00
updateSearchIndex.inc * Fix updateSearchIndex.php for new schema 2006-04-04 06:37:17 +00:00
updateSearchIndex.php * s~ +$~~ 2006-01-07 13:09:30 +00:00
updateSpecialPages.php * (bug 6679) syntax error 2006-07-14 06:17:00 +00:00
upgrade1_5.php * (bug 2583) Add --missinig option on rebuildImages.php to add db entries 2005-06-28 21:50:26 +00:00
userDupes.inc Update the FSF's address in all these GPL stub headers 2006-04-05 07:43:17 +00:00
userDupes.php Update the FSF's address in all these GPL stub headers 2006-04-05 07:43:17 +00:00
users.sql (bug 764) Add CREATE TEMPORARY TABLES to default database permissions 2006-05-21 23:01:08 +00:00
wiki-mangleme.php patch by Nick Jenkins: 2006-05-24 17:48:13 +00:00
wikipedia-interwiki.sql moved external links to where they should be 2005-06-01 19:13:03 +00:00
wiktionary-interwiki.sql Add basic support for table prefixes to the installer. (Probably will fail on upgrades yet.) .sql files should still be usable 'raw' on a wiki with no prefix. 2004-12-01 13:15:13 +00:00

== MediaWiki Maintenance ==

The .sql scripts in this directory are not intended to be run standalone,
although this is appropriate in some cases, e.g. manual creation of blank tables
prior to an import.

Most of the PHP scripts need to be run from the command line. Prior to doing so,
ensure that the LocalSettings.php file in the directory above points to the
proper installation.

Certain scripts will require elevated access to the database. In order to
provide this, first create a MySQL user with "all" permissions on the wiki
database, and then place their username and password in an AdminSettings.php
file in the directory above. See AdminSettings.sample for specifics on this.

=== Brief explanation of files ===

A lot of the files in this directory are PHP scripts used to perform various
maintenance tasks on the wiki database, e.g. rebuilding link tables, updating
the search indices, etc. The files in the "archives" directory are used to
upgrade the database schema when updating the software. Some schema definitions
for alternative (as yet unsupported) database management systems are stored
here too.

The "storage" directory contains scripts and resources useful for working with
external storage clusters, and are not likely to be particularly useful to the
vast majority of installations. This directory does contain the compressOld
scripts, however, which can be useful for compacting old data.

=== Maintenance scripts ===

As noted above, these should be run from the command line. Not all scripts are
listed, as some are Wikimedia-specific, and some are not applicable to most
installations.

	changePassword.php
	Reset the password of a specified user

	cleanupSpam.php
	Mass-revert insertion of linkspam

	deleteOldRevisions.php
	Erase old revisions of pages from the database

	dumpBackup.php
	Backup dump script

	dumpHTML.php
	Produce an HTML dump of a wiki

	importDump.php
	XML dump importer
	
	importImages.php
	Imports images into the wiki
	
	importTextFile.php
	Imports the contents of a text file into a wiki page

	nukePage.php
	Wipe a page and all revisions from the database

	reassignEdits.php
	Reassign edits from one user to another

	rebuildImages.php
	Update image metadata records

	rebuildMessages.php
	Update the MediaWiki namespace after changing site language

	rebuildtextindex.php
	Rebuild the fulltext search indices

	refreshLinks.php
	Rebuild the link tables

	removeUnusedAccounts.php
	Remove user accounts which have made no edits

	runJobs.php
	Immediately complete all jobs in the job queue

	update.php
	Check and upgrade the database schema to the current version