CINXE.COM
Manual:Upgrading - MediaWiki
<!DOCTYPE html> <html class="client-nojs vector-feature-language-in-header-disabled vector-feature-language-in-main-page-header-disabled vector-feature-sticky-header-disabled vector-feature-page-tools-pinned-disabled vector-feature-toc-pinned-clientpref-1 vector-feature-main-menu-pinned-disabled vector-feature-limited-width-clientpref-1 vector-feature-limited-width-content-enabled vector-feature-custom-font-size-clientpref--excluded vector-feature-appearance-pinned-clientpref-1 vector-feature-night-mode-disabled skin-theme-clientpref-day vector-toc-available" lang="en" dir="ltr"> <head> <meta charset="UTF-8"> <title>Manual:Upgrading - MediaWiki</title> <script>(function(){var className="client-js vector-feature-language-in-header-disabled vector-feature-language-in-main-page-header-disabled vector-feature-sticky-header-disabled vector-feature-page-tools-pinned-disabled vector-feature-toc-pinned-clientpref-1 vector-feature-main-menu-pinned-disabled vector-feature-limited-width-clientpref-1 vector-feature-limited-width-content-enabled vector-feature-custom-font-size-clientpref--excluded vector-feature-appearance-pinned-clientpref-1 vector-feature-night-mode-disabled skin-theme-clientpref-day vector-toc-available";var cookie=document.cookie.match(/(?:^|; )mediawikiwikimwclientpreferences=([^;]+)/);if(cookie){cookie[1].split('%2C').forEach(function(pref){className=className.replace(new RegExp('(^| )'+pref.replace(/-clientpref-\w+$|[^\w-]+/g,'')+'-clientpref-\\w+( |$)'),'$1'+pref+'$2');});}document.documentElement.className=className;}());RLCONF={"wgBreakFrames":false,"wgSeparatorTransformTable":["",""],"wgDigitTransformTable":["",""], "wgDefaultDateFormat":"dmy","wgMonthNames":["","January","February","March","April","May","June","July","August","September","October","November","December"],"wgRequestId":"7931eaf8-859f-4a9f-828a-127d2a2213a7","wgCanonicalNamespace":"Manual","wgCanonicalSpecialPageName":false,"wgNamespaceNumber":100,"wgPageName":"Manual:Upgrading","wgTitle":"Upgrading","wgCurRevisionId":6794680,"wgRevisionId":6794680,"wgArticleId":8407,"wgIsArticle":true,"wgIsRedirect":false,"wgAction":"view","wgUserName":null,"wgUserGroups":["*"],"wgCategories":["MediaWiki administration","MediaWiki for site admins","MediaWiki development","Upgrading"],"wgPageViewLanguage":"en","wgPageContentLanguage":"en","wgPageContentModel":"wikitext","wgRelevantPageName":"Manual:Upgrading","wgRelevantArticleId":8407,"wgIsProbablyEditable":false,"wgRelevantPageIsProbablyEditable":false,"wgRestrictionEdit":["autoconfirmed"],"wgRestrictionMove":["autoconfirmed"],"wgNoticeProject":"mediawiki","wgCiteReferencePreviewsActive":true, "wgMediaViewerOnClick":true,"wgMediaViewerEnabledByDefault":true,"wgVisualEditor":{"pageLanguageCode":"en","pageLanguageDir":"ltr","pageVariantFallbacks":"en"},"wgMFDisplayWikibaseDescriptions":{"search":true,"watchlist":true,"tagline":false,"nearby":true},"wgWMESchemaEditAttemptStepOversample":false,"wgWMEPageLength":40000,"wgInternalRedirectTargetUrl":"/wiki/Manual:Upgrading","wgTranslatePageTranslation":"source","wgCentralAuthMobileDomain":false,"wgEditSubmitButtonLabelPublish":true,"wgULSPosition":"personal","wgULSisCompactLinksEnabled":true,"wgVector2022LanguageInHeader":false,"wgULSisLanguageSelectorEmpty":false,"wgWikibaseItemId":"Q22811258","wgCheckUserClientHintsHeadersJsApi":["brands","architecture","bitness","fullVersionList","mobile","model","platform","platformVersion"]};RLSTATE={"ext.globalCssJs.user.styles":"ready","site.styles":"ready","user.styles":"ready","ext.globalCssJs.user":"ready","user":"ready","user.options":"loading","ext.translate.tag.languages":"ready", "ext.pygments":"ready","skins.vector.search.codex.styles":"ready","skins.vector.styles":"ready","skins.vector.icons":"ready","ext.translate.edit.documentation.styles":"ready","ext.translate":"ready","ext.wikimediamessages.styles":"ready","ext.visualEditor.desktopArticleTarget.noscript":"ready","ext.uls.pt":"ready","wikibase.client.init":"ready","ext.wikimediaBadges":"ready"};RLPAGEMODULES=["mediawiki.action.view.redirect","ext.pygments.view","site","mediawiki.page.ready","mediawiki.toc","skins.vector.js","ext.centralNotice.geoIP","ext.centralNotice.startUp","ext.translate.pagetranslation.uls","ext.urlShortener.toolbar","ext.centralauth.centralautologin","mmv.bootstrap","ext.visualEditor.desktopArticleTarget.init","ext.visualEditor.targetLoader","ext.echo.centralauth","ext.eventLogging","ext.wikimediaEvents","ext.navigationTiming","ext.uls.compactlinks","ext.uls.interface","wikibase.client.vector-2022","ext.checkUser.clientHints","wikibase.sidebar.tracking"];</script> <script>(RLQ=window.RLQ||[]).push(function(){mw.loader.impl(function(){return["user.options@12s5i",function($,jQuery,require,module){mw.user.tokens.set({"patrolToken":"+\\","watchToken":"+\\","csrfToken":"+\\"}); }];});});</script> <link rel="stylesheet" href="/w/load.php?lang=en&modules=ext.pygments%2Ctranslate%2CwikimediaBadges%7Cext.translate.edit.documentation.styles%7Cext.translate.tag.languages%7Cext.uls.pt%7Cext.visualEditor.desktopArticleTarget.noscript%7Cext.wikimediamessages.styles%7Cskins.vector.icons%2Cstyles%7Cskins.vector.search.codex.styles%7Cwikibase.client.init&only=styles&skin=vector-2022"> <script async="" src="/w/load.php?lang=en&modules=startup&only=scripts&raw=1&skin=vector-2022"></script> <meta name="ResourceLoaderDynamicStyles" content=""> <link rel="stylesheet" href="/w/load.php?lang=en&modules=site.styles&only=styles&skin=vector-2022"> <meta name="generator" content="MediaWiki 1.44.0-wmf.4"> <meta name="referrer" content="origin"> <meta name="referrer" content="origin-when-cross-origin"> <meta name="robots" content="max-image-preview:standard"> <meta name="format-detection" content="telephone=no"> <meta name="viewport" content="width=1120"> <meta property="og:site_name" content="MediaWiki"> <meta property="og:title" content="Manual:Upgrading - MediaWiki"> <meta property="og:type" content="website"> <link rel="preconnect" href="//upload.wikimedia.org"> <link rel="alternate" media="only screen and (max-width: 640px)" href="//m.mediawiki.org/wiki/Manual:Upgrading"> <link rel="apple-touch-icon" href="/static/apple-touch/mediawiki.png"> <link rel="icon" href="/static/favicon/mediawiki.ico"> <link rel="search" type="application/opensearchdescription+xml" href="/w/rest.php/v1/search" title="MediaWiki (en)"> <link rel="EditURI" type="application/rsd+xml" href="//www.mediawiki.org/w/api.php?action=rsd"> <link rel="canonical" href="https://www.mediawiki.org/wiki/Manual:Upgrading"> <link rel="license" href="https://creativecommons.org/licenses/by-sa/4.0/"> <link rel="alternate" type="application/atom+xml" title="MediaWiki Atom feed" href="/w/index.php?title=Special:RecentChanges&feed=atom"> <link rel="dns-prefetch" href="//meta.wikimedia.org" /> <link rel="dns-prefetch" href="//login.wikimedia.org"> </head> <body class="skin--responsive skin-vector skin-vector-search-vue mediawiki ltr sitedir-ltr mw-hide-empty-elt ns-100 ns-subject page-Manual_Upgrading rootpage-Manual_Upgrading skin-vector-2022 action-view"><a class="mw-jump-link" href="#bodyContent">Jump to content</a> <div class="vector-header-container"> <header class="vector-header mw-header"> <div class="vector-header-start"> <nav class="vector-main-menu-landmark" aria-label="Site"> <div id="vector-main-menu-dropdown" class="vector-dropdown vector-main-menu-dropdown vector-button-flush-left vector-button-flush-right" > <input type="checkbox" id="vector-main-menu-dropdown-checkbox" role="button" aria-haspopup="true" data-event-name="ui.dropdown-vector-main-menu-dropdown" class="vector-dropdown-checkbox " aria-label="Main menu" > <label id="vector-main-menu-dropdown-label" for="vector-main-menu-dropdown-checkbox" class="vector-dropdown-label cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet cdx-button--icon-only " aria-hidden="true" ><span class="vector-icon mw-ui-icon-menu mw-ui-icon-wikimedia-menu"></span> <span class="vector-dropdown-label-text">Main menu</span> </label> <div class="vector-dropdown-content"> <div id="vector-main-menu-unpinned-container" class="vector-unpinned-container"> <div id="vector-main-menu" class="vector-main-menu vector-pinnable-element"> <div class="vector-pinnable-header vector-main-menu-pinnable-header vector-pinnable-header-unpinned" data-feature-name="main-menu-pinned" data-pinnable-element-id="vector-main-menu" data-pinned-container-id="vector-main-menu-pinned-container" data-unpinned-container-id="vector-main-menu-unpinned-container" > <div class="vector-pinnable-header-label">Main menu</div> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-pin-button" data-event-name="pinnable-header.vector-main-menu.pin">move to sidebar</button> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-unpin-button" data-event-name="pinnable-header.vector-main-menu.unpin">hide</button> </div> <div id="p-navigation" class="vector-menu mw-portlet mw-portlet-navigation" > <div class="vector-menu-heading"> Navigation </div> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="n-mainpage-description" class="mw-list-item"><a href="/wiki/MediaWiki" title="Visit the main page [z]" accesskey="z"><span>Main page</span></a></li><li id="n-mw-download" class="mw-list-item"><a href="/wiki/Download"><span>Get MediaWiki</span></a></li><li id="n-mw-extensions" class="mw-list-item"><a href="/wiki/Special:MyLanguage/Category:Extensions"><span>Get extensions</span></a></li><li id="n-blog-text" class="mw-list-item"><a href="https://techblog.wikimedia.org/"><span>Tech blog</span></a></li><li id="n-mw-contribute" class="mw-list-item"><a href="/wiki/Special:MyLanguage/How_to_contribute"><span>Contribute</span></a></li> </ul> </div> </div> <div id="p-support" class="vector-menu mw-portlet mw-portlet-support" > <div class="vector-menu-heading"> Support </div> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="n-help" class="mw-list-item"><a href="/wiki/Special:MyLanguage/Help:Contents" title="The place to find out"><span>User help</span></a></li><li id="n-mw-faq" class="mw-list-item"><a href="/wiki/Special:MyLanguage/Manual:FAQ"><span>FAQ</span></a></li><li id="n-mw-manual" class="mw-list-item"><a href="/wiki/Special:MyLanguage/Manual:Contents"><span>Technical manual</span></a></li><li id="n-mw-supportdesk" class="mw-list-item"><a href="/wiki/Project:Support_desk"><span>Support desk</span></a></li><li id="n-mw-communication" class="mw-list-item"><a href="/wiki/Special:MyLanguage/Communication"><span>Communication</span></a></li> </ul> </div> </div> <div id="p-development" class="vector-menu mw-portlet mw-portlet-development" > <div class="vector-menu-heading"> Development </div> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="n-mw-developerportal" class="mw-list-item"><a href="https://developer.wikimedia.org/"><span>Developer portal</span></a></li><li id="n-svn-statistics" class="mw-list-item"><a href="/wiki/Development_statistics"><span>Code statistics</span></a></li> </ul> </div> </div> <div id="p-mediawiki.org" class="vector-menu mw-portlet mw-portlet-mediawiki_org" > <div class="vector-menu-heading"> mediawiki.org </div> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="n-portal" class="mw-list-item"><a href="/wiki/Project:Help" title="About the project, what you can do, where to find things"><span>Community portal</span></a></li><li id="n-recentchanges" class="mw-list-item"><a href="/wiki/Special:RecentChanges" title="A list of recent changes in the wiki [r]" accesskey="r"><span>Recent changes</span></a></li><li id="n-mw-translate" class="mw-list-item"><a href="/wiki/Special:LanguageStats"><span>Translate content</span></a></li><li id="n-randompage" class="mw-list-item"><a href="/wiki/Special:Random" title="Load a random page [x]" accesskey="x"><span>Random page</span></a></li><li id="n-mw-discussion" class="mw-list-item"><a href="/wiki/Project:Village_Pump"><span>Village pump</span></a></li><li id="n-Sandboxlink-portlet-label" class="mw-list-item"><a href="/wiki/Project:Sandbox"><span>Sandbox</span></a></li> </ul> </div> </div> <div id="p-lang" class="vector-menu mw-portlet mw-portlet-lang" > <div class="vector-menu-heading"> In other languages </div> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> </ul> <div class="after-portlet after-portlet-lang"><span class="wb-langlinks-add wb-langlinks-link"><a href="https://www.wikidata.org/wiki/Special:EntityPage/Q22811258#sitelinks-wikipedia" title="Add interlanguage links" class="wbc-editpage">Add links</a></span></div> </div> </div> </div> </div> </div> </div> </nav> <a href="/wiki/MediaWiki" class="mw-logo"> <img class="mw-logo-icon" src="/static/images/icons/mediawikiwiki.svg" alt="" aria-hidden="true" height="50" width="50"> <span class="mw-logo-container skin-invert"> <img class="mw-logo-wordmark" alt="MediaWiki" src="/static/images/mobile/copyright/mediawikiwiki-wordmark.svg" style="width: 7.5em; height: 1.125em;"> </span> </a> </div> <div class="vector-header-end"> <div id="p-search" role="search" class="vector-search-box-vue vector-search-box-collapses vector-search-box-show-thumbnail vector-search-box-auto-expand-width vector-search-box"> <a href="/wiki/Special:Search" class="cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet cdx-button--icon-only search-toggle" title="Search MediaWiki [f]" accesskey="f"><span class="vector-icon mw-ui-icon-search mw-ui-icon-wikimedia-search"></span> <span>Search</span> </a> <div class="vector-typeahead-search-container"> <div class="cdx-typeahead-search cdx-typeahead-search--show-thumbnail cdx-typeahead-search--auto-expand-width"> <form action="/w/index.php" id="searchform" class="cdx-search-input cdx-search-input--has-end-button"> <div id="simpleSearch" class="cdx-search-input__input-wrapper" data-search-loc="header-moved"> <div class="cdx-text-input cdx-text-input--has-start-icon"> <input class="cdx-text-input__input" type="search" name="search" placeholder="Search MediaWiki" aria-label="Search MediaWiki" autocapitalize="sentences" title="Search MediaWiki [f]" accesskey="f" id="searchInput" > <span class="cdx-text-input__icon cdx-text-input__start-icon"></span> </div> <input type="hidden" name="title" value="Special:Search"> </div> <button class="cdx-button cdx-search-input__end-button">Search</button> </form> </div> </div> </div> <nav class="vector-user-links vector-user-links-wide" aria-label="Personal tools"> <div class="vector-user-links-main"> <div id="p-vector-user-menu-preferences" class="vector-menu mw-portlet" > <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="ca-uls" class="mw-list-item active user-links-collapsible-item"><a data-mw="interface" href="#" class="uls-trigger cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet"><span class="vector-icon mw-ui-icon-wikimedia-language mw-ui-icon-wikimedia-wikimedia-language"></span> <span>English</span></a> </li> </ul> </div> </div> <div id="p-vector-user-menu-userpage" class="vector-menu mw-portlet emptyPortlet" > <div class="vector-menu-content"> <ul class="vector-menu-content-list"> </ul> </div> </div> <nav class="vector-appearance-landmark" aria-label="Appearance"> <div id="vector-appearance-dropdown" class="vector-dropdown " title="Change the appearance of the page's font size, width, and color" > <input type="checkbox" id="vector-appearance-dropdown-checkbox" role="button" aria-haspopup="true" data-event-name="ui.dropdown-vector-appearance-dropdown" class="vector-dropdown-checkbox " aria-label="Appearance" > <label id="vector-appearance-dropdown-label" for="vector-appearance-dropdown-checkbox" class="vector-dropdown-label cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet cdx-button--icon-only " aria-hidden="true" ><span class="vector-icon mw-ui-icon-appearance mw-ui-icon-wikimedia-appearance"></span> <span class="vector-dropdown-label-text">Appearance</span> </label> <div class="vector-dropdown-content"> <div id="vector-appearance-unpinned-container" class="vector-unpinned-container"> </div> </div> </div> </nav> <div id="p-vector-user-menu-notifications" class="vector-menu mw-portlet emptyPortlet" > <div class="vector-menu-content"> <ul class="vector-menu-content-list"> </ul> </div> </div> <div id="p-vector-user-menu-overflow" class="vector-menu mw-portlet" > <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="pt-sitesupport-2" class="user-links-collapsible-item mw-list-item user-links-collapsible-item"><a data-mw="interface" href="https://donate.wikimedia.org/?utm_source=donate&utm_medium=sidebar&utm_campaign=spontaneous&uselang=en" class=""><span>Donate</span></a> </li> <li id="pt-createaccount-2" class="user-links-collapsible-item mw-list-item user-links-collapsible-item"><a data-mw="interface" href="/w/index.php?title=Special:CreateAccount&returnto=Manual%3AUpgrading" title="You are encouraged to create an account and log in; however, it is not mandatory" class=""><span>Create account</span></a> </li> <li id="pt-login-2" class="user-links-collapsible-item mw-list-item user-links-collapsible-item"><a data-mw="interface" href="/w/index.php?title=Special:UserLogin&returnto=Manual%3AUpgrading" title="You are encouraged to log in; however, it is not mandatory [o]" accesskey="o" class=""><span>Log in</span></a> </li> </ul> </div> </div> </div> <div id="vector-user-links-dropdown" class="vector-dropdown vector-user-menu vector-button-flush-right vector-user-menu-logged-out" title="More options" > <input type="checkbox" id="vector-user-links-dropdown-checkbox" role="button" aria-haspopup="true" data-event-name="ui.dropdown-vector-user-links-dropdown" class="vector-dropdown-checkbox " aria-label="Personal tools" > <label id="vector-user-links-dropdown-label" for="vector-user-links-dropdown-checkbox" class="vector-dropdown-label cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet cdx-button--icon-only " aria-hidden="true" ><span class="vector-icon mw-ui-icon-ellipsis mw-ui-icon-wikimedia-ellipsis"></span> <span class="vector-dropdown-label-text">Personal tools</span> </label> <div class="vector-dropdown-content"> <div id="p-personal" class="vector-menu mw-portlet mw-portlet-personal user-links-collapsible-item" title="User menu" > <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="pt-sitesupport" class="user-links-collapsible-item mw-list-item"><a href="https://donate.wikimedia.org/?utm_source=donate&utm_medium=sidebar&utm_campaign=spontaneous&uselang=en"><span>Donate</span></a></li><li id="pt-createaccount" class="user-links-collapsible-item mw-list-item"><a href="/w/index.php?title=Special:CreateAccount&returnto=Manual%3AUpgrading" title="You are encouraged to create an account and log in; however, it is not mandatory"><span class="vector-icon mw-ui-icon-userAdd mw-ui-icon-wikimedia-userAdd"></span> <span>Create account</span></a></li><li id="pt-login" class="user-links-collapsible-item mw-list-item"><a href="/w/index.php?title=Special:UserLogin&returnto=Manual%3AUpgrading" title="You are encouraged to log in; however, it is not mandatory [o]" accesskey="o"><span class="vector-icon mw-ui-icon-logIn mw-ui-icon-wikimedia-logIn"></span> <span>Log in</span></a></li> </ul> </div> </div> <div id="p-user-menu-anon-editor" class="vector-menu mw-portlet mw-portlet-user-menu-anon-editor" > <div class="vector-menu-heading"> Pages for logged out editors <a href="/wiki/Help:Introduction" aria-label="Learn more about editing"><span>learn more</span></a> </div> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="pt-anoncontribs" class="mw-list-item"><a href="/wiki/Special:MyContributions" title="A list of edits made from this IP address [y]" accesskey="y"><span>Contributions</span></a></li><li id="pt-anontalk" class="mw-list-item"><a href="/wiki/Special:MyTalk" title="Discussion about edits from this IP address [n]" accesskey="n"><span>Talk</span></a></li> </ul> </div> </div> </div> </div> </nav> </div> </header> </div> <div class="mw-page-container"> <div class="mw-page-container-inner"> <div class="vector-sitenotice-container"> <div id="siteNotice"><!-- CentralNotice --></div> </div> <div class="vector-column-start"> <div class="vector-main-menu-container"> <div id="mw-navigation"> <nav id="mw-panel" class="vector-main-menu-landmark" aria-label="Site"> <div id="vector-main-menu-pinned-container" class="vector-pinned-container"> </div> </nav> </div> </div> <div class="vector-sticky-pinned-container"> <nav id="mw-panel-toc" aria-label="Contents" data-event-name="ui.sidebar-toc" class="mw-table-of-contents-container vector-toc-landmark"> <div id="vector-toc-pinned-container" class="vector-pinned-container"> <div id="vector-toc" class="vector-toc vector-pinnable-element"> <div class="vector-pinnable-header vector-toc-pinnable-header vector-pinnable-header-pinned" data-feature-name="toc-pinned" data-pinnable-element-id="vector-toc" > <h2 class="vector-pinnable-header-label">Contents</h2> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-pin-button" data-event-name="pinnable-header.vector-toc.pin">move to sidebar</button> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-unpin-button" data-event-name="pinnable-header.vector-toc.unpin">hide</button> </div> <ul class="vector-toc-contents" id="mw-panel-toc-list"> <li id="toc-mw-content-text" class="vector-toc-list-item vector-toc-level-1"> <a href="#" class="vector-toc-link"> <div class="vector-toc-text">Beginning</div> </a> </li> <li id="toc-Basic_overview" class="vector-toc-list-item vector-toc-level-1"> <a class="vector-toc-link" href="#Basic_overview"> <div class="vector-toc-text"> <span class="vector-toc-numb">1</span> <span>Basic overview</span> </div> </a> <button aria-controls="toc-Basic_overview-sublist" class="cdx-button cdx-button--weight-quiet cdx-button--icon-only vector-toc-toggle"> <span class="vector-icon mw-ui-icon-wikimedia-expand"></span> <span>Toggle Basic overview subsection</span> </button> <ul id="toc-Basic_overview-sublist" class="vector-toc-list"> <li id="toc-File_transfer" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#File_transfer"> <div class="vector-toc-text"> <span class="vector-toc-numb">1.1</span> <span>File transfer</span> </div> </a> <ul id="toc-File_transfer-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Preliminary" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#Preliminary"> <div class="vector-toc-text"> <span class="vector-toc-numb">1.2</span> <span>Preliminary</span> </div> </a> <ul id="toc-Preliminary-sublist" class="vector-toc-list"> </ul> </li> </ul> </li> <li id="toc-Check_requirements" class="vector-toc-list-item vector-toc-level-1"> <a class="vector-toc-link" href="#Check_requirements"> <div class="vector-toc-text"> <span class="vector-toc-numb">2</span> <span>Check requirements</span> </div> </a> <ul id="toc-Check_requirements-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Read_the_release_notes" class="vector-toc-list-item vector-toc-level-1"> <a class="vector-toc-link" href="#Read_the_release_notes"> <div class="vector-toc-text"> <span class="vector-toc-numb">3</span> <span>Read the release notes</span> </div> </a> <ul id="toc-Read_the_release_notes-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Clear_pending_jobs" class="vector-toc-list-item vector-toc-level-1"> <a class="vector-toc-link" href="#Clear_pending_jobs"> <div class="vector-toc-text"> <span class="vector-toc-numb">4</span> <span>Clear pending jobs</span> </div> </a> <ul id="toc-Clear_pending_jobs-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Back_up_existing_files_and_the_database" class="vector-toc-list-item vector-toc-level-1"> <a class="vector-toc-link" href="#Back_up_existing_files_and_the_database"> <div class="vector-toc-text"> <span class="vector-toc-numb">5</span> <span>Back up existing files and the database</span> </div> </a> <ul id="toc-Back_up_existing_files_and_the_database-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Unpack_the_new_files" class="vector-toc-list-item vector-toc-level-1"> <a class="vector-toc-link" href="#Unpack_the_new_files"> <div class="vector-toc-text"> <span class="vector-toc-numb">6</span> <span>Unpack the new files</span> </div> </a> <button aria-controls="toc-Unpack_the_new_files-sublist" class="cdx-button cdx-button--weight-quiet cdx-button--icon-only vector-toc-toggle"> <span class="vector-icon mw-ui-icon-wikimedia-expand"></span> <span>Toggle Unpack the new files subsection</span> </button> <ul id="toc-Unpack_the_new_files-sublist" class="vector-toc-list"> <li id="toc-Using_a_tarball_package" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#Using_a_tarball_package"> <div class="vector-toc-text"> <span class="vector-toc-numb">6.1</span> <span>Using a tarball package</span> </div> </a> <ul id="toc-Using_a_tarball_package-sublist" class="vector-toc-list"> <li id="toc-FTP_or_graphical" class="vector-toc-list-item vector-toc-level-3"> <a class="vector-toc-link" href="#FTP_or_graphical"> <div class="vector-toc-text"> <span class="vector-toc-numb">6.1.1</span> <span>FTP or graphical</span> </div> </a> <ul id="toc-FTP_or_graphical-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-cPanel_File_Manager" class="vector-toc-list-item vector-toc-level-3"> <a class="vector-toc-link" href="#cPanel_File_Manager"> <div class="vector-toc-text"> <span class="vector-toc-numb">6.1.2</span> <span>cPanel File Manager</span> </div> </a> <ul id="toc-cPanel_File_Manager-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Command_line" class="vector-toc-list-item vector-toc-level-3"> <a class="vector-toc-link" href="#Command_line"> <div class="vector-toc-text"> <span class="vector-toc-numb">6.1.3</span> <span>Command line</span> </div> </a> <ul id="toc-Command_line-sublist" class="vector-toc-list"> </ul> </li> </ul> </li> <li id="toc-Other_files" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#Other_files"> <div class="vector-toc-text"> <span class="vector-toc-numb">6.2</span> <span>Other files</span> </div> </a> <ul id="toc-Other_files-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Using_Git" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#Using_Git"> <div class="vector-toc-text"> <span class="vector-toc-numb">6.3</span> <span>Using Git</span> </div> </a> <ul id="toc-Using_Git-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Using_patch" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#Using_patch"> <div class="vector-toc-text"> <span class="vector-toc-numb">6.4</span> <span>Using patch</span> </div> </a> <ul id="toc-Using_patch-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Files_remaining_that_may_cause_errors" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#Files_remaining_that_may_cause_errors"> <div class="vector-toc-text"> <span class="vector-toc-numb">6.5</span> <span>Files remaining that may cause errors</span> </div> </a> <ul id="toc-Files_remaining_that_may_cause_errors-sublist" class="vector-toc-list"> </ul> </li> </ul> </li> <li id="toc-Upgrade_extensions" class="vector-toc-list-item vector-toc-level-1"> <a class="vector-toc-link" href="#Upgrade_extensions"> <div class="vector-toc-text"> <span class="vector-toc-numb">7</span> <span>Upgrade extensions</span> </div> </a> <ul id="toc-Upgrade_extensions-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Adapt_your_LocalSettings.php" class="vector-toc-list-item vector-toc-level-1"> <a class="vector-toc-link" href="#Adapt_your_LocalSettings.php"> <div class="vector-toc-text"> <span class="vector-toc-numb">8</span> <span>Adapt your LocalSettings.php</span> </div> </a> <button aria-controls="toc-Adapt_your_LocalSettings.php-sublist" class="cdx-button cdx-button--weight-quiet cdx-button--icon-only vector-toc-toggle"> <span class="vector-icon mw-ui-icon-wikimedia-expand"></span> <span>Toggle Adapt your LocalSettings.php subsection</span> </button> <ul id="toc-Adapt_your_LocalSettings.php-sublist" class="vector-toc-list"> <li id="toc-Skin_registration" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#Skin_registration"> <div class="vector-toc-text"> <span class="vector-toc-numb">8.1</span> <span>Skin registration</span> </div> </a> <ul id="toc-Skin_registration-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Extension_registration" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#Extension_registration"> <div class="vector-toc-text"> <span class="vector-toc-numb">8.2</span> <span>Extension registration</span> </div> </a> <ul id="toc-Extension_registration-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Remove_DefaultSettings.php_line_(if_necessary)" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#Remove_DefaultSettings.php_line_(if_necessary)"> <div class="vector-toc-text"> <span class="vector-toc-numb">8.3</span> <span>Remove DefaultSettings.php line (if necessary)</span> </div> </a> <ul id="toc-Remove_DefaultSettings.php_line_(if_necessary)-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Remove_RenameUser_from_LocalSettings.php" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#Remove_RenameUser_from_LocalSettings.php"> <div class="vector-toc-text"> <span class="vector-toc-numb">8.4</span> <span>Remove RenameUser from LocalSettings.php</span> </div> </a> <ul id="toc-Remove_RenameUser_from_LocalSettings.php-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Other_variables" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#Other_variables"> <div class="vector-toc-text"> <span class="vector-toc-numb">8.5</span> <span>Other variables</span> </div> </a> <ul id="toc-Other_variables-sublist" class="vector-toc-list"> </ul> </li> </ul> </li> <li id="toc-Run_the_update_script" class="vector-toc-list-item vector-toc-level-1"> <a class="vector-toc-link" href="#Run_the_update_script"> <div class="vector-toc-text"> <span class="vector-toc-numb">9</span> <span>Run the update script</span> </div> </a> <button aria-controls="toc-Run_the_update_script-sublist" class="cdx-button cdx-button--weight-quiet cdx-button--icon-only vector-toc-toggle"> <span class="vector-icon mw-ui-icon-wikimedia-expand"></span> <span>Toggle Run the update script subsection</span> </button> <ul id="toc-Run_the_update_script-sublist" class="vector-toc-list"> <li id="toc-Command_line_2" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#Command_line_2"> <div class="vector-toc-text"> <span class="vector-toc-numb">9.1</span> <span>Command line</span> </div> </a> <ul id="toc-Command_line_2-sublist" class="vector-toc-list"> <li id="toc-What_to_do_if_it_says_"MediaWiki_requires_PHP_x.y.z_or_higher;_you_are_using_PHP_x.w.v"" class="vector-toc-list-item vector-toc-level-3"> <a class="vector-toc-link" href="#What_to_do_if_it_says_"MediaWiki_requires_PHP_x.y.z_or_higher;_you_are_using_PHP_x.w.v""> <div class="vector-toc-text"> <span class="vector-toc-numb">9.1.1</span> <span>What to do if it says "MediaWiki requires PHP x.y.z or higher; you are using PHP x.w.v"</span> </div> </a> <ul id="toc-What_to_do_if_it_says_"MediaWiki_requires_PHP_x.y.z_or_higher;_you_are_using_PHP_x.w.v"-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-What_to_do_if_php_update.php_fails_to_do_anything,_resulting_in_a_quick_pause_and_then_return_to_command_prompt" class="vector-toc-list-item vector-toc-level-3"> <a class="vector-toc-link" href="#What_to_do_if_php_update.php_fails_to_do_anything,_resulting_in_a_quick_pause_and_then_return_to_command_prompt"> <div class="vector-toc-text"> <span class="vector-toc-numb">9.1.2</span> <span>What to do if php update.php fails to do anything, resulting in a quick pause and then return to command prompt</span> </div> </a> <ul id="toc-What_to_do_if_php_update.php_fails_to_do_anything,_resulting_in_a_quick_pause_and_then_return_to_command_prompt-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-What_to_do_in_case_of_"ALTER_command_denied_to_user"_error_(or_similar)" class="vector-toc-list-item vector-toc-level-3"> <a class="vector-toc-link" href="#What_to_do_in_case_of_"ALTER_command_denied_to_user"_error_(or_similar)"> <div class="vector-toc-text"> <span class="vector-toc-numb">9.1.3</span> <span>What to do in case of "ALTER command denied to user" error (or similar)</span> </div> </a> <ul id="toc-What_to_do_in_case_of_"ALTER_command_denied_to_user"_error_(or_similar)-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-What_to_do_in_case_of_'register_argc_argv_is_set_to_false'_error" class="vector-toc-list-item vector-toc-level-3"> <a class="vector-toc-link" href="#What_to_do_in_case_of_'register_argc_argv_is_set_to_false'_error"> <div class="vector-toc-text"> <span class="vector-toc-numb">9.1.4</span> <span>What to do in case of 'register_argc_argv is set to false' error</span> </div> </a> <ul id="toc-What_to_do_in_case_of_'register_argc_argv_is_set_to_false'_error-sublist" class="vector-toc-list"> </ul> </li> </ul> </li> <li id="toc-Web_browser" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#Web_browser"> <div class="vector-toc-text"> <span class="vector-toc-numb">9.2</span> <span>Web browser</span> </div> </a> <ul id="toc-Web_browser-sublist" class="vector-toc-list"> </ul> </li> </ul> </li> <li id="toc-Test_the_update" class="vector-toc-list-item vector-toc-level-1"> <a class="vector-toc-link" href="#Test_the_update"> <div class="vector-toc-text"> <span class="vector-toc-numb">10</span> <span>Test the update</span> </div> </a> <ul id="toc-Test_the_update-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Remove_leftovers_from_old_installations" class="vector-toc-list-item vector-toc-level-1"> <a class="vector-toc-link" href="#Remove_leftovers_from_old_installations"> <div class="vector-toc-text"> <span class="vector-toc-numb">11</span> <span>Remove leftovers from old installations</span> </div> </a> <ul id="toc-Remove_leftovers_from_old_installations-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Frequently_asked_questions" class="vector-toc-list-item vector-toc-level-1"> <a class="vector-toc-link" href="#Frequently_asked_questions"> <div class="vector-toc-text"> <span class="vector-toc-numb">12</span> <span>Frequently asked questions</span> </div> </a> <button aria-controls="toc-Frequently_asked_questions-sublist" class="cdx-button cdx-button--weight-quiet cdx-button--icon-only vector-toc-toggle"> <span class="vector-icon mw-ui-icon-wikimedia-expand"></span> <span>Toggle Frequently asked questions subsection</span> </button> <ul id="toc-Frequently_asked_questions-sublist" class="vector-toc-list"> <li id="toc-How_hard_is_it_to_upgrade?" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#How_hard_is_it_to_upgrade?"> <div class="vector-toc-text"> <span class="vector-toc-numb">12.1</span> <span>How hard is it to upgrade?</span> </div> </a> <ul id="toc-How_hard_is_it_to_upgrade?-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-How_do_I_upgrade_from_a_really_old_version?_In_one_step,_or_in_several_steps?" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#How_do_I_upgrade_from_a_really_old_version?_In_one_step,_or_in_several_steps?"> <div class="vector-toc-text"> <span class="vector-toc-numb">12.2</span> <span>How do I upgrade from a really old version? In one step, or in several steps?</span> </div> </a> <ul id="toc-How_do_I_upgrade_from_a_really_old_version?_In_one_step,_or_in_several_steps?-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Should_I_back_up_first?" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#Should_I_back_up_first?"> <div class="vector-toc-text"> <span class="vector-toc-numb">12.3</span> <span>Should I back up first?</span> </div> </a> <ul id="toc-Should_I_back_up_first?-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Can_I_keep_my_LocalSettings.php?" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#Can_I_keep_my_LocalSettings.php?"> <div class="vector-toc-text"> <span class="vector-toc-numb">12.4</span> <span>Can I keep my LocalSettings.php?</span> </div> </a> <ul id="toc-Can_I_keep_my_LocalSettings.php?-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Can_my_wiki_stay_online_while_it_is_upgrading?" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#Can_my_wiki_stay_online_while_it_is_upgrading?"> <div class="vector-toc-text"> <span class="vector-toc-numb">12.5</span> <span>Can my wiki stay online while it is upgrading?</span> </div> </a> <ul id="toc-Can_my_wiki_stay_online_while_it_is_upgrading?-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Why_upgrade?" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#Why_upgrade?"> <div class="vector-toc-text"> <span class="vector-toc-numb">12.6</span> <span>Why upgrade?</span> </div> </a> <ul id="toc-Why_upgrade?-sublist" class="vector-toc-list"> </ul> </li> </ul> </li> <li id="toc-See_also" class="vector-toc-list-item vector-toc-level-1"> <a class="vector-toc-link" href="#See_also"> <div class="vector-toc-text"> <span class="vector-toc-numb">13</span> <span>See also</span> </div> </a> <ul id="toc-See_also-sublist" class="vector-toc-list"> </ul> </li> </ul> </div> </div> </nav> </div> </div> <div class="mw-content-container"> <main id="content" class="mw-body"> <header class="mw-body-header vector-page-titlebar"> <nav aria-label="Contents" class="vector-toc-landmark"> <div id="vector-page-titlebar-toc" class="vector-dropdown vector-page-titlebar-toc vector-button-flush-left" > <input type="checkbox" id="vector-page-titlebar-toc-checkbox" role="button" aria-haspopup="true" data-event-name="ui.dropdown-vector-page-titlebar-toc" class="vector-dropdown-checkbox " aria-label="Toggle the table of contents" > <label id="vector-page-titlebar-toc-label" for="vector-page-titlebar-toc-checkbox" class="vector-dropdown-label cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet cdx-button--icon-only " aria-hidden="true" ><span class="vector-icon mw-ui-icon-listBullet mw-ui-icon-wikimedia-listBullet"></span> <span class="vector-dropdown-label-text">Toggle the table of contents</span> </label> <div class="vector-dropdown-content"> <div id="vector-page-titlebar-toc-unpinned-container" class="vector-unpinned-container"> </div> </div> </div> </nav> <h1 id="firstHeading" class="firstHeading mw-first-heading"><span class="mw-page-title-namespace">Manual</span><span class="mw-page-title-separator">:</span><span class="mw-page-title-main">Upgrading</span></h1> <div class="mw-indicators"> </div> </header> <div class="vector-page-toolbar"> <div class="vector-page-toolbar-container"> <div id="left-navigation"> <nav aria-label="Namespaces"> <div id="p-associated-pages" class="vector-menu vector-menu-tabs mw-portlet mw-portlet-associated-pages" > <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="ca-nstab-manual" class="selected vector-tab-noicon mw-list-item"><a href="/wiki/Manual:Upgrading" title="View the subject page [c]" accesskey="c"><span>Manual</span></a></li><li id="ca-talk" class="vector-tab-noicon mw-list-item"><a href="/wiki/Manual_talk:Upgrading" rel="discussion" title="Discussion about the content page [t]" accesskey="t"><span>Discussion</span></a></li> </ul> </div> </div> <div id="vector-variants-dropdown" class="vector-dropdown emptyPortlet" > <input type="checkbox" id="vector-variants-dropdown-checkbox" role="button" aria-haspopup="true" data-event-name="ui.dropdown-vector-variants-dropdown" class="vector-dropdown-checkbox " aria-label="Change language variant" > <label id="vector-variants-dropdown-label" for="vector-variants-dropdown-checkbox" class="vector-dropdown-label cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet" aria-hidden="true" ><span class="vector-dropdown-label-text">English</span> </label> <div class="vector-dropdown-content"> <div id="p-variants" class="vector-menu mw-portlet mw-portlet-variants emptyPortlet" > <div class="vector-menu-content"> <ul class="vector-menu-content-list"> </ul> </div> </div> </div> </div> </nav> </div> <div id="right-navigation" class="vector-collapsible"> <nav aria-label="Views"> <div id="p-views" class="vector-menu vector-menu-tabs mw-portlet mw-portlet-views" > <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="ca-view" class="selected vector-tab-noicon mw-list-item"><a href="/wiki/Manual:Upgrading"><span>Read</span></a></li><li id="ca-viewsource" class="vector-tab-noicon mw-list-item"><a href="/w/index.php?title=Manual:Upgrading&action=edit" title="This page is protected. You can view its source [e]" accesskey="e"><span>View source</span></a></li><li id="ca-history" class="vector-tab-noicon mw-list-item"><a href="/w/index.php?title=Manual:Upgrading&action=history" title="Past revisions of this page [h]" accesskey="h"><span>View history</span></a></li> </ul> </div> </div> </nav> <nav class="vector-page-tools-landmark" aria-label="Page tools"> <div id="vector-page-tools-dropdown" class="vector-dropdown vector-page-tools-dropdown" > <input type="checkbox" id="vector-page-tools-dropdown-checkbox" role="button" aria-haspopup="true" data-event-name="ui.dropdown-vector-page-tools-dropdown" class="vector-dropdown-checkbox " aria-label="Tools" > <label id="vector-page-tools-dropdown-label" for="vector-page-tools-dropdown-checkbox" class="vector-dropdown-label cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet" aria-hidden="true" ><span class="vector-dropdown-label-text">Tools</span> </label> <div class="vector-dropdown-content"> <div id="vector-page-tools-unpinned-container" class="vector-unpinned-container"> <div id="vector-page-tools" class="vector-page-tools vector-pinnable-element"> <div class="vector-pinnable-header vector-page-tools-pinnable-header vector-pinnable-header-unpinned" data-feature-name="page-tools-pinned" data-pinnable-element-id="vector-page-tools" data-pinned-container-id="vector-page-tools-pinned-container" data-unpinned-container-id="vector-page-tools-unpinned-container" > <div class="vector-pinnable-header-label">Tools</div> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-pin-button" data-event-name="pinnable-header.vector-page-tools.pin">move to sidebar</button> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-unpin-button" data-event-name="pinnable-header.vector-page-tools.unpin">hide</button> </div> <div id="p-cactions" class="vector-menu mw-portlet mw-portlet-cactions emptyPortlet vector-has-collapsible-items" title="More options" > <div class="vector-menu-heading"> Actions </div> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="ca-more-view" class="selected vector-more-collapsible-item mw-list-item"><a href="/wiki/Manual:Upgrading"><span>Read</span></a></li><li id="ca-more-viewsource" class="vector-more-collapsible-item mw-list-item"><a href="/w/index.php?title=Manual:Upgrading&action=edit"><span>View source</span></a></li><li id="ca-more-history" class="vector-more-collapsible-item mw-list-item"><a href="/w/index.php?title=Manual:Upgrading&action=history"><span>View history</span></a></li> </ul> </div> </div> <div id="p-tb" class="vector-menu mw-portlet mw-portlet-tb" > <div class="vector-menu-heading"> General </div> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="t-whatlinkshere" class="mw-list-item"><a href="/wiki/Special:WhatLinksHere/Manual:Upgrading" title="A list of all wiki pages that link here [j]" accesskey="j"><span>What links here</span></a></li><li id="t-recentchangeslinked" class="mw-list-item"><a href="/wiki/Special:RecentChangesLinked/Manual:Upgrading" rel="nofollow" title="Recent changes in pages linked from this page [k]" accesskey="k"><span>Related changes</span></a></li><li id="t-upload" class="mw-list-item"><a href="//commons.wikimedia.org/wiki/Special:UploadWizard" title="Upload files [u]" accesskey="u"><span>Upload file</span></a></li><li id="t-specialpages" class="mw-list-item"><a href="/wiki/Special:SpecialPages" title="A list of all special pages [q]" accesskey="q"><span>Special pages</span></a></li><li id="t-permalink" class="mw-list-item"><a href="/w/index.php?title=Manual:Upgrading&oldid=6794680" title="Permanent link to this revision of this page"><span>Permanent link</span></a></li><li id="t-info" class="mw-list-item"><a href="/w/index.php?title=Manual:Upgrading&action=info" title="More information about this page"><span>Page information</span></a></li><li id="t-cite" class="mw-list-item"><a href="/w/index.php?title=Special:CiteThisPage&page=Manual%3AUpgrading&id=6794680&wpFormIdentifier=titleform" title="Information on how to cite this page"><span>Cite this page</span></a></li><li id="t-urlshortener" class="mw-list-item"><a href="/w/index.php?title=Special:UrlShortener&url=https%3A%2F%2Fwww.mediawiki.org%2Fwiki%2FManual%3AUpgrading"><span>Get shortened URL</span></a></li><li id="t-urlshortener-qrcode" class="mw-list-item"><a href="/w/index.php?title=Special:QrCode&url=https%3A%2F%2Fwww.mediawiki.org%2Fwiki%2FManual%3AUpgrading"><span>Download QR code</span></a></li> </ul> </div> </div> <div id="p-coll-print_export" class="vector-menu mw-portlet mw-portlet-coll-print_export" > <div class="vector-menu-heading"> Print/export </div> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="coll-create_a_book" class="mw-list-item"><a href="/w/index.php?title=Special:Book&bookcmd=book_creator&referer=Manual%3AUpgrading"><span>Create a book</span></a></li><li id="coll-download-as-rl" class="mw-list-item"><a href="/w/index.php?title=Special:DownloadAsPdf&page=Manual%3AUpgrading&action=show-download-screen"><span>Download as PDF</span></a></li><li id="t-print" class="mw-list-item"><a href="/w/index.php?title=Manual:Upgrading&printable=yes" title="Printable version of this page [p]" accesskey="p"><span>Printable version</span></a></li> </ul> </div> </div> <div id="p-wikibase-otherprojects" class="vector-menu mw-portlet mw-portlet-wikibase-otherprojects" > <div class="vector-menu-heading"> In other projects </div> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="t-wikibase" class="wb-otherproject-link wb-otherproject-wikibase-dataitem mw-list-item"><a href="https://www.wikidata.org/wiki/Special:EntityPage/Q22811258" title="Link to connected data repository item [g]" accesskey="g"><span>Wikidata item</span></a></li> </ul> </div> </div> </div> </div> </div> </div> </nav> </div> </div> </div> <div class="vector-column-end"> <div class="vector-sticky-pinned-container"> <nav class="vector-page-tools-landmark" aria-label="Page tools"> <div id="vector-page-tools-pinned-container" class="vector-pinned-container"> </div> </nav> <nav class="vector-appearance-landmark" aria-label="Appearance"> <div id="vector-appearance-pinned-container" class="vector-pinned-container"> <div id="vector-appearance" class="vector-appearance vector-pinnable-element"> <div class="vector-pinnable-header vector-appearance-pinnable-header vector-pinnable-header-pinned" data-feature-name="appearance-pinned" data-pinnable-element-id="vector-appearance" data-pinned-container-id="vector-appearance-pinned-container" data-unpinned-container-id="vector-appearance-unpinned-container" > <div class="vector-pinnable-header-label">Appearance</div> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-pin-button" data-event-name="pinnable-header.vector-appearance.pin">move to sidebar</button> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-unpin-button" data-event-name="pinnable-header.vector-appearance.unpin">hide</button> </div> </div> </div> </nav> </div> </div> <div id="bodyContent" class="vector-body" aria-labelledby="firstHeading" data-mw-ve-target-container> <div class="vector-body-before-content"> <div id="siteSub" class="noprint">From mediawiki.org</div> </div> <div id="contentSub"><div id="mw-content-subtitle"></div></div> <div id="mw-content-text" class="mw-body-content"><div class="mw-pt-translate-header noprint nomobile" dir="ltr" lang="en"><a href="/w/index.php?title=Special:Translate&group=page-Manual%3AUpgrading&action=page&filter=&action_source=translate_page" title="Special:Translate">Translate this page</a></div><div class="mw-content-ltr mw-parser-output" lang="en" dir="ltr"><div class="mw-pt-languages noprint navigation-not-searchable" lang="en" dir="ltr"><div class="mw-pt-languages-label">Languages:</div><ul class="mw-pt-languages-list"><li><a href="/wiki/Manual:Upgrading/gsw" class="mw-pt-progress mw-pt-progress--low" title="Manual:Upgrading/gsw (1% translated)" lang="gsw" dir="ltr">Alemannisch</a></li> <li><a href="/wiki/Manual:Upgrading/id" class="mw-pt-progress mw-pt-progress--high" title="Manual:Memuktahirkan (80% translated)" lang="id" dir="ltr">Bahasa Indonesia</a></li> <li><a href="/wiki/Manual:Upgrading/ms" class="mw-pt-progress mw-pt-progress--low" title="Manual:Naik taraf (12% translated)" lang="ms" dir="ltr">Bahasa Melayu</a></li> <li><a href="/wiki/Manual:Upgrading/de" class="mw-pt-progress mw-pt-progress--high" title="Handbuch:Aktualisierung (98% translated)" lang="de" dir="ltr">Deutsch</a></li> <li><a href="/wiki/Manual:Upgrading/de-formal" class="mw-pt-progress mw-pt-progress--med" title="Manual:Upgrading/de-formal (35% translated)" lang="de-x-formal" dir="ltr">Deutsch (Sie-Form)</a></li> <li><span class="mw-pt-languages-ui mw-pt-languages-selected mw-pt-progress mw-pt-progress--complete" lang="en" dir="ltr">English</span></li> <li><a href="/wiki/Manual:Upgrading/ha" class="mw-pt-progress mw-pt-progress--low" title="Manual:Upgrading/ha (2% translated)" lang="ha" dir="ltr">Hausa</a></li> <li><a href="/wiki/Manual:Upgrading/nl" class="mw-pt-progress mw-pt-progress--complete" title="Handleiding:Upgraden (100% translated)" lang="nl" dir="ltr">Nederlands</a></li> <li><a href="/wiki/Manual:Upgrading/tr" class="mw-pt-progress mw-pt-progress--high" title="Manual:Yükseltme (83% translated)" lang="tr" dir="ltr">Türkçe</a></li> <li><a href="/wiki/Manual:Upgrading/diq" class="mw-pt-progress mw-pt-progress--low" title="Manuel:Rocane kerdış (3% translated)" lang="diq" dir="ltr">Zazaki</a></li> <li><a href="/wiki/Manual:Upgrading/da" class="mw-pt-progress mw-pt-progress--low" title="Manual:Upgrading/da (11% translated)" lang="da" dir="ltr">dansk</a></li> <li><a href="/wiki/Manual:Upgrading/es" class="mw-pt-progress mw-pt-progress--high" title="Manual: Actualización (86% translated)" lang="es" dir="ltr">español</a></li> <li><a href="/wiki/Manual:Upgrading/fr" class="mw-pt-progress mw-pt-progress--complete" title="Mise à jour (100% translated)" lang="fr" dir="ltr">français</a></li> <li><a href="/wiki/Manual:Upgrading/it" class="mw-pt-progress mw-pt-progress--med" title="Manuale:Aggiornare (36% translated)" lang="it" dir="ltr">italiano</a></li> <li><a href="/wiki/Manual:Upgrading/hu" class="mw-pt-progress mw-pt-progress--med" title="Kézikönyv:Frissítés (60% translated)" lang="hu" dir="ltr">magyar</a></li> <li><a href="/wiki/Manual:Upgrading/pl" class="mw-pt-progress mw-pt-progress--med" title="Podręcznik:Aktualizowanie (19% translated)" lang="pl" dir="ltr">polski</a></li> <li><a href="/wiki/Manual:Upgrading/pt" class="mw-pt-progress mw-pt-progress--med" title="Manual:Atualização (23% translated)" lang="pt" dir="ltr">português</a></li> <li><a href="/wiki/Manual:Upgrading/pt-br" class="mw-pt-progress mw-pt-progress--med" title="Manual:Atualização (21% translated)" lang="pt-BR" dir="ltr">português do Brasil</a></li> <li><a href="/wiki/Manual:Upgrading/ro" class="mw-pt-progress mw-pt-progress--med" title="Manual:Actualizare (29% translated)" lang="ro" dir="ltr">română</a></li> <li><a href="/wiki/Manual:Upgrading/sc" class="mw-pt-progress mw-pt-progress--low" title="Manuale: Agiornamentu (4% translated)" lang="sc" dir="ltr">sardu</a></li> <li><a href="/wiki/Manual:Upgrading/cs" class="mw-pt-progress mw-pt-progress--high" title="Příručka:Aktualizace (98% translated)" lang="cs" dir="ltr">čeština</a></li> <li><a href="/wiki/Manual:Upgrading/el" class="mw-pt-progress mw-pt-progress--med" title="Εγχειρίδιο:Αναβάθμιση (23% translated)" lang="el" dir="ltr">Ελληνικά</a></li> <li><a href="/wiki/Manual:Upgrading/bg" class="mw-pt-progress mw-pt-progress--low" title="Manual:Upgrading/bg (5% translated)" lang="bg" dir="ltr">български</a></li> <li><a href="/wiki/Manual:Upgrading/ru" class="mw-pt-progress mw-pt-progress--complete" title="Руководство:Обновление (100% translated)" lang="ru" dir="ltr">русский</a></li> <li><a href="/wiki/Manual:Upgrading/hy" class="mw-pt-progress mw-pt-progress--med" title="Ձեռնարկ․ Արդիականացում (22% translated)" lang="hy" dir="ltr">հայերեն</a></li> <li><a href="/wiki/Manual:Upgrading/sd" class="mw-pt-progress mw-pt-progress--low" title="مينيوئل:اپ گريڊنگ (6% translated)" lang="sd" dir="rtl">سنڌي</a></li> <li><a href="/wiki/Manual:Upgrading/fa" class="mw-pt-progress mw-pt-progress--med" title="راهنمای:ترمیم (17% translated)" lang="fa" dir="rtl">فارسی</a></li> <li><a href="/wiki/Manual:Upgrading/bn" class="mw-pt-progress mw-pt-progress--med" title="ম্যানুয়াল:আপগ্রেড করা (51% translated)" lang="bn" dir="ltr">বাংলা</a></li> <li><a href="/wiki/Manual:Upgrading/th" class="mw-pt-progress mw-pt-progress--low" title="วิธีใช้:อัพเกรด (9% translated)" lang="th" dir="ltr">ไทย</a></li> <li><a href="/wiki/Manual:Upgrading/zh" class="mw-pt-progress mw-pt-progress--complete" title="Manual: (100% translated)" lang="zh" dir="ltr">中文</a></li> <li><a href="/wiki/Manual:Upgrading/ja" class="mw-pt-progress mw-pt-progress--high" title="Manual:アップグレード (85% translated)" lang="ja" dir="ltr">日本語</a></li> <li><a href="/wiki/Manual:Upgrading/mni" class="mw-pt-progress mw-pt-progress--low" title="ꯈꯨꯠꯄꯥꯏ:ꯋꯥꯡꯈꯠ/ꯍꯦꯟꯒꯠꯍꯟꯂꯤ (5% translated)" lang="mni" dir="ltr">ꯃꯤꯇꯩ ꯂꯣꯟ</a></li> <li><a href="/wiki/Manual:Upgrading/ko" class="mw-pt-progress mw-pt-progress--med" title="메뉴얼:업그레이드 (49% translated)" lang="ko" dir="ltr">한국어</a></li></ul></div> <div style="background: var( --background-color-neutral-subtle, #f8f9fa ); color: var( --color-base, #202122 ); padding: 0; border: 1px solid var( --border-color-base, #a2a9b1 ); width: 17em; clear: right; float: right; margin: 0.5em 0 1em 1em;"> <div style="font-size: 105%; line-height: 120%; padding: 0.4em; background-color: var( --background-color-neutral, #eaecf0 ); color: inherit; border-bottom: 1px solid var( --border-color-base, #a2a9b1 );"> <b>Download a package</b></div> <div style="padding: 0.4em; font-size: 95%;"> <p><b>Stable version</b> (<a href="/wiki/Special:MyLanguage/MediaWiki_1.42" title="Special:MyLanguage/MediaWiki 1.42">MediaWiki 1.42</a><span style="display:none"><a href="/wiki/MediaWiki_1.42" title="MediaWiki 1.42"> </a></span>) </p> <ul><li><a href="https://releases.wikimedia.org/mediawiki/1.42/mediawiki-1.42.3.tar.gz" class="extiw" title="download:mediawiki/1.42/mediawiki-1.42.3.tar.gz">mediawiki-1.42.3.tar.gz</a></li> <li><a href="https://releases.wikimedia.org/mediawiki/1.42/mediawiki-1.42.3.zip" class="extiw" title="download:mediawiki/1.42/mediawiki-1.42.3.zip">mediawiki-1.42.3.zip</a></li> <li>Git branch: REL1_42</li></ul> <p><b>Legacy versions</b> (<a href="/wiki/Special:MyLanguage/MediaWiki_1.41" title="Special:MyLanguage/MediaWiki 1.41">MediaWiki 1.41</a><span style="display:none"><a href="/wiki/MediaWiki_1.41" title="MediaWiki 1.41"> </a></span>) </p> <ul><li><a href="https://releases.wikimedia.org/mediawiki/1.41/mediawiki-1.41.4.tar.gz" class="extiw" title="download:mediawiki/1.41/mediawiki-1.41.4.tar.gz">mediawiki-1.41.4.tar.gz</a></li> <li><a href="https://releases.wikimedia.org/mediawiki/1.41/mediawiki-1.41.4.zip" class="extiw" title="download:mediawiki/1.41/mediawiki-1.41.4.zip">mediawiki-1.41.4.zip</a></li> <li>Git branch: REL1_41</li></ul> <p><b>Alpha version</b> (<a href="/wiki/Special:MyLanguage/MediaWiki_1.44" title="Special:MyLanguage/MediaWiki 1.44">MediaWiki 1.44</a><span style="display:none"><a href="/wiki/MediaWiki_1.44" title="MediaWiki 1.44"> </a></span>) </p> <ul><li><a rel="nofollow" class="external text" href="https://github.com/wikimedia/mediawiki/archive/master.tar.gz">mediawiki-master.tar.gz</a></li></ul> <p><b>More information:</b> </p> <ul><li><a href="/wiki/Special:MyLanguage/Download" title="Special:MyLanguage/Download">Help with downloading</a><span style="display:none"><a href="/wiki/Download" title="Download"> </a></span></li> <li><a href="/wiki/Special:MyLanguage/News" title="Special:MyLanguage/News">News</a><span style="display:none"><a href="/wiki/News" title="News"> </a></span></li> <li><a href="/wiki/Special:MyLanguage/Download_from_Git" title="Special:MyLanguage/Download from Git">Download from Git</a><span style="display:none"><a href="/wiki/Download_from_Git" title="Download from Git"> </a></span></li> <li><b><a href="/wiki/Special:MyLanguage/Manual:Upgrading" title="Special:MyLanguage/Manual:Upgrading">Upgrading to 1.42.3</a></b><span style="display:none"><a class="mw-selflink selflink"> </a></span></li></ul> </div> </div> <meta property="mw:PageProp/toc" /> <div class="mw-heading mw-heading2"><h2 id="Basic_overview">Basic overview</h2></div> <div class="mw-heading mw-heading3"><h3 id="File_transfer">File transfer</h3></div> <p>Choose a method for transferring files: </p> <ul><li><a href="https://en.wikipedia.org/wiki/Wget" class="extiw" title="w:Wget">wget</a></li> <li>Secure copy with <a rel="nofollow" class="external text" href="https://www.chiark.greenend.org.uk/~sgtatham/putty/latest.html">SCP</a> or <a href="https://en.wikipedia.org/wiki/WinSCP" class="extiw" title="w:WinSCP">WinSCP</a></li> <li><a href="https://en.wikipedia.org/wiki/SSH_File_Transfer_Protocol" class="extiw" title="w:SSH File Transfer Protocol">SSH File Transfer Protocol</a> (SFTP)</li> <li>Using a <a href="https://en.wikipedia.org/wiki/File_Transfer_Protocol" class="extiw" title="w:File Transfer Protocol">FTP</a> client.</li> <li>The hosting company might provide a file manager interface via the web browser; check with your provider.</li> <li>Some other method. There is a list of these at <a href="https://en.wikipedia.org/wiki/Comparison_of_file_transfer_protocols" class="extiw" title="w:Comparison of file transfer protocols">Comparison of file transfer protocols</a></li></ul> <div class="mw-heading mw-heading3"><h3 id="Preliminary">Preliminary</h3></div> <p>Read <a href="https://gerrit.wikimedia.org/g/mediawiki/core/%2B/REL1_42/UPGRADE" class="extiw" title="git:mediawiki/core/+/REL1 42/UPGRADE">the UPGRADE text file included in MediaWiki</a>. </p> <ol><li>Check the requirements</li> <li>Read the RELEASE-NOTES file</li> <li>Read the UPGRADE file</li> <li>Back up existing files and the database</li> <li>Unpack the new files</li> <li>Upgrade extensions</li> <li>Run the update script to check the database</li> <li>Test the update</li> <li>Remove leftovers from old installations</li></ol> <div class="mw-heading mw-heading2"><h2 id="Check_requirements">Check requirements</h2></div> <table class="warning-message" style="background-color: var( --background-color-error-subtle, #ffe9e5 ); color: var( --color-base, #202122 ); border: 1px var( --border-color-error, #9f3526 ) solid; box-sizing: border-box; margin: 0.5em 0; padding: 0.5em;"><tbody><tr><td style="white-space: nowrap; vertical-align: top;"><span style="position: relative; top: -2px;"><span typeof="mw:File"><span><img alt="Warning" src="//upload.wikimedia.org/wikipedia/commons/thumb/b/bf/OOjs_UI_icon_notice-destructive.svg/18px-OOjs_UI_icon_notice-destructive.svg.png" decoding="async" width="18" height="18" class="mw-file-element" srcset="//upload.wikimedia.org/wikipedia/commons/thumb/b/bf/OOjs_UI_icon_notice-destructive.svg/27px-OOjs_UI_icon_notice-destructive.svg.png 1.5x, //upload.wikimedia.org/wikipedia/commons/thumb/b/bf/OOjs_UI_icon_notice-destructive.svg/36px-OOjs_UI_icon_notice-destructive.svg.png 2x" data-file-width="20" data-file-height="20" /></span></span></span> <b>Warning:</b> </td><td style="padding-left: 0.5em vertical-align: top;">MediaWiki from 1.32 to 1.35.4, 1.36.2, 1.37.0 contain a security issue that allow unprivileged editing of arbitrary page and arbitrary JavaScript execution. If you are using one of these versions and can not upgrade to a newer version, please see <a href="/wiki/Special:MyLanguage/2021-12_security_release/FAQ" title="Special:MyLanguage/2021-12 security release/FAQ">2021-12 security release/FAQ</a><span style="display:none"><a href="/wiki/2021-12_security_release/FAQ" title="2021-12 security release/FAQ"> </a></span> for a workaround.</td></tr></tbody></table> <table class="warning-message" style="background-color: var( --background-color-error-subtle, #ffe9e5 ); color: var( --color-base, #202122 ); border: 1px var( --border-color-error, #9f3526 ) solid; box-sizing: border-box; margin: 0.5em 0; padding: 0.5em;"><tbody><tr><td style="white-space: nowrap; vertical-align: top;"><span style="position: relative; top: -2px;"><span typeof="mw:File"><span><img alt="Warning" src="//upload.wikimedia.org/wikipedia/commons/thumb/b/bf/OOjs_UI_icon_notice-destructive.svg/18px-OOjs_UI_icon_notice-destructive.svg.png" decoding="async" width="18" height="18" class="mw-file-element" srcset="//upload.wikimedia.org/wikipedia/commons/thumb/b/bf/OOjs_UI_icon_notice-destructive.svg/27px-OOjs_UI_icon_notice-destructive.svg.png 1.5x, //upload.wikimedia.org/wikipedia/commons/thumb/b/bf/OOjs_UI_icon_notice-destructive.svg/36px-OOjs_UI_icon_notice-destructive.svg.png 2x" data-file-width="20" data-file-height="20" /></span></span></span> <b>Warning:</b> </td><td style="padding-left: 0.5em vertical-align: top;">Do not upgrade from a MediaWiki version older than 1.33 to MediaWiki 1.39.1, or you may lose data! Upgrade to <a href="/wiki/Special:MyLanguage/MediaWiki_1.35" title="Special:MyLanguage/MediaWiki 1.35">MediaWiki 1.35</a><span style="display:none"><a href="/wiki/MediaWiki_1.35" title="MediaWiki 1.35"> </a></span> first. See <a href="https://phabricator.wikimedia.org/T326071" class="extiw" title="phabricator:T326071">task T326071</a>.</td></tr></tbody></table> <p>MediaWiki 1.42 requires: </p> <ul><li><b>PHP 8.1.0</b>+</li> <li>One of the following: <ul><li><b>MariaDB 10.3.0</b>+</li> <li><b>MySQL 5.7.0</b>+</li> <li><b>PostgreSQL 10.0</b>+</li> <li><b>SQLite <span class="plainlinks"><a class="external text" href="https://gerrit.wikimedia.org/r/plugins/gitiles/mediawiki/core/+/59f4c323238de385e4d69d71a3a04b994c018d1b">3.8.0</a></span></b>+</li></ul></li></ul> <style data-mw-deduplicate="TemplateStyles:r6651107">.mw-parser-output .note{background-position:left 7px top 50%;padding:0.5em 0.5em 0.5em 40px;margin:0.5em 0;overflow:hidden;background-color:#f8f9fa;color:#333;background-repeat:no-repeat;border:1px solid #ddd}.mw-parser-output .note-inline{display:inline-block;vertical-align:middle}.mw-parser-output .note-info{background-color:#eaf3ff;color:#333;background-image:url("https://upload.wikimedia.org/wikipedia/commons/e/ec/OOjs_UI_icon_information-progressive.svg");background-size:25px;border-color:#a3caff;padding-left:40px;min-height:25px}.mw-parser-output .note-reminder{background-color:#fff9ea;color:#333;background-image:url("https://upload.wikimedia.org/wikipedia/commons/a/a8/OOjs_UI_icon_lightbulb-yellow.svg");background-size:25px;border-color:#fc3;min-height:25px}.mw-parser-output .note-warn{background-color:#fff9ea;color:#333;background-image:url("https://upload.wikimedia.org/wikipedia/commons/3/3b/OOjs_UI_icon_alert-warning.svg");background-size:25px;border-color:#fc3;min-height:25px}.mw-parser-output .note-error{background-color:#fee7e6;color:#333;background-image:url("https://upload.wikimedia.org/wikipedia/commons/b/bf/OOjs_UI_icon_notice-destructive.svg");background-size:25px;border-color:#c33;min-height:25px}@media screen{html.skin-theme-clientpref-night .mw-parser-output .note{background-color:transparent;color:inherit}}@media screen and (prefers-color-scheme:dark){html.skin-theme-clientpref-os .mw-parser-output .note{background-color:transparent;color:inherit}}</style><div role="note" class="note note-error">Since <a href="/wiki/Special:MyLanguage/MediaWiki_1.36" title="Special:MyLanguage/MediaWiki 1.36">Version 1.36</a>, MediaWiki only commits to supporting upgrades from two <a href="/wiki/Special:MyLanguage/Version_lifecycle" title="Special:MyLanguage/Version lifecycle">LTS releases</a> ago (see <a href="https://phabricator.wikimedia.org/T259771" class="extiw" title="phab:T259771">phab:T259771</a>). Upgrades from older versions of MediaWiki will have to be performed in multiple steps. This means that if you want to upgrade to 1.42 from 1.34 or earlier, you'll first have to upgrade your 1.34 wiki to 1.35 (or 1.39), and, from 1.35 (or 1.39), you'll be able to upgrade to 1.42.</div> <p>If you are using PostgreSQL, please also read <a href="/wiki/Special:MyLanguage/Manual:Upgrading_Postgres" title="Special:MyLanguage/Manual:Upgrading Postgres">Manual:Upgrading Postgres</a><span style="display:none"><a href="/wiki/Manual:Upgrading_Postgres" class="mw-redirect" title="Manual:Upgrading Postgres"> </a></span>. </p><p>For more information, please read the <a href="/wiki/Special:MyLanguage/Manual:Installation_requirements" title="Special:MyLanguage/Manual:Installation requirements">Manual:Installation requirements</a><span style="display:none"><a href="/wiki/Manual:Installation_requirements" title="Manual:Installation requirements"> </a></span> and <a href="/wiki/Special:MyLanguage/Compatibility" title="Special:MyLanguage/Compatibility">Compatibility</a><span style="display:none"><a href="/wiki/Compatibility" title="Compatibility"> </a></span>. </p> <div class="mw-heading mw-heading2"><h2 id="Read_the_release_notes">Read the release notes</h2></div> <p>Within the distribution tarball, or within the files checked out/exported from <a href="/wiki/Special:MyLanguage/Gerrit" title="Special:MyLanguage/Gerrit">Git</a>, there are a number of files with capitalized filenames, one of which contains the <b><a href="https://gerrit.wikimedia.org/g/mediawiki/core/%2B/REL1_42/RELEASE-NOTES-1.42" class="extiw" title="git:mediawiki/core/+/REL1 42/RELEASE-NOTES-1.42">RELEASE-NOTES</a></b> (<a href="/wiki/Special:MyLanguage/Release_notes" title="Special:MyLanguage/Release notes">wiki</a>). Now's the time to open it up and find out what's been changed in this release. You should also read the instructions in the UPGRADE file. </p> <div class="mw-heading mw-heading2"><h2 id="Clear_pending_jobs">Clear pending jobs</h2></div> <p>For performance reasons, some actions in the database are delayed, and are managed by the <a href="/wiki/Special:MyLanguage/Manual:Job_queue" title="Special:MyLanguage/Manual:Job queue">job queue</a>. Those jobs are stored in database and contain parameters with information about actions it should perform. It's strongly recommended to run those pending jobs before upgrading the wiki, to avoid them failing in case the parameter specification of those jobs change on the new version. Use <a href="/wiki/Special:MyLanguage/Manual:RunJobs.php" title="Special:MyLanguage/Manual:RunJobs.php">runJobs.php</a><span style="display:none"><a href="/wiki/Manual:RunJobs.php" title="Manual:RunJobs.php"> </a></span> to run all pending jobs and clear the queue before performing the upgrade. </p> <div class="mw-heading mw-heading2"><h2 id="Back_up_existing_files_and_the_database">Back up existing files and the database</h2></div> <dl><dd><i>Full instructions: <a href="/wiki/Special:MyLanguage/Manual:Backing_up_a_wiki" title="Special:MyLanguage/Manual:Backing up a wiki">Manual:Backing up a wiki</a><span style="display:none"><a href="/wiki/Manual:Backing_up_a_wiki" title="Manual:Backing up a wiki"> </a></span></i></dd></dl> <p>While the upgrade scripts are well-maintained and robust, things could still go awry. Before proceeding to update the database schema, <b>make a full <a href="/wiki/Special:MyLanguage/Manual:Backing_up_a_wiki" title="Special:MyLanguage/Manual:Backing up a wiki">backup</a></b> of the wiki, including both the database and the files: </p> <ul><li>the wiki's content, from the database, (make sure you get the character set specified correctly, first check <code>LocalSettings.php</code>). It may be a good idea to create an XML dump in addition to the SQL database dump.</li></ul> <dl><dd><ul><li>MySQL, both SQL dump and XML dump are for use with the <code>mysql</code> command:</li></ul></dd></dl> <pre>mysqldump --user=<i><b>wikidb_user</b></i> --password=<i><b>wikidb_userpassword</b></i> <i><b>wikidb</b></i> > <i><b>file.sql</b></i> mysqldump --user=<i><b>wikidb_user</b></i> --password=<i><b>wikidb_userpassword</b></i> <i><b>wikidb</b></i> --xml > <i><b>file.xml</b></i> </pre> <dl><dd><ul><li>PostgreSQL, database dump for use with <code>pg_restore</code> command:</li></ul></dd></dl> <pre>pg_dump --create -Fc <i><b>wikidb</b></i> > <i><b>file.db.dump</b></i> </pre> <dl><dd><ul><li>SQLite, you use a MediaWiki script for making a backup:</li></ul></dd></dl> <pre>php <i><b>wikifolder</b></i>/maintenance/sqlite.php --backup-to <i><b>file</b></i> </pre> <ul><li>images and other media files (the contents of the <code>images</code> directory, custom logo /skins/common/images/wiki.png)</li> <li>configuration files, e.g. <code>LocalSettings.php</code> and <code>.htaccess</code> (if present)</li> <li>MediaWiki's program files, including all skins and extensions, especially if you modified them.</li></ul> <div class="mw-heading mw-heading2"><h2 id="Unpack_the_new_files">Unpack the new files</h2></div> <div class="mw-heading mw-heading3"><h3 id="Using_a_tarball_package">Using a tarball package</h3></div> <p>You can put the new files into place using FTP or the command line. Use the command line, if you have access to it! Using the command line will be much faster than having to upload each single one of the thousands of files via FTP. </p> <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r6651107"><div role="note" class="note note-info">You should put the decompressed tarball in a new and empty folder on your server. If you instead extract the new version directly on top of your old version, rather than in a new directory, you should follow the instructions described in <a href="#Back_up_existing_files_and_the_database">Back up existing files and the database</a>: otherwise, if you've made any customizations you may erase them in a way that leaves you with no reference to re-apply them from. Extracting a tarball over top of your live copy of MediaWiki can also leave behind files from the old version of MediaWiki which may interfere with the upgraded code. It's recommended that you unpack the new files into a new directory, and then apply customizations to the new directory (restoring <code>LocalSettings.php</code>, images folder, extensions, and other customizations like custom skins)</div> <div class="mw-heading mw-heading4"><h4 id="FTP_or_graphical">FTP or graphical</h4></div> <p>If you cannot access the command line on your server, download the MediaWiki tarball to your local computer and use <a rel="nofollow" class="external text" href="http://www.7-zip.org/download.html">7zip</a> to extract the tarball on your local PC. </p><p>After you extracted the files locally, use your favorite FTP client software to upload directories and files to the server. </p> <div class="mw-heading mw-heading4"><h4 id="cPanel_File_Manager">cPanel File Manager</h4></div> <p>cPanel is a popular interface provided by many web hosts. This method is efficient because the files are uncompressed on the server itself. </p> <ul><li>Navigate to the directory that holds your wiki folder.</li> <li>Upload the mediawiki-1.xx.x.tar.gz file. You may need to hit "Reload" to see it.</li> <li>Extract the mediawiki-1.xx.x.tar.gz file. Reload again.</li> <li>Confirm that the mediawiki-1.xx.x folder is present.</li> <li>Delete the tar.gz file.</li> <li>Copy all necessary skins, extensions, image folders, customizations, and the <code>LocalSettings.php</code> into the new folder. (See below.)</li> <li>When you are ready to run update.php, rename your old wiki folder and your new wiki folder. (e.g. "w" becomes "w1.34" and then "mediawiki1.35.0" becomes "w".) This step is easily reversible if you run into problems.</li></ul> <div class="mw-heading mw-heading4"><h4 id="Command_line">Command line</h4></div> <p>You may need to run the command as <code>sudo</code> if you don't have full write permissions to the wiki install directories under your current user. When untarring a tarball package normally a new directory for the new wiki version will be created and you will have to copy the old configuration files and images directory from your old installation directory: </p><p><code class="mw-code mw-highlight plainlinks" style="display:block"><span class="nb">cd</span> /path/to/your/new/installation/ wget <a class="external free" href="https://releases.wikimedia.org/mediawiki/1.42/mediawiki-1.42.3.tar.gz">https://releases.wikimedia.org/mediawiki/1.42/mediawiki-1.42.3.tar.gz</a> tar xvzf mediawiki-1.42.3.tar.gz rm mediawiki-1.42.3.tar.gz </code> </p><p>(Open)Solaris users should use <kbd>gtar</kbd>, or: </p> <pre>$ gzip -dc mediawiki-1.42.3.tar.gz | tar xf - </pre> <div class="mw-heading mw-heading3"><h3 id="Other_files">Other files</h3></div> <p>After extracting the tarball, you should copy or move some files and folders from the old installation directory to the new one: </p> <ul><li><code>LocalSettings.php</code> - contains your old configuration settings.</li> <li>The <code>images</code> (or <code>uploads</code> in older versions) directory, which contains all the uploaded files to the wiki, unless you have chosen a different upload directory, and change the ownership and permissions. <code>find ./images -type d -exec chmod 755 {} \;</code> and <code>chgrp -R apache images</code> (e.g. if your web user is <i>apache</i>).</li> <li>Some extensions in the <code>extensions</code> directory. You should always get updated extensions; old extensions aren't guaranteed to work with a newer version of MediaWiki.</li> <li>In case you use a <a href="/wiki/Special:MyLanguage/Manual:$wgLogo" title="Special:MyLanguage/Manual:$wgLogo">custom logo</a> this file also needs to be restored from backup. Before 1.24 the logo is usually in <code>skins/common/images/</code>. After 1.24 the logo is usually in <code>resources/assets/</code> or <code>images/</code> if that's what you chose to use. Then add to <code>LocalSettings.php</code> e.g. <code class="mw-highlight mw-highlight-lang-php mw-content-ltr" dir="ltr"><span class="nv">$wgLogo</span> <span class="o">=</span> <span class="s2">"</span><span class="si">$wgScriptPath</span><span class="s2">/images/logo.png"</span><span class="p">;</span></code></li> <li>For 1.35 you may need to restore the logos from <a href="/wiki/Special:MyLanguage/Manual:$wgLogos" title="Special:MyLanguage/Manual:$wgLogos">wgLogos</a><span style="display:none"><a href="/wiki/Manual:$wgLogos" title="Manual:$wgLogos"> </a></span>. Then add to <code>LocalSettings.php</code> e.g. <code class="mw-highlight mw-highlight-lang-php mw-content-ltr" dir="ltr"><span class="nv">$wgLogos</span> <span class="o">=</span> <span class="p">[</span> <span class="s1">'1x'</span> <span class="o">=></span> <span class="s2">"path/to/1x_version.png"</span><span class="p">,</span> <span class="s1">'2x'</span> <span class="o">=></span> <span class="s2">"path/to/2x_version.png"</span><span class="p">,</span> <span class="s1">'svg'</span> <span class="o">=></span> <span class="s2">"path/to/svg_version.svg"</span> <span class="p">];</span></code></li> <li>Custom skins from within the <code>skins</code> directory.</li> <li>Any modifications made to the old installation files or extensions.</li> <li>Any .htaccess file (if you're using Apache and you've defined any rules in them).</li></ul> <p>Once done, make this new folder the published folder on the web server, or rename the old installation directory and then rename the new one to match the old name. Change ownership and group of everything so the web server has access to the files. </p> <div class="mw-heading mw-heading3"><h3 id="Using_Git">Using Git</h3></div> <p>If using <a href="/wiki/Special:MyLanguage/Download_from_Git" title="Special:MyLanguage/Download from Git">Git</a><span style="display:none"><a href="/wiki/Download_from_Git" title="Download from Git"> </a></span>, export the files into a clean location, and then copy the old customized files into the new location as described in the previous section. </p><p>You will also need to install some external PHP libraries using Composer or a provided collection maintained for the Wikimedia wiki farm. More details on installing and updating external libraries can be found in the <a href="/wiki/Download_from_Git#Fetch_external_libraries" title="Download from Git">Git download documentation</a>. </p> <div class="mw-heading mw-heading3"><h3 id="Using_patch">Using patch</h3></div> <p>A small patch file is usually made available for a minor version upgrade. You'll need to download <a href="https://en.wikipedia.org/wiki/patch_(Unix)" class="extiw" title="w:patch (Unix)">patch</a> to use this. Manually download and extract the patch file from <a class="external text" href="https://releases.wikimedia.org/mediawiki/">the dumps site</a> or follow the directions with wget below. Patches are incremental, you can <b>not </b> skip a version. </p> <ol><li><kbd>cd</kbd> to your main MediaWiki directory (the one with <code>LocalSettings.php</code>).</li> <li>Download the patch file and <kbd>gunzip</kbd> it.</li> <li>Use <code>patch -p1 --dry-run</code> to check what will be changed (<i>e.g.</i>, <code>patch -p1 --dry-run -i <i>mediawiki-x.xx.x.patch</i></code>)</li> <li>If all is well, run <kbd>patch</kbd> again without <code>--dry-run</code>.</li> <li>Check your Special:Version and you should see the new version number in place.</li></ol> <div class="mw-heading mw-heading3"><h3 id="Files_remaining_that_may_cause_errors">Files remaining that may cause errors</h3></div> <p>If you unpacked over the old installation directory, some old files can cause problems with the new version. </p> <div class="mw-heading mw-heading2"><h2 id="Upgrade_extensions">Upgrade extensions</h2></div> <p>Certain extensions have been updated in order to work with the new version of MediaWiki. Be sure to upgrade to the latest versions of such extensions. You might need to perform manual updates to custom extensions. </p><p>Different <a href="/wiki/Special:MyLanguage/tarballs" title="Special:MyLanguage/tarballs">tarballs</a> include some subsets of extensions and have versioning which helps you upgrade choosing the right one for your MediaWiki core release. </p><p><a href="/wiki/Special:ExtensionDistributor" title="Special:ExtensionDistributor">Extension Distributor</a> works well for most people who want a snapshot of extensions that will work with their supported versions of MediaWiki. </p><p>If you want a lot of extensions then <a href="/wiki/Special:MyLanguage/Download_from_Git" title="Special:MyLanguage/Download from Git">downloading from Git</a> is probably best. If you don't have Git but you want to upgrade a lot of extensions, you might consider using <a href="/wiki/MwExtUpgrader" title="MwExtUpgrader">mwExtUpgrader</a>. </p> <div class="mw-heading mw-heading2"><h2 id="Adapt_your_LocalSettings.php">Adapt your <code>LocalSettings.php</code></h2></div> <p>If you use the same <code>LocalSettings.php</code> from the old version, you may need to adapt it to how new versions handle it: </p> <div class="mw-heading mw-heading3"><h3 id="Skin_registration">Skin registration</h3></div> <style data-mw-deduplicate="TemplateStyles:r4199130">.mw-parser-output .mw-version{border:1px solid #72777d;font-size:80%;line-height:1.2;border-collapse:collapse}.mw-parser-output .mw-version-ltr{float:right;margin:0 0 .5em .5em;text-align:right}.mw-parser-output .mw-version-rtl{float:left;margin:0 .5em .5em 0;text-align:left}.mw-parser-output .mw-version td{padding:.1em .3em}.mw-parser-output .mw-version-versionbox{border:5px solid #00af89;text-align:center}.mw-parser-output .mw-version-versionnumber{font-weight:bold;font-size:180%}.mw-parser-output .mw-version-version .mw-version-versionbox{border-color:#c8ccd1}.mw-parser-output .mw-version.mw-version-version2 .mw-version-versionbox{border-top-color:#c8ccd1;border-right-color:#c8ccd1;border-left-color:#c8ccd1}.mw-parser-output .mw-version-version-unsupported .mw-version-versionbox{border-color:#d33}.mw-parser-output .mw-version.mw-version-version2-unsupported .mw-version-versionbox{border-top-color:#d33;border-right-color:#d33;border-left-color:#d33}.mw-parser-output .mw-version-version-legacy .mw-version-versionbox{border-color:#f93}.mw-parser-output .mw-version.mw-version-version2-legacy .mw-version-versionbox{border-top-color:#f93;border-right-color:#f93;border-left-color:#f93}.mw-parser-output .mw-version-version-stable .mw-version-versionbox,.mw-parser-output .mw-version.mw-version.mw-version-and-later .mw-version-versionbox{border-color:#00af89}.mw-parser-output .mw-version.mw-version-version2-stable .mw-version-versionbox{border-top-color:#00af89;border-right-color:#00af89;border-left-color:#00af89}.mw-parser-output .mw-version-version-future .mw-version-versionbox{border-color:#8080c0}.mw-parser-output .mw-version.mw-version-version2-future .mw-version-versionbox{border-top-color:#8080c0;border-right-color:#8080c0;border-left-color:#8080c0}.mw-parser-output .mw-version-version-alpha .mw-version-versionbox{border-style:dotted}</style> <table class="mw-version mw-version-ltr mw-version-version mw-version-version-unsupported mw-version-and-later"><tbody><tr> <td>MediaWiki version:</td> <td class="mw-version-versionbox" title="The latest stable version is 1.42"><div class="mw-version-versionnumber"><small>≥</small> 1.24</div></td> </tr></tbody></table> <p>Since MediaWiki 1.24, bundled skins like Vector, Monobook, Modern and CologneBlue are no longer part of MediaWiki core, and they need to be registered explicitly in <code>LocalSettings.php</code> to use them, otherwise MediaWiki will warn that you don't have installed skins. </p><p>This is what you need to add to <code>LocalSettings.php</code> when upgrading from versions older than 1.24 and want to have available one of those skins: </p> <div class="mw-highlight mw-highlight-lang-php mw-content-ltr" dir="ltr"><pre><span></span><span class="nx">wfLoadSkin</span><span class="p">(</span> <span class="s1">'Vector'</span> <span class="p">);</span> <span class="nx">wfLoadSkin</span><span class="p">(</span> <span class="s1">'MonoBook'</span> <span class="p">);</span> <span class="nx">wfLoadSkin</span><span class="p">(</span> <span class="s1">'Modern'</span> <span class="p">);</span> <span class="nx">wfLoadSkin</span><span class="p">(</span> <span class="s1">'CologneBlue'</span> <span class="p">);</span> </pre></div> <p>Other skins may still not be adapted to the new <a href="/wiki/Special:MyLanguage/Manual:Extension_registration" title="Special:MyLanguage/Manual:Extension registration">skin registration</a> system, so refer to the documentation page about each skin to see how to register it properly in case of problems. </p> <div class="mw-heading mw-heading3"><h3 id="Extension_registration">Extension registration</h3></div> <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r4199130"> <table class="mw-version mw-version-ltr mw-version-version mw-version-version-unsupported mw-version-and-later"><tbody><tr> <td>MediaWiki version:</td> <td class="mw-version-versionbox" title="The latest stable version is 1.42"><div class="mw-version-versionnumber"><small>≥</small> 1.25</div></td> </tr></tbody></table> <p>Since MediaWiki 1.25, extensions use a new <a href="/wiki/Special:MyLanguage/Manual:Extension_registration" title="Special:MyLanguage/Manual:Extension registration">extension registration</a> system. </p><p>Previously your <code>LocalSettings.php</code> would include something like: </p> <div class="mw-highlight mw-highlight-lang-php mw-content-ltr" dir="ltr"><pre><span></span><span class="k">require_once</span> <span class="s2">"</span><span class="si">$IP</span><span class="s2">/extensions/Cite/Cite.php"</span><span class="p">;</span> <span class="k">require_once</span> <span class="s2">"</span><span class="si">$IP</span><span class="s2">/extensions/Gadgets/Gadgets.php"</span><span class="p">;</span> <span class="k">require_once</span> <span class="s2">"</span><span class="si">$IP</span><span class="s2">/extensions/ImageMap/ImageMap.php"</span><span class="p">;</span> <span class="k">require_once</span> <span class="s2">"</span><span class="si">$IP</span><span class="s2">/extensions/InputBox/InputBox.php"</span><span class="p">;</span> <span class="k">require_once</span> <span class="s2">"</span><span class="si">$IP</span><span class="s2">/extensions/Nuke/Nuke.php"</span><span class="p">;</span> <span class="k">require_once</span> <span class="s2">"</span><span class="si">$IP</span><span class="s2">/extensions/ParserFunctions/ParserFunctions.php"</span><span class="p">;</span> <span class="k">require_once</span> <span class="s2">"</span><span class="si">$IP</span><span class="s2">/extensions/Poem/Poem.php"</span><span class="p">;</span> <span class="k">require_once</span> <span class="s2">"</span><span class="si">$IP</span><span class="s2">/extensions/SyntaxHighlight_GeSHi/SyntaxHighlight_GeSHi.php"</span><span class="p">;</span> <span class="k">require_once</span> <span class="s2">"</span><span class="si">$IP</span><span class="s2">/extensions/WikiEditor/WikiEditor.php"</span><span class="p">;</span> </pre></div> <p>This can be converted to: </p> <div class="mw-highlight mw-highlight-lang-php mw-content-ltr" dir="ltr"><pre><span></span><span class="nx">wfLoadExtension</span><span class="p">(</span> <span class="s1">'Cite'</span> <span class="p">);</span> <span class="nx">wfLoadExtension</span><span class="p">(</span> <span class="s1">'Gadgets'</span> <span class="p">);</span> <span class="nx">wfLoadExtension</span><span class="p">(</span> <span class="s1">'ImageMap'</span> <span class="p">);</span> <span class="nx">wfLoadExtension</span><span class="p">(</span> <span class="s1">'InputBox'</span> <span class="p">);</span> <span class="nx">wfLoadExtension</span><span class="p">(</span> <span class="s1">'Nuke'</span> <span class="p">);</span> <span class="nx">wfLoadExtension</span><span class="p">(</span> <span class="s1">'ParserFunctions'</span> <span class="p">);</span> <span class="nx">wfLoadExtension</span><span class="p">(</span> <span class="s1">'Poem'</span> <span class="p">);</span> <span class="nx">wfLoadExtension</span><span class="p">(</span> <span class="s1">'SyntaxHighlight_GeSHi'</span> <span class="p">);</span> <span class="nx">wfLoadExtension</span><span class="p">(</span> <span class="s1">'WikiEditor'</span> <span class="p">);</span> </pre></div> <p>Extensions are being adapted to use the new extension registration system. Extensions that are not adapted should use the old way of installing them. Refer to the installation instructions on the extension's page for more information. </p> <div class="mw-heading mw-heading3"><h3 id="Remove_DefaultSettings.php_line_(if_necessary)"><span id="Remove_DefaultSettings.php_line_.28if_necessary.29"></span>Remove DefaultSettings.php line (if necessary)</h3></div> <p>Older versions of MediaWiki automatically generated a line in LocalSettings.php calling <a href="/wiki/Special:MyLanguage/Manual:DefaultSettings.php" title="Special:MyLanguage/Manual:DefaultSettings.php">DefaultSettings.php</a><span style="display:none"><a href="/wiki/Manual:DefaultSettings.php" title="Manual:DefaultSettings.php"> </a></span>. As of Version 1.38, this line is deprecated and does not work with many extensions. It needs to be removed. </p><p>Delete the following line: </p> <div class="mw-highlight mw-highlight-lang-php mw-content-ltr" dir="ltr"><pre><span></span><span class="k">require_once</span><span class="p">(</span> <span class="s2">"</span><span class="si">$IP</span><span class="s2">/includes/DefaultSettings.php"</span> <span class="p">);</span> </pre></div> <div class="mw-heading mw-heading3"><h3 id="Remove_RenameUser_from_LocalSettings.php">Remove RenameUser from LocalSettings.php</h3></div> <p>If you are upgrading to 1.40 or above, <a href="/wiki/Special:MyLanguage/Extension:RenameUser" title="Special:MyLanguage/Extension:RenameUser">Extension:RenameUser</a><span style="display:none"><a href="/wiki/Extension:RenameUser" class="mw-redirect" title="Extension:RenameUser"> </a></span> has been merged into core. If present, this line must be deleted from LocalSettings.php or the update will fail. </p> <div class="mw-highlight mw-highlight-lang-php mw-content-ltr" dir="ltr"><pre><span></span><span class="nx">wfLoadExtension</span><span class="p">(</span> <span class="s1">'Renameuser'</span> <span class="p">);</span> </pre></div> <div class="mw-heading mw-heading3"><h3 id="Other_variables">Other variables</h3></div> <p>Some variables may be obsolete or even removed. Having them in <code>LocalSettings.php</code> <b>usually</b> won't have any effect. New variables may be added in newer versions, or some existing variables changed their type. We usually try to use sane defaults for them, and in case of type change, be backward compatible. In any case, take a look at the release notes to see those changes. </p> <div class="mw-heading mw-heading2"><h2 id="Run_the_update_script">Run the update script</h2></div> <p>You can upgrade the MediaWiki database in two ways: Either from the command line or from the web browser. If you have shell access to your server, upgrading from the command line is recommended, since this reduces the risk of the upgrade process being interrupted by a timeout or connection reset. </p><p>The script will also notify you if any of MediaWiki core's PHP dependencies are out of date. </p> <div class="mw-heading mw-heading3"><h3 id="Command_line_2">Command line</h3></div> <p>Access the command line of your server or an SSH shell or similar. You can access the command line by connecting to your server via SSH. Current versions of all major operating systems (including Windows 10 and 11) contain a command-line <a href="https://en.wikipedia.org/wiki/OpenSSH" class="extiw" title="w:OpenSSH">OpenSSH</a> client either by default or as an installable feature. If the local PC you are working on runs Microsoft Windows, you may want to (or, if it’s 8.1 or older, have to) install <a rel="nofollow" class="external text" href="https://www.chiark.greenend.org.uk/~sgtatham/putty/latest.html">PuTTY</a>, which features a wizard-like interface (or a similar tool). From the command line or the Shell, execute the <a href="/wiki/Special:MyLanguage/Manual:update.php" title="Special:MyLanguage/Manual:update.php">update script</a>: </p> <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r4199130"> <table class="mw-version mw-version-ltr mw-version-version mw-version-version-unsupported mw-version-and-later"><tbody><tr> <td>MediaWiki version:</td> <td class="mw-version-versionbox" title="The latest stable version is 1.42"><div class="mw-version-versionnumber"><small>≥</small> 1.40</div></td> </tr></tbody></table> <pre>$ php maintenance/run.php update.php </pre> <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r4199130"> <table class="mw-version mw-version-ltr mw-version-version mw-version-version-legacy"><tbody><tr> <td>MediaWiki version:</td> <td class="mw-version-versionbox" title="MediaWiki 1.39 is a legacy version"><div class="mw-version-versionnumber"><small>≤</small> 1.39</div></td> </tr></tbody></table> <pre>$ php maintenance/update.php </pre> <p>On a Linux server if you get an error, try performing the same command as root (by using the <kbd>sudo</kbd> command). Note for simple installations on Windows (e.g. with <a href="/wiki/Special:MyLanguage/Manual:Installing_MediaWiki_on_XAMPP" title="Special:MyLanguage/Manual:Installing MediaWiki on XAMPP">XAMPP</a><span style="display:none"><a href="/wiki/Manual:Installing_MediaWiki_on_XAMPP" title="Manual:Installing MediaWiki on XAMPP"> </a></span>): First make sure that your web server (such as Apache) and your database (such as MySQL) are running. Then run <code>update.php</code>: right-click it, select Open With, and browse to PHP.exe. The resulting command prompt window will likely autoclose when the schema upgrade completes. </p><p>MediaWiki will inspect the existing schema and update it to work with the new code, adding tables and columns as needed. </p> <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r6651107"><div role="note" class="note note-info">If you use a <a href="/wiki/Special:MyLanguage/Manual:Shared_database" title="Special:MyLanguage/Manual:Shared database">Shared database</a>, you should pass the <code>--doshared</code> parameter if you want the shared tables to be updated. Otherwise, they won't be touched by the update script.</div> <div class="mw-heading mw-heading4"><h4 id="What_to_do_if_it_says_"MediaWiki_requires_PHP_x.y.z_or_higher;_you_are_using_PHP_x.w.v""><span id="What_to_do_if_it_says_.22MediaWiki_requires_PHP_x.y.z_or_higher.3B_you_are_using_PHP_x.w.v.22"></span>What to do if it says "MediaWiki requires PHP x.y.z or higher; you are using PHP x.w.v"</h4></div> <p>See <a href="/wiki/Manual:Common_errors_and_symptoms#MediaWiki_requires_PHP_7.4.3_or_higher;_you_are_using_PHP_7.3.17" title="Manual:Common errors and symptoms">Manual:Common errors and symptoms#MediaWiki requires PHP 7.4.3 or higher; you are using PHP 7.3.17</a> </p> <div class="mw-heading mw-heading4"><h4 id="What_to_do_if_php_update.php_fails_to_do_anything,_resulting_in_a_quick_pause_and_then_return_to_command_prompt"><span id="What_to_do_if_php_update.php_fails_to_do_anything.2C_resulting_in_a_quick_pause_and_then_return_to_command_prompt"></span>What to do if php update.php fails to do anything, resulting in a quick pause and then return to command prompt</h4></div> <p>This can be caused by a malfunctioning extension or skin. </p> <ul><li>Check that all extensions and skins called for in LocalSettings.php are present</li> <li>Check that extensions are using the correct registration method (wfLoadExtension vs. require_once)</li> <li>Comment out the first half of the extensions in LocalSettings.php. If this causes update.php to work, uncomment half of that half (so 1/4 of the extensions). If this does NOT cause update.php to work, uncomment the first half but comment out the second half, and then comment out half of the second half, etc. Repeat until update.php works to find the one that is failing.</li></ul> <div class="mw-heading mw-heading4"><h4 id="What_to_do_in_case_of_"ALTER_command_denied_to_user"_error_(or_similar)"><span id="What_to_do_in_case_of_.22ALTER_command_denied_to_user.22_error_.28or_similar.29"></span>What to do in case of "ALTER command denied to user" error (or similar)</h4></div> <p>In case the scripts abort with a message similar to: </p> <pre>Error: 1142 ALTER command denied to user 'wiki'@'localhost' for table 'mytable' (localhost) ERROR: must be the owner of the mytable relation </pre> <p>This means that you should check that you have defined <a href="/wiki/Special:MyLanguage/Manual:$wgDBadminuser" title="Special:MyLanguage/Manual:$wgDBadminuser">$wgDBadminuser</a><span style="display:none"><a href="/wiki/Manual:$wgDBadminuser" title="Manual:$wgDBadminuser"> </a></span> and <a href="/wiki/Special:MyLanguage/Manual:$wgDBadminpassword" title="Special:MyLanguage/Manual:$wgDBadminpassword">$wgDBadminpassword</a><span style="display:none"><a href="/wiki/Manual:$wgDBadminpassword" title="Manual:$wgDBadminpassword"> </a></span> in your <a href="/wiki/Special:MyLanguage/Manual:LocalSettings.php" title="Special:MyLanguage/Manual:LocalSettings.php">LocalSettings.php</a><span style="display:none"><a href="/wiki/Manual:LocalSettings.php" title="Manual:LocalSettings.php"> </a></span> file (in the main directory). These are the user and password needed by this script in order to access to the database. </p><p>In some cases, an old $wgDBmwschema variable (for Postgres) seems to be read for the table name to update instead of $wgDBname, even when MySQL is used. If this is the case, just get rid of the <code>$wgDBmwschema</code> definition in <code>LocalSettings.php</code>. </p> <div class="mw-heading mw-heading4"><h4 id="What_to_do_in_case_of_'register_argc_argv_is_set_to_false'_error"><span id="What_to_do_in_case_of_.27register_argc_argv_is_set_to_false.27_error"></span>What to do in case of 'register_argc_argv is set to false' error</h4></div> <p>You may encounter the error: </p> <pre style="overflow:auto;">Cannot get command line arguments, register_argc_argv is set to false </pre> <ol><li>Go to ~/maintenance. Either edit an existing 'php.ini' file, or create one.</li> <li>Add a line as follows:</li></ol> <pre style="overflow:auto;">register_argc_argv=true </pre> <ol><li>Re-run <code>php update.php</code></li></ol> <p><span class="anchor" id="Web_updater"></span> </p> <div class="mw-heading mw-heading3"><h3 id="Web_browser">Web browser</h3></div> <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r4199130"> <table class="mw-version mw-version-ltr mw-version-version mw-version-version-unsupported mw-version-and-later"><tbody><tr> <td>MediaWiki version:</td> <td class="mw-version-versionbox" title="The latest stable version is 1.42"><div class="mw-version-versionnumber"><small>≥</small> 1.17</div></td> </tr></tbody></table> <dl><dd><i>See also <a href="/wiki/Special:MyLanguage/Manual:update.php" title="Special:MyLanguage/Manual:update.php">update.php</a><span style="display:none"><a href="/wiki/Manual:Update.php" title="Manual:Update.php"> </a></span></i></dd></dl> <p>If your database is already big and in high production usage, then you should not be using the Web updater, e.g. because the update process will time out when the <i>maximum_execution_time</i> is reached. In that case you should use <a href="/wiki/Update.php" class="mw-redirect" title="Update.php">update.php</a> from the command-line interface (not from the web). What exactly is "too big" depends on your server (e.g. on its performance, the load and on how long the maximum execution time of PHP allows the script to run). If your wiki is too big for the web updater and your hosting provider does not allow command-line access, then you need to migrate your wiki to another hosting account, preferably to one that does have shell access. </p> <ol><li>Always <a href="/wiki/Special:MyLanguage/Manual:Backing_up_a_wiki" title="Special:MyLanguage/Manual:Backing up a wiki">back up</a> before performing database maintenance.</li> <li>Navigate your web browser to <code><b>/mw-config/index.php</b></code>. For example, if your wiki is at <code>http://example.org/w/index.php</code>, then navigate to <code>http://example.org/w/mw-config/index.php</code>.</li> <li>Select your language and click continue.</li> <li>The existing installation should be detected. Follow the instructions on the screen to upgrade it.<br />If asked for the "upgrade key", open your <a href="/wiki/Special:MyLanguage/Manual:LocalSettings.php" title="Special:MyLanguage/Manual:LocalSettings.php">LocalSettings.php</a><span style="display:none"><a href="/wiki/Manual:LocalSettings.php" title="Manual:LocalSettings.php"> </a></span> file and look for the key assigned to <a href="/wiki/Special:MyLanguage/Manual:$wgUpgradeKey" title="Special:MyLanguage/Manual:$wgUpgradeKey">$wgUpgradeKey</a><span style="display:none"><a href="/wiki/Manual:$wgUpgradeKey" title="Manual:$wgUpgradeKey"> </a></span>.</li></ol> <p>It might happen that the web-updater does not seem to work: Instead of seeing the initial language selection screen, you might see an empty wiki page, possibly with some error message. In this case it is most likely that your web server uses Rewrite Rules (most likely for <a href="/wiki/Special:MyLanguage/Manual:Short_URL" title="Special:MyLanguage/Manual:Short URL">short URLs</a>), which do not show you the updater at <i>mw-config/</i>, but a wiki page at <i>Mw-config/</i>, with capital "M". In this case, rename the <i>.htaccess</i> file for the time of the update. Then you should be able to access the web-updater. </p> <table class="warning-message" style="background-color: var( --background-color-error-subtle, #ffe9e5 ); color: var( --color-base, #202122 ); border: 1px var( --border-color-error, #9f3526 ) solid; box-sizing: border-box; margin: 0.5em 0; padding: 0.5em;"><tbody><tr><td style="white-space: nowrap; vertical-align: top;"><span style="position: relative; top: -2px;"><span typeof="mw:File"><span><img alt="Warning" src="//upload.wikimedia.org/wikipedia/commons/thumb/b/bf/OOjs_UI_icon_notice-destructive.svg/18px-OOjs_UI_icon_notice-destructive.svg.png" decoding="async" width="18" height="18" class="mw-file-element" srcset="//upload.wikimedia.org/wikipedia/commons/thumb/b/bf/OOjs_UI_icon_notice-destructive.svg/27px-OOjs_UI_icon_notice-destructive.svg.png 1.5x, //upload.wikimedia.org/wikipedia/commons/thumb/b/bf/OOjs_UI_icon_notice-destructive.svg/36px-OOjs_UI_icon_notice-destructive.svg.png 2x" data-file-width="20" data-file-height="20" /></span></span></span> <b>Warning:</b> </td><td style="padding-left: 0.5em vertical-align: top;">If you use this method, make sure to <b>change the name of the .htaccess file back</b> after running the upgrade script! Otherwise, short URLs and possibly other stuff will be broken!</td></tr></tbody></table> <div class="mw-heading mw-heading2"><h2 id="Test_the_update">Test the update</h2></div> <p>Once the upgrade has been completed, browse to the wiki and check that the following operations work as expected: </p> <ul><li>Viewing pages</li> <li>Editing pages</li> <li>Uploading a file</li> <li>Visit <a href="/wiki/Special:Version" title="Special:Version">Special:Version</a> and check that the version shown is correct and that the extensions are present.</li></ul> <div class="mw-heading mw-heading2"><h2 id="Remove_leftovers_from_old_installations">Remove leftovers from old installations</h2></div> <p>If you have copied your previous installation to another folder on the server, be sure to remove it or make it completely inaccessible from the web. It is very important to not leave old installations accessible from the web, since it completely defeats the purpose of upgrading, and leaves your server open to attacks. </p> <div class="mw-heading mw-heading2"><h2 id="Frequently_asked_questions">Frequently asked questions</h2></div> <div class="mw-heading mw-heading3"><h3 id="How_hard_is_it_to_upgrade?"><span id="How_hard_is_it_to_upgrade.3F"></span>How hard is it to upgrade?</h3></div> <p>If the only file you have modified is <a href="/wiki/Special:MyLanguage/Manual:LocalSettings.php" title="Special:MyLanguage/Manual:LocalSettings.php">LocalSettings.php</a><span style="display:none"><a href="/wiki/Manual:LocalSettings.php" title="Manual:LocalSettings.php"> </a></span>, and you are upgrading from 1.5 or later, the process is very simple. The amount of human work involved is only a few minutes. The database schema changes will take an amount of time proportional to the size of your database — potentially hours for wikis with millions of pages, but for a more typical size of a few thousand pages, it is usually done in seconds. </p><p>Minor upgrades, within the same major version, say from 1.41.0 to 1.41.4, do not require any schema changes at all. You can just update the files. The database needs no update, hence it is not necessary to run the updater script. </p><p>Upgrading from 1.4 or earlier is potentially complicated because support for character sets other than UTF-8 was dropped, and the schema for storing bulk text changed. Please read the relevant section in the <code>UPGRADE</code> file. </p><p>Upgrading becomes difficult if you have modified our source code, and you don't want your changes to be overwritten. Tools such as <a rel="nofollow" class="external text" href="http://www.gnu.org/software/diffutils/diffutils.html">diff</a>, <a rel="nofollow" class="external text" href="http://www.gnu.org/software/patch/">patch</a>, <a rel="nofollow" class="external text" href="http://meldmerge.org/">Meld</a> or <a rel="nofollow" class="external text" href="http://winmerge.org/">WinMerge</a> may be useful. There is also potential for trouble if you are using unmaintained extensions. Upgrade your extensions at the same time as you upgrade MediaWiki. </p><p>If you have modified the skin or use a custom skin, you very likely will have to adjust it to work again with the new version of MediaWiki. </p> <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r6651107"><div role="note" class="note note-reminder">Instead of patching your "global" CSS and JS (JavaScript) files every time, you can simply add the code to your MediaWiki:Common.js and MediaWiki:Common.css pages. As these are part of the database which will be reused when you upgrade, you will not have to patch the MediaWiki core files any more.</div> <div class="mw-heading mw-heading3"><h3 id="How_do_I_upgrade_from_a_really_old_version?_In_one_step,_or_in_several_steps?"><span id="How_do_I_upgrade_from_a_really_old_version.3F_In_one_step.2C_or_in_several_steps.3F"></span>How do I upgrade from a really old version? In one step, or in several steps?</h3></div> <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r4199130"> <table class="mw-version mw-version-ltr mw-version-version mw-version-version-unsupported"><tbody><tr> <td>MediaWiki version:</td> <td class="mw-version-versionbox" title="MediaWiki 1.4 is an unsupported version"><div class="mw-version-versionnumber"><small>≤</small> 1.4</div></td> </tr></tbody></table> <p>It depends: If you are <b>upgrading from MediaWiki 1.4 or older</b>, you should upgrade to MediaWiki 1.5 first. If you are upgrading from a Latin-1 wiki, use upgrade1_5.php (found in MediaWiki 1.5) to convert the relevant parts of the database to UTF-8 (<a href="/wiki/Special:MyLanguage/Manual:$wgUseLatin1" title="Special:MyLanguage/Manual:$wgUseLatin1">$wgUseLatin1</a><span style="display:none"><a href="/wiki/Manual:$wgUseLatin1" title="Manual:$wgUseLatin1"> </a></span> needs to be set to true in your <a href="/wiki/Special:MyLanguage/Manual:LocalSettings.php" title="Special:MyLanguage/Manual:LocalSettings.php">LocalSettings.php</a><span style="display:none"><a href="/wiki/Manual:LocalSettings.php" title="Manual:LocalSettings.php"> </a></span> for this to work). Next, run <code>update.php</code>, and then set the <a href="/wiki/Special:MyLanguage/Manual:$wgLegacyEncoding" title="Special:MyLanguage/Manual:$wgLegacyEncoding">$wgLegacyEncoding</a><span style="display:none"><a href="/wiki/Manual:$wgLegacyEncoding" title="Manual:$wgLegacyEncoding"> </a></span> option in <code>LocalSettings.php</code> to the encoding previously used by the wiki (e.g. windows-1252). This is basically how Wikipedia and other Wikimedia Foundation sites were upgraded from MediaWiki 1.4 to 1.5 – see some <a href="https://wikitech.wikimedia.org/wiki/Obsolete:1.5_upgrade" class="extiw" title="wikitech:Obsolete:1.5 upgrade">related notes at Wikitech</a>. You may need to upgrade to MediaWiki 1.4 before running the upgrade1.5 script. If you want to make a database dump (e.g. MySQL) of your Latin-1 wiki, make sure the type of the <code>old_text</code> field in the <a href="/wiki/Special:MyLanguage/Manual:Text_table" title="Special:MyLanguage/Manual:Text table">text</a><span style="display:none"><a href="/wiki/Manual:Text_table" title="Manual:Text table"> </a></span> table is <code>mediumblob</code>, not <code>mediumtext</code>, to avoid character encoding issues. <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r4199130"> </p> <table class="mw-version mw-version-ltr mw-version-version mw-version-version-unsupported mw-version-version2 mw-version-version2-unsupported"><tbody><tr> <td>MediaWiki versions:</td> <td class="mw-version-versionbox" title="MediaWiki 1.35 is an unsupported version"><div class="mw-version-versionnumber"> 1.5 – 1.35</div></td> </tr></tbody></table> <p>If you are <b>upgrading from MediaWiki 1.5 or newer</b> to <b>1.35</b>, you can upgrade in one step, from your old version to the latest stable version. The vast majority of reports, as well as automated testing, indicate that doing it in one step works just fine. If you have trouble believing this, read <a href="https://lists.wikimedia.org/pipermail/mediawiki-l/2008-October/028975.html" class="extiw" title="mailarchive:mediawiki-l/2008-October/028975.html">this mailing list post</a>. However, please note that when you update from old versions, chances that you will encounter PHP errors are bigger than when you upgrade from the version directly previous to the new version. You would have received these errors anyway, had you not skipped versions, but the errors would have been associated with each individual update. Instead, if you update several versions at once, you'll get the same set of errors all at the same time. This will make the upgrade more difficult, but do not forget that you did not have the trouble of updating to the intermediate versions, which you skipped! <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r4199130"> </p> <table class="mw-version mw-version-ltr mw-version-version mw-version-version-unsupported mw-version-and-later"><tbody><tr> <td>MediaWiki version:</td> <td class="mw-version-versionbox" title="The latest stable version is 1.42"><div class="mw-version-versionnumber"><small>≥</small> 1.35</div></td> </tr></tbody></table> <p>If you are <b>upgrading to MediaWiki 1.36</b> or later, only upgrades from the last two LTS releases will be supported (<a href="https://phabricator.wikimedia.org/T259771" class="extiw" title="phab:T259771">phab:T259771</a>). This will mean that for very old versions, that you first upgrade to MediaWiki 1.35 and then upgrade to 1.36. </p> <div class="mw-heading mw-heading3"><h3 id="Should_I_back_up_first?"><span id="Should_I_back_up_first.3F"></span>Should I back up first?</h3></div> <p>Short answer: Yes. </p><p>Long answer: It depends on a) how much you value your data, b) how hard it is to create a backup and c) how confident you are with MySQL maintenance and administration. </p><p>An upgrade failure may leave your database in an inconsistent state, in between two versions. A PHP or MySQL error might happen during upgrade leaving your database partly upgraded. In such situations it may be possible to somehow fix this problem with much manual work. However, it will be <i>way easier</i> to just put a database backup from before running update.php in place and to continue with that. Otherwise you might have hours of - needless - work. </p><p>Recovery is often complex. Volunteers on the support forums are unlikely to be impressed if you neglect to make a backup and then need help to recover from upgrade-related corruption. A better outcome is if you can revert to your backup, and then <a href="https://phabricator.wikimedia.org/maniphest/task/create/" class="extiw" title="phab:maniphest/task/create/">report the bug against the corresponding MediaWiki project</a> in the upgrade process which caused the corruption. </p> <div class="mw-heading mw-heading3"><h3 id="Can_I_keep_my_LocalSettings.php?"><span id="Can_I_keep_my_LocalSettings.php.3F"></span>Can I keep my <code>LocalSettings.php</code>?</h3></div> <p>Yes, but you may have to make some minor changes. The format of <a href="/wiki/Special:MyLanguage/Manual:LocalSettings.php" title="Special:MyLanguage/Manual:LocalSettings.php">LocalSettings.php</a><span style="display:none"><a href="/wiki/Manual:LocalSettings.php" title="Manual:LocalSettings.php"> </a></span> is largely backward compatible. Changes which break LocalSettings.php compatibility will be documented in the "configuration changes" section of the <a href="/wiki/Special:MyLanguage/Release_notes" title="Special:MyLanguage/Release notes">release notes</a>. </p> <div class="mw-heading mw-heading3"><h3 id="Can_my_wiki_stay_online_while_it_is_upgrading?"><span id="Can_my_wiki_stay_online_while_it_is_upgrading.3F"></span>Can my wiki stay online while it is upgrading?</h3></div> <p>Generally yes, however if you upgrade via Git, Git may temporarily (for a few seconds) break it. </p><p>If you are upgrading between minor releases of MediaWiki, all you need to do is update the source files. </p><p>Note: the following assumes you have command line access. If you are upgrading between major releases of MediaWiki, the preferred procedure is as follows: </p> <ol><li>Unpack the new version of MediaWiki into a new directory</li> <li>Prepare that new directory: copy your current <code>LocalSettings.php</code> from the old directory, copy any installed extensions and custom skins (if any). Check <code><a href="/wiki/Special:MyLanguage/Manual:$wgLogo" title="Special:MyLanguage/Manual:$wgLogo">$wgLogo</a><span style="display:none"><a href="/wiki/Manual:$wgLogo" title="Manual:$wgLogo"> </a></span></code> and <code><a href="/wiki/Special:MyLanguage/Manual:$wgLogos" title="Special:MyLanguage/Manual:$wgLogos">$wgLogos</a><span style="display:none"><a href="/wiki/Manual:$wgLogos" title="Manual:$wgLogos"> </a></span></code> settings in <code>LocalSettings.php</code> and if necessary copy logo file from the old directory to the new directory.</li> <li>In the release notes for the new version, see if any changes need to be made to <code>LocalSettings.php</code>.</li> <li>In the old directory, edit LocalSettings.php and insert the following code. This will place the database in read-only mode for regular wiki activity, without restricting your own update actions. Users will see the message provided if they attempt an edit during the upgrade process:<br /><div class="mw-highlight mw-highlight-lang-php"><div class="mw-code">$adminTask = ( <span class="no">PHP_SAPI</span> === <span class="s1">'cli'</span> || <span class="nb">defined</span>( <span class="s1">'MEDIAWIKI_INSTALL'</span> ) );<br /><a href="/wiki/Special:MyLanguage/Manual:$wgReadOnly" title="Special:MyLanguage/Manual:$wgReadOnly">$wgReadOnly</a><span style="display:none"><a href="/wiki/Manual:$wgReadOnly" title="Manual:$wgReadOnly"> </a></span> = $adminTask ? <span class="k">false</span> : <span class="s1">'Upgrading to MediaWiki 1.42.3'</span>;</div></div></li> <li>Run the <a href="/wiki/Special:MyLanguage/Manual:Upgrading#Command_line" title="Special:MyLanguage/Manual:Upgrading">update script</a> or the web updater in the new directory.</li> <li>Copy the images from the images sub-directory from the old directory to the new directory.</li> <li>Swap the old directory and the new directory. (This will make the database writable again, because <a href="/wiki/Special:MyLanguage/Manual:$wgReadOnly" title="Special:MyLanguage/Manual:$wgReadOnly">$wgReadOnly</a><span style="display:none"><a href="/wiki/Manual:$wgReadOnly" title="Manual:$wgReadOnly"> </a></span> was only set in the old directory's LocalSettings.php.)</li></ol> <div class="mw-heading mw-heading3"><h3 id="Why_upgrade?"><span id="Why_upgrade.3F"></span>Why upgrade?</h3></div> <dl><dd><i>Subscribe to <a href="https://lists.wikimedia.org/postorius/lists/mediawiki-announce.lists.wikimedia.org/" class="extiw" title="mail:mediawiki-announce">mediawiki-announce</a> to be notified of new releases.</i></dd></dl> <p>Recent releases receive security fixes to keep your wiki and your host safe from vandals, while old releases don't (see <a href="/wiki/Special:MyLanguage/Version_lifecycle" title="Special:MyLanguage/Version lifecycle">Version lifecycle</a><span style="display:none"><a href="/wiki/Version_lifecycle" title="Version lifecycle"> </a></span>). </p><p>New major releases come with new features, which you might want to use: see the <a href="/wiki/Special:MyLanguage/Release_notes" title="Special:MyLanguage/Release notes">release notes</a> for details. </p> <div class="mw-heading mw-heading2"><h2 id="See_also">See also</h2></div> <ul><li>Greg Sabino Mullane's Blog post provides some <a rel="nofollow" class="external text" href="https://www.endpointdev.com/blog/2014/10/mediawiki-minor-upgrade-with-patches/">more detail about point release upgrades</a>.</li> <li><a href="/wiki/Special:MyLanguage/Communication" title="Special:MyLanguage/Communication">Help and Support</a> if you need help or something went wrong</li> <li><a href="/wiki/Special:MyLanguage/Category:MediaWiki_deprecated_or_obsolete_features" title="Special:MyLanguage/Category:MediaWiki deprecated or obsolete features">Category:MediaWiki deprecated or obsolete features</a><span style="display:none"><a href="/wiki/Category:MediaWiki_deprecated_or_obsolete_features" title="Category:MediaWiki deprecated or obsolete features"> </a></span></li> <li><a href="/wiki/Special:MyLanguage/Manual:Backing_up_a_wiki" title="Special:MyLanguage/Manual:Backing up a wiki">Manual:Backing up a wiki</a><span style="display:none"><a href="/wiki/Manual:Backing_up_a_wiki" title="Manual:Backing up a wiki"> </a></span></li> <li><a href="/wiki/Special:MyLanguage/Manual:Restoring_a_wiki_from_backup" title="Special:MyLanguage/Manual:Restoring a wiki from backup">Manual:Restoring a wiki from backup</a><span style="display:none"><a href="/wiki/Manual:Restoring_a_wiki_from_backup" title="Manual:Restoring a wiki from backup"> </a></span></li> <li><a href="/wiki/Special:MyLanguage/Manual:Moving_a_wiki" title="Special:MyLanguage/Manual:Moving a wiki">Manual:Moving a wiki</a><span style="display:none"><a href="/wiki/Manual:Moving_a_wiki" title="Manual:Moving a wiki"> </a></span></li> <li><a href="/wiki/Special:MyLanguage/Manual:Restoring_wiki_code_from_cached_HTML" title="Special:MyLanguage/Manual:Restoring wiki code from cached HTML">Manual:Restoring wiki code from cached HTML</a><span style="display:none"><a href="/wiki/Manual:Restoring_wiki_code_from_cached_HTML" title="Manual:Restoring wiki code from cached HTML"> </a></span> - if you don't have a successful backup</li> <li><a href="/wiki/Special:MyLanguage/Manual:Installing_MediaWiki" title="Special:MyLanguage/Manual:Installing MediaWiki">Manual:Installing MediaWiki</a><span style="display:none"><a href="/wiki/Manual:Installing_MediaWiki" title="Manual:Installing MediaWiki"> </a></span></li></ul> <!-- NewPP limit report Parsed by mw‐web.codfw.main‐56865c4dc8‐2v6gc Cached time: 20241107125130 Cache expiry: 2592000 Reduced expiry: false Complications: [show‐toc] CPU time usage: 0.607 seconds Real time usage: 1.066 seconds Preprocessor visited node count: 6459/1000000 Post‐expand include size: 42623/2097152 bytes Template argument size: 17019/2097152 bytes Highest expansion depth: 17/100 Expensive parser function count: 50/500 Unstrip recursion depth: 0/20 Unstrip post‐expand size: 33866/5000000 bytes Lua time usage: 0.104/10.000 seconds Lua memory usage: 1595259/52428800 bytes Number of Wikibase entities loaded: 0/400 --> <!-- Transclusion expansion time report (%,ms,calls,template) 100.00% 480.538 1 -total 51.70% 248.417 42 Template:Ll 23.45% 112.705 1 Template:MW_quick_download 18.65% 89.619 84 Template:Translatable 16.35% 78.581 45 Template:Pagelang 12.36% 59.385 3 Template:Int 10.17% 48.851 8 Template:MW_version/layout 9.63% 46.287 3 Template:Warning 9.49% 45.585 17 Template:TNTN 8.62% 41.399 4 Template:MW_version/en --> <!-- Saved in parser cache with key mediawikiwiki:pcache:idhash:8407-0!canonical and timestamp 20241107125130 and revision id 6794680. Rendering was triggered because: page-view --> </div><!--esi <esi:include src="/esitest-fa8a495983347898/content" /> --><noscript><img src="https://login.wikimedia.org/wiki/Special:CentralAutoLogin/start?type=1x1" alt="" width="1" height="1" style="border: none; position: absolute;"></noscript> <div class="printfooter" data-nosnippet="">Retrieved from "<a dir="ltr" href="https://www.mediawiki.org/w/index.php?title=Manual:Upgrading&oldid=6794680">https://www.mediawiki.org/w/index.php?title=Manual:Upgrading&oldid=6794680</a>"</div></div> <div id="catlinks" class="catlinks" data-mw="interface"><div id="mw-normal-catlinks" class="mw-normal-catlinks"><a href="/wiki/Special:Categories" title="Special:Categories">Categories</a>: <ul><li><a href="/wiki/Category:MediaWiki_administration" title="Category:MediaWiki administration">MediaWiki administration</a></li><li><a href="/wiki/Category:MediaWiki_for_site_admins" title="Category:MediaWiki for site admins">MediaWiki for site admins</a></li><li><a href="/wiki/Category:MediaWiki_development" title="Category:MediaWiki development">MediaWiki development</a></li><li><a href="/wiki/Category:Upgrading" title="Category:Upgrading">Upgrading</a></li></ul></div></div> </div> </main> </div> <div class="mw-footer-container"> <footer id="footer" class="mw-footer" > <ul id="footer-info"> <li id="footer-info-lastmod"> This page was last edited on 12 October 2024, at 00:49.</li> <li id="footer-info-copyright">Text is available under the <a rel="nofollow" class="external text" href="https://creativecommons.org/licenses/by-sa/4.0/deed.en">Creative Commons Attribution-ShareAlike License</a>; additional terms may apply. Text in <a class="external text" href="https://www.mediawiki.org/wiki/Special:MyLanguage/Help:Contents">the Help: namespace</a> is available under the <a rel="nofollow" class="external text" href="https://creativecommons.org/publicdomain/zero/1.0/">Creative Commons CC0 License</a>. By using this site, you agree to the <a class="external text" href="https://foundation.wikimedia.org/wiki/Special:MyLanguage/Policy:Terms_of_Use">Terms of Use</a> and <a class="external text" href="https://foundation.wikimedia.org/wiki/Special:MyLanguage/Policy:Privacy_policy">Privacy Policy</a>.</li> </ul> <ul id="footer-places"> <li id="footer-places-privacy"><a href="https://foundation.wikimedia.org/wiki/Special:MyLanguage/Policy:Privacy_policy">Privacy policy</a></li> <li id="footer-places-about"><a href="/wiki/Project:About">About mediawiki.org</a></li> <li id="footer-places-disclaimers"><a href="/wiki/Project:General_disclaimer">Disclaimers</a></li> <li id="footer-places-wm-codeofconduct"><a href="https://www.mediawiki.org/wiki/Special:MyLanguage/Code_of_Conduct">Code of Conduct</a></li> <li id="footer-places-developers"><a href="https://developer.wikimedia.org">Developers</a></li> <li id="footer-places-statslink"><a href="https://stats.wikimedia.org/#/www.mediawiki.org">Statistics</a></li> <li id="footer-places-cookiestatement"><a href="https://foundation.wikimedia.org/wiki/Special:MyLanguage/Policy:Cookie_statement">Cookie statement</a></li> <li id="footer-places-mobileview"><a href="//m.mediawiki.org/w/index.php?title=Manual:Upgrading&mobileaction=toggle_view_mobile" class="noprint stopMobileRedirectToggle">Mobile view</a></li> </ul> <ul id="footer-icons" class="noprint"> <li id="footer-copyrightico"><a href="https://wikimediafoundation.org/" class="cdx-button cdx-button--fake-button cdx-button--size-large cdx-button--fake-button--enabled"><img src="/static/images/footer/wikimedia-button.svg" width="84" height="29" alt="Wikimedia Foundation" loading="lazy"></a></li> <li id="footer-poweredbyico"><a href="https://www.mediawiki.org/" class="cdx-button cdx-button--fake-button cdx-button--size-large cdx-button--fake-button--enabled"><img src="/w/resources/assets/poweredby_mediawiki.svg" alt="Powered by MediaWiki" width="88" height="31" loading="lazy"></a></li> </ul> </footer> </div> </div> </div> <div class="vector-settings" id="p-dock-bottom"> <ul></ul> </div><script>(RLQ=window.RLQ||[]).push(function(){mw.config.set({"wgHostname":"mw-web.codfw.main-f69cdc8f6-kgm48","wgBackendResponseTime":124,"wgPageParseReport":{"limitreport":{"cputime":"0.607","walltime":"1.066","ppvisitednodes":{"value":6459,"limit":1000000},"postexpandincludesize":{"value":42623,"limit":2097152},"templateargumentsize":{"value":17019,"limit":2097152},"expansiondepth":{"value":17,"limit":100},"expensivefunctioncount":{"value":50,"limit":500},"unstrip-depth":{"value":0,"limit":20},"unstrip-size":{"value":33866,"limit":5000000},"entityaccesscount":{"value":0,"limit":400},"timingprofile":["100.00% 480.538 1 -total"," 51.70% 248.417 42 Template:Ll"," 23.45% 112.705 1 Template:MW_quick_download"," 18.65% 89.619 84 Template:Translatable"," 16.35% 78.581 45 Template:Pagelang"," 12.36% 59.385 3 Template:Int"," 10.17% 48.851 8 Template:MW_version/layout"," 9.63% 46.287 3 Template:Warning"," 9.49% 45.585 17 Template:TNTN"," 8.62% 41.399 4 Template:MW_version/en"]},"scribunto":{"limitreport-timeusage":{"value":"0.104","limit":"10.000"},"limitreport-memusage":{"value":1595259,"limit":52428800}},"cachereport":{"origin":"mw-web.codfw.main-56865c4dc8-2v6gc","timestamp":"20241107125130","ttl":2592000,"transientcontent":false}}});});</script> </body> </html>