wiki.techinc.nl/maintenance
Waldir Pimenta 158bf7cb55 normalize filenames of maintenance scripts
Use lowerCamelCase.php format for all files (per [[mw:CC#File_naming]]),
and make filenames more specific:
- clear_stats.php -> clearCacheStats.php
- clear_interwiki_cache.php -> clearInterwikiCache.php
- initStats.php -> initSiteStats.php
- proxy_check.php -> proxyCheck.php
- stats.php -> showCacheStats.php
- showStats.php -> showSiteStats.php

Also changed the class names accordingly (per [[mw:CC/PHP#Naming]]),
and make class names more specific:
- clear_stats -> ClearCacheStats
- InitStats -> InitSiteStats
- CacheStats -> ShowCacheStats
- ShowStats -> ShowSiteStats

Updated files that made references to the changed files/classes:
- DefaultSettings.php and SpecialBlockme.php (proxy_check.php -> proxyCheck.php)
- maintenance/showSiteStats.php (initStats.php -> initSiteStats.php)
- maintenance/README and docs/memcached.txt (stats.php -> showCacheStats.php)
- docs/maintenance.txt and docs/memcached.txt (clear_stats.php -> clearCacheStats.php)

Thanks Hashar for the initial help and encouragement :)

Change-Id: I60f76fc971e06e1b710dcda35f9c2d931b93bdd7
2013-03-06 03:57:54 +00:00
..
archives Merge "Add pp_propname_page index to page_props" 2013-02-25 22:54:48 +00:00
benchmarks misc style issues 2013-01-30 16:12:59 +01:00
cssjanus Remove a bunch of trailing spaces and unneeded newlines 2012-10-20 13:32:35 +02:00
dev (Bug 37957) Replace php_sapi_name() with PHP_SAPI 2013-02-04 12:50:45 -08:00
hiphop Remove a bunch of trailing spaces and unneeded newlines 2012-10-20 13:32:35 +02:00
jsduck Initial JSDuck implementation 2013-02-23 03:02:45 +01:00
language (bug 45461) Use email instead of e-mail 2013-02-27 13:07:19 +01:00
locking (Bug 37957) Replace php_sapi_name() with PHP_SAPI 2013-02-04 12:50:45 -08:00
mssql Remove a bunch of trailing spaces and unneeded newlines 2012-10-20 13:32:35 +02:00
oracle Bug 11057 - Increase size of ug_group in user_groups table 2013-01-02 20:32:42 +00:00
postgres Merge "Add pp_propname_page index to page_props" 2013-02-25 22:54:48 +00:00
sqlite/archives Bug 11057 - Increase size of ug_group in user_groups table 2013-01-02 20:32:42 +00:00
storage Changed blob table to use InnoDB. 2013-02-21 13:11:15 -08:00
term style: normalize end of files 2013-02-03 15:04:39 +01:00
.htaccess
7zip.inc misc style issues 2013-01-30 16:12:59 +01:00
attachLatest.php merged master 2012-08-29 15:20:15 +02:00
backup.inc merge latest master. 2012-09-05 17:50:13 +02:00
backupPrefetch.inc style: fix up commas in function arguments 2013-02-06 19:30:39 +01:00
backupTextPass.inc misc style fix 2012-12-20 16:09:25 +01:00
cdb.php merged master 2012-08-29 15:20:15 +02:00
changePassword.php style: fix up commas in function arguments 2013-02-06 19:30:39 +01:00
checkBadRedirects.php merged master 2012-08-29 15:20:15 +02:00
checkImages.php merged master 2012-08-29 15:20:15 +02:00
checkSyntax.php style: normalize end of files 2013-02-03 15:04:39 +01:00
checkUsernames.php merged master 2012-08-29 15:20:15 +02:00
cleanupAncientTables.php merged master 2012-08-29 15:20:15 +02:00
cleanupCaps.php merged master 2012-08-29 15:20:15 +02:00
cleanupImages.php merged master 2012-08-29 15:20:15 +02:00
cleanupPreferences.php Add some __METHOD__ to begin/commit/rollback calls 2012-12-01 15:04:10 +01:00
cleanupRemovedModules.php merged master 2012-08-29 15:20:15 +02:00
cleanupSpam.php Better error message for invalid user name in cleanupSpam.php 2013-02-14 08:16:10 +01:00
cleanupTable.inc merge latest master. 2012-09-05 17:50:13 +02:00
cleanupTitles.php merged master 2012-08-29 15:20:15 +02:00
cleanupUploadStash.php Made upload stash cleanup script scan the temp dir for old files. 2013-01-17 12:04:38 -08:00
cleanupWatchlist.php merged master 2012-08-29 15:20:15 +02:00
clearCacheStats.php normalize filenames of maintenance scripts 2013-03-06 03:57:54 +00:00
clearInterwikiCache.php normalize filenames of maintenance scripts 2013-03-06 03:57:54 +00:00
commandLine.inc merged master 2012-08-29 15:20:15 +02:00
compareParsers.php get rid of Revision::getText 2012-09-14 18:23:21 +02:00
convertLinks.php merged master 2012-08-29 15:20:15 +02:00
convertUserOptions.php Add some __METHOD__ to begin/commit/rollback calls 2012-12-01 15:04:10 +01:00
copyFileBackend.php Mention the batch-download time in copyFileBackend.php. 2013-02-26 08:46:35 +00:00
createAndPromote.php Bug 35623 - createAndPromote.php: Change to allow promotion only 2013-02-11 17:30:26 +00:00
deleteArchivedFiles.inc phpcs: Normalize methods declarations to "[final abstract] [visibility]". 2013-02-19 16:56:35 +00:00
deleteArchivedFiles.php merged master 2012-08-29 15:20:15 +02:00
deleteArchivedRevisions.inc phpcs: Normalize methods declarations to "[final abstract] [visibility]". 2013-02-19 16:56:35 +00:00
deleteArchivedRevisions.php merged master 2012-08-29 15:20:15 +02:00
deleteBatch.php merged master 2012-08-29 15:20:15 +02:00
deleteDefaultMessages.php merged master 2012-08-29 15:20:15 +02:00
deleteEqualMessages.php (bug 43915) Implement deleteEqualMessages.php 2013-01-31 19:45:31 -08:00
deleteImageMemcached.php merged master 2012-08-29 15:20:15 +02:00
deleteOldRevisions.php style: normalize end of files 2013-02-03 15:04:39 +01:00
deleteOrphanedRevisions.php style: normalize end of files 2013-02-03 15:04:39 +01:00
deleteRevision.php merged master 2012-08-29 15:20:15 +02:00
deleteSelfExternals.php merged master 2012-08-29 15:20:15 +02:00
doMaintenance.php (bug 42600) (bug 24375) Fix doMaintenance.php exit procedures. 2013-02-20 14:25:44 -05:00
Doxyfile Merge "doxygen now recognizes README and .txt files" 2012-10-22 12:04:49 +00:00
dumpBackup.php merged master 2012-08-29 15:20:15 +02:00
dumpIterator.php get rid of Revision::getText 2012-09-14 18:23:21 +02:00
dumpLinks.php style: normalize end of files 2013-02-03 15:04:39 +01:00
dumpSisterSites.php merged master 2012-08-29 15:20:15 +02:00
dumpTextPass.php style: normalize end of files 2013-02-03 15:04:39 +01:00
dumpUploads.php merged master 2012-08-29 15:20:15 +02:00
edit.php style: normalize end of files 2013-02-03 15:04:39 +01:00
eval.php style: normalize end of files 2013-02-03 15:04:39 +01:00
fetchText.php merged master 2012-08-29 15:20:15 +02:00
fileOpPerfTest.php Remove dead code. 2013-02-26 08:10:51 +00:00
findHooks.php Updates findHooks.php for ContentHandler changes. 2012-10-12 08:32:13 +02:00
fixDoubleRedirects.php Use JobQueueGroup::singleton() 2012-12-07 20:30:45 +01:00
fixExtLinksProtocolRelative.php merged master 2012-08-29 15:20:15 +02:00
fixSlaveDesync.php Use ResultWrapper::numRows() instead of DatabaseBase::numRows() 2013-01-06 11:52:40 +01:00
fixTimestamps.php merged master 2012-08-29 15:20:15 +02:00
fixUserRegistration.php merged master 2012-08-29 15:20:15 +02:00
formatInstallDoc.php style: normalize end of files 2013-02-03 15:04:39 +01:00
fuzz-tester.php phpcs: Normalize methods declarations to "[final abstract] [visibility]". 2013-02-19 16:56:35 +00:00
generateSitemap.php Clean up: Declare variables with public instead of var 2012-09-14 21:00:00 +02:00
getConfiguration.php [JobQueue] Use target wiki configuration for some key functions. 2013-02-21 05:34:42 +00:00
getLagTimes.php merged master 2012-08-29 15:20:15 +02:00
getSlaveServer.php merged master 2012-08-29 15:20:15 +02:00
getText.php get rid of Revision::getText 2012-09-14 18:23:21 +02:00
importDump.php Clean up: Declare variables with public instead of var 2012-09-14 21:00:00 +02:00
importImages.inc Add an option to importImages to search subdirectories recursively 2012-12-20 09:56:10 +00:00
importImages.php Add an option to importImages to search subdirectories recursively 2012-12-20 09:56:10 +00:00
importSiteScripts.php Cleanup of Wikidata branch. 2012-10-08 17:34:47 +02:00
importTextFile.php merged master 2012-08-29 15:20:15 +02:00
initEditCount.php merged master 2012-08-29 15:20:15 +02:00
initSiteStats.php normalize filenames of maintenance scripts 2013-03-06 03:57:54 +00:00
install.php Add warnings to install.php for files-options 2012-10-07 08:26:49 +02:00
interwiki.list Alphabetically sort the interwikis. 2012-04-02 19:56:26 +02:00
interwiki.sql Alphabetically sort the interwikis. 2012-04-02 19:56:26 +02:00
jsparse.php Clean up: Declare variables with public instead of var 2012-09-14 21:00:00 +02:00
lag.php style: fix up commas in function arguments 2013-02-06 19:30:39 +01:00
Maintenance.php Web installer: fix "Upgrade existing installation" 2013-02-23 21:16:03 -05:00
Makefile Initial JSDuck implementation 2013-02-23 03:02:45 +01:00
mcc.php mcc can now set memcached debug mode and has help 2013-01-17 15:25:49 +00:00
mctest.php Fix mctest to work with new WMF memcached setup 2013-01-16 23:54:07 +00:00
mergeMessageFileList.php Merge "Respect --quiet in mergeMessageFileList.php" 2013-02-04 09:31:03 +00:00
migrateUserGroup.php (bug 40340) Fix cache issues with changing user groups 2012-12-28 14:35:49 +00:00
minify.php Clean up: Declare variables with public instead of var 2012-09-14 21:00:00 +02:00
moveBatch.php merged master 2012-08-29 15:20:15 +02:00
mwdoc-filter.php (Bug 45355) Read of arbitrary files through mwdoc-filter.php 2013-02-25 16:07:43 +01:00
mwdocgen.php style: fix up commas in function arguments 2013-02-06 19:30:39 +01:00
mwjsduck-gen Initial JSDuck implementation 2013-02-23 03:02:45 +01:00
namespaceDupes.php (bug 42269) namespaceDupes.php has to use the interwiki cache 2012-12-20 16:42:04 +00:00
nextJobDB.php [JobQueue] Throttle refreshLinks2 jobs based on finishing the refreshLinks jobs. 2013-03-05 23:28:55 +00:00
nukeNS.php merged master 2012-08-29 15:20:15 +02:00
nukePage.php merged master 2012-08-29 15:20:15 +02:00
orphans.php Use ResultWrapper::numRows() instead of DatabaseBase::numRows() 2013-01-06 11:52:40 +01:00
parse.php merged master 2012-08-29 15:20:15 +02:00
patchSql.php merged master 2012-08-29 15:20:15 +02:00
populateCategory.php merged master 2012-08-29 15:20:15 +02:00
populateFilearchiveSha1.php (bug 38110) provide a way to separate out schema changes 2012-11-21 22:53:24 -05:00
populateImageSha1.php merged master 2012-08-29 15:20:15 +02:00
populateLogSearch.php merged master 2012-08-29 15:20:15 +02:00
populateLogUsertext.php style: normalize end of files 2013-02-03 15:04:39 +01:00
populateParentId.php merged master 2012-08-29 15:20:15 +02:00
populateRevisionLength.php (bug 38110) provide a way to separate out schema changes 2012-11-21 22:53:24 -05:00
populateRevisionSha1.php (bug 38110) provide a way to separate out schema changes 2012-11-21 22:53:24 -05:00
preprocessDump.php style: normalize end of files 2013-02-03 15:04:39 +01:00
preprocessorFuzzTest.php Clean up: Declare variables with public instead of var 2012-09-14 21:00:00 +02:00
protect.php Remove some unused local variables. 2012-10-08 02:05:49 +02:00
proxyCheck.php normalize filenames of maintenance scripts 2013-03-06 03:57:54 +00:00
pruneFileCache.php merged master 2012-08-29 15:20:15 +02:00
purgeDeletedFiles.php merged master 2012-08-29 15:20:15 +02:00
purgeList.php Merge "Added --all option and other features to purgeList.php" 2013-02-13 05:01:14 +00:00
purgeOldText.inc More __METHOD__ in our madness 2012-02-24 18:45:24 +00:00
purgeOldText.php merged master 2012-08-29 15:20:15 +02:00
purgeParserCache.php Clean up: Declare variables with public instead of var 2012-09-14 21:00:00 +02:00
README normalize filenames of maintenance scripts 2013-03-06 03:57:54 +00:00
reassignEdits.php style: normalize end of files 2013-02-03 15:04:39 +01:00
rebuildall.php merged master 2012-08-29 15:20:15 +02:00
rebuildFileCache.php merged master 2012-08-29 15:20:15 +02:00
rebuildImages.php merge latest master. 2012-09-05 17:50:13 +02:00
rebuildLocalisationCache.php Allow non-English wikis to rebuild l10n cache 2013-01-10 15:54:15 -05:00
rebuildmessages.php merged master 2012-08-29 15:20:15 +02:00
rebuildrecentchanges.php Use User::getGroupsWithPermission 2012-10-02 23:51:48 +00:00
rebuildtextindex.php Remove unused globals 2012-12-27 14:04:53 +01:00
refreshFileHeaders.php Added a script to populate file HTTP headers for existing files. 2012-11-28 09:00:01 +00:00
refreshImageMetadata.php style: fix up commas in function arguments 2013-02-06 19:30:39 +01:00
refreshLinks.php Make redirect update in refreshLinks.php bypass the redirect table 2013-01-17 10:51:35 +01:00
removeUnusedAccounts.php (bug 34581) RemoveUnusedAccounts: Ignore newuser log. 2012-12-24 05:06:05 +01:00
renameDbPrefix.php merged master 2012-08-29 15:20:15 +02:00
renderDump.php Removal of unused globals. 2012-11-26 22:15:11 +01:00
resetUserTokens.php merged master 2012-08-29 15:20:15 +02:00
rollbackEdits.php merged master 2012-08-29 15:20:15 +02:00
runBatchedQuery.php merged master 2012-08-29 15:20:15 +02:00
runJobs.php Cleanups for runJobs.php. 2013-02-21 11:08:39 -08:00
showCacheStats.php normalize filenames of maintenance scripts 2013-03-06 03:57:54 +00:00
showJobs.php [JobQueue] Made showJobs.php work for non-DB queues. 2013-01-03 20:31:47 +00:00
showSiteStats.php normalize filenames of maintenance scripts 2013-03-06 03:57:54 +00:00
sql.php Add a wfWaitForSlaves() call at the end of sql.php 2013-02-25 23:57:31 +00:00
sqlite.inc Update docs for return and exception info 2012-10-09 09:41:58 +00:00
sqlite.php merge latest master. 2012-09-05 17:50:13 +02:00
syncFileBackend.php Added --postime option syncFileBackend. 2013-03-03 04:45:15 -08:00
tables.sql Revert "Commit of various live hacks" 2013-03-04 18:39:51 +00:00
undelete.php merged master 2012-08-29 15:20:15 +02:00
update.php Make maintenance/update.php parse again under PHP 4.1.0 2013-02-26 21:52:23 +01:00
updateArticleCount.php merge latest master. 2012-09-05 17:50:13 +02:00
updateCollation.php Clean up: Declare variables with public instead of var 2012-09-14 21:00:00 +02:00
updateDoubleWidthSearch.php merge latest master. 2012-09-05 17:50:13 +02:00
updateRestrictions.php merge latest master. 2012-09-05 17:50:13 +02:00
updateSearchIndex.php (bug 34960) drop unused fields rc_moved_to_ns/rc_moved_to_title 2012-09-29 17:19:40 +02:00
updateSpecialPages.php Output special page name before attempting to run function 2012-11-16 23:20:58 +00:00
userDupes.inc misc style issues 2013-01-30 16:12:59 +01:00
userOptions.inc merged master 2012-08-29 15:20:15 +02:00
userOptions.php style: normalize end of files 2013-02-03 15:04:39 +01:00
waitForSlave.php (bug 44862) Fixed waitForSlave.php constructor. 2013-02-14 09:35:58 +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 set $wgDBadminuser and $wgDBadminpassword in your
LocalSettings.php

=== 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

	createAndPromote.php
	Create a user with administrator (and optionally, bureaucrat) permissions

	deleteOldRevisions.php
	Erase old revisions of pages from the database

	dumpBackup.php
	Backup dump script

	edit.php
	Edit a page to change its content

	findhooks.php
	Find hooks that aren't documented in docs/hooks.txt

	importDump.php
	XML dump importer

	importImages.php
	Import images into the wiki

	importTextFile.php
	Import the contents of a text file into a wiki page

	moveBatch.php
	Move a batch of pages

	namespaceDupes.php
	Check articles name to see if they conflict with new/existing namespaces

	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

	showCacheStats.php
	Show all statistics stored in the cache

	undelete.php
	Undelete all revisions of a page

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

	updateRestrictions.php
	Update pages restriction to the new schema

	userOptions.php
	Change user options