MediaWiki master
maintenance Directory Reference

Directories

 benchmarks
 
 includes
 
 language
 
 mediawiki.Title
 
 storage
 

Files

 addChangeTag.php
 Adds a change tag to the wiki.
 
 addSite.php
 
 attachLatest.php
 Corrects wrong values in the page_latest field in the database.
 
 blockUsers.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.
 
 categoryChangesAsRdf.php
 
 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@d.nosp@m.ebian.nosp@m..org
 
 checkImages.php
 Check images to see if they exist, are readable, etc.
 
 CheckSignatures.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.
 
 checkUsernames.php
 Check that database usernames are actually valid.
 
 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.
 
 cleanupPageLang.php
 Clean up deprecated language codes in page_lang.
 
 cleanupPreferences.php
 Clean up user preferences from the database.
 
 cleanupRemovedModules.php
 Remove cache entries for removed ResourceLoader modules from the database.
 
 cleanupSpam.php
 Cleanup all spam from a given hostname.
 
 cleanupTitles.php
 Clean up broken, unparseable titles.
 
 cleanupUploadStash.php
 Remove old or broken uploads from temporary uploaded file storage, clean up associated database records.
 
 cleanupWatchlist.php
 Remove broken, unparseable titles in the watchlist table.
 
 clearInterwikiCache.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.
 
 CodeCleanerGlobalsPass.php
 Psy CodeCleaner to allow PHP super globals.
 
 CommandLineInc.php
 Backwards-compatibility wrapper for old-style maintenance scripts.
 
 compareLanguageConverterOutput.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.
 
 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.
 
 convertExtensionsMessagesToTranslationAlias.php
 
 convertExtensionToRegistration.php
 
 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.
 
 createBotPassword.php
 Creates a bot password for an existing user account.
 
 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.
 
 deleteTag.php
 
 deleteUserEmail.php
 Deletes a given user's associated email address Usage: php deleteUserEmail.php <user> where <user> can be either the username or user ID.
 
 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.
 
 expireTemporaryAccounts.php
 
 exportSites.php
 
 fetchText.php
 Communications protocol.
 
 fileOpPerfTest.php
 Test for fileop performance.
 
 findBadBlobs.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.
 
 findClasses.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.
 
 findDeprecated.php
 Maintenance script that recursively scans MediaWiki's PHP source tree for deprecated functions and methods and pretty-prints the results.
 
 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.
 
 fixAutoblockLogTitles.php
 
 fixDoubleRedirects.php
 Fix double redirects.
 
 fixInconsistentRedirects.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.
 
 fixMergeHistoryCorruption.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.
 
 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.
 
 generateAutoload.php
 
 generateConfigSchema.php
 
 generateJsonI18n.php
 Convert a PHP messages file to a set of JSON messages files.
 
 generateLocalAutoload.php
 
 generateSchemaChangeSql.php
 Convert a JSON abstract schema change to a schema change file in the given DBMS type.
 
 generateSchemaSql.php
 Convert a JSON abstract schema to a schema file in the given DBMS type.
 
 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.
 
 getText.php
 Outputs page text to stdout.
 
 grep.php
 
 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.
 
 installPreConfigured.php
 
 invalidateBotPasswords.php
 Invalidates the bot passwords of a given user.
 
 invalidateUserSessions.php
 Invalidate the sessions of certain users on the wiki.
 
 jsparse.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.
 
 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
 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.
 
 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.
 
 migrateBlocks.php
 
 migrateExternallinks.php
 
 migrateFileRepoLayout.php
 Copy all files in FileRepo to an originals container using SHA1 paths.
 
 migrateLinksTable.php
 
 migrateRevisionActorTemp.php
 
 migrateRevisionCommentTemp.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.
 
 migrateUserGroup.php
 Re-assign users from an old group to a new one.
 
 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.
 
 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.
 
 populateChangeTagDef.php
 
 populateInterwiki.php
 Maintenance script that populates the interwiki table with list of sites from a source wiki, such as English Wikipedia.
 
 populateUserIsTemp.php
 Fills the user_is_temp column of the user table for users created before MW 1.42.
 
 prewarmParsoidParserCache.php
 
 protect.php
 Protect or unprotect a page.
 
 pruneFileCache.php
 Prune file cache for pages, objects, resources, etc.
 
 pruneUnusedLinkTargetRows.php
 
 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.
 
 purgeExpiredBlocks.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.
 
 purgeExpiredUserrights.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.
 
 purgeExpiredWatchlistItems.php
 
 purgeList.php
 Send purge requests for listed pages to CDN.
 
 purgeMessageBlobStore.php
 
 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
 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.
 
 purgeRecentChanges.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.
 
 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
 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.
 
 recountCategories.php
 Refreshes category counts.
 
 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.
 
 renameRestrictions.php
 Rename restriction level.
 
 renameUser.php
 
 renameUsersMatchingPattern.php
 
 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.
 
 rollbackEdits.php
 Rollback all edits by a given user or IP provided they're the most recent edit (just like real rollback)
 
 run.php
 Entry point for running maintenance scripts.
 
 runBatchedQuery.php
 Run a database query in batches and wait for replica DBs.
 
 runJobs.php
 Run pending jobs.
 
 runScript.php
 
 shell.php
 Modern interactive shell within the MediaWiki engine.
 
 showJobs.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.
 
 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.php
 Helper class for sqlite-specific scripts.
 
 SqliteMaintenance.php
 Performs some operations specific to SQLite database backend.
 
 TableCleanup.php
 Generic class to cleanup a database table.
 
 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
 
 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
 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.
 
 updateSpecialPages.php
 Update for cached special pages.
 
 uppercaseTitlesForUnicodeTransition.php
 Obligatory redundant license notice.
 
 userOptions.php
 Script to change users preferences on the fly.
 
 validateRegistrationFile.php
 
 Version.php
 Prints the version of MediaWiki.
 
 view.php
 Show page contents.
 
 wikiBirthday.php
 Prints the birthdate and age of a wiki install.
 
 wrapOldPasswords.php
 Maintenance script to wrap all old-style passwords in a layered type.