MediaWiki REL1_34
maintenance Directory Reference

Directories

 archives
 
 benchmarks
 
 dev
 
 hhvm
 
 includes
 
 language
 
 mediawiki.Title
 
 storage
 
 term
 

Files

 addChangeTag.php
 Adds a change tag to the wiki.
 
 addRFCandPMIDInterwiki.php
 This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
 
 addSite.php
 
 attachLatest.php
 Corrects wrong values in the page_latest field in the database.
 
 categoryChangesAsRdf.php
 
 cdb.php
 cdb inspector tool
 
 changePassword.php
 Change the password of a given user.
 
 checkBadRedirects.php
 Check that pages marked as being redirects really are.
 
 checkComposerLockUpToDate.php
 
 checkDependencies.php
 (C) 2019 Kunal Mehta legok.nosp@m.tm@m.nosp@m.ember.nosp@m..fsf.nosp@m..org
 
 checkImages.php
 Check images to see if they exist, are readable, etc.
 
 checkLess.php
 Checks LESS files in known resources for errors.
 
 checkUsernames.php
 Check that database usernames are actually valid.
 
 cleanupAncientTables.php
 Cleans up old database tables, dropping old indexes and fields.
 
 cleanupBlocks.php
 Cleans up user blocks with user names not matching the 'user' table.
 
 cleanupCaps.php
 Clean up broken page links when somebody turns on $wgCapitalLinks.
 
 cleanupEmptyCategories.php
 Clean up empty categories in the category table.
 
 cleanupImages.php
 Clean up broken, unparseable upload filenames.
 
 cleanupInvalidDbKeys.php
 Cleans up invalid titles in various tables.
 
 cleanupPreferences.php
 Clean up user preferences from the database.
 
 cleanupRemovedModules.php
 Remove cache entries for removed ResourceLoader modules from the database.
 
 cleanupRevActorPage.php
 
 cleanupSpam.php
 Cleanup all spam from a given hostname.
 
 cleanupTable.inc
 Generic class to cleanup a database table.
 
 cleanupTitles.php
 Clean up broken, unparseable titles.
 
 cleanupUploadStash.php
 Remove old or broken uploads from temporary uploaded file storage, clean up associated database records.
 
 cleanupUsersWithNoId.php
 Cleanup tables that have valid usernames with no user ID.
 
 cleanupWatchlist.php
 Remove broken, unparseable titles in the watchlist table.
 
 clearInterwikiCache.php
 Clear the cache of interwiki prefixes for all local wikis.
 
 CodeCleanerGlobalsPass.inc
 Psy CodeCleaner to allow PHP super globals.
 
 commandLine.inc
 Backwards-compatibility wrapper for old-style maintenance scripts.
 
 compareParserCache.php
 This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
 
 compareParsers.php
 Take page text out of an XML dump file and render basic HTML out to files.
 
 convertExtensionToRegistration.php
 
 convertLinks.php
 
 convertUserOptions.php
 Convert user options to the new user_properties table.
 
 copyFileBackend.php
 Copy all files in some containers of one backend to another.
 
 copyJobQueue.php
 Copy all jobs from one job queue system to another.
 
 createAndPromote.php
 Creates an account and grants it rights.
 
 createCommonPasswordCdb.php
 Generate includes/password/commonpasswords.cdb.
 
 deduplicateArchiveRevId.php
 
 deleteArchivedFiles.php
 Delete archived (non-current) files from the database.
 
 deleteArchivedRevisions.php
 Delete archived (deleted from public) revisions from the database.
 
 deleteAutoPatrolLogs.php
 
 deleteBatch.php
 Deletes a batch of pages.
 
 deleteDefaultMessages.php
 Deletes all pages in the MediaWiki namespace which were last edited by "MediaWiki default".
 
 deleteEqualMessages.php
 This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
 
 deleteLocalPasswords.php
 Delete unused local passwords.
 
 deleteOldRevisions.php
 Delete old (non-current) revisions from the database.
 
 deleteOrphanedRevisions.php
 Delete revisions which refer to a nonexisting page.
 
 deleteSelfExternals.php
 Delete self-references to $wgServer from the externallinks table.
 
 doMaintenance.php
 We want to make this whole thing as seamless as possible to the end-user.
 
 dumpBackup.php
 Script that dumps wiki pages or logging database into an XML interchange wrapper format for export or backup.
 
 dumpCategoriesAsRdf.php
 
 dumpIterator.php
 Take page text out of an XML dump file and perform some operation on it.
 
 dumpLinks.php
 
 dumpTextPass.php
 BackupDumper that postprocesses XML dumps from dumpBackup.php to add page text.
 
 dumpUploads.php
 Dump a the list of files uploaded, for feeding to tar or similar.
 
 edit.php
 Make a page edit.
 
 emptyUserGroup.php
 Removes all users from a given user group.
 
 eraseArchivedFile.php
 Delete archived (non-current) files from storage.
 
 eval.php
 This script lets a command-line user start up the wiki engine and then poke about by issuing PHP commands directly.
 
 exportSites.php
 
 fetchText.php
 Communications protocol.
 
 fileOpPerfTest.php
 Test for fileop performance.
 
 findDeprecated.php
 Maintenance script that recursively scans MediaWiki's PHP source tree for deprecated functions and methods and pretty-prints the results.
 
 findHooks.php
 Simple script that try to find documented hook and hooks actually in the code and show what's missing.
 
 findMissingActors.php
 This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
 
 findMissingFiles.php
 This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
 
 findOrphanedFiles.php
 This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
 
 fixDefaultJsonContentPages.php
 Fix instances of pre-existing JSON pages.
 
 fixDoubleRedirects.php
 Fix double redirects.
 
 fixExtLinksProtocolRelative.php
 Fixes any entries for protocol-relative URLs in the externallinks table, replacing each protocol-relative entry with two entries, one for http and one for https.
 
 fixTimestamps.php
 Fixes timestamp corruption caused by one or more webservers temporarily being set to the wrong time.
 
 fixUserRegistration.php
 Fix the user_registration field.
 
 formatInstallDoc.php
 Format RELEASE-NOTE file to wiki text or HTML markup.
 
 generateJsonI18n.php
 Convert a PHP messages file to a set of JSON messages files.
 
 generateLocalAutoload.php
 
 generateSitemap.php
 Creates a sitemap for the site.
 
 getConfiguration.php
 Print serialized output of MediaWiki config vars.
 
 getLagTimes.php
 Display replication lag times.
 
 getReplicaServer.php
 Reports the hostname of a replica DB server.
 
 getSlaveServer.php
 
 getText.php
 Outputs page text to stdout.
 
 importDump.php
 Import XML dump files into the current wiki.
 
 importImages.php
 Import one or more images from the local file system into the wiki without using the web-based interface.
 
 importSites.php
 
 importSiteScripts.php
 Import all scripts in the MediaWiki namespace from a local site.
 
 importTextFiles.php
 Import pages from text files.
 
 initEditCount.php
 Init the user_editcount database field based on the number of rows in the revision table.
 
 initSiteStats.php
 Re-initialise or update the site statistics table.
 
 initUserPreference.php
 
 install.php
 CLI-based MediaWiki installation and configuration.
 
 invalidateUserSessions.php
 Invalidate the sessions of certain users on the wiki.
 
 jsparse.php
 Test JavaScript validity parses using jsmin+'s parser.
 
 lag.php
 Shows database lag.
 
 Maintenance.php
 This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
 
 makeTestEdits.php
 Make test edits for a user to populate a test wiki.
 
 manageForeignResources.php
 This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
 
 manageJobs.php
 Maintenance script that handles managing job queue admin tasks.
 
 mcc.php
 memcached diagnostic tool
 
 mctest.php
 Makes several 'set', 'incr' and 'get' requests on every memcached server and shows a report.
 
 mergeMessageFileList.php
 Merge $wgExtensionMessagesFiles from various extensions to produce a single array containing all message files.
 
 migrateActors.php
 Migrate actors from pre-1.31 columns to the 'actor' table.
 
 migrateArchiveText.php
 Migrate archive.ar_text and ar_flags to modern storage.
 
 migrateComments.php
 Migrate comments from pre-1.30 columns to the 'comment' table.
 
 migrateFileRepoLayout.php
 Copy all files in FileRepo to an originals container using SHA1 paths.
 
 migrateImageCommentTemp.php
 Merge image_comment_temp into the image table.
 
 migrateUserGroup.php
 Re-assign users from an old group to a new one.
 
 minify.php
 Minify a file or set of files.
 
 moveBatch.php
 Move a batch of pages.
 
 mwdoc-filter.php
 
 mwdocgen.php
 Generate class and file reference documentation for MediaWiki using doxygen.
 
 mysql.php
 Execute the MySQL client binary, connecting to the wiki's DB.
 
 namespaceDupes.php
 Check for articles to fix after adding/deleting namespaces.
 
 nukeNS.php
 Remove pages with only 1 revision from the MediaWiki namespace, without flooding recent changes, delete logs, etc.
 
 nukePage.php
 Erase a page record from the database Irreversible (can't use standard undelete) and does not update link tables.
 
 orphans.php
 Look for 'orphan' revisions hooked to pages which don't exist and 'childless' pages with no revisions.
 
 pageExists.php
 This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
 
 parse.php
 Parse some wikitext.
 
 patchSql.php
 Manually run an SQL patch outside of the general updaters.
 
 populateArchiveRevId.php
 Populate ar_rev_id in pre-1.5 rows.
 
 populateBacklinkNamespace.php
 Optional upgrade script to populate *_from_namespace fields.
 
 populateCategory.php
 Populate the category table.
 
 populateChangeTagDef.php
 
 populateContentModel.php
 Populate the page_content_model and {rev,ar}_content_{model,format} fields.
 
 populateContentTables.php
 This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
 
 populateExternallinksIndex60.php
 Populates the el_index_60 field in the externallinks table.
 
 populateFilearchiveSha1.php
 Optional upgrade script to populate the fa_sha1 field.
 
 populateImageSha1.php
 Optional upgrade script to populate the img_sha1 field.
 
 populateInterwiki.php
 Maintenance script that populates the interwiki table with list of sites from a source wiki, such as English Wikipedia.
 
 populateIpChanges.php
 Find all revisions by logged out users and copy the rev_id, rev_timestamp, and a hex representation of rev_user_text to the new ip_changes table.
 
 populateLogSearch.php
 Makes the required database updates for populating the log_search table retroactively.
 
 populateLogUsertext.php
 Makes the required database updates for Special:ProtectedPages to show all protected pages, even ones before the page restrictions schema change.
 
 populateParentId.php
 Makes the required database updates for rev_parent_id to be of any use.
 
 populatePPSortKey.php
 Populate the pp_sortkey fields in the page_props table.
 
 populateRecentChangesSource.php
 Upgrade script to populate the rc_source field.
 
 populateRevisionLength.php
 Populates the rev_len and ar_len fields when they are NULL.
 
 populateRevisionSha1.php
 Fills the rev_sha1 and ar_sha1 columns of revision and archive tables for revisions created before MW 1.19.
 
 preprocessDump.php
 Take page text out of an XML dump file and preprocess it to obj.
 
 preprocessorFuzzTest.php
 Performs fuzz-style testing of MediaWiki's preprocessor.
 
 protect.php
 Protect or unprotect a page.
 
 pruneFileCache.php
 Prune file cache for pages, objects, resources, etc.
 
 purgeChangedFiles.php
 Scan the logging table and purge affected files within a timeframe.
 
 purgeChangedPages.php
 Send purge requests for pages edited in date range to squid/varnish.
 
 purgeExpiredUserrights.php
 
 purgeList.php
 Send purge requests for listed pages to CDN.
 
 purgeModuleDeps.php
 This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
 
 purgeOldText.php
 Purge old text records from the database.
 
 purgePage.php
 Purges a specific page.
 
 purgeParserCache.php
 Remove old objects from the parser cache.
 
 reassignEdits.php
 Reassign edits from a user or IP address to another user.
 
 rebuildall.php
 Rebuild link tracking tables from scratch.
 
 rebuildFileCache.php
 Build file cache for content pages.
 
 rebuildImages.php
 Update image metadata records.
 
 rebuildLocalisationCache.php
 Rebuild the localisation cache.
 
 rebuildmessages.php
 This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
 
 rebuildrecentchanges.php
 Rebuild recent changes from scratch.
 
 rebuildtextindex.php
 Rebuild search index table from scratch.
 
 recountCategories.php
 Refreshes category counts.
 
 refreshExternallinksIndex.php
 Refresh the externallinks table el_index and el_index_60 from el_to.
 
 refreshFileHeaders.php
 Refresh file headers from metadata.
 
 refreshImageMetadata.php
 
 refreshLinks.php
 
 removeInvalidEmails.php
 
 removeUnusedAccounts.php
 Remove unused user accounts from the database An unused account is one which has made no edits.
 
 renameDbPrefix.php
 Change the prefix of database tables.
 
 renderDump.php
 Take page text out of an XML dump file and render basic HTML out to files.
 
 resetAuthenticationThrottle.php
 Reset login/signup throttling for a specified user and/or IP.
 
 resetPageRandom.php
 Resets the page_random field for articles in the provided time range.
 
 resetUserEmail.php
 Reset user email.
 
 resetUserTokens.php
 Reset the user_token for all users on the wiki.
 
 rollbackEdits.php
 Rollback all edits by a given user or IP provided they're the most recent edit (just like real rollback)
 
 runBatchedQuery.php
 Run a database query in batches and wait for replica DBs.
 
 runJobs.php
 Run pending jobs.
 
 runScript.php
 Convenience maintenance script wrapper, useful for scripts or extensions located outside of standard locations.
 
 shell.php
 Modern interactive shell within the MediaWiki engine.
 
 showJobs.php
 Report number of jobs currently waiting in master database.
 
 showSiteStats.php
 Show the cached statistics.
 
 sql.php
 Send SQL queries from the specified file to the database, performing variable replacement along the way.
 
 sqlite.inc
 Helper class for sqlite-specific scripts.
 
 sqlite.php
 Performs some operations specific to SQLite database backend.
 
 syncFileBackend.php
 Sync one file backend to another based on the journal of later.
 
 tidyUpT39714.php
 
 undelete.php
 Undelete a page by fetching it from the archive table.
 
 update.php
 Run all updaters.
 
 updateArticleCount.php
 Provide a better count of the number of articles and update the site statistics table, if desired.
 
 updateCollation.php
 Find all rows in the categorylinks table whose collation is out-of-date (cl_collation != $wgCategoryCollation) and repopulate cl_sortkey using the page title and cl_sortkey_prefix.
 
 updateCredits.php
 
 updateDoubleWidthSearch.php
 Normalize double-byte Latin UTF-8 characters.
 
 updateExtensionJsonSchema.php
 
 updateRestrictions.php
 Makes the required database updates for Special:ProtectedPages to show all protected pages, even ones before the page restrictions schema change.
 
 updateSearchIndex.php
 Periodic off-peak updating of the search index.
 
 updateSpecialPages.php
 Update for cached special pages.
 
 uppercaseTitlesForUnicodeTransition.php
 Obligatory redundant license notice.
 
 userDupes.inc
 Helper class for update.php.
 
 userOptions.php
 Script to change users preferences on the fly.
 
 validateRegistrationFile.php
 
 view.php
 Show page contents.
 
 wrapOldPasswords.php
 Maintenance script to wrap all old-style passwords in a layered type.