CINXE.COM
Manual:Installing MediaWiki - 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><script type="text/javascript" src="/_static/js/bundle-playback.js?v=HxkREWBo" charset="utf-8"></script> <script type="text/javascript" src="/_static/js/wombat.js?v=txqj7nKC" charset="utf-8"></script> <script>window.RufflePlayer=window.RufflePlayer||{};window.RufflePlayer.config={"autoplay":"on","unmuteOverlay":"hidden"};</script> <script type="text/javascript" src="/_static/js/ruffle/ruffle.js"></script> <script type="text/javascript"> __wm.init("https://web.archive.org/web"); __wm.wombat("https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:Installing_MediaWiki","20240917103147","https://web.archive.org/","web","/_static/", "1726569107"); </script> <link rel="stylesheet" type="text/css" href="/_static/css/banner-styles.css?v=S1zqJCYt" /> <link rel="stylesheet" type="text/css" href="/_static/css/iconochive.css?v=3PDvdIFv" /> <!-- End Wayback Rewrite JS Include --> <meta charset="UTF-8"> <title>Manual:Installing MediaWiki - 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":"574c8432-986a-4f8f-a716-f191bfd2e112","wgCanonicalNamespace":"Manual","wgCanonicalSpecialPageName":false,"wgNamespaceNumber":100,"wgPageName":"Manual:Installing_MediaWiki","wgTitle":"Installing MediaWiki","wgCurRevisionId":6756332,"wgRevisionId":6756332,"wgArticleId":18173,"wgIsArticle":true,"wgIsRedirect":false,"wgAction":"view","wgUserName":null,"wgUserGroups":["*"],"wgCategories":["Installation","MediaWiki administration"],"wgPageViewLanguage":"en","wgPageContentLanguage":"en","wgPageContentModel":"wikitext","wgRelevantPageName":"Manual:Installing_MediaWiki","wgRelevantArticleId":18173,"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":20000,"wgULSCurrentAutonym":"English","wgInternalRedirectTargetUrl":"/wiki/Manual:Installing_MediaWiki","wgTranslatePageTranslation":"source","wgCentralAuthMobileDomain":false,"wgEditSubmitButtonLabelPublish":true,"wgULSPosition":"personal","wgULSisCompactLinksEnabled":true,"wgVector2022LanguageInHeader":false,"wgULSisLanguageSelectorEmpty":false,"wgCheckUserClientHintsHeadersJsApi":["architecture","bitness","brands","fullVersionList","mobile","model","platform","platformVersion"]};RLSTATE={"ext.gadget.site-styles":"ready","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","mediawiki.ui.button":"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.gadget.site","ext.urlShortener.toolbar","ext.centralauth.centralautologin","mmv.head","mmv.bootstrap.autostart","ext.visualEditor.desktopArticleTarget.init","ext.visualEditor.targetLoader","ext.echo.centralauth","ext.eventLogging","ext.wikimediaEvents","ext.navigationTiming","ext.uls.compactlinks", "ext.uls.interface","ext.checkUser.clientHints"];</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="/web/20240917103147cs_/https://www.mediawiki.org/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%7Cmediawiki.ui.button%7Cskins.vector.icons%2Cstyles%7Cskins.vector.search.codex.styles%7Cwikibase.client.init&only=styles&skin=vector-2022"> <script async="" src="/web/20240917103147js_/https://www.mediawiki.org/w/load.php?lang=en&modules=startup&only=scripts&raw=1&skin=vector-2022"></script> <meta name="ResourceLoaderDynamicStyles" content=""> <link rel="stylesheet" href="/web/20240917103147cs_/https://www.mediawiki.org/w/load.php?lang=en&modules=ext.gadget.site-styles&only=styles&skin=vector-2022"> <meta name="generator" content="MediaWiki 1.43.0-wmf.23"> <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:Installing MediaWiki - MediaWiki"> <meta property="og:type" content="website"> <link rel="preconnect" href="//web.archive.org/web/20240917103147/https://upload.wikimedia.org/"> <link rel="alternate" media="only screen and (max-width: 640px)" href="//web.archive.org/web/20240917103147/https://m.mediawiki.org/wiki/Manual:Installing_MediaWiki"> <link rel="apple-touch-icon" href="/web/20240917103147im_/https://www.mediawiki.org/static/apple-touch/mediawiki.png"> <link rel="icon" href="/web/20240917103147im_/https://www.mediawiki.org/static/favicon/mediawiki.ico"> <link rel="search" type="application/opensearchdescription+xml" href="/web/20240917103147/https://www.mediawiki.org/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://web.archive.org/web/20240917103147/https://www.mediawiki.org/wiki/Manual:Installing_MediaWiki"> <link rel="license" href="https://creativecommons.org/licenses/by-sa/4.0/"> <link rel="alternate" type="application/atom+xml" title="MediaWiki Atom feed" href="/web/20240917103147/https://www.mediawiki.org/w/index.php?title=Special:RecentChanges&feed=atom"> <link rel="dns-prefetch" href="//web.archive.org/web/20240917103147/https://meta.wikimedia.org/"/> <link rel="dns-prefetch" href="//web.archive.org/web/20240917103147/https://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_Installing_MediaWiki rootpage-Manual_Installing_MediaWiki 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="/web/20240917103147/https://www.mediawiki.org/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="/web/20240917103147/https://www.mediawiki.org/wiki/Download"><span>Get MediaWiki</span></a></li><li id="n-mw-extensions" class="mw-list-item"><a href="/web/20240917103147/https://www.mediawiki.org/wiki/Special:MyLanguage/Category:Extensions"><span>Get extensions</span></a></li><li id="n-blog-text" class="mw-list-item"><a href="https://web.archive.org/web/20240917103147/https://techblog.wikimedia.org/"><span>Tech blog</span></a></li><li id="n-mw-contribute" class="mw-list-item"><a href="/web/20240917103147/https://www.mediawiki.org/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="/web/20240917103147/https://www.mediawiki.org/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="/web/20240917103147/https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:FAQ"><span>FAQ</span></a></li><li id="n-mw-manual" class="mw-list-item"><a href="/web/20240917103147/https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:Contents"><span>Technical manual</span></a></li><li id="n-mw-supportdesk" class="mw-list-item"><a href="/web/20240917103147/https://www.mediawiki.org/wiki/Project:Support_desk"><span>Support desk</span></a></li><li id="n-mw-communication" class="mw-list-item"><a href="/web/20240917103147/https://www.mediawiki.org/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://web.archive.org/web/20240917103147/https://developer.wikimedia.org/"><span>Developer portal</span></a></li><li id="n-svn-statistics" class="mw-list-item"><a href="/web/20240917103147/https://www.mediawiki.org/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="/web/20240917103147/https://www.mediawiki.org/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="/web/20240917103147/https://www.mediawiki.org/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="/web/20240917103147/https://www.mediawiki.org/wiki/Special:LanguageStats"><span>Translate content</span></a></li><li id="n-randompage" class="mw-list-item"><a href="/web/20240917103147/https://www.mediawiki.org/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="/web/20240917103147/https://www.mediawiki.org/wiki/Project:Village_Pump"><span>Village pump</span></a></li><li id="n-Sandboxlink-portlet-label" class="mw-list-item"><a href="/web/20240917103147/https://www.mediawiki.org/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://web.archive.org/web/20240917103147/https://www.wikidata.org/wiki/Special:NewItem?site=mediawikiwiki&page=Manual%3AInstalling+MediaWiki" title="Add interlanguage links" class="wbc-editpage">Add links</a></span></div> </div> </div> </div> </div> </div> </div> </nav> <a href="/web/20240917103147/https://www.mediawiki.org/wiki/MediaWiki" class="mw-logo"> <img class="mw-logo-icon" src="/web/20240917103147im_/https://www.mediawiki.org/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="/web/20240917103147im_/https://www.mediawiki.org/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="/web/20240917103147/https://www.mediawiki.org/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="/web/20240917103147/https://www.mediawiki.org/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-createaccount-2" class="user-links-collapsible-item mw-list-item user-links-collapsible-item"><a data-mw="interface" href="/web/20240917103147/https://www.mediawiki.org/w/index.php?title=Special:CreateAccount&returnto=Manual%3AInstalling+MediaWiki" 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="/web/20240917103147/https://www.mediawiki.org/w/index.php?title=Special:UserLogin&returnto=Manual%3AInstalling+MediaWiki" 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-createaccount" class="user-links-collapsible-item mw-list-item"><a href="/web/20240917103147/https://www.mediawiki.org/w/index.php?title=Special:CreateAccount&returnto=Manual%3AInstalling+MediaWiki" 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="/web/20240917103147/https://www.mediawiki.org/w/index.php?title=Special:UserLogin&returnto=Manual%3AInstalling+MediaWiki" 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="/web/20240917103147/https://www.mediawiki.org/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="/web/20240917103147/https://www.mediawiki.org/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="/web/20240917103147/https://www.mediawiki.org/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-Check_the_installation_requirements" class="vector-toc-list-item vector-toc-level-1 vector-toc-list-item-expanded"> <a class="vector-toc-link" href="#Check_the_installation_requirements"> <div class="vector-toc-text"> <span class="vector-toc-numb">1</span> <span>Check the installation requirements</span> </div> </a> <ul id="toc-Check_the_installation_requirements-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Download_the_MediaWiki_software" class="vector-toc-list-item vector-toc-level-1 vector-toc-list-item-expanded"> <a class="vector-toc-link" href="#Download_the_MediaWiki_software"> <div class="vector-toc-text"> <span class="vector-toc-numb">2</span> <span>Download the MediaWiki software</span> </div> </a> <ul id="toc-Download_the_MediaWiki_software-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Extract_the_MediaWiki_software" class="vector-toc-list-item vector-toc-level-1 vector-toc-list-item-expanded"> <a class="vector-toc-link" href="#Extract_the_MediaWiki_software"> <div class="vector-toc-text"> <span class="vector-toc-numb">3</span> <span>Extract the MediaWiki software</span> </div> </a> <ul id="toc-Extract_the_MediaWiki_software-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Upload_files_to_your_web_server" class="vector-toc-list-item vector-toc-level-1 vector-toc-list-item-expanded"> <a class="vector-toc-link" href="#Upload_files_to_your_web_server"> <div class="vector-toc-text"> <span class="vector-toc-numb">4</span> <span>Upload files to your web server</span> </div> </a> <ul id="toc-Upload_files_to_your_web_server-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Set_up_the_database" class="vector-toc-list-item vector-toc-level-1 vector-toc-list-item-expanded"> <a class="vector-toc-link" href="#Set_up_the_database"> <div class="vector-toc-text"> <span class="vector-toc-numb">5</span> <span>Set up the database</span> </div> </a> <button aria-controls="toc-Set_up_the_database-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 Set up the database subsection</span> </button> <ul id="toc-Set_up_the_database-sublist" class="vector-toc-list"> <li id="toc-SQLite" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#SQLite"> <div class="vector-toc-text"> <span class="vector-toc-numb">5.1</span> <span>SQLite</span> </div> </a> <ul id="toc-SQLite-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-MariaDB/MySQL" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#MariaDB/MySQL"> <div class="vector-toc-text"> <span class="vector-toc-numb">5.2</span> <span>MariaDB/MySQL</span> </div> </a> <ul id="toc-MariaDB/MySQL-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-PostgreSQL" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#PostgreSQL"> <div class="vector-toc-text"> <span class="vector-toc-numb">5.3</span> <span>PostgreSQL</span> </div> </a> <ul id="toc-PostgreSQL-sublist" class="vector-toc-list"> </ul> </li> </ul> </li> <li id="toc-Run_the_installation_script" class="vector-toc-list-item vector-toc-level-1 vector-toc-list-item-expanded"> <a class="vector-toc-link" href="#Run_the_installation_script"> <div class="vector-toc-text"> <span class="vector-toc-numb">6</span> <span>Run the installation script</span> </div> </a> <ul id="toc-Run_the_installation_script-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Further_configuration" class="vector-toc-list-item vector-toc-level-1 vector-toc-list-item-expanded"> <a class="vector-toc-link" href="#Further_configuration"> <div class="vector-toc-text"> <span class="vector-toc-numb">7</span> <span>Further configuration</span> </div> </a> <ul id="toc-Further_configuration-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Keep_up_to_date!" class="vector-toc-list-item vector-toc-level-1 vector-toc-list-item-expanded"> <a class="vector-toc-link" href="#Keep_up_to_date!"> <div class="vector-toc-text"> <span class="vector-toc-numb">8</span> <span>Keep up to date!</span> </div> </a> <ul id="toc-Keep_up_to_date!-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Appendices" class="vector-toc-list-item vector-toc-level-1 vector-toc-list-item-expanded"> <a class="vector-toc-link" href="#Appendices"> <div class="vector-toc-text"> <span class="vector-toc-numb">9</span> <span>Appendices</span> </div> </a> <button aria-controls="toc-Appendices-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 Appendices subsection</span> </button> <ul id="toc-Appendices-sublist" class="vector-toc-list"> <li id="toc-Alternatives_to_manual_installation" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#Alternatives_to_manual_installation"> <div class="vector-toc-text"> <span class="vector-toc-numb">9.1</span> <span>Alternatives to manual installation</span> </div> </a> <ul id="toc-Alternatives_to_manual_installation-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-System-specific_instructions" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#System-specific_instructions"> <div class="vector-toc-text"> <span class="vector-toc-numb">9.2</span> <span>System-specific instructions</span> </div> </a> <ul id="toc-System-specific_instructions-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Running_multiple_wikis" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#Running_multiple_wikis"> <div class="vector-toc-text"> <span class="vector-toc-numb">9.3</span> <span>Running multiple wikis</span> </div> </a> <ul id="toc-Running_multiple_wikis-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Importing_an_existing_wiki_database" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#Importing_an_existing_wiki_database"> <div class="vector-toc-text"> <span class="vector-toc-numb">9.4</span> <span>Importing an existing wiki database</span> </div> </a> <ul id="toc-Importing_an_existing_wiki_database-sublist" class="vector-toc-list"> </ul> </li> </ul> </li> <li id="toc-See_also" class="vector-toc-list-item vector-toc-level-1 vector-toc-list-item-expanded"> <a class="vector-toc-link" href="#See_also"> <div class="vector-toc-text"> <span class="vector-toc-numb">10</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">Installing MediaWiki</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="/web/20240917103147/https://www.mediawiki.org/wiki/Manual:Installing_MediaWiki" 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="/web/20240917103147/https://www.mediawiki.org/wiki/Manual_talk:Installing_MediaWiki" 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="/web/20240917103147/https://www.mediawiki.org/wiki/Manual:Installing_MediaWiki"><span>Read</span></a></li><li id="ca-viewsource" class="vector-tab-noicon mw-list-item"><a href="/web/20240917103147/https://www.mediawiki.org/w/index.php?title=Manual:Installing_MediaWiki&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="/web/20240917103147/https://www.mediawiki.org/w/index.php?title=Manual:Installing_MediaWiki&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="/web/20240917103147/https://www.mediawiki.org/wiki/Manual:Installing_MediaWiki"><span>Read</span></a></li><li id="ca-more-viewsource" class="vector-more-collapsible-item mw-list-item"><a href="/web/20240917103147/https://www.mediawiki.org/w/index.php?title=Manual:Installing_MediaWiki&action=edit"><span>View source</span></a></li><li id="ca-more-history" class="vector-more-collapsible-item mw-list-item"><a href="/web/20240917103147/https://www.mediawiki.org/w/index.php?title=Manual:Installing_MediaWiki&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="/web/20240917103147/https://www.mediawiki.org/wiki/Special:WhatLinksHere/Manual:Installing_MediaWiki" 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="/web/20240917103147/https://www.mediawiki.org/wiki/Special:RecentChangesLinked/Manual:Installing_MediaWiki" 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="//web.archive.org/web/20240917103147/https://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="/web/20240917103147/https://www.mediawiki.org/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="/web/20240917103147/https://www.mediawiki.org/w/index.php?title=Manual:Installing_MediaWiki&oldid=6756332" 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="/web/20240917103147/https://www.mediawiki.org/w/index.php?title=Manual:Installing_MediaWiki&action=info" title="More information about this page"><span>Page information</span></a></li><li id="t-cite" class="mw-list-item"><a href="/web/20240917103147/https://www.mediawiki.org/w/index.php?title=Special:CiteThisPage&page=Manual%3AInstalling_MediaWiki&id=6756332&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="/web/20240917103147/https://www.mediawiki.org/w/index.php?title=Special:UrlShortener&url=https%3A%2F%2Fwww.mediawiki.org%2Fwiki%2FManual%3AInstalling_MediaWiki"><span>Get shortened URL</span></a></li><li id="t-urlshortener-qrcode" class="mw-list-item"><a href="/web/20240917103147/https://www.mediawiki.org/w/index.php?title=Special:QrCode&url=https%3A%2F%2Fwww.mediawiki.org%2Fwiki%2FManual%3AInstalling_MediaWiki"><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="/web/20240917103147/https://www.mediawiki.org/w/index.php?title=Special:Book&bookcmd=book_creator&referer=Manual%3AInstalling+MediaWiki"><span>Create a book</span></a></li><li id="coll-download-as-rl" class="mw-list-item"><a href="/web/20240917103147/https://www.mediawiki.org/w/index.php?title=Special:DownloadAsPdf&page=Manual%3AInstalling_MediaWiki&action=show-download-screen"><span>Download as PDF</span></a></li><li id="t-print" class="mw-list-item"><a href="/web/20240917103147/https://www.mediawiki.org/w/index.php?title=Manual:Installing_MediaWiki&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 emptyPortlet"> <div class="vector-menu-heading"> In other projects </div> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> </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="/web/20240917103147/https://www.mediawiki.org/w/index.php?title=Special:Translate&group=page-Manual%3AInstalling+MediaWiki&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="/web/20240917103147/https://www.mediawiki.org/wiki/Manual:Installing_MediaWiki/id" class="mw-pt-progress mw-pt-progress--med" title="Manual:Memasang MediaWiki (46% translated)" lang="id" dir="ltr">Bahasa Indonesia</a></li> <li><a href="/web/20240917103147/https://www.mediawiki.org/wiki/Manual:Installing_MediaWiki/ms" class="mw-pt-progress mw-pt-progress--high" title="Manual:Memasang MediaWiki (96% translated)" lang="ms" dir="ltr">Bahasa Melayu</a></li> <li><a href="/web/20240917103147/https://www.mediawiki.org/wiki/Manual:Installing_MediaWiki/de" class="mw-pt-progress mw-pt-progress--high" title="Handbuch:Installation von MediaWiki (97% translated)" lang="de" dir="ltr">Deutsch</a></li> <li><a href="/web/20240917103147/https://www.mediawiki.org/wiki/Manual:Installing_MediaWiki/de-formal" class="mw-pt-progress mw-pt-progress--med" title="Handbuch:Installation von MediaWiki (43% 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="/web/20240917103147/https://www.mediawiki.org/wiki/Manual:Installing_MediaWiki/nl" class="mw-pt-progress mw-pt-progress--complete" title="Handleiding:MediaWiki installeren (100% translated)" lang="nl" dir="ltr">Nederlands</a></li> <li><a href="/web/20240917103147/https://www.mediawiki.org/wiki/Manual:Installing_MediaWiki/vi" class="mw-pt-progress mw-pt-progress--high" title="Hướng dẫn:Cài đặt MediaWiki (89% translated)" lang="vi" dir="ltr">Tiếng Việt</a></li> <li><a href="/web/20240917103147/https://www.mediawiki.org/wiki/Manual:Installing_MediaWiki/tr" class="mw-pt-progress mw-pt-progress--high" title="Manual:MediaWiki kurma (84% translated)" lang="tr" dir="ltr">Türkçe</a></li> <li><a href="/web/20240917103147/https://www.mediawiki.org/wiki/Manual:Installing_MediaWiki/ca" class="mw-pt-progress mw-pt-progress--med" title="Manual:Instal·lació de MediaWiki (67% translated)" lang="ca" dir="ltr">català</a></li> <li><a href="/web/20240917103147/https://www.mediawiki.org/wiki/Manual:Installing_MediaWiki/da" class="mw-pt-progress mw-pt-progress--med" title="Manual:Installing MediaWiki (16% translated)" lang="da" dir="ltr">dansk</a></li> <li><a href="/web/20240917103147/https://www.mediawiki.org/wiki/Manual:Installing_MediaWiki/es" class="mw-pt-progress mw-pt-progress--high" title="Manual:Instalación de MediaWiki (98% translated)" lang="es" dir="ltr">español</a></li> <li><a href="/web/20240917103147/https://www.mediawiki.org/wiki/Manual:Installing_MediaWiki/fr" class="mw-pt-progress mw-pt-progress--high" title="Manuel:Configuration de MediaWiki (98% translated)" lang="fr" dir="ltr">français</a></li> <li><a href="/web/20240917103147/https://www.mediawiki.org/wiki/Manual:Installing_MediaWiki/it" class="mw-pt-progress mw-pt-progress--med" title="Manuale:Installazione MediaWiki (43% translated)" lang="it" dir="ltr">italiano</a></li> <li><a href="/web/20240917103147/https://www.mediawiki.org/wiki/Manual:Installing_MediaWiki/hu" class="mw-pt-progress mw-pt-progress--med" title="Manual:A MediaWiki telepítése (29% translated)" lang="hu" dir="ltr">magyar</a></li> <li><a href="/web/20240917103147/https://www.mediawiki.org/wiki/Manual:Installing_MediaWiki/pl" class="mw-pt-progress mw-pt-progress--high" title="Podręcznik:Instalowanie MediaWiki (96% translated)" lang="pl" dir="ltr">polski</a></li> <li><a href="/web/20240917103147/https://www.mediawiki.org/wiki/Manual:Installing_MediaWiki/pt" class="mw-pt-progress mw-pt-progress--high" title="Manual:Instalar o MediaWiki (74% translated)" lang="pt" dir="ltr">português</a></li> <li><a href="/web/20240917103147/https://www.mediawiki.org/wiki/Manual:Installing_MediaWiki/pt-br" class="mw-pt-progress mw-pt-progress--high" title="Manual:Instalando o MediaWiki (96% translated)" lang="pt-BR" dir="ltr">português do Brasil</a></li> <li><a href="/web/20240917103147/https://www.mediawiki.org/wiki/Manual:Installing_MediaWiki/ro" class="mw-pt-progress mw-pt-progress--low" title="Manual: Instalarea MediaWiki (4% translated)" lang="ro" dir="ltr">română</a></li> <li><a href="/web/20240917103147/https://www.mediawiki.org/wiki/Manual:Installing_MediaWiki/sk" class="mw-pt-progress mw-pt-progress--med" title="Návod:Inštalácia MediaWiki (25% translated)" lang="sk" dir="ltr">slovenčina</a></li> <li><a href="/web/20240917103147/https://www.mediawiki.org/wiki/Manual:Installing_MediaWiki/fi" class="mw-pt-progress mw-pt-progress--low" title="Ohje:MediaWikin asentaminen (9% translated)" lang="fi" dir="ltr">suomi</a></li> <li><a href="/web/20240917103147/https://www.mediawiki.org/wiki/Manual:Installing_MediaWiki/sv" class="mw-pt-progress mw-pt-progress--low" title="Manual:Installera MediaWiki (2% translated)" lang="sv" dir="ltr">svenska</a></li> <li><a href="/web/20240917103147/https://www.mediawiki.org/wiki/Manual:Installing_MediaWiki/cs" class="mw-pt-progress mw-pt-progress--high" title="Příručka:Instalace MediaWiki (96% translated)" lang="cs" dir="ltr">čeština</a></li> <li><a href="/web/20240917103147/https://www.mediawiki.org/wiki/Manual:Installing_MediaWiki/ru" class="mw-pt-progress mw-pt-progress--high" title="Руководство:Установка MediaWiki (99% translated)" lang="ru" dir="ltr">русский</a></li> <li><a href="/web/20240917103147/https://www.mediawiki.org/wiki/Manual:Installing_MediaWiki/he" class="mw-pt-progress mw-pt-progress--low" title="מדריך:התקנת MediaWiki (1% translated)" lang="he" dir="rtl">עברית</a></li> <li><a href="/web/20240917103147/https://www.mediawiki.org/wiki/Manual:Installing_MediaWiki/ar" class="mw-pt-progress mw-pt-progress--low" title="دليل:إعداد برمجيات ميدياويكي (2% translated)" lang="ar" dir="rtl">العربية</a></li> <li><a href="/web/20240917103147/https://www.mediawiki.org/wiki/Manual:Installing_MediaWiki/fa" class="mw-pt-progress mw-pt-progress--low" title="راهنما:نصب مدیاویکی (1% translated)" lang="fa" dir="rtl">فارسی</a></li> <li><a href="/web/20240917103147/https://www.mediawiki.org/wiki/Manual:Installing_MediaWiki/hi" class="mw-pt-progress mw-pt-progress--high" title="Manual:मीडियाविकि को स्थापित करना (96% translated)" lang="hi" dir="ltr">हिन्दी</a></li> <li><a href="/web/20240917103147/https://www.mediawiki.org/wiki/Manual:Installing_MediaWiki/gu" class="mw-pt-progress mw-pt-progress--low" title="Manual:Installing MediaWiki/gu (2% translated)" lang="gu" dir="ltr">ગુજરાતી</a></li> <li><a href="/web/20240917103147/https://www.mediawiki.org/wiki/Manual:Installing_MediaWiki/zh" class="mw-pt-progress mw-pt-progress--high" title="Manual:安装MediaWiki (98% translated)" lang="zh" dir="ltr">中文</a></li> <li><a href="/web/20240917103147/https://www.mediawiki.org/wiki/Manual:Installing_MediaWiki/ja" class="mw-pt-progress mw-pt-progress--high" title="Manual:MediaWiki のインストール (94% translated)" lang="ja" dir="ltr">日本語</a></li> <li><a href="/web/20240917103147/https://www.mediawiki.org/wiki/Manual:Installing_MediaWiki/yue" class="mw-pt-progress mw-pt-progress--low" title="手冊:乜嘢係MediaWiki (3% translated)" lang="yue" dir="ltr">粵語</a></li> <li><a href="/web/20240917103147/https://www.mediawiki.org/wiki/Manual:Installing_MediaWiki/ko" class="mw-pt-progress mw-pt-progress--high" title="매뉴얼:미디어위키 설치 (97% translated)" lang="ko" dir="ltr">한국어</a></li></ul></div> <style data-mw-deduplicate="TemplateStyles:r6651103">.mw-parser-output .nmbox{background:#f8f9fa;border:1px solid #AAA;box-sizing:border-box;margin:2px 0;padding:0}.mw-parser-output .nmbox *{box-sizing:border-box}.mw-parser-output .nmbox-header{background:#eaecf0;padding:4px 0.5em;font-weight:bold;text-align:center;white-space:nowrap}.mw-parser-output .nmbox .mbox-image{display:inline-block;padding-right:1em}.mw-parser-output .nmbox-text{border-top:1px solid #AAA;width:100%;padding:4px 0.5em}@media screen and (min-width:768px){.mw-parser-output .nmbox-header{display:table-cell;border-right:1px solid #AAA;width:1%}.mw-parser-output .nmbox-text{border-top:none;display:table-cell}}@media screen{html.skin-theme-clientpref-night .mw-parser-output .nmbox-header,html.skin-theme-clientpref-night .mw-parser-output .nmbox{background:transparent;color:inherit}}@media screen and (prefers-color-scheme:dark){html.skin-theme-clientpref-os .mw-parser-output .nmbox-header,html.skin-theme-clientpref-os .mw-parser-output .nmbox{background:transparent;color:inherit}}</style> <div class="nmbox noprint mw-content-ltr"><div class="nmbox-header"><div class="nmbox-image mbox-image"><span typeof="mw:File"><span><img src="//web.archive.org/web/20240917103147im_/https://upload.wikimedia.org/wikipedia/commons/thumb/a/a6/MediaWiki-2020-icon.svg/35px-MediaWiki-2020-icon.svg.png" decoding="async" width="35" height="35" class="mw-file-element" srcset="//web.archive.org/web/20240917103147im_/https://upload.wikimedia.org/wikipedia/commons/thumb/a/a6/MediaWiki-2020-icon.svg/53px-MediaWiki-2020-icon.svg.png 1.5x, //web.archive.org/web/20240917103147im_/https://upload.wikimedia.org/wikipedia/commons/thumb/a/a6/MediaWiki-2020-icon.svg/70px-MediaWiki-2020-icon.svg.png 2x" data-file-width="100" data-file-height="100"/></span></span></div><b><b><a href="/web/20240917103147/https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:Installing_MediaWiki" title="Special:MyLanguage/Manual:Installing MediaWiki">Install MediaWiki</a></b><span style="display:none"><a class="mw-selflink selflink"> </a></span></b> </div> <div class="nmbox-text mbox-text"><style data-mw-deduplicate="TemplateStyles:r6387430">.mw-parser-output .hlist dl,.mw-parser-output .hlist ol,.mw-parser-output .hlist ul{margin:0;padding:0}.mw-parser-output .hlist dd,.mw-parser-output .hlist dt,.mw-parser-output .hlist li{margin:0;display:inline}.mw-parser-output .hlist dl dl,.mw-parser-output .hlist dl ol,.mw-parser-output .hlist dl ul,.mw-parser-output .hlist ol dl,.mw-parser-output .hlist ol ol,.mw-parser-output .hlist ol ul,.mw-parser-output .hlist ul dl,.mw-parser-output .hlist ul ol,.mw-parser-output .hlist ul ul{display:inline}.mw-parser-output .hlist .mw-empty-li,.mw-parser-output .hlist .mw-empty-elt{display:none}.mw-parser-output .hlist dt:after{content:": "}.mw-parser-output .hlist dd:after,.mw-parser-output .hlist li:after{content:" · ";font-weight:bold}.mw-parser-output .hlist dd:last-child:after,.mw-parser-output .hlist dt:last-child:after,.mw-parser-output .hlist li:last-child:after{content:none}.mw-parser-output .hlist dd dd:first-child:before,.mw-parser-output .hlist dd dt:first-child:before,.mw-parser-output .hlist dd li:first-child:before,.mw-parser-output .hlist dt dd:first-child:before,.mw-parser-output .hlist dt dt:first-child:before,.mw-parser-output .hlist dt li:first-child:before,.mw-parser-output .hlist li dd:first-child:before,.mw-parser-output .hlist li dt:first-child:before,.mw-parser-output .hlist li li:first-child:before{content:" (";font-weight:normal}.mw-parser-output .hlist dd dd:last-child:after,.mw-parser-output .hlist dd dt:last-child:after,.mw-parser-output .hlist dd li:last-child:after,.mw-parser-output .hlist dt dd:last-child:after,.mw-parser-output .hlist dt dt:last-child:after,.mw-parser-output .hlist dt li:last-child:after,.mw-parser-output .hlist li dd:last-child:after,.mw-parser-output .hlist li dt:last-child:after,.mw-parser-output .hlist li li:last-child:after{content:")";font-weight:normal}.mw-parser-output .hlist ol{counter-reset:listitem}.mw-parser-output .hlist ol>li{counter-increment:listitem}.mw-parser-output .hlist ol>li:before{content:" "counter(listitem)"\a0 "}.mw-parser-output .hlist dd ol>li:first-child:before,.mw-parser-output .hlist dt ol>li:first-child:before,.mw-parser-output .hlist li ol>li:first-child:before{content:" ("counter(listitem)"\a0 "}</style><div class="hlist"> <ul><li><a href="/web/20240917103147/https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:Installation_requirements" title="Special:MyLanguage/Manual:Installation requirements">Requirements</a><span style="display:none"><a href="/web/20240917103147/https://www.mediawiki.org/wiki/Manual:Installation_requirements" title="Manual:Installation requirements"> </a></span></li> <li><a href="/web/20240917103147/https://www.mediawiki.org/wiki/Special:MyLanguage/Download" title="Special:MyLanguage/Download">Download</a><span style="display:none"><a href="/web/20240917103147/https://www.mediawiki.org/wiki/Download" title="Download"> </a></span></li> <li><b><a href="/web/20240917103147/https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:Installing_MediaWiki#Extract_the_MediaWiki_software" title="Special:MyLanguage/Manual:Installing MediaWiki">Extract</a></b><span style="display:none"><a class="mw-selflink-fragment" href="#Extract_the_MediaWiki_software"> </a></span></li> <li><b><a href="/web/20240917103147/https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:Installing_MediaWiki#Upload_files_to_your_web_server" title="Special:MyLanguage/Manual:Installing MediaWiki">Upload</a></b><span style="display:none"><a class="mw-selflink-fragment" href="#Upload_files_to_your_web_server"> </a></span></li> <li><b><a href="/web/20240917103147/https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:Installing_MediaWiki#Set_up_the_database" title="Special:MyLanguage/Manual:Installing MediaWiki">Set up database</a></b><span style="display:none"><a class="mw-selflink-fragment" href="#Set_up_the_database"> </a></span></li> <li><a href="/web/20240917103147/https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:Config_script" title="Special:MyLanguage/Manual:Config script">Install</a><span style="display:none"><a href="/web/20240917103147/https://www.mediawiki.org/wiki/Manual:Config_script" title="Manual:Config script"> </a></span></li> <li><a href="/web/20240917103147/https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:System_administration#Configuration" title="Special:MyLanguage/Manual:System administration">Configure</a><span style="display:none"><a href="/web/20240917103147/https://www.mediawiki.org/wiki/Manual:System_administration#Configuration" title="Manual:System administration"> </a></span></li></ul> </div> <hr/> <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r6387430"><div class="hlist"> <ul><li><a href="/web/20240917103147/https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:FAQ#Installation_and_configuration" title="Special:MyLanguage/Manual:FAQ">FAQ</a><span style="display:none"><a href="/web/20240917103147/https://www.mediawiki.org/wiki/Manual:FAQ#Installation_and_configuration" title="Manual:FAQ"> </a></span></li> <li><a href="/web/20240917103147/https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:Common_errors_and_symptoms#Installation_Errors" title="Special:MyLanguage/Manual:Common errors and symptoms">Common issues</a><span style="display:none"><a href="/web/20240917103147/https://www.mediawiki.org/wiki/Manual:Common_errors_and_symptoms#Installation_Errors" title="Manual:Common errors and symptoms"> </a></span></li> <li><a href="/web/20240917103147/https://www.mediawiki.org/wiki/Special:MyLanguage/Communication" title="Special:MyLanguage/Communication">Get help and support</a><span style="display:none"><a href="/web/20240917103147/https://www.mediawiki.org/wiki/Communication" title="Communication"> </a></span></li></ul> </div> <hr/> <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r6387430"><div class="hlist"> <ul><li><a href="/web/20240917103147/https://www.mediawiki.org/wiki/Special:MyLanguage/Local_development_quickstart" title="Special:MyLanguage/Local development quickstart">Local development quickstart</a><span style="display:none"><a href="/web/20240917103147/https://www.mediawiki.org/wiki/Local_development_quickstart" title="Local development quickstart"> </a></span></li></ul> </div></div> </div> <p>This page covers steps to manually install MediaWiki, with additional configuration steps found at <a href="/web/20240917103147/https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:System_administration#Configuration" title="Special:MyLanguage/Manual:System administration">Manual:System administration#Configuration</a>. </p><p>Installing MediaWiki requires a basic understanding of and familiarity with web hosting. Having experience with Apache (web server software), PHP, and MySQL/MariaDB (database) will make the process easier. For additional assistance, visit the <a href="/web/20240917103147/https://www.mediawiki.org/wiki/Project:Support_desk" title="Project:Support desk">Project: Support desk</a>. </p><p>The <a href="#Appendices">Appendices</a> section below offers <a href="#Alternatives_to_manual_installation">alternatives to manual installation</a>, along with specific installation notes for different system configurations. </p><p>For a faster local setup, check out the <a href="/web/20240917103147/https://www.mediawiki.org/wiki/Special:MyLanguage/Local_development_quickstart" title="Special:MyLanguage/Local development quickstart">Local development quickstart</a><span style="display:none"><a href="/web/20240917103147/https://www.mediawiki.org/wiki/Local_development_quickstart" title="Local development quickstart"> </a></span>. </p> <meta property="mw:PageProp/toc"/> <div class="mw-heading mw-heading2"><h2 id="Check_the_installation_requirements">Check the installation requirements</h2></div> <p>Check that your system meets the <a href="/web/20240917103147/https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:Installation_requirements" title="Special:MyLanguage/Manual:Installation requirements">installation requirements</a>. </p><p>Make sure to also check the <a href="/web/20240917103147/https://www.mediawiki.org/wiki/Special:MyLanguage/Release_notes" title="Special:MyLanguage/Release notes">Release notes</a><span style="display:none"><a href="/web/20240917103147/https://www.mediawiki.org/wiki/Release_notes" title="Release notes"> </a></span> of the MediaWiki version that you plan to install. </p> <div class="mw-heading mw-heading2"><h2 id="Download_the_MediaWiki_software">Download the MediaWiki software</h2></div> <p>Download the MediaWiki tar file from the <a href="/web/20240917103147/https://www.mediawiki.org/wiki/Special:MyLanguage/Download" title="Special:MyLanguage/Download">official download page</a>. </p><p>Generally, if you're using a production environment, you want to be running the latest stable release, which is MediaWiki 1.42.1. </p> <div class="mw-heading mw-heading2"><h2 id="Extract_the_MediaWiki_software">Extract the MediaWiki software</h2></div> <p>The downloaded file is in <code>.zip</code> or in <code>.tar.gz</code> file format. You need to uncompress this archive file before use. You can uncompress the file locally (and then upload via FTP to the server) or directly on your server. </p><p>On Windows, uncompressing is usually done with software such as <a rel="nofollow" class="external text" href="https://web.archive.org/web/20240917103147/https://www.7-zip.org/">7-Zip</a> (free), <a rel="nofollow" class="external text" href="https://web.archive.org/web/20240917103147/https://www.winzip.com/">WinZip</a>, <a rel="nofollow" class="external text" href="https://web.archive.org/web/20240917103147/https://www.rarlab.com/">WinRAR</a> or <a rel="nofollow" class="external text" href="https://web.archive.org/web/20240917103147/https://www.izarc.org/">IZArc</a> (free). </p><p>On Linux and Mac OS X, you can uncompress the file using the command: <code>tar -xzvf mediawiki-*.tar.<b>gz</b></code> </p> <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://web.archive.org/web/20240917103147im_/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://web.archive.org/web/20240917103147im_/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://web.archive.org/web/20240917103147im_/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://web.archive.org/web/20240917103147im_/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-info">If you uncompress the archive file while being the root/admin user, you may want to change file ownership afterwards, depending on your setup. On Linux systems, the command would be using <a href="https://web.archive.org/web/20240917103147/https://en.wikipedia.org/wiki/chown" class="extiw" title="w:chown">chown</a> as the following: <code>chown -R <new_owner_user> <mediawiki_folder></code> More info: <a href="/web/20240917103147/https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:Security#File_permissions" title="Special:MyLanguage/Manual:Security">Manual:Security#File_permissions</a></div> <div class="mw-heading mw-heading2"><h2 id="Upload_files_to_your_web_server">Upload files to your web server</h2></div> <p>If you have not already uploaded the files to your <a href="/web/20240917103147/https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:Installation_requirements#Web_server" title="Special:MyLanguage/Manual:Installation requirements">web server</a> (or copied, if your web server software runs locally on your <code>localhost</code>), do so now. </p><p>Upload the files to your web server's web directory either by: </p> <ol><li>directly copying the unzipped folder or</li> <li>by using an FTP client such as <a rel="nofollow" class="external text" href="https://web.archive.org/web/20240917103147/https://filezilla-project.org/">FileZilla</a> (Windows, OSX and Linux) or <a rel="nofollow" class="external text" href="https://web.archive.org/web/20240917103147/https://cyberduck.io/">Cyberduck</a> (Windows and OSX).</li> <li>by using software already provided by your <a href="/web/20240917103147/https://www.mediawiki.org/wiki/Special:MyLanguage/Hosting_services" title="Special:MyLanguage/Hosting services">hosting service</a>, such as the <i>cPanel File Manager</i></li></ol> <p>If your upload tool has a "change file names to lowercase" option, then you must disable this. </p><p>If you use the Apache HTTPD web server, the correct directory is specified in your <code>httpd.conf</code> file in the <a rel="nofollow" class="external text" href="https://web.archive.org/web/20240917103147/https://httpd.apache.org/docs/current/mod/core.html#documentroot"><code>DocumentRoot</code></a> directive. By default, this is <code>/var/www/</code> or <code><apache-folder>/htdocs</code>. </p><p>The exact location of the Apache server settings and directories file <code>httpd.conf</code> depends on your operating system. In Debian and Ubuntu, the file for Apache server settings and directories is <code>/etc/apache2/apache2.conf</code>. In Red Hat and Fedora, the file is <code>/etc/httpd/conf/httpd.conf</code>. </p><p>Rename the uploaded folder to whatever you would like to have in the URL. If your web server is running as <code><a rel="nofollow" class="external free" href="https://web.archive.org/web/20240917103147/http://localhost/">http://localhost</a></code> for example, renaming to <code>/w/</code> directory would mean you would access your wiki at <code><a rel="nofollow" class="external free" href="https://web.archive.org/web/20240917103147/http://localhost/w/index.php">http://localhost/w/index.php</a></code>. </p> <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r6651107"><div role="note" class="note note-info">Do not use <code>/wiki/</code> if you want to set it up as a <a href="/web/20240917103147/https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:Short_URL" title="Special:MyLanguage/Manual:Short URL">Short URL</a> after running the <a href="/web/20240917103147/https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:Config_script" title="Special:MyLanguage/Manual:Config script">installation script</a>.</div> <p><span class="anchor" id="Create_a_database"></span> </p> <div class="mw-heading mw-heading2"><h2 id="Set_up_the_database">Set up the database</h2></div> <p>MediaWiki's <a href="/web/20240917103147/https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:Config_script" title="Special:MyLanguage/Manual:Config script">installation script</a> will ask you for a database name and database username, so MediaWiki can store the content of the wiki. </p><p>If you already have a database server and know the password for the "root" (admin) user, skip to the <a href="#Run_the_installation_script">#Run the installation script</a> section below. </p><p>If you don't know the password for the root user, for example if you are on a <a href="/web/20240917103147/https://www.mediawiki.org/wiki/Special:MyLanguage/Hosting_services" title="Special:MyLanguage/Hosting services">hosted server</a>, you will have to create a new database before you run the MediaWiki installation script in the next section. </p><p>MariaDB/MySQL are the recommended databases. PostgreSQL and SQLite have limited support and should not be used unless there is a reason to. If you're unsure which database to choose, use MariaDB. </p><p>After finishing the database setup, continue with <a href="#Run_the_installation_script">#Run the installation script</a> below. </p> <div class="mw-heading mw-heading3"><h3 id="SQLite">SQLite</h3></div> <p>No further setup is required for <a href="/web/20240917103147/https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:SQLite" title="Special:MyLanguage/Manual:SQLite">SQLite</a> if the <code>pdo-sqlite</code> module for PHP is installed on the system. </p><p>On the SQLite installation page, choose a database name (which can be anything) and the SQLite database directory. For the database directory, the installer will attempt to use a subdirectory outside of the document root and create it if needed. If this directory is not safe (for example, web-readable), change it manually to avoid making it accessible to everyone on the web. </p> <div class="mw-heading mw-heading3"><h3 id="MariaDB/MySQL"><span id="MariaDB.2FMySQL"></span>MariaDB/MySQL</h3></div> <p>Create the <a href="/web/20240917103147/https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:MariaDB" title="Special:MyLanguage/Manual:MariaDB">MariaDB</a>/<a href="/web/20240917103147/https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:MySQL" title="Special:MyLanguage/Manual:MySQL">MySQL</a> database and database user. There are several ways: </p> <ul><li>Use a <a href="/web/20240917103147/https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:Installation_requirements#Control_panel" title="Special:MyLanguage/Manual:Installation requirements">control panel</a> software offered by your <a href="/web/20240917103147/https://www.mediawiki.org/wiki/Special:MyLanguage/Hosting_services" title="Special:MyLanguage/Hosting services">Hosting service</a> (example: <a href="https://web.archive.org/web/20240917103147/https://en.wikipedia.org/wiki/PhpMyAdmin" class="extiw" title="w:PhpMyAdmin">PhpMyAdmin</a>)</li> <li>Use <a href="https://web.archive.org/web/20240917103147/https://en.wikipedia.org/wiki/Secure_Shell" class="extiw" title="w:Secure Shell">ssh</a> to log into your host and type the commands below into a MySQL prompt. See the corresponding documentation of your hosting provider. Alternatively, contact your <a href="/web/20240917103147/https://www.mediawiki.org/wiki/Special:MyLanguage/Hosting_services" title="Special:MyLanguage/Hosting services">hosting provider</a> to have them create an account for you.</li></ul> <p>The following commands create a database named <code>my_wiki</code>, a user named <code>wikiuser</code>, and set permissions for the user on that database. </p> <div class="mw-highlight mw-highlight-lang-mysql mw-content-ltr" dir="ltr"><pre><span></span><span class="k">CREATE</span><span class="w"> </span><span class="k">DATABASE</span><span class="w"> </span><span class="n">my_wiki</span><span class="p">;</span> <span class="k">CREATE</span><span class="w"> </span><span class="k">USER</span><span class="w"> </span><span class="s1">'wikiuser'</span><span class="nv">@'localhost'</span><span class="w"> </span><span class="k">IDENTIFIED</span><span class="w"> </span><span class="k">BY</span><span class="w"> </span><span class="s1">'database_password'</span><span class="p">;</span> <span class="k">GRANT</span><span class="w"> </span><span class="k">ALL</span><span class="w"> </span><span class="k">PRIVILEGES</span><span class="w"> </span><span class="k">ON</span><span class="w"> </span><span class="n">my_wiki</span><span class="p">.</span><span class="o">*</span><span class="w"> </span><span class="k">TO</span><span class="w"> </span><span class="s1">'wikiuser'</span><span class="nv">@'localhost'</span><span class="w"> </span><span class="k">WITH</span><span class="w"> </span><span class="k">GRANT</span><span class="w"> </span><span class="k">OPTION</span><span class="p">;</span> </pre></div> <p>Only if your database is not running on the same server as your web server, you need to give the appropriate web server hostname (<code>mediawiki.example.com</code> in the example below): </p> <div class="mw-highlight mw-highlight-lang-mysql mw-content-ltr" dir="ltr"><pre><span></span><span class="k">GRANT</span><span class="w"> </span><span class="k">ALL</span><span class="w"> </span><span class="k">PRIVILEGES</span><span class="w"> </span><span class="k">ON</span><span class="w"> </span><span class="n">my_wiki</span><span class="p">.</span><span class="o">*</span><span class="w"> </span><span class="k">TO</span><span class="w"> </span><span class="s1">'wikiuser'</span><span class="nv">@'mediawiki.example.com'</span><span class="w"> </span><span class="k">IDENTIFIED</span><span class="w"> </span><span class="k">BY</span><span class="w"> </span><span class="s1">'database_password'</span><span class="p">;</span> </pre></div> <table class="warning-message" style="background-color: #fee7e6; color:#333; border: 1px #d33 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="//web.archive.org/web/20240917103147im_/https://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="//web.archive.org/web/20240917103147im_/https://upload.wikimedia.org/wikipedia/commons/thumb/b/bf/OOjs_UI_icon_notice-destructive.svg/27px-OOjs_UI_icon_notice-destructive.svg.png 1.5x, //web.archive.org/web/20240917103147im_/https://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;">MySQL/MariaDB logs all queries in a history file. It will include the database password for the user account. If this concerns you, delete and disable the <code>.mysql_history</code> file after running these queries by following the <a rel="nofollow" class="external text" href="https://web.archive.org/web/20240917103147/https://dev.mysql.com/doc/refman/8.0/en/mysql-logging.html#mysql-logging-history-file">MySQL documentation</a>.</td></tr></tbody></table> <div class="mw-heading mw-heading3"><h3 id="PostgreSQL">PostgreSQL</h3></div> <p>If you are using <a href="/web/20240917103147/https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:PostgreSQL" title="Special:MyLanguage/Manual:PostgreSQL">PostgreSQL</a>, you will need to either have a database and user created for you, or supply the name of a PostgreSQL user with "superuser" privileges to the configuration form. Often, this is the database user named <code>postgres</code>. </p><p>The following commands on a Linux command-line, as the postgres user, create a database user named <code>wikiuser</code>, and a database named <code>my_wiki</code> owned by the user named <code>wikiuser</code>. </p> <pre> createuser -S -D -R -P -E wikiuser (then enter the database password) createdb -O wikiuser my_wiki </pre> <p>or as superuser (default postgres) execute the following commands at the database prompt: </p> <div class="mw-highlight mw-highlight-lang-sql mw-content-ltr" dir="ltr"><pre><span></span><span class="k">CREATE</span><span class="w"> </span><span class="k">USER</span><span class="w"> </span><span class="n">wikiuser</span><span class="w"> </span><span class="k">WITH</span><span class="w"> </span><span class="k">NOCREATEDB</span><span class="w"> </span><span class="n">NOCREATEROLE</span><span class="w"> </span><span class="n">NOSUPERUSER</span><span class="w"> </span><span class="k">ENCRYPTED</span><span class="w"> </span><span class="n">PASSWORD</span><span class="w"> </span><span class="s1">'database_password'</span><span class="p">;</span> <span class="k">CREATE</span><span class="w"> </span><span class="k">DATABASE</span><span class="w"> </span><span class="n">my_wiki</span><span class="w"> </span><span class="k">WITH</span><span class="w"> </span><span class="k">OWNER</span><span class="w"> </span><span class="n">wikiuser</span><span class="p">;</span> </pre></div> <p>Beware of the <a href="https://web.archive.org/web/20240917103147/https://phabricator.wikimedia.org/tag/postgreSQL" class="extiw" title="phab:tag/postgreSQL">list of known issues when running MediaWiki with PostgreSQL</a>. </p> <div class="mw-heading mw-heading2"><h2 id="Run_the_installation_script">Run the installation script</h2></div> <p>Next, complete the installation of MediaWiki by going to the URL of your MediaWiki installation in your web browser: Follow the instructions in <a href="/web/20240917103147/https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:Config_script" title="Special:MyLanguage/Manual:Config script">Manual:Config script</a><span style="display:none"><a href="/web/20240917103147/https://www.mediawiki.org/wiki/Manual:Config_script" title="Manual:Config script"> </a></span>. </p> <div class="mw-heading mw-heading2"><h2 id="Further_configuration">Further configuration</h2></div> <ul><li><a href="/web/20240917103147/https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:System_administration#Configuration" title="Special:MyLanguage/Manual:System administration">Manual:System administration</a><span style="display:none"><a href="/web/20240917103147/https://www.mediawiki.org/wiki/Manual:System_administration#Configuration" title="Manual:System administration"> </a></span> - Additional configuration</li> <li><a href="/web/20240917103147/https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:Administrators" title="Special:MyLanguage/Manual:Administrators">Manual:Administrators</a><span style="display:none"><a href="/web/20240917103147/https://www.mediawiki.org/wiki/Manual:Administrators" title="Manual:Administrators"> </a></span> - Wiki administration</li></ul> <div class="mw-heading mw-heading2"><h2 id="Keep_up_to_date!"><span id="Keep_up_to_date.21"></span>Keep up to date!</h2></div> <p>Once installed, make sure you stay up to date with releases, and keep your server secure! </p><p><span class="plainlinks"><a class="external text" href="https://web.archive.org/web/20240917103147/https://lists.wikimedia.org/postorius/lists/mediawiki-announce.lists.wikimedia.org/"><span class="mw-ui-button mw-ui-progressive" role="button">Subscribe to the MediaWiki release announcements mailing list</span></a></span> </p> <div class="mw-heading mw-heading2"><h2 id="Appendices">Appendices</h2></div> <div class="mw-heading mw-heading3"><h3 id="Alternatives_to_manual_installation">Alternatives to manual installation</h3></div> <p>Manual installation is often the preferred method because it gives the user more control and insight into how their wiki is installed, making troubleshooting and maintenance easier. Automated processes, packages, bundles, and services all come with their own idiosyncrasies. </p><p>Instead of manually installing MediaWiki, alternative options might be easier: </p> <ul><li><a href="/web/20240917103147/https://www.mediawiki.org/wiki/Special:MyLanguage/Software_bundles#MediaWiki_software_appliances" title="Special:MyLanguage/Software bundles">pre-integrated software appliances</a></li> <li><a href="/web/20240917103147/https://www.mediawiki.org/wiki/Special:MyLanguage/Hosting_services" title="Special:MyLanguage/Hosting services">hosting services with 1-click installation, or wiki farms</a></li> <li><a href="/web/20240917103147/https://www.mediawiki.org/wiki/Special:MyLanguage/software_bundles" title="Special:MyLanguage/software bundles">Software bundles</a><span style="display:none"><a href="/web/20240917103147/https://www.mediawiki.org/wiki/Software_bundles" title="Software bundles"> </a></span></li></ul> <dl><dd><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r6651107"><div role="note" class="note note-info">Hosting services which provide automatical installation of applications such as MediaWiki may offer outdated versions or have other issues. If you encounter problems, it <i>does not</i> mean that you cannot install MediaWiki. It means that you should install MediaWiki manually.</div></dd></dl> <p>See also the <a href="/web/20240917103147/https://www.mediawiki.org/wiki/Special:MyLanguage/comparison_of_distribution_options" title="Special:MyLanguage/comparison of distribution options">comparison of distribution options</a><span style="display:none"><a href="/web/20240917103147/https://www.mediawiki.org/wiki/Comparison_of_distribution_options" title="Comparison of distribution options"> </a></span>. </p> <div class="mw-heading mw-heading3"><h3 id="System-specific_instructions">System-specific instructions</h3></div> <p>The pages listed on <a href="/web/20240917103147/https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:OS_specific_help" title="Special:MyLanguage/Manual:OS specific help">Manual:OS specific help</a><span style="display:none"><a href="/web/20240917103147/https://www.mediawiki.org/wiki/Manual:OS_specific_help" title="Manual:OS specific help"> </a></span> give more detailed installation instructions aimed at specific systems. </p><p>However, by and large these per-system docs are less maintained and might not always be up to date. First consult <b><a href="/web/20240917103147/https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:Installing_MediaWiki" title="Special:MyLanguage/Manual:Installing MediaWiki">Installing MediaWiki</a></b><span style="display:none"><a class="mw-selflink selflink"> </a></span> (this page) before looking at per-system installation documentation. </p><p><span class="anchor" id="Wiki_families_(multiple_wikis)"></span> </p> <div class="mw-heading mw-heading3"><h3 id="Running_multiple_wikis">Running multiple wikis</h3></div> <p>Refer to <a href="/web/20240917103147/https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:FAQ#Installation_and_configuration" title="Special:MyLanguage/Manual:FAQ">Manual:FAQ#Installation and configuration</a>. </p><p><span class="anchor" id="Installing_an_existing_wiki"></span> </p> <div class="mw-heading mw-heading3"><h3 id="Importing_an_existing_wiki_database">Importing an existing wiki database</h3></div> <p>Refer to <a href="/web/20240917103147/https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:FAQ#Installation_and_configuration" title="Special:MyLanguage/Manual:FAQ">Manual:FAQ#Installation and configuration</a>. </p> <div class="mw-heading mw-heading2"><h2 id="See_also">See also</h2></div> <ul><li><a href="/web/20240917103147/https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:Upgrading" title="Special:MyLanguage/Manual:Upgrading">Upgrading</a><span style="display:none"><a href="/web/20240917103147/https://www.mediawiki.org/wiki/Manual:Upgrading" title="Manual:Upgrading"> </a></span></li> <li><a href="/web/20240917103147/https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:Uninstallation" title="Special:MyLanguage/Manual:Uninstallation">Uninstallation</a><span style="display:none"><a href="/web/20240917103147/https://www.mediawiki.org/wiki/Manual:Uninstallation" title="Manual:Uninstallation"> </a></span></li></ul> <!-- NewPP limit report Parsed by mw‐api‐int.eqiad.main‐6b496c5d55‐ngsfq Cached time: 20240916165950 Cache expiry: 2592000 Reduced expiry: false Complications: [show‐toc] CPU time usage: 0.458 seconds Real time usage: 0.845 seconds Preprocessor visited node count: 2058/1000000 Post‐expand include size: 27565/2097152 bytes Template argument size: 16743/2097152 bytes Highest expansion depth: 20/100 Expensive parser function count: 31/500 Unstrip recursion depth: 0/20 Unstrip post‐expand size: 22402/5000000 bytes Lua time usage: 0.067/10.000 seconds Lua memory usage: 1496629/52428800 bytes Number of Wikibase entities loaded: 0/400 --> <!-- Transclusion expansion time report (%,ms,calls,template) 100.00% 542.729 1 -total 73.21% 397.349 23 Template:Ll 39.67% 215.306 1 Translations:Manual:OS_specific_help/Page_display_title/en 29.44% 159.779 1 Template:InstallationNav 28.26% 153.382 1 Template:Nmbox 18.78% 101.947 3 Template:Flatlist 14.74% 79.986 46 Template:Translatable 12.89% 69.951 24 Template:Pagelang 7.64% 41.453 9 Template:TNTN 6.19% 33.592 1 Template:Clickable_button_2 --> <!-- Saved in parser cache with key mediawikiwiki:pcache:idhash:18173-0!canonical and timestamp 20240916165950 and revision id 6756332. Rendering was triggered because: api-parse --> </div><!--esi <esi:include src="/esitest-fa8a495983347898/content" /> --><noscript><img src="https://web.archive.org/web/20240917103147im_/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://web.archive.org/web/20240917103147/https://www.mediawiki.org/w/index.php?title=Manual:Installing_MediaWiki&oldid=6756332">https://www.mediawiki.org/w/index.php?title=Manual:Installing_MediaWiki&oldid=6756332</a>"</div></div> <div id="catlinks" class="catlinks" data-mw="interface"><div id="mw-normal-catlinks" class="mw-normal-catlinks"><a href="/web/20240917103147/https://www.mediawiki.org/wiki/Special:Categories" title="Special:Categories">Categories</a>: <ul><li><a href="/web/20240917103147/https://www.mediawiki.org/wiki/Category:Installation" title="Category:Installation">Installation</a></li><li><a href="/web/20240917103147/https://www.mediawiki.org/wiki/Category:MediaWiki_administration" title="Category:MediaWiki administration">MediaWiki administration</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 15 September 2024, at 23:27.</li> <li id="footer-info-copyright">Text is available under the <a href="https://web.archive.org/web/20240917103147/https://creativecommons.org/licenses/by-sa/4.0/deed.en">Creative Commons Attribution-ShareAlike License</a>; additional terms may apply. See <a href="https://web.archive.org/web/20240917103147/https://foundation.wikimedia.org/wiki/Special:MyLanguage/Policy:Terms_of_Use">Terms of Use</a> for details.</li> </ul> <ul id="footer-places"> <li id="footer-places-privacy"><a href="https://web.archive.org/web/20240917103147/https://foundation.wikimedia.org/wiki/Special:MyLanguage/Policy:Privacy_policy">Privacy policy</a></li> <li id="footer-places-about"><a href="/web/20240917103147/https://www.mediawiki.org/wiki/Project:About">About mediawiki.org</a></li> <li id="footer-places-disclaimers"><a href="/web/20240917103147/https://www.mediawiki.org/wiki/Project:General_disclaimer">Disclaimers</a></li> <li id="footer-places-wm-codeofconduct"><a href="https://web.archive.org/web/20240917103147/https://www.mediawiki.org/wiki/Special:MyLanguage/Code_of_Conduct">Code of Conduct</a></li> <li id="footer-places-developers"><a href="https://web.archive.org/web/20240917103147/https://developer.wikimedia.org/">Developers</a></li> <li id="footer-places-statslink"><a href="https://web.archive.org/web/20240917103147/https://stats.wikimedia.org/#/www.mediawiki.org">Statistics</a></li> <li id="footer-places-cookiestatement"><a href="https://web.archive.org/web/20240917103147/https://foundation.wikimedia.org/wiki/Special:MyLanguage/Policy:Cookie_statement">Cookie statement</a></li> <li id="footer-places-mobileview"><a href="//web.archive.org/web/20240917103147/https://m.mediawiki.org/w/index.php?title=Manual:Installing_MediaWiki&mobileaction=toggle_view_mobile" class="noprint stopMobileRedirectToggle">Mobile view</a></li> </ul> <ul id="footer-icons" class="noprint"> <li id="footer-copyrightico"><a class="cdx-button cdx-button--fake-button cdx-button--size-large cdx-button--fake-button--enabled" style="padding-left: 8px; padding-right: 8px;" href="https://web.archive.org/web/20240917103147/https://wikimediafoundation.org/" target="https://wikimediafoundation.org/"><img src="/web/20240917103147im_/https://www.mediawiki.org/static/images/footer/wikimedia-button.svg" width="84" height="29" alt="Wikimedia Foundation"></a></li> <li id="footer-poweredbyico"><a href="https://web.archive.org/web/20240917103147/https://www.mediawiki.org/" class="cdx-button cdx-button--fake-button cdx-button--size-large cdx-button--fake-button--enabled"><img src="/web/20240917103147im_/https://www.mediawiki.org/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.log.warn("This page is using the deprecated ResourceLoader module \"mediawiki.ui.button\".\n[1.41] Please use Codex. See migration guidelines: https://www.mediawiki.org/wiki/Codex/Migrating_from_MediaWiki_UI");mw.config.set({"wgHostname":"mw-web.eqiad.main-575bddf9c4-kkmwr","wgBackendResponseTime":104,"wgPageParseReport":{"limitreport":{"cputime":"0.458","walltime":"0.845","ppvisitednodes":{"value":2058,"limit":1000000},"postexpandincludesize":{"value":27565,"limit":2097152},"templateargumentsize":{"value":16743,"limit":2097152},"expansiondepth":{"value":20,"limit":100},"expensivefunctioncount":{"value":31,"limit":500},"unstrip-depth":{"value":0,"limit":20},"unstrip-size":{"value":22402,"limit":5000000},"entityaccesscount":{"value":0,"limit":400},"timingprofile":["100.00% 542.729 1 -total"," 73.21% 397.349 23 Template:Ll"," 39.67% 215.306 1 Translations:Manual:OS_specific_help/Page_display_title/en"," 29.44% 159.779 1 Template:InstallationNav"," 28.26% 153.382 1 Template:Nmbox"," 18.78% 101.947 3 Template:Flatlist"," 14.74% 79.986 46 Template:Translatable"," 12.89% 69.951 24 Template:Pagelang"," 7.64% 41.453 9 Template:TNTN"," 6.19% 33.592 1 Template:Clickable_button_2"]},"scribunto":{"limitreport-timeusage":{"value":"0.067","limit":"10.000"},"limitreport-memusage":{"value":1496629,"limit":52428800}},"cachereport":{"origin":"mw-api-int.eqiad.main-6b496c5d55-ngsfq","timestamp":"20240916165950","ttl":2592000,"transientcontent":false}}});});</script> </body> </html><!-- FILE ARCHIVED ON 10:31:47 Sep 17, 2024 AND RETRIEVED FROM THE INTERNET ARCHIVE ON 07:58:17 Nov 25, 2024. JAVASCRIPT APPENDED BY WAYBACK MACHINE, COPYRIGHT INTERNET ARCHIVE. ALL OTHER CONTENT MAY ALSO BE PROTECTED BY COPYRIGHT (17 U.S.C. SECTION 108(a)(3)). --> <!-- playback timings (ms): captures_list: 0.502 exclusion.robots: 0.027 exclusion.robots.policy: 0.017 esindex: 0.011 cdx.remote: 36.109 LoadShardBlock: 146.619 (3) PetaboxLoader3.datanode: 105.69 (4) PetaboxLoader3.resolve: 189.403 (2) load_resource: 193.226 -->