wiki.techinc.nl/maintenance
2006-10-25 07:26:59 +00:00
..
archives * Added 'redirect' table - contains unique targets of redirects 2006-10-25 07:26:59 +00:00
dtrace some example dtrace scripts 2005-08-15 01:46:19 +00:00
language * (bug 7609) Add some more '*-summary' messages to MessagesEn.php with empty 2006-10-23 20:16:28 +00:00
mysql5 * Added 'redirect' table - contains unique targets of redirects 2006-10-25 07:26:59 +00:00
oracle Remove unused "validation" table definitions from the schema files 2006-06-21 22:40:40 +00:00
postgres Added a per-user limit on password reminder emails. Presumably if you just had a password reminder sent to you, you don't need another one a short time later. Along with a proper per-IP throttle setting, this should fix the majority of the abuse problem on Wikipedia. 2006-10-23 09:35:30 +00:00
storage Committed a bunch of live hacks from Wikimedia servers 2006-10-02 17:04:13 +00:00
.htaccess htaccessing some directories for dev using cvs tree as www tree ;) 2004-04-21 23:17:36 +00:00
addwiki.php Committed a bunch of live hacks from Wikimedia servers 2006-10-02 17:04:13 +00:00
apache-ampersand.diff Initial revision 2003-04-14 23:10:40 +00:00
attachLatest.php Abolished $wgDBname as a unique wiki identifier, it doesn't work with the new-fangled feature we call "table prefixes". Instead use wfWikiID() for an identifier containing the DB name and the prefix if there is one, and wfMemcKey() for cache key construction. 2006-10-04 09:06:18 +00:00
attribute.php * s~\t+$~~ 2006-01-07 13:31:29 +00:00
backup.inc * Fix PHP notice and estimates for dumpBackup.php and friends 2006-10-11 17:58:42 +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
checkUsernames.php Abolished $wgDBname as a unique wiki identifier, it doesn't work with the new-fangled feature we call "table prefixes". Instead use wfWikiID() for an identifier containing the DB name and the prefix if there is one, and wfMemcKey() for cache key construction. 2006-10-04 09:06:18 +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 Abolished $wgDBname as a unique wiki identifier, it doesn't work with the new-fangled feature we call "table prefixes". Instead use wfWikiID() for an identifier containing the DB name and the prefix if there is one, and wfMemcKey() for cache key construction. 2006-10-04 09:06:18 +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 Abolished $wgDBname as a unique wiki identifier, it doesn't work with the new-fangled feature we call "table prefixes". Instead use wfWikiID() for an identifier containing the DB name and the prefix if there is one, and wfMemcKey() for cache key construction. 2006-10-04 09:06:18 +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 Abolished $wgDBname as a unique wiki identifier, it doesn't work with the new-fangled feature we call "table prefixes". Instead use wfWikiID() for an identifier containing the DB name and the prefix if there is one, and wfMemcKey() for cache key construction. 2006-10-04 09:06:18 +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 * Friendlier check for PHP 5 in command-line scripts; it's common for parallel 2006-10-15 20:12:08 +00:00
convertLinks.inc Fix spelling for proper db match. 2006-10-08 19:22:41 +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 Abolished $wgDBname as a unique wiki identifier, it doesn't work with the new-fangled feature we call "table prefixes". Instead use wfWikiID() for an identifier containing the DB name and the prefix if there is one, and wfMemcKey() for cache key construction. 2006-10-04 09:06:18 +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 Committed a bunch of live hacks from Wikimedia servers 2006-10-02 17:04:13 +00:00
deleteImageMemcached.php Abolished $wgDBname as a unique wiki identifier, it doesn't work with the new-fangled feature we call "table prefixes". Instead use wfWikiID() for an identifier containing the DB name and the prefix if there is one, and wfMemcKey() for cache key construction. 2006-10-04 09:06:18 +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 Abolished $wgDBname as a unique wiki identifier, it doesn't work with the new-fangled feature we call "table prefixes". Instead use wfWikiID() for an identifier containing the DB name and the prefix if there is one, and wfMemcKey() for cache key construction. 2006-10-04 09:06:18 +00:00
Doxyfile Switching from phpdoc to doxygen (use less than 32MB of memory). 2006-04-19 15:46:24 +00:00
dumpBackup.php * Removed lots of explicit require_once statements. The autoloader should theoretically be faster, because it always uses an absolute path, eliminating the need for a search, and it is never called unnecessarily. Absolute paths are also more robust in the face of odd configurations or usage patterns. Moved a few constants around to support this, they always have to be available before the method call. 2006-10-03 13:00:52 +00:00
dumpHTML.inc * (bug 7508) Added option to compress HTML pages by dumpHTML.php 2006-10-06 23:34:09 +00:00
dumpHTML.php * (bug 7508) Added option to compress HTML pages by dumpHTML.php 2006-10-06 23:34:09 +00:00
dumpInterwiki.inc Abolished $wgDBname as a unique wiki identifier, it doesn't work with the new-fangled feature we call "table prefixes". Instead use wfWikiID() for an identifier containing the DB name and the prefix if there is one, and wfMemcKey() for cache key construction. 2006-10-04 09:06:18 +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
dumpReplayLog.php * s~\t+$~~ 2006-01-07 13:31:29 +00:00
dumpSisterSites.php * Add a quickie script dumpSisterSites.php for generating a page list in the 2006-09-04 13:08:59 +00:00
dumpTextPass.php Abolished $wgDBname as a unique wiki identifier, it doesn't work with the new-fangled feature we call "table prefixes". Instead use wfWikiID() for an identifier containing the DB name and the prefix if there is one, and wfMemcKey() for cache key construction. 2006-10-04 09:06:18 +00:00
dumpUploads.php forgot to make the base path settable 2006-08-15 05:44:18 +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 Abolished $wgDBname as a unique wiki identifier, it doesn't work with the new-fangled feature we call "table prefixes". Instead use wfWikiID() for an identifier containing the DB name and the prefix if there is one, and wfMemcKey() for cache key construction. 2006-10-04 09:06:18 +00:00
fixSlaveDesync.php various improvements 2006-09-28 09:05:28 +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
fuzz-tester.php Use $wgServer not $wgServerName. Don't use END for heredoc, it screws up my syntax highlighter. 2006-10-04 07:29:16 +00:00
generateSitemap.php Commiting diff -r 16826:16966 of serbianvariants. 2006-10-12 10:34:49 +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 Converted User to use lazy initialisation. This is to avoid unstub loops, and also for performance. Interfaces and semantics have been largely preserved, except for a minor change involving setLoaded(). 2006-10-14 06:58:19 +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 Converted User to use lazy initialisation. This is to avoid unstub loops, and also for performance. Interfaces and semantics have been largely preserved, except for a minor change involving setLoaded(). 2006-10-14 06:58:19 +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
installExtension.php (k) fix minor glitch in installExtension.php 2006-08-01 12:52:25 +00:00
interwiki.sql moved external links to where they should be 2005-06-01 19:13:03 +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 Committed a bunch of live hacks from Wikimedia servers 2006-10-02 17:04:13 +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 * (bug 3512) namespaceDupes now handles spaces and initial caps properly 2006-08-16 20:28:59 +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 Committed a bunch of live hacks from Wikimedia servers 2006-10-02 17:04:13 +00:00
parserTests.inc 'wgUseTidy' => false 2006-10-18 09:26:52 +00:00
parserTests.php Added --show-output option to parserTests.php, to allow capture of complete output for test generation. Fixed various parser tests broken by tidy and incorrect capture method (i.e. web browser). Updated "Fuzz testing: Parser14-table", this appears to be fixed. 2006-10-18 09:22:33 +00:00
parserTests.txt Added --show-output option to parserTests.php, to allow capture of complete output for test generation. Fixed various parser tests broken by tidy and incorrect capture method (i.e. web browser). Updated "Fuzz testing: Parser14-table", this appears to be fixed. 2006-10-18 09:22:33 +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 Abolished $wgDBname as a unique wiki identifier, it doesn't work with the new-fangled feature we call "table prefixes". Instead use wfWikiID() for an identifier containing the DB name and the prefix if there is one, and wfMemcKey() for cache key construction. 2006-10-04 09:06:18 +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
refreshImageCount.php Abolished $wgDBname as a unique wiki identifier, it doesn't work with the new-fangled feature we call "table prefixes". Instead use wfWikiID() for an identifier containing the DB name and the prefix if there is one, and wfMemcKey() for cache key construction. 2006-10-04 09:06:18 +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 Committed a bunch of live hacks from Wikimedia servers 2006-10-02 17:04:13 +00:00
showJobs.php Fix line endings (hope I did this right) 2006-04-19 21:20:03 +00:00
stats.php Abolished $wgDBname as a unique wiki identifier, it doesn't work with the new-fangled feature we call "table prefixes". Instead use wfWikiID() for an identifier containing the DB name and the prefix if there is one, and wfMemcKey() for cache key construction. 2006-10-04 09:06:18 +00:00
tables.sql * Added 'redirect' table - contains unique targets of redirects 2006-10-25 07:26:59 +00:00
update.php Abolished $wgDBname as a unique wiki identifier, it doesn't work with the new-fangled feature we call "table prefixes". Instead use wfWikiID() for an identifier containing the DB name and the prefix if there is one, and wfMemcKey() for cache key construction. 2006-10-04 09:06:18 +00:00
updateArticleCount.inc.php Count pages not links 2006-10-16 00:39:07 +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 * Added 'redirect' table - contains unique targets of redirects 2006-10-25 07:26:59 +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 Abolished $wgDBname as a unique wiki identifier, it doesn't work with the new-fangled feature we call "table prefixes". Instead use wfWikiID() for an identifier containing the DB name and the prefix if there is one, and wfMemcKey() for cache key construction. 2006-10-04 09:06:18 +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
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