wiki.techinc.nl/maintenance
Tim Starling 1fe9340bb3 Remove hphpc support and deprecate related functions
hphpc has been superseded by hhvm, so support for hphpc is no longer
needed.

* Continue to use Preprocessor_Hash under HipHop since it is still
  faster under hhvm
* Keep $wgCompiledFiles for now, so that wikihiero doesn't give an error
  before Ic9d1e795 is merged
* Migrate the run-server script and associated configuration file to
  hhvm. Enable EnableStaticContentFromDisk since it doesn't seem
  ridiculously inefficient at first glance. Run from $IP rather than
  $IP/.. since hhvm is apparently not picky about sourcing files from
  outside of the current directory.

Change-Id: Ic3e769f1fbad4f7ad26dd819406796fee48c6b45
2013-05-09 08:28:05 +10:00
..
archives Remove ExternalUser authentication code 2013-04-04 10:09:34 -04:00
benchmarks Added spaces before and removed spaces after 'array' 2013-04-14 21:57:46 +02:00
cssjanus Remove a bunch of trailing spaces and unneeded newlines 2012-10-20 13:32:35 +02:00
dev Fixed some spacing in maintenance folder 2013-04-18 20:48:44 +02:00
dictionary A list of many words mediawiki uses as strings, comments, names. 2013-03-22 01:12:30 -04:00
hiphop Remove hphpc support and deprecate related functions 2013-05-09 08:28:05 +10:00
jsduck Merge "mw.hook: Implement callback framework" 2013-05-06 21:51:22 +00:00
language Revert "Remove Special:ActiveUsers" 2013-05-05 23:14:21 +00:00
locking (Bug 37957) Replace php_sapi_name() with PHP_SAPI 2013-02-04 12:50:45 -08:00
mssql Remove ExternalUser authentication code 2013-04-04 10:09:34 -04:00
oracle Fixed spacing around parenthesis in languages/tests/maintenance 2013-04-28 15:57:34 +00:00
postgres Remove ExternalUser authentication code 2013-04-04 10:09:34 -04:00
sqlite/archives (bug 36400) API: Fix sorting for iwlinks, langlinks 2013-04-03 13:22:20 -04:00
storage Fixed spacing around parenthesis in languages/tests/maintenance 2013-04-28 15:57:34 +00: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 Added space after switch/Removed spaces after unset 2013-04-26 16:42:31 +02:00
backupPrefetch.inc Added space after switch/Removed spaces after unset 2013-04-26 16:42:31 +02:00
backupTextPass.inc Added space after switch/Removed spaces after unset 2013-04-26 16:42:31 +02:00
cdb.php Fixed some spacing in maintenance folder 2013-04-18 20:48:44 +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 Fixed some spacing in maintenance folder 2013-04-18 20:48:44 +02:00
checkUsernames.php merged master 2012-08-29 15:20:15 +02:00
cleanupAncientTables.php Fixed some spacing in maintenance folder 2013-04-18 20:48:44 +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 Fixed some spacing in maintenance folder 2013-04-18 20:48:44 +02:00
cleanupRemovedModules.php Fixed some spacing in maintenance folder 2013-04-18 20:48:44 +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 Fixed some spacing in maintenance folder 2013-04-18 20:48:44 +02:00
cleanupUploadStash.php Fixed spacing around parenthesis in languages/tests/maintenance 2013-04-28 15:57:34 +00:00
cleanupWatchlist.php Fixed some spacing in maintenance folder 2013-04-18 20:48:44 +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 Fixed some spacing in maintenance folder 2013-04-18 20:48:44 +02:00
convertLinks.php Fixed spacing around parenthesis in languages/tests/maintenance 2013-04-28 15:57:34 +00:00
convertUserOptions.php Add some __METHOD__ to begin/commit/rollback calls 2012-12-01 15:04:10 +01:00
copyFileBackend.php Reduced memory usage a bit for copyFileBackend.php with --missingonly. 2013-04-30 18:42:03 -07:00
copyJobQueue.php Added a script to copy jobs from one queue to another. 2013-04-09 23:12:06 +00:00
createAndPromote.php Fixed spacing around parenthesis in languages/tests/maintenance 2013-04-28 15:57:34 +00:00
deleteArchivedFiles.inc Fixed some spacing in maintenance folder 2013-04-18 20:48:44 +02: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 Fixed some spacing in maintenance folder 2013-04-18 20:48:44 +02:00
deleteEqualMessages.php deleteEqualMessages: Include list of pages in dry run 2013-05-03 17:49:10 +02:00
deleteImageMemcached.php Fixed some spacing in maintenance folder 2013-04-18 20:48:44 +02:00
deleteOldRevisions.php style: normalize end of files 2013-02-03 15:04:39 +01:00
deleteOrphanedRevisions.php Fixed some spacing in maintenance folder 2013-04-18 20:48:44 +02:00
deleteRevision.php merged master 2012-08-29 15:20:15 +02:00
deleteSelfExternals.php Fixed some spacing in maintenance folder 2013-04-18 20:48:44 +02:00
doMaintenance.php Remove hphpc support and deprecate related functions 2013-05-09 08:28:05 +10:00
Doxyfile Merge "doxygen now recognizes README and .txt files" 2012-10-22 12:04:49 +00:00
dumpBackup.php Fixed spacing around parenthesis in languages/tests/maintenance 2013-04-28 15:57:34 +00:00
dumpIterator.php Fixed spacing around parenthesis in languages/tests/maintenance 2013-04-28 15:57:34 +00:00
dumpLinks.php Fixed some spacing in maintenance folder 2013-04-18 20:48:44 +02:00
dumpSisterSites.php Fixed some spacing in maintenance folder 2013-04-18 20:48:44 +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 Fixed spacing around parenthesis in languages/tests/maintenance 2013-04-28 15:57:34 +00:00
fileOpPerfTest.php Fixed spacing around parenthesis in languages/tests/maintenance 2013-04-28 15:57:34 +00:00
findHooks.php Remove spaces between parentheses in function calls 2013-03-17 16:13:22 +01: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 Fixed some spacing in maintenance folder 2013-04-18 20:48:44 +02: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 Added/Removed spaces around string concatenation 2013-04-13 13:36:24 +02:00
fuzz-tester.php Introducing a new variable {{ROOTPAGENAME}} 2013-04-24 02:13:25 +05:30
generateSitemap.php Fixed spacing around parenthesis in languages/tests/maintenance 2013-04-28 15:57:34 +00:00
getConfiguration.php Added space after switch/Removed spaces after unset 2013-04-26 16:42:31 +02:00
getLagTimes.php Fixed some spacing in maintenance folder 2013-04-18 20:48:44 +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 Fixed some spacing in maintenance folder 2013-04-18 20:48:44 +02:00
importImages.inc Fixed some spacing in maintenance folder 2013-04-18 20:48:44 +02:00
importImages.php (bug 47483) update file metadata in importImages 2013-04-23 10:09:27 +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 Fixed some spacing in maintenance folder 2013-04-18 20:48:44 +02:00
install.php Fixed spacing around parenthesis in languages/tests/maintenance 2013-04-28 15:57:34 +00:00
interwiki.list
interwiki.sql
jsparse.php Fixed spacing around parenthesis in languages/tests/maintenance 2013-04-28 15:57:34 +00:00
lag.php style: fix up commas in function arguments 2013-02-06 19:30:39 +01:00
Maintenance.php Fixed spacing around parenthesis in languages/tests/maintenance 2013-04-28 15:57:34 +00:00
Makefile Initial JSDuck implementation 2013-02-23 03:02:45 +01:00
mcc.php Fixed some spacing in maintenance folder 2013-04-18 20:48:44 +02:00
mctest.php Fixed some spacing in maintenance folder 2013-04-18 20:48:44 +02:00
mergeMessageFileList.php Fixed some spacing in maintenance folder 2013-04-18 20:48:44 +02: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 Fixed spacing around parenthesis in languages/tests/maintenance 2013-04-28 15:57:34 +00:00
mwdocgen.php Added space after switch/Removed spaces after unset 2013-04-26 16:42:31 +02:00
mwjsduck-gen jsduck-gen: Add --version parameter 2013-04-09 09:03:55 +00:00
namespaceDupes.php Fixed some spacing in maintenance folder 2013-04-18 20:48:44 +02:00
nextJobDB.php [JobQueue] Throttle refreshLinks2 jobs based on finishing the refreshLinks jobs. 2013-03-05 23:28:55 +00:00
nukeNS.php Fixed some spacing in maintenance folder 2013-04-18 20:48:44 +02:00
nukePage.php Fixed some spacing in maintenance folder 2013-04-18 20:48:44 +02:00
orphans.php Fixed some spacing in maintenance folder 2013-04-18 20:48:44 +02:00
parse.php Fixed spacing around parenthesis in languages/tests/maintenance 2013-04-28 15:57:34 +00: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 Fixed some spacing in maintenance folder 2013-04-18 20:48:44 +02:00
populateImageSha1.php merged master 2012-08-29 15:20:15 +02:00
populateLogSearch.php Fixed some spacing in maintenance folder 2013-04-18 20:48:44 +02:00
populateLogUsertext.php style: normalize end of files 2013-02-03 15:04:39 +01:00
populateParentId.php Fixed some spacing in maintenance folder 2013-04-18 20:48:44 +02:00
populateRevisionLength.php Fixed some spacing in maintenance folder 2013-04-18 20:48:44 +02:00
populateRevisionSha1.php else if -> elseif 2013-04-17 16:52:47 +02:00
preprocessDump.php Fixed some spacing in maintenance folder 2013-04-18 20:48:44 +02:00
preprocessorFuzzTest.php Fixed some spacing in maintenance folder 2013-04-18 20:48:44 +02:00
protect.php Fixed some spacing in maintenance folder 2013-04-18 20:48:44 +02:00
proxyCheck.php Fixed spacing around parenthesis in languages/tests/maintenance 2013-04-28 15:57:34 +00:00
pruneFileCache.php merged master 2012-08-29 15:20:15 +02:00
purgeDeletedFiles.php Fixed some spacing in maintenance folder 2013-04-18 20:48:44 +02:00
purgeList.php Fixed some spacing in maintenance folder 2013-04-18 20:48:44 +02:00
purgeOldText.inc
purgeOldText.php merged master 2012-08-29 15:20:15 +02:00
purgeParserCache.php Use output/error maintenance functions 2013-03-08 02:40:07 +00:00
README normalize filenames of maintenance scripts 2013-03-06 03:57:54 +00:00
reassignEdits.php Fixed some spacing in maintenance folder 2013-04-18 20:48:44 +02:00
rebuildall.php merged master 2012-08-29 15:20:15 +02:00
rebuildFileCache.php Fixed some spacing in maintenance folder 2013-04-18 20:48:44 +02:00
rebuildImages.php merge latest master. 2012-09-05 17:50:13 +02:00
rebuildLocalisationCache.php rebuildLocalisationCache: Implement --lang option 2013-05-01 12:33:12 +02:00
rebuildmessages.php Fixed some spacing in maintenance folder 2013-04-18 20:48:44 +02:00
rebuildrecentchanges.php Fixed spacing around parenthesis in languages/tests/maintenance 2013-04-28 15:57:34 +00:00
rebuildtextindex.php Fixed some spacing in maintenance folder 2013-04-18 20:48:44 +02:00
refreshFileHeaders.php Added a script to populate file HTTP headers for existing files. 2012-11-28 09:00:01 +00:00
refreshImageMetadata.php Fixed spacing around parenthesis in languages/tests/maintenance 2013-04-28 15:57:34 +00:00
refreshLinks.php Fixed some spacing in maintenance folder 2013-04-18 20:48:44 +02: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 Fixed spacing around parenthesis in languages/tests/maintenance 2013-04-28 15:57:34 +00: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 Fixed some spacing in maintenance folder 2013-04-18 20:48:44 +02:00
runJobs.php Wrap job execution around profiling calls. 2013-04-18 12:22:33 -07:00
showCacheStats.php normalize filenames of maintenance scripts 2013-03-06 03:57:54 +00:00
showJobs.php Fixed some spacing in maintenance folder 2013-04-18 20:48:44 +02:00
showSiteStats.php Fixed some spacing in maintenance folder 2013-04-18 20:48:44 +02:00
sql.php Fixed spacing around parenthesis in languages/tests/maintenance 2013-04-28 15:57:34 +00:00
sqlite.inc Fixed some spacing in maintenance folder 2013-04-18 20:48:44 +02:00
sqlite.php merge latest master. 2012-09-05 17:50:13 +02:00
syncFileBackend.php Added a --backoff option for syncFileBackend.php 2013-04-30 18:53:01 -07:00
tables.sql Revert "Commit of various live hacks" 2013-04-29 19:19:54 +01:00
undelete.php merged master 2012-08-29 15:20:15 +02:00
update.php else if -> elseif 2013-04-17 16:52:47 +02:00
updateArticleCount.php merge latest master. 2012-09-05 17:50:13 +02:00
updateCollation.php (bug 46615) updateCollation.php: sanity check the collation before proceeding 2013-03-27 21:16:57 +01: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 Fixed some spacing in maintenance folder 2013-04-18 20:48:44 +02:00
updateSpecialPages.php Fixed spacing around parenthesis in languages/tests/maintenance 2013-04-28 15:57:34 +00:00
userDupes.inc Fixed some spacing in maintenance folder 2013-04-18 20:48:44 +02:00
userOptions.inc Fixed some spacing in maintenance folder 2013-04-18 20:48:44 +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