CINXE.COM
Manual:LocalSettings.php - MediaWiki
<!DOCTYPE html> <html class="client-nojs vector-feature-language-in-header-disabled vector-feature-language-in-main-page-header-disabled vector-feature-sticky-header-disabled vector-feature-page-tools-pinned-disabled vector-feature-toc-pinned-clientpref-1 vector-feature-main-menu-pinned-disabled vector-feature-limited-width-clientpref-1 vector-feature-limited-width-content-enabled vector-feature-custom-font-size-clientpref--excluded vector-feature-appearance-pinned-clientpref-1 vector-feature-night-mode-disabled skin-theme-clientpref-day vector-toc-available" lang="en" dir="ltr"> <head> <meta charset="UTF-8"> <title>Manual:LocalSettings.php - 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":"48b83499-5785-4639-9ccf-2072d1e6d1a2","wgCanonicalNamespace":"Manual","wgCanonicalSpecialPageName":false,"wgNamespaceNumber":100,"wgPageName":"Manual:LocalSettings.php","wgTitle":"LocalSettings.php","wgCurRevisionId":6732110,"wgRevisionId":6732110,"wgArticleId":11002,"wgIsArticle":true,"wgIsRedirect":false,"wgAction":"view","wgUserName":null,"wgUserGroups":["*"],"wgCategories":["MediaWiki code","MediaWiki configuration"],"wgPageViewLanguage":"en","wgPageContentLanguage":"en","wgPageContentModel":"wikitext","wgRelevantPageName":"Manual:LocalSettings.php","wgRelevantArticleId":11002,"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":30000,"wgInternalRedirectTargetUrl":"/wiki/Manual:LocalSettings.php","wgTranslatePageTranslation":"source","wgCentralAuthMobileDomain":false,"wgEditSubmitButtonLabelPublish":true,"wgULSPosition":"personal","wgULSisCompactLinksEnabled":true,"wgVector2022LanguageInHeader":false,"wgULSisLanguageSelectorEmpty":false,"wgWikibaseItemId":"Q5978202","wgCheckUserClientHintsHeadersJsApi":["brands","architecture","bitness","fullVersionList","mobile","model","platform","platformVersion"]};RLSTATE={"ext.globalCssJs.user.styles":"ready","site.styles":"ready","user.styles":"ready","ext.globalCssJs.user":"ready","user":"ready","user.options":"loading","ext.translate.tag.languages":"ready","ext.pygments": "ready","skins.vector.search.codex.styles":"ready","skins.vector.styles":"ready","skins.vector.icons":"ready","ext.translate.edit.documentation.styles":"ready","ext.translate":"ready","ext.wikimediamessages.styles":"ready","ext.visualEditor.desktopArticleTarget.noscript":"ready","ext.uls.pt":"ready","wikibase.client.init":"ready","ext.wikimediaBadges":"ready"};RLPAGEMODULES=["mediawiki.action.view.redirect","ext.pygments.view","site","mediawiki.page.ready","mediawiki.toc","skins.vector.js","ext.centralNotice.geoIP","ext.centralNotice.startUp","ext.translate.pagetranslation.uls","ext.urlShortener.toolbar","ext.centralauth.centralautologin","mmv.bootstrap","ext.visualEditor.desktopArticleTarget.init","ext.visualEditor.targetLoader","ext.echo.centralauth","ext.eventLogging","ext.wikimediaEvents","ext.navigationTiming","ext.uls.compactlinks","ext.uls.interface","wikibase.client.vector-2022","ext.checkUser.clientHints","wikibase.sidebar.tracking"];</script> <script>(RLQ=window.RLQ||[]).push(function(){mw.loader.impl(function(){return["user.options@12s5i",function($,jQuery,require,module){mw.user.tokens.set({"patrolToken":"+\\","watchToken":"+\\","csrfToken":"+\\"}); }];});});</script> <link rel="stylesheet" href="/w/load.php?lang=en&modules=ext.pygments%2Ctranslate%2CwikimediaBadges%7Cext.translate.edit.documentation.styles%7Cext.translate.tag.languages%7Cext.uls.pt%7Cext.visualEditor.desktopArticleTarget.noscript%7Cext.wikimediamessages.styles%7Cskins.vector.icons%2Cstyles%7Cskins.vector.search.codex.styles%7Cwikibase.client.init&only=styles&skin=vector-2022"> <script async="" src="/w/load.php?lang=en&modules=startup&only=scripts&raw=1&skin=vector-2022"></script> <meta name="ResourceLoaderDynamicStyles" content=""> <link rel="stylesheet" href="/w/load.php?lang=en&modules=site.styles&only=styles&skin=vector-2022"> <meta name="generator" content="MediaWiki 1.44.0-wmf.4"> <meta name="referrer" content="origin"> <meta name="referrer" content="origin-when-cross-origin"> <meta name="robots" content="max-image-preview:standard"> <meta name="format-detection" content="telephone=no"> <meta name="viewport" content="width=1120"> <meta property="og:site_name" content="MediaWiki"> <meta property="og:title" content="Manual:LocalSettings.php - MediaWiki"> <meta property="og:type" content="website"> <link rel="preconnect" href="//upload.wikimedia.org"> <link rel="alternate" media="only screen and (max-width: 640px)" href="//m.mediawiki.org/wiki/Manual:LocalSettings.php"> <link rel="apple-touch-icon" href="/static/apple-touch/mediawiki.png"> <link rel="icon" href="/static/favicon/mediawiki.ico"> <link rel="search" type="application/opensearchdescription+xml" href="/w/rest.php/v1/search" title="MediaWiki (en)"> <link rel="EditURI" type="application/rsd+xml" href="//www.mediawiki.org/w/api.php?action=rsd"> <link rel="canonical" href="https://www.mediawiki.org/wiki/Manual:LocalSettings.php"> <link rel="license" href="https://creativecommons.org/licenses/by-sa/4.0/"> <link rel="alternate" type="application/atom+xml" title="MediaWiki Atom feed" href="/w/index.php?title=Special:RecentChanges&feed=atom"> <link rel="dns-prefetch" href="//meta.wikimedia.org" /> <link rel="dns-prefetch" href="//login.wikimedia.org"> </head> <body class="skin--responsive skin-vector skin-vector-search-vue mediawiki ltr sitedir-ltr mw-hide-empty-elt ns-100 ns-subject page-Manual_LocalSettings_php rootpage-Manual_LocalSettings_php skin-vector-2022 action-view"><a class="mw-jump-link" href="#bodyContent">Jump to content</a> <div class="vector-header-container"> <header class="vector-header mw-header"> <div class="vector-header-start"> <nav class="vector-main-menu-landmark" aria-label="Site"> <div id="vector-main-menu-dropdown" class="vector-dropdown vector-main-menu-dropdown vector-button-flush-left vector-button-flush-right" > <input type="checkbox" id="vector-main-menu-dropdown-checkbox" role="button" aria-haspopup="true" data-event-name="ui.dropdown-vector-main-menu-dropdown" class="vector-dropdown-checkbox " aria-label="Main menu" > <label id="vector-main-menu-dropdown-label" for="vector-main-menu-dropdown-checkbox" class="vector-dropdown-label cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet cdx-button--icon-only " aria-hidden="true" ><span class="vector-icon mw-ui-icon-menu mw-ui-icon-wikimedia-menu"></span> <span class="vector-dropdown-label-text">Main menu</span> </label> <div class="vector-dropdown-content"> <div id="vector-main-menu-unpinned-container" class="vector-unpinned-container"> <div id="vector-main-menu" class="vector-main-menu vector-pinnable-element"> <div class="vector-pinnable-header vector-main-menu-pinnable-header vector-pinnable-header-unpinned" data-feature-name="main-menu-pinned" data-pinnable-element-id="vector-main-menu" data-pinned-container-id="vector-main-menu-pinned-container" data-unpinned-container-id="vector-main-menu-unpinned-container" > <div class="vector-pinnable-header-label">Main menu</div> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-pin-button" data-event-name="pinnable-header.vector-main-menu.pin">move to sidebar</button> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-unpin-button" data-event-name="pinnable-header.vector-main-menu.unpin">hide</button> </div> <div id="p-navigation" class="vector-menu mw-portlet mw-portlet-navigation" > <div class="vector-menu-heading"> Navigation </div> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="n-mainpage-description" class="mw-list-item"><a href="/wiki/MediaWiki" title="Visit the main page [z]" accesskey="z"><span>Main page</span></a></li><li id="n-mw-download" class="mw-list-item"><a href="/wiki/Download"><span>Get MediaWiki</span></a></li><li id="n-mw-extensions" class="mw-list-item"><a href="/wiki/Special:MyLanguage/Category:Extensions"><span>Get extensions</span></a></li><li id="n-blog-text" class="mw-list-item"><a href="https://techblog.wikimedia.org/"><span>Tech blog</span></a></li><li id="n-mw-contribute" class="mw-list-item"><a href="/wiki/Special:MyLanguage/How_to_contribute"><span>Contribute</span></a></li> </ul> </div> </div> <div id="p-support" class="vector-menu mw-portlet mw-portlet-support" > <div class="vector-menu-heading"> Support </div> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="n-help" class="mw-list-item"><a href="/wiki/Special:MyLanguage/Help:Contents" title="The place to find out"><span>User help</span></a></li><li id="n-mw-faq" class="mw-list-item"><a href="/wiki/Special:MyLanguage/Manual:FAQ"><span>FAQ</span></a></li><li id="n-mw-manual" class="mw-list-item"><a href="/wiki/Special:MyLanguage/Manual:Contents"><span>Technical manual</span></a></li><li id="n-mw-supportdesk" class="mw-list-item"><a href="/wiki/Project:Support_desk"><span>Support desk</span></a></li><li id="n-mw-communication" class="mw-list-item"><a href="/wiki/Special:MyLanguage/Communication"><span>Communication</span></a></li> </ul> </div> </div> <div id="p-development" class="vector-menu mw-portlet mw-portlet-development" > <div class="vector-menu-heading"> Development </div> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="n-mw-developerportal" class="mw-list-item"><a href="https://developer.wikimedia.org/"><span>Developer portal</span></a></li><li id="n-svn-statistics" class="mw-list-item"><a href="/wiki/Development_statistics"><span>Code statistics</span></a></li> </ul> </div> </div> <div id="p-mediawiki.org" class="vector-menu mw-portlet mw-portlet-mediawiki_org" > <div class="vector-menu-heading"> mediawiki.org </div> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="n-portal" class="mw-list-item"><a href="/wiki/Project:Help" title="About the project, what you can do, where to find things"><span>Community portal</span></a></li><li id="n-recentchanges" class="mw-list-item"><a href="/wiki/Special:RecentChanges" title="A list of recent changes in the wiki [r]" accesskey="r"><span>Recent changes</span></a></li><li id="n-mw-translate" class="mw-list-item"><a href="/wiki/Special:LanguageStats"><span>Translate content</span></a></li><li id="n-randompage" class="mw-list-item"><a href="/wiki/Special:Random" title="Load a random page [x]" accesskey="x"><span>Random page</span></a></li><li id="n-mw-discussion" class="mw-list-item"><a href="/wiki/Project:Village_Pump"><span>Village pump</span></a></li><li id="n-Sandboxlink-portlet-label" class="mw-list-item"><a href="/wiki/Project:Sandbox"><span>Sandbox</span></a></li> </ul> </div> </div> <div id="p-lang" class="vector-menu mw-portlet mw-portlet-lang" > <div class="vector-menu-heading"> In other languages </div> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li class="interlanguage-link interwiki-es mw-list-item"><a href="https://es.wikipedia.org/wiki/LocalSettings.php" title="LocalSettings.php – Spanish" lang="es" hreflang="es" data-title="LocalSettings.php" data-language-autonym="Español" data-language-local-name="Spanish" class="interlanguage-link-target"><span>Español</span></a></li> </ul> <div class="after-portlet after-portlet-lang"><span class="wb-langlinks-edit wb-langlinks-link"><a href="https://www.wikidata.org/wiki/Special:EntityPage/Q5978202#sitelinks-wikipedia" title="Edit interlanguage links" class="wbc-editpage">Edit links</a></span></div> </div> </div> </div> </div> </div> </div> </nav> <a href="/wiki/MediaWiki" class="mw-logo"> <img class="mw-logo-icon" src="/static/images/icons/mediawikiwiki.svg" alt="" aria-hidden="true" height="50" width="50"> <span class="mw-logo-container skin-invert"> <img class="mw-logo-wordmark" alt="MediaWiki" src="/static/images/mobile/copyright/mediawikiwiki-wordmark.svg" style="width: 7.5em; height: 1.125em;"> </span> </a> </div> <div class="vector-header-end"> <div id="p-search" role="search" class="vector-search-box-vue vector-search-box-collapses vector-search-box-show-thumbnail vector-search-box-auto-expand-width vector-search-box"> <a href="/wiki/Special:Search" class="cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet cdx-button--icon-only search-toggle" title="Search MediaWiki [f]" accesskey="f"><span class="vector-icon mw-ui-icon-search mw-ui-icon-wikimedia-search"></span> <span>Search</span> </a> <div class="vector-typeahead-search-container"> <div class="cdx-typeahead-search cdx-typeahead-search--show-thumbnail cdx-typeahead-search--auto-expand-width"> <form action="/w/index.php" id="searchform" class="cdx-search-input cdx-search-input--has-end-button"> <div id="simpleSearch" class="cdx-search-input__input-wrapper" data-search-loc="header-moved"> <div class="cdx-text-input cdx-text-input--has-start-icon"> <input class="cdx-text-input__input" type="search" name="search" placeholder="Search MediaWiki" aria-label="Search MediaWiki" autocapitalize="sentences" title="Search MediaWiki [f]" accesskey="f" id="searchInput" > <span class="cdx-text-input__icon cdx-text-input__start-icon"></span> </div> <input type="hidden" name="title" value="Special:Search"> </div> <button class="cdx-button cdx-search-input__end-button">Search</button> </form> </div> </div> </div> <nav class="vector-user-links vector-user-links-wide" aria-label="Personal tools"> <div class="vector-user-links-main"> <div id="p-vector-user-menu-preferences" class="vector-menu mw-portlet" > <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="ca-uls" class="mw-list-item active user-links-collapsible-item"><a data-mw="interface" href="#" class="uls-trigger cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet"><span class="vector-icon mw-ui-icon-wikimedia-language mw-ui-icon-wikimedia-wikimedia-language"></span> <span>English</span></a> </li> </ul> </div> </div> <div id="p-vector-user-menu-userpage" class="vector-menu mw-portlet emptyPortlet" > <div class="vector-menu-content"> <ul class="vector-menu-content-list"> </ul> </div> </div> <nav class="vector-appearance-landmark" aria-label="Appearance"> <div id="vector-appearance-dropdown" class="vector-dropdown " title="Change the appearance of the page's font size, width, and color" > <input type="checkbox" id="vector-appearance-dropdown-checkbox" role="button" aria-haspopup="true" data-event-name="ui.dropdown-vector-appearance-dropdown" class="vector-dropdown-checkbox " aria-label="Appearance" > <label id="vector-appearance-dropdown-label" for="vector-appearance-dropdown-checkbox" class="vector-dropdown-label cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet cdx-button--icon-only " aria-hidden="true" ><span class="vector-icon mw-ui-icon-appearance mw-ui-icon-wikimedia-appearance"></span> <span class="vector-dropdown-label-text">Appearance</span> </label> <div class="vector-dropdown-content"> <div id="vector-appearance-unpinned-container" class="vector-unpinned-container"> </div> </div> </div> </nav> <div id="p-vector-user-menu-notifications" class="vector-menu mw-portlet emptyPortlet" > <div class="vector-menu-content"> <ul class="vector-menu-content-list"> </ul> </div> </div> <div id="p-vector-user-menu-overflow" class="vector-menu mw-portlet" > <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="pt-sitesupport-2" class="user-links-collapsible-item mw-list-item user-links-collapsible-item"><a data-mw="interface" href="https://donate.wikimedia.org/?utm_source=donate&utm_medium=sidebar&utm_campaign=spontaneous&uselang=en" class=""><span>Donate</span></a> </li> <li id="pt-createaccount-2" class="user-links-collapsible-item mw-list-item user-links-collapsible-item"><a data-mw="interface" href="/w/index.php?title=Special:CreateAccount&returnto=Manual%3ALocalSettings.php" title="You are encouraged to create an account and log in; however, it is not mandatory" class=""><span>Create account</span></a> </li> <li id="pt-login-2" class="user-links-collapsible-item mw-list-item user-links-collapsible-item"><a data-mw="interface" href="/w/index.php?title=Special:UserLogin&returnto=Manual%3ALocalSettings.php" title="You are encouraged to log in; however, it is not mandatory [o]" accesskey="o" class=""><span>Log in</span></a> </li> </ul> </div> </div> </div> <div id="vector-user-links-dropdown" class="vector-dropdown vector-user-menu vector-button-flush-right vector-user-menu-logged-out" title="More options" > <input type="checkbox" id="vector-user-links-dropdown-checkbox" role="button" aria-haspopup="true" data-event-name="ui.dropdown-vector-user-links-dropdown" class="vector-dropdown-checkbox " aria-label="Personal tools" > <label id="vector-user-links-dropdown-label" for="vector-user-links-dropdown-checkbox" class="vector-dropdown-label cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet cdx-button--icon-only " aria-hidden="true" ><span class="vector-icon mw-ui-icon-ellipsis mw-ui-icon-wikimedia-ellipsis"></span> <span class="vector-dropdown-label-text">Personal tools</span> </label> <div class="vector-dropdown-content"> <div id="p-personal" class="vector-menu mw-portlet mw-portlet-personal user-links-collapsible-item" title="User menu" > <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="pt-sitesupport" class="user-links-collapsible-item mw-list-item"><a href="https://donate.wikimedia.org/?utm_source=donate&utm_medium=sidebar&utm_campaign=spontaneous&uselang=en"><span>Donate</span></a></li><li id="pt-createaccount" class="user-links-collapsible-item mw-list-item"><a href="/w/index.php?title=Special:CreateAccount&returnto=Manual%3ALocalSettings.php" title="You are encouraged to create an account and log in; however, it is not mandatory"><span class="vector-icon mw-ui-icon-userAdd mw-ui-icon-wikimedia-userAdd"></span> <span>Create account</span></a></li><li id="pt-login" class="user-links-collapsible-item mw-list-item"><a href="/w/index.php?title=Special:UserLogin&returnto=Manual%3ALocalSettings.php" title="You are encouraged to log in; however, it is not mandatory [o]" accesskey="o"><span class="vector-icon mw-ui-icon-logIn mw-ui-icon-wikimedia-logIn"></span> <span>Log in</span></a></li> </ul> </div> </div> <div id="p-user-menu-anon-editor" class="vector-menu mw-portlet mw-portlet-user-menu-anon-editor" > <div class="vector-menu-heading"> Pages for logged out editors <a href="/wiki/Help:Introduction" aria-label="Learn more about editing"><span>learn more</span></a> </div> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="pt-anoncontribs" class="mw-list-item"><a href="/wiki/Special:MyContributions" title="A list of edits made from this IP address [y]" accesskey="y"><span>Contributions</span></a></li><li id="pt-anontalk" class="mw-list-item"><a href="/wiki/Special:MyTalk" title="Discussion about edits from this IP address [n]" accesskey="n"><span>Talk</span></a></li> </ul> </div> </div> </div> </div> </nav> </div> </header> </div> <div class="mw-page-container"> <div class="mw-page-container-inner"> <div class="vector-sitenotice-container"> <div id="siteNotice"><!-- CentralNotice --></div> </div> <div class="vector-column-start"> <div class="vector-main-menu-container"> <div id="mw-navigation"> <nav id="mw-panel" class="vector-main-menu-landmark" aria-label="Site"> <div id="vector-main-menu-pinned-container" class="vector-pinned-container"> </div> </nav> </div> </div> <div class="vector-sticky-pinned-container"> <nav id="mw-panel-toc" aria-label="Contents" data-event-name="ui.sidebar-toc" class="mw-table-of-contents-container vector-toc-landmark"> <div id="vector-toc-pinned-container" class="vector-pinned-container"> <div id="vector-toc" class="vector-toc vector-pinnable-element"> <div class="vector-pinnable-header vector-toc-pinnable-header vector-pinnable-header-pinned" data-feature-name="toc-pinned" data-pinnable-element-id="vector-toc" > <h2 class="vector-pinnable-header-label">Contents</h2> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-pin-button" data-event-name="pinnable-header.vector-toc.pin">move to sidebar</button> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-unpin-button" data-event-name="pinnable-header.vector-toc.unpin">hide</button> </div> <ul class="vector-toc-contents" id="mw-panel-toc-list"> <li id="toc-mw-content-text" class="vector-toc-list-item vector-toc-level-1"> <a href="#" class="vector-toc-link"> <div class="vector-toc-text">Beginning</div> </a> </li> <li id="toc-Location_on_the_server" class="vector-toc-list-item vector-toc-level-1"> <a class="vector-toc-link" href="#Location_on_the_server"> <div class="vector-toc-text"> <span class="vector-toc-numb">1</span> <span>Location on the server</span> </div> </a> <ul id="toc-Location_on_the_server-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Security" class="vector-toc-list-item vector-toc-level-1"> <a class="vector-toc-link" href="#Security"> <div class="vector-toc-text"> <span class="vector-toc-numb">2</span> <span>Security</span> </div> </a> <ul id="toc-Security-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-File_contents" class="vector-toc-list-item vector-toc-level-1"> <a class="vector-toc-link" href="#File_contents"> <div class="vector-toc-text"> <span class="vector-toc-numb">3</span> <span>File contents</span> </div> </a> <ul id="toc-File_contents-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Overview_of_available_settings" class="vector-toc-list-item vector-toc-level-1"> <a class="vector-toc-link" href="#Overview_of_available_settings"> <div class="vector-toc-text"> <span class="vector-toc-numb">4</span> <span>Overview of available settings</span> </div> </a> <ul id="toc-Overview_of_available_settings-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Standard_settings" class="vector-toc-list-item vector-toc-level-1"> <a class="vector-toc-link" href="#Standard_settings"> <div class="vector-toc-text"> <span class="vector-toc-numb">5</span> <span>Standard settings</span> </div> </a> <button aria-controls="toc-Standard_settings-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 Standard settings subsection</span> </button> <ul id="toc-Standard_settings-sublist" class="vector-toc-list"> <li id="toc-Install_path" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#Install_path"> <div class="vector-toc-text"> <span class="vector-toc-numb">5.1</span> <span>Install path</span> </div> </a> <ul id="toc-Install_path-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Site_name" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#Site_name"> <div class="vector-toc-text"> <span class="vector-toc-numb">5.2</span> <span>Site name</span> </div> </a> <ul id="toc-Site_name-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Declensions_of_site_name" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#Declensions_of_site_name"> <div class="vector-toc-text"> <span class="vector-toc-numb">5.3</span> <span>Declensions of site name</span> </div> </a> <ul id="toc-Declensions_of_site_name-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Site_language" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#Site_language"> <div class="vector-toc-text"> <span class="vector-toc-numb">5.4</span> <span>Site language</span> </div> </a> <ul id="toc-Site_language-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Script_path" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#Script_path"> <div class="vector-toc-text"> <span class="vector-toc-numb">5.5</span> <span>Script path</span> </div> </a> <ul id="toc-Script_path-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Server_name" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#Server_name"> <div class="vector-toc-text"> <span class="vector-toc-numb">5.6</span> <span>Server name</span> </div> </a> <ul id="toc-Server_name-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Script_name" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#Script_name"> <div class="vector-toc-text"> <span class="vector-toc-numb">5.7</span> <span>Script name</span> </div> </a> <ul id="toc-Script_name-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Article_path" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#Article_path"> <div class="vector-toc-text"> <span class="vector-toc-numb">5.8</span> <span>Article path</span> </div> </a> <ul id="toc-Article_path-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Stylesheet_location" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#Stylesheet_location"> <div class="vector-toc-text"> <span class="vector-toc-numb">5.9</span> <span>Stylesheet location</span> </div> </a> <ul id="toc-Stylesheet_location-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Upload_location" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#Upload_location"> <div class="vector-toc-text"> <span class="vector-toc-numb">5.10</span> <span>Upload location</span> </div> </a> <ul id="toc-Upload_location-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Logo" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#Logo"> <div class="vector-toc-text"> <span class="vector-toc-numb">5.11</span> <span>Logo</span> </div> </a> <ul id="toc-Logo-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Contact_info" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#Contact_info"> <div class="vector-toc-text"> <span class="vector-toc-numb">5.12</span> <span>Contact info</span> </div> </a> <ul id="toc-Contact_info-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Database_settings" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#Database_settings"> <div class="vector-toc-text"> <span class="vector-toc-numb">5.13</span> <span>Database settings</span> </div> </a> <ul id="toc-Database_settings-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-User_rights" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#User_rights"> <div class="vector-toc-text"> <span class="vector-toc-numb">5.14</span> <span>User rights</span> </div> </a> <ul id="toc-User_rights-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Force_capital_links" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#Force_capital_links"> <div class="vector-toc-text"> <span class="vector-toc-numb">5.15</span> <span>Force capital links</span> </div> </a> <ul id="toc-Force_capital_links-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Enabling_subpages" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#Enabling_subpages"> <div class="vector-toc-text"> <span class="vector-toc-numb">5.16</span> <span>Enabling subpages</span> </div> </a> <ul id="toc-Enabling_subpages-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Image_uploads" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#Image_uploads"> <div class="vector-toc-text"> <span class="vector-toc-numb">5.17</span> <span>Image uploads</span> </div> </a> <ul id="toc-Image_uploads-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Interwiki_support" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#Interwiki_support"> <div class="vector-toc-text"> <span class="vector-toc-numb">5.18</span> <span>Interwiki support</span> </div> </a> <ul id="toc-Interwiki_support-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Language_of_user_interface" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#Language_of_user_interface"> <div class="vector-toc-text"> <span class="vector-toc-numb">5.19</span> <span>Language of user interface</span> </div> </a> <ul id="toc-Language_of_user_interface-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Setting_copyright_for_the_site" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#Setting_copyright_for_the_site"> <div class="vector-toc-text"> <span class="vector-toc-numb">5.20</span> <span>Setting copyright for the site</span> </div> </a> <ul id="toc-Setting_copyright_for_the_site-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Custom_namespaces" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#Custom_namespaces"> <div class="vector-toc-text"> <span class="vector-toc-numb">5.21</span> <span>Custom namespaces</span> </div> </a> <ul id="toc-Custom_namespaces-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Skins" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#Skins"> <div class="vector-toc-text"> <span class="vector-toc-numb">5.22</span> <span>Skins</span> </div> </a> <ul id="toc-Skins-sublist" class="vector-toc-list"> </ul> </li> </ul> </li> <li id="toc-See_also" class="vector-toc-list-item vector-toc-level-1"> <a class="vector-toc-link" href="#See_also"> <div class="vector-toc-text"> <span class="vector-toc-numb">6</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">Manual:LocalSettings.php</h1> <div class="mw-indicators"> </div> </header> <div class="vector-page-toolbar"> <div class="vector-page-toolbar-container"> <div id="left-navigation"> <nav aria-label="Namespaces"> <div id="p-associated-pages" class="vector-menu vector-menu-tabs mw-portlet mw-portlet-associated-pages" > <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="ca-nstab-manual" class="selected vector-tab-noicon mw-list-item"><a href="/wiki/Manual:LocalSettings.php" title="View the subject page [c]" accesskey="c"><span>Manual</span></a></li><li id="ca-talk" class="vector-tab-noicon mw-list-item"><a href="/wiki/Manual_talk:LocalSettings.php" rel="discussion" title="Discussion about the content page [t]" accesskey="t"><span>Discussion</span></a></li> </ul> </div> </div> <div id="vector-variants-dropdown" class="vector-dropdown emptyPortlet" > <input type="checkbox" id="vector-variants-dropdown-checkbox" role="button" aria-haspopup="true" data-event-name="ui.dropdown-vector-variants-dropdown" class="vector-dropdown-checkbox " aria-label="Change language variant" > <label id="vector-variants-dropdown-label" for="vector-variants-dropdown-checkbox" class="vector-dropdown-label cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet" aria-hidden="true" ><span class="vector-dropdown-label-text">English</span> </label> <div class="vector-dropdown-content"> <div id="p-variants" class="vector-menu mw-portlet mw-portlet-variants emptyPortlet" > <div class="vector-menu-content"> <ul class="vector-menu-content-list"> </ul> </div> </div> </div> </div> </nav> </div> <div id="right-navigation" class="vector-collapsible"> <nav aria-label="Views"> <div id="p-views" class="vector-menu vector-menu-tabs mw-portlet mw-portlet-views" > <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="ca-view" class="selected vector-tab-noicon mw-list-item"><a href="/wiki/Manual:LocalSettings.php"><span>Read</span></a></li><li id="ca-viewsource" class="vector-tab-noicon mw-list-item"><a href="/w/index.php?title=Manual:LocalSettings.php&action=edit" title="This page is protected. You can view its source [e]" accesskey="e"><span>View source</span></a></li><li id="ca-history" class="vector-tab-noicon mw-list-item"><a href="/w/index.php?title=Manual:LocalSettings.php&action=history" title="Past revisions of this page [h]" accesskey="h"><span>View history</span></a></li> </ul> </div> </div> </nav> <nav class="vector-page-tools-landmark" aria-label="Page tools"> <div id="vector-page-tools-dropdown" class="vector-dropdown vector-page-tools-dropdown" > <input type="checkbox" id="vector-page-tools-dropdown-checkbox" role="button" aria-haspopup="true" data-event-name="ui.dropdown-vector-page-tools-dropdown" class="vector-dropdown-checkbox " aria-label="Tools" > <label id="vector-page-tools-dropdown-label" for="vector-page-tools-dropdown-checkbox" class="vector-dropdown-label cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet" aria-hidden="true" ><span class="vector-dropdown-label-text">Tools</span> </label> <div class="vector-dropdown-content"> <div id="vector-page-tools-unpinned-container" class="vector-unpinned-container"> <div id="vector-page-tools" class="vector-page-tools vector-pinnable-element"> <div class="vector-pinnable-header vector-page-tools-pinnable-header vector-pinnable-header-unpinned" data-feature-name="page-tools-pinned" data-pinnable-element-id="vector-page-tools" data-pinned-container-id="vector-page-tools-pinned-container" data-unpinned-container-id="vector-page-tools-unpinned-container" > <div class="vector-pinnable-header-label">Tools</div> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-pin-button" data-event-name="pinnable-header.vector-page-tools.pin">move to sidebar</button> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-unpin-button" data-event-name="pinnable-header.vector-page-tools.unpin">hide</button> </div> <div id="p-cactions" class="vector-menu mw-portlet mw-portlet-cactions emptyPortlet vector-has-collapsible-items" title="More options" > <div class="vector-menu-heading"> Actions </div> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="ca-more-view" class="selected vector-more-collapsible-item mw-list-item"><a href="/wiki/Manual:LocalSettings.php"><span>Read</span></a></li><li id="ca-more-viewsource" class="vector-more-collapsible-item mw-list-item"><a href="/w/index.php?title=Manual:LocalSettings.php&action=edit"><span>View source</span></a></li><li id="ca-more-history" class="vector-more-collapsible-item mw-list-item"><a href="/w/index.php?title=Manual:LocalSettings.php&action=history"><span>View history</span></a></li> </ul> </div> </div> <div id="p-tb" class="vector-menu mw-portlet mw-portlet-tb" > <div class="vector-menu-heading"> General </div> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="t-whatlinkshere" class="mw-list-item"><a href="/wiki/Special:WhatLinksHere/Manual:LocalSettings.php" title="A list of all wiki pages that link here [j]" accesskey="j"><span>What links here</span></a></li><li id="t-recentchangeslinked" class="mw-list-item"><a href="/wiki/Special:RecentChangesLinked/Manual:LocalSettings.php" rel="nofollow" title="Recent changes in pages linked from this page [k]" accesskey="k"><span>Related changes</span></a></li><li id="t-upload" class="mw-list-item"><a href="//commons.wikimedia.org/wiki/Special:UploadWizard" title="Upload files [u]" accesskey="u"><span>Upload file</span></a></li><li id="t-specialpages" class="mw-list-item"><a href="/wiki/Special:SpecialPages" title="A list of all special pages [q]" accesskey="q"><span>Special pages</span></a></li><li id="t-permalink" class="mw-list-item"><a href="/w/index.php?title=Manual:LocalSettings.php&oldid=6732110" title="Permanent link to this revision of this page"><span>Permanent link</span></a></li><li id="t-info" class="mw-list-item"><a href="/w/index.php?title=Manual:LocalSettings.php&action=info" title="More information about this page"><span>Page information</span></a></li><li id="t-cite" class="mw-list-item"><a href="/w/index.php?title=Special:CiteThisPage&page=Manual%3ALocalSettings.php&id=6732110&wpFormIdentifier=titleform" title="Information on how to cite this page"><span>Cite this page</span></a></li><li id="t-urlshortener" class="mw-list-item"><a href="/w/index.php?title=Special:UrlShortener&url=https%3A%2F%2Fwww.mediawiki.org%2Fwiki%2FManual%3ALocalSettings.php"><span>Get shortened URL</span></a></li><li id="t-urlshortener-qrcode" class="mw-list-item"><a href="/w/index.php?title=Special:QrCode&url=https%3A%2F%2Fwww.mediawiki.org%2Fwiki%2FManual%3ALocalSettings.php"><span>Download QR code</span></a></li> </ul> </div> </div> <div id="p-coll-print_export" class="vector-menu mw-portlet mw-portlet-coll-print_export" > <div class="vector-menu-heading"> Print/export </div> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="coll-create_a_book" class="mw-list-item"><a href="/w/index.php?title=Special:Book&bookcmd=book_creator&referer=Manual%3ALocalSettings.php"><span>Create a book</span></a></li><li id="coll-download-as-rl" class="mw-list-item"><a href="/w/index.php?title=Special:DownloadAsPdf&page=Manual%3ALocalSettings.php&action=show-download-screen"><span>Download as PDF</span></a></li><li id="t-print" class="mw-list-item"><a href="/w/index.php?title=Manual:LocalSettings.php&printable=yes" title="Printable version of this page [p]" accesskey="p"><span>Printable version</span></a></li> </ul> </div> </div> <div id="p-wikibase-otherprojects" class="vector-menu mw-portlet mw-portlet-wikibase-otherprojects" > <div class="vector-menu-heading"> In other projects </div> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="t-wikibase" class="wb-otherproject-link wb-otherproject-wikibase-dataitem mw-list-item"><a href="https://www.wikidata.org/wiki/Special:EntityPage/Q5978202" title="Link to connected data repository item [g]" accesskey="g"><span>Wikidata item</span></a></li> </ul> </div> </div> </div> </div> </div> </div> </nav> </div> </div> </div> <div class="vector-column-end"> <div class="vector-sticky-pinned-container"> <nav class="vector-page-tools-landmark" aria-label="Page tools"> <div id="vector-page-tools-pinned-container" class="vector-pinned-container"> </div> </nav> <nav class="vector-appearance-landmark" aria-label="Appearance"> <div id="vector-appearance-pinned-container" class="vector-pinned-container"> <div id="vector-appearance" class="vector-appearance vector-pinnable-element"> <div class="vector-pinnable-header vector-appearance-pinnable-header vector-pinnable-header-pinned" data-feature-name="appearance-pinned" data-pinnable-element-id="vector-appearance" data-pinned-container-id="vector-appearance-pinned-container" data-unpinned-container-id="vector-appearance-unpinned-container" > <div class="vector-pinnable-header-label">Appearance</div> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-pin-button" data-event-name="pinnable-header.vector-appearance.pin">move to sidebar</button> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-unpin-button" data-event-name="pinnable-header.vector-appearance.unpin">hide</button> </div> </div> </div> </nav> </div> </div> <div id="bodyContent" class="vector-body" aria-labelledby="firstHeading" data-mw-ve-target-container> <div class="vector-body-before-content"> <div id="siteSub" class="noprint">From mediawiki.org</div> </div> <div id="contentSub"><div id="mw-content-subtitle"></div></div> <div id="mw-content-text" class="mw-body-content"><div class="mw-pt-translate-header noprint nomobile" dir="ltr" lang="en"><a href="/w/index.php?title=Special:Translate&group=page-Manual%3ALocalSettings.php&action=page&filter=&action_source=translate_page" title="Special:Translate">Translate this page</a></div><div class="mw-content-ltr mw-parser-output" lang="en" dir="ltr"><div class="mw-pt-languages noprint navigation-not-searchable" lang="en" dir="ltr"><div class="mw-pt-languages-label">Languages:</div><ul class="mw-pt-languages-list"><li><a href="/wiki/Manual:LocalSettings.php/id" class="mw-pt-progress mw-pt-progress--med" title="Manual:LocalSettings.php (40% translated)" lang="id" dir="ltr">Bahasa Indonesia</a></li> <li><a href="/wiki/Manual:LocalSettings.php/en-gb" class="mw-pt-progress mw-pt-progress--low" title="Manual:LocalSettings.php/en-gb (1% translated)" lang="en-GB" dir="ltr">British English</a></li> <li><a href="/wiki/Manual:LocalSettings.php/pdc" class="mw-pt-progress mw-pt-progress--low" title="Manual:LocalSettings.php (2% translated)" lang="pdc" dir="ltr">Deitsch</a></li> <li><a href="/wiki/Manual:LocalSettings.php/de" class="mw-pt-progress mw-pt-progress--high" title="Manual:LocalSettings.php (97% translated)" lang="de" dir="ltr">Deutsch</a></li> <li><a href="/wiki/Manual:LocalSettings.php/de-formal" class="mw-pt-progress mw-pt-progress--low" title="Handbuch:LocalSettings.php (3% translated)" lang="de-x-formal" dir="ltr">Deutsch (Sie-Form)</a></li> <li><span class="mw-pt-languages-ui mw-pt-languages-selected mw-pt-progress mw-pt-progress--complete" lang="en" dir="ltr">English</span></li> <li><a href="/wiki/Manual:LocalSettings.php/nl" class="mw-pt-progress mw-pt-progress--complete" title="Handleiding:LocalSettings.php (100% translated)" lang="nl" dir="ltr">Nederlands</a></li> <li><a href="/wiki/Manual:LocalSettings.php/vi" class="mw-pt-progress mw-pt-progress--med" title="Thủ công:LocalSettings.php (63% translated)" lang="vi" dir="ltr">Tiếng Việt</a></li> <li><a href="/wiki/Manual:LocalSettings.php/tr" class="mw-pt-progress mw-pt-progress--high" title="Manual:LocalSettings.php (71% translated)" lang="tr" dir="ltr">Türkçe</a></li> <li><a href="/wiki/Manual:LocalSettings.php/da" class="mw-pt-progress mw-pt-progress--low" title="Manual:LocalSettings.php (6% translated)" lang="da" dir="ltr">dansk</a></li> <li><a href="/wiki/Manual:LocalSettings.php/es" class="mw-pt-progress mw-pt-progress--high" title="Manual:LocalSettings.php (98% translated)" lang="es" dir="ltr">español</a></li> <li><a href="/wiki/Manual:LocalSettings.php/fr" class="mw-pt-progress mw-pt-progress--complete" title="Manuel:LocalSettings.php (100% translated)" lang="fr" dir="ltr">français</a></li> <li><a href="/wiki/Manual:LocalSettings.php/it" class="mw-pt-progress mw-pt-progress--low" title="Manual:LocalSettings.php/it (3% translated)" lang="it" dir="ltr">italiano</a></li> <li><a href="/wiki/Manual:LocalSettings.php/hu" class="mw-pt-progress mw-pt-progress--med" title="Kézikönyv:LocalSettings.php (39% translated)" lang="hu" dir="ltr">magyar</a></li> <li><a href="/wiki/Manual:LocalSettings.php/pl" class="mw-pt-progress mw-pt-progress--med" title="Podręcznik:LocalSettings.php (21% translated)" lang="pl" dir="ltr">polski</a></li> <li><a href="/wiki/Manual:LocalSettings.php/pt" class="mw-pt-progress mw-pt-progress--med" title="Manual:LocalSettings.php (36% translated)" lang="pt" dir="ltr">português</a></li> <li><a href="/wiki/Manual:LocalSettings.php/pt-br" class="mw-pt-progress mw-pt-progress--med" title="Manual:LocalSettings.php (64% translated)" lang="pt-BR" dir="ltr">português do Brasil</a></li> <li><a href="/wiki/Manual:LocalSettings.php/sk" class="mw-pt-progress mw-pt-progress--low" title="Příručka:LocalSettings.php (1% translated)" lang="sk" dir="ltr">slovenčina</a></li> <li><a href="/wiki/Manual:LocalSettings.php/fi" class="mw-pt-progress mw-pt-progress--low" title="Manual:LocalSettings.php/fi (4% translated)" lang="fi" dir="ltr">suomi</a></li> <li><a href="/wiki/Manual:LocalSettings.php/cs" class="mw-pt-progress mw-pt-progress--high" title="Příručka:LocalSettings.php (98% translated)" lang="cs" dir="ltr">čeština</a></li> <li><a href="/wiki/Manual:LocalSettings.php/el" class="mw-pt-progress mw-pt-progress--low" title="Manual:LocalSettings.php/el (5% translated)" lang="el" dir="ltr">Ελληνικά</a></li> <li><a href="/wiki/Manual:LocalSettings.php/bg" class="mw-pt-progress mw-pt-progress--low" title="Ръководство:LocalSettings.php (4% translated)" lang="bg" dir="ltr">български</a></li> <li><a href="/wiki/Manual:LocalSettings.php/ru" class="mw-pt-progress mw-pt-progress--med" title="Руководство:LocalSettings.php (54% translated)" lang="ru" dir="ltr">русский</a></li> <li><a href="/wiki/Manual:LocalSettings.php/hy" class="mw-pt-progress mw-pt-progress--med" title="Ձեռնարկ․ LocalSettings.php (57% translated)" lang="hy" dir="ltr">հայերեն</a></li> <li><a href="/wiki/Manual:LocalSettings.php/ar" class="mw-pt-progress mw-pt-progress--med" title="Manual:LocalSettings.php/ar (15% translated)" lang="ar" dir="rtl">العربية</a></li> <li><a href="/wiki/Manual:LocalSettings.php/azb" class="mw-pt-progress mw-pt-progress--low" title="Manual:LocalSettings.php/azb (0% translated)" lang="azb" dir="rtl">تۆرکجه</a></li> <li><a href="/wiki/Manual:LocalSettings.php/awa" class="mw-pt-progress mw-pt-progress--low" title="मैनुअल:LocalSetting.php (4% translated)" lang="awa" dir="ltr">अवधी</a></li> <li><a href="/wiki/Manual:LocalSettings.php/tcy" class="mw-pt-progress mw-pt-progress--low" title="Manual:LocalSettings.php (1% translated)" lang="tcy" dir="ltr">ತುಳು</a></li> <li><a href="/wiki/Manual:LocalSettings.php/th" class="mw-pt-progress mw-pt-progress--low" title="Manual:LocalSettings.php/th (1% translated)" lang="th" dir="ltr">ไทย</a></li> <li><a href="/wiki/Manual:LocalSettings.php/zh" class="mw-pt-progress mw-pt-progress--high" title="Manual: (97% translated)" lang="zh" dir="ltr">中文</a></li> <li><a href="/wiki/Manual:LocalSettings.php/ja" class="mw-pt-progress mw-pt-progress--high" title="Manual:LocalSettings.php (99% translated)" lang="ja" dir="ltr">日本語</a></li> <li><a href="/wiki/Manual:LocalSettings.php/ko" class="mw-pt-progress mw-pt-progress--med" title="매뉴얼:LocalSettings.php (18% translated)" lang="ko" dir="ltr">한국어</a></li></ul></div> <table class="warning-message" style="background-color: var( --background-color-error-subtle, #ffe9e5 ); color: var( --color-base, #202122 ); border: 1px var( --border-color-error, #9f3526 ) solid; box-sizing: border-box; margin: 0.5em 0; padding: 0.5em;"><tbody><tr><td style="white-space: nowrap; vertical-align: top;"><span style="position: relative; top: -2px;"><span typeof="mw:File"><span><img alt="Warning" src="//upload.wikimedia.org/wikipedia/commons/thumb/b/bf/OOjs_UI_icon_notice-destructive.svg/18px-OOjs_UI_icon_notice-destructive.svg.png" decoding="async" width="18" height="18" class="mw-file-element" srcset="//upload.wikimedia.org/wikipedia/commons/thumb/b/bf/OOjs_UI_icon_notice-destructive.svg/27px-OOjs_UI_icon_notice-destructive.svg.png 1.5x, //upload.wikimedia.org/wikipedia/commons/thumb/b/bf/OOjs_UI_icon_notice-destructive.svg/36px-OOjs_UI_icon_notice-destructive.svg.png 2x" data-file-width="20" data-file-height="20" /></span></span></span> <b>Warning:</b> </td><td style="padding-left: 0.5em vertical-align: top;">Don't edit <code>LocalSettings.php</code> with document editors like Notepad on Windows 10 Version 1809 or earlier, TextEdit, or other text editors that add <a href="https://en.wikipedia.org/wiki/Byte_order_mark" class="extiw" title="w:Byte order mark">byte order marks</a> to files. These break the PHP runtime of your wiki. Instead, use a code editor, e.g. <a rel="nofollow" class="external text" href="https://www.vim.org">Vim</a> or <a rel="nofollow" class="external text" href="https://notepad-plus-plus.org">Notepad++</a>. These handle file encodings properly. They can also be used to repair files previously broken by document editors.</td></tr></tbody></table> <table class="plainlinks" style="border:1px solid #a2a9b1; border-spacing: 5px; margin: 1em auto;"> <tbody><tr style="background: var(--background-color-neutral); color: var(--color-base); text-align:center;"> <th colspan="2"><a href="/wiki/Special:MyLanguage/Manual:Code" title="Special:MyLanguage/Manual:Code">MediaWiki file:</a><span style="display:none"><a href="/wiki/Manual:Code" title="Manual:Code"> </a></span> LocalSettings.php</th> </tr><tr> <td><b>Location:</b></td> <td>/</td> </tr><tr style="vertical-align: top;"> <td><b>Source code:</b></td> <td>not in Git (created during installation)</td> </tr><tr style="vertical-align: top;"> <td><b>Classes:</b></td> <td></td> </tr> </tbody></table> <p>The <b><code>LocalSettings.php</code></b> file provides basic <a href="/wiki/Special:MyLanguage/Manual:Configuration_settings" title="Special:MyLanguage/Manual:Configuration settings">configuration settings</a> of a <a href="/wiki/Special:MyLanguage/MediaWiki" title="Special:MyLanguage/MediaWiki">MediaWiki</a> installation. You should take your time to review the settings in this file. The file is usually generated by the web-based MediaWiki installer but you can tweak the parameters, possibly in concert with Apache settings. For MediaWiki installations configured as a <a href="/wiki/Special:MyLanguage/Manual:Wiki_family" title="Special:MyLanguage/Manual:Wiki family">wiki farm</a>, a file named <code><a href="/wiki/Special:MyLanguage/Manual:CommonSettings.php" title="Special:MyLanguage/Manual:CommonSettings.php">CommonSettings.php</a><span style="display:none"><a href="/wiki/Manual:CommonSettings.php" title="Manual:CommonSettings.php"> </a></span></code> may be used. </p> <meta property="mw:PageProp/toc" /> <div class="mw-heading mw-heading2"><h2 id="Location_on_the_server">Location on the server</h2></div> <p>The <code>LocalSettings.php</code> file is not a wiki page, and you cannot access it with your web browser. Instead, it is a file in the file system of the server. Its contents are generated during the initial setup of the wiki, and the resulting file must be copied to the server manually. The file must be located in the folder you installed MediaWiki into, on the same level with folders like <code>includes/</code> and <code>skins/</code> and files like <code>api.php</code>. If this file is <i>not</i> there, the wiki will not work at all—if the wiki <i>does</i> work, the file <i>is there</i>. If you do not know where it is, you can enter a command such as <code>find / -iname LocalSettings.php -print</code> in a terminal window to locate it. </p><p>(If you are using Vagrant, see also <a href="/wiki/Special:MyLanguage/MediaWiki-Vagrant#mw-settings" title="Special:MyLanguage/MediaWiki-Vagrant">MediaWiki-Vagrant#MediaWiki_settings</a>.) </p> <div class="mw-heading mw-heading2"><h2 id="Security">Security</h2></div> <p><code>LocalSettings.php</code> usually contains sensitive data such as database logins. This data should <i>never</i> be revealed to the public! Due to a security breach somewhere on the server, it might happen that other users are able to view the contents of files. In order to improve security of your data, you should set UNIX permissions for this file accordingly: The webserver user must have access to this file. If this is the same account, who is the owner of the file, then you can set permissions to <i>600</i>. Sometimes, the webserver user is <i>not</i> the file owner, but they are in the owner's UNIX user group. In this case, permissions of <i>640</i> should be fine. For improved security you should narrow permissions down as far as possible. </p><p>Additionally, you can create a MySQL user, who is restricted to only the database used by the wiki and provide this user's credentials in <code>LocalSettings.php</code>. Also you can configure your database server to only accept connections from localhost - this should prevent access from outside in case of leaked credentials. </p><p>See also <a href="/wiki/Special:MyLanguage/Manual:Securing_database_passwords" title="Special:MyLanguage/Manual:Securing database passwords">Manual:Securing database passwords</a><span style="display:none"><a href="/wiki/Manual:Securing_database_passwords" title="Manual:Securing database passwords"> </a></span> for a method to move the sensitive parts of <code>LocalSettings.php</code> to a different file in a different directory. </p> <div class="mw-heading mw-heading2"><h2 id="File_contents">File contents</h2></div> <p>When you edit <code>LocalSettings.php</code>, make sure to save it in the right encoding again. You should use "ANSI as UTF-8" encoding - that is UTF-8 encoding without byte order mark (BOM). </p><p><code>LocalSettings.php</code> contains <a href="https://en.wikipedia.org/wiki/PHP" class="extiw" title="w:PHP">PHP code</a>; mainly the definition of variables and their values. Changing a setting usually means changing the value of a PHP variable. Your changes will take effect immediately after saving the file again on the server: There is no need to manually "restart" anything. Anyway, in some cases you may need to clear your browser's cache to actually see the changes you made. </p><p>The <i>default</i> values of many more settings are set in <code>includes/DefaultSettings.php</code>, <i>which should not be edited;</i> if the variable you want to change is not already mentioned in your <code>LocalSettings.php</code>, copy the appropriate line from <code>DefaultSettings.php</code> and modify it appropriately in <code>LocalSettings.php</code>. <b>Within <code>LocalSettings.php</code> you can add new lines at the end.</b> </p><p>Within the file, there can also be several lines such as <code class="mw-highlight"><span class="k">require_once</span> <span class="s2">"</span><span class="si">$IP</span><span class="s2">/extensions/</span><i><b>ExtensionName</b></i><span class="s2">.php"</span>;</code> or <code class="mw-highlight"><span class="nx">wfLoadExtension</span>( <span class="s1">'</span><i><b>ExtensionName</b></i><span class="s1">'</span> )</code>, which point to <a href="/wiki/Special:MyLanguage/Extension:Contents" title="Special:MyLanguage/Extension:Contents">extensions</a>. These lines enable the corresponding extension in the wiki. Those extensions may require setting the values of more variables in <code>LocalSettings.php</code>; check the documentation of the extension itself for further instructions. </p><p>Like most PHP files in MediaWiki, <code>LocalSettings.php</code> does not end with the closing PHP tag <code class="mw-highlight mw-highlight-lang-php mw-content-ltr" style="" dir="ltr"><span class="cp">?></span></code>. This prevents admins from accidentally adding new information <i>after</i> this tag. PHP works fine without a closing tag. </p><p>If you have a wiki on a MediaWiki <a href="https://en.wikipedia.org/wiki/wiki_farm" class="extiw" title="w:wiki farm">wiki farm</a> you may not have write-access (perhaps not even read-access) to the file <code>LocalSettings.php</code> (see e.g. <a rel="nofollow" class="external autonumber" href="http://community.wikia.com/wiki/Forum%3ALocalSettings.php%3F">[1]</a>). The wiki farm company may or may not be willing to make changes you desire. Perhaps it wants to keep most settings the same on all wikis of the wiki farm. </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://upload.wikimedia.org/wikipedia/commons/e/ec/OOjs_UI_icon_information-progressive.svg");background-size:25px;border-color:#a3caff;padding-left:40px;min-height:25px}.mw-parser-output .note-reminder{background-color:#fff9ea;color:#333;background-image:url("https://upload.wikimedia.org/wikipedia/commons/a/a8/OOjs_UI_icon_lightbulb-yellow.svg");background-size:25px;border-color:#fc3;min-height:25px}.mw-parser-output .note-warn{background-color:#fff9ea;color:#333;background-image:url("https://upload.wikimedia.org/wikipedia/commons/3/3b/OOjs_UI_icon_alert-warning.svg");background-size:25px;border-color:#fc3;min-height:25px}.mw-parser-output .note-error{background-color:#fee7e6;color:#333;background-image:url("https://upload.wikimedia.org/wikipedia/commons/b/bf/OOjs_UI_icon_notice-destructive.svg");background-size:25px;border-color:#c33;min-height:25px}@media screen{html.skin-theme-clientpref-night .mw-parser-output .note{background-color:transparent;color:inherit}}@media screen and (prefers-color-scheme:dark){html.skin-theme-clientpref-os .mw-parser-output .note{background-color:transparent;color:inherit}}</style><div role="note" class="note note-info">This file is not written to your webserver automatically for security reasons. Instead, it is offered as a download, which you must then upload to your server for your wiki to begin working. For a more complete explanation, see <a class="external text" href="https://www.mediawiki.org/w/index.php?title=New-installer_issues&diff=334526&oldid=333913">this explanation</a>.</div> <div class="mw-heading mw-heading2"><h2 id="Overview_of_available_settings">Overview of available settings</h2></div> <p>See the <a href="/wiki/Special:MyLanguage/Manual:Configuration_settings" title="Special:MyLanguage/Manual:Configuration settings">configuration settings index</a> and the comments included in the settings files for help on what all the variables do. A short listing of the most important variables, as well as the most requested features, is listed below. </p> <div class="mw-heading mw-heading2"><h2 id="Standard_settings">Standard settings</h2></div> <div class="mw-heading mw-heading3"><h3 id="Install_path">Install path</h3></div> <p>The <b><a href="/wiki/Special:MyLanguage/Manual:$IP" title="Special:MyLanguage/Manual:$IP">$IP</a><span style="display:none"><a href="/wiki/Manual:$IP" title="Manual:$IP"> </a></span></b> (install path) variable holds the local file path to the base installation of your wiki. Since MediaWiki 1.18, the system sets $IP automatically. Setting <code class="mw-highlight mw-highlight-lang-php mw-content-ltr" style="" dir="ltr"><span class="nv">$IP</span></code> manually in <code>LocalSettings.php</code> is no longer needed. <code class="mw-highlight mw-highlight-lang-php mw-content-ltr" style="" dir="ltr"><span class="nv">$IP</span></code> will default to the current working directory and can be used without the need to manually define it. Attempting to set <code class="mw-highlight mw-highlight-lang-php mw-content-ltr" style="" dir="ltr"><span class="nv">$IP</span></code> (or <code>MW_INSTALL_PATH</code>) in <code>LocalSettings.php</code> may produce unexpected results. </p><p>The <a href="/wiki/Special:MyLanguage/Manual:DefaultSettings.php" title="Special:MyLanguage/Manual:DefaultSettings.php">DefaultSettings.php</a><span style="display:none"><a href="/wiki/Manual:DefaultSettings.php" title="Manual:DefaultSettings.php"> </a></span> file gets loaded from the directory designated by the IP variable. </p> <div class="mw-heading mw-heading3"><h3 id="Site_name">Site name</h3></div> <p><b><a href="/wiki/Special:MyLanguage/Manual:$wgSitename" title="Special:MyLanguage/Manual:$wgSitename">$wgSitename</a><span style="display:none"><a href="/wiki/Manual:$wgSitename" title="Manual:$wgSitename"> </a></span></b> holds the name of your wiki setup. This name gets included many times throughout the system, such as via MediaWiki:Pagetitle. For instance, the Wikipedia tagline "From Wikipedia, the free encyclopedia" makes use of this setting. </p> <div class="mw-heading mw-heading3"><h3 id="Declensions_of_site_name">Declensions of site name</h3></div> <p>Some translations of interface are ready for inflection of site name. You can set proper forms of word in variables <b><a href="/wiki/Special:MyLanguage/Manual:$wgGrammarForms" title="Special:MyLanguage/Manual:$wgGrammarForms">$wgGrammarForms</a><span style="display:none"><a href="/wiki/Manual:$wgGrammarForms" title="Manual:$wgGrammarForms"> </a></span></b> (for example please refer to the <b><a href="/wiki/Special:MyLanguage/Manual:$wgSitename" title="Special:MyLanguage/Manual:$wgSitename">$wgSitename</a><span style="display:none"><a href="/wiki/Manual:$wgSitename" title="Manual:$wgSitename"> </a></span></b> documentation page). </p> <div class="mw-heading mw-heading3"><h3 id="Site_language">Site language</h3></div> <p><b><a href="/wiki/Special:MyLanguage/Manual:$wgLanguageCode" title="Special:MyLanguage/Manual:$wgLanguageCode">$wgLanguageCode</a><span style="display:none"><a href="/wiki/Manual:$wgLanguageCode" title="Manual:$wgLanguageCode"> </a></span></b> controls the language of your wiki's interface. While users can switch the language they see in their <a href="/wiki/Special:Preferences" title="Special:Preferences">preferences</a>, this variable sets the default language that all anonymous users and most registered users see. </p> <div class="mw-heading mw-heading3"><h3 id="Script_path">Script path</h3></div> <p><b><a href="/wiki/Special:MyLanguage/Manual:$wgScriptPath" title="Special:MyLanguage/Manual:$wgScriptPath">$wgScriptPath</a><span style="display:none"><a href="/wiki/Manual:$wgScriptPath" title="Manual:$wgScriptPath"> </a></span></b> is the URL path prefix to access the main MediaWiki script that is the central acting piece of code of MediaWiki. This setting should correspond to the <a href="/wiki/Special:MyLanguage/Apache_configuration" title="Special:MyLanguage/Apache configuration">Apache settings</a>, especially if you are using Apache's <a href="https://en.wikipedia.org/wiki/Rewrite_engine" class="extiw" title="w:Rewrite engine">rewrite</a> rules. </p> <div class="mw-heading mw-heading3"><h3 id="Server_name">Server name</h3></div> <p><b><a href="/wiki/Special:MyLanguage/Manual:$wgServer" title="Special:MyLanguage/Manual:$wgServer">$wgServer</a><span style="display:none"><a href="/wiki/Manual:$wgServer" title="Manual:$wgServer"> </a></span></b> contains the base URL of the server, including protocol but without the trailing slash and without the subdirectory if any. When the wiki is accessed from either the localhost where it runs, from an intranet or from the internet, email notifications and a few other computed messages would be usually delivered with the different URLs. </p><p>From MediaWiki 1.34 <code class="mw-highlight mw-highlight-lang-php mw-content-ltr" style="" dir="ltr"><span class="nv">$wgServer</span></code> must be set in LocalSettings.php. Prior to that, MediaWiki tried to autodetect the name of the server and <code class="mw-highlight mw-highlight-lang-php mw-content-ltr" style="" dir="ltr"><span class="nv">$wgServer</span></code> was optional, to override the autodetection. </p><p>If www.example.com is the server address of your wiki as seen from the internet, add a line such as </p> <div class="mw-highlight mw-highlight-lang-php mw-content-ltr" dir="ltr"><pre><span></span><span class="nv">$wgServer</span> <span class="o">=</span> <span class="s1">'http://www.example.com'</span><span class="p">;</span> </pre></div> <p>The <a href="/wiki/Special:MyLanguage/Help:Magic_words#Page_names_and_related_info" title="Special:MyLanguage/Help:Magic words">magic word</a> variable <code>{{SERVER}}</code> can be used on wiki pages; it equals the value of <code class="mw-highlight mw-highlight-lang-php mw-content-ltr" style="" dir="ltr"><span class="nv">$wgServer</span></code>; however, on a wiki, such as those in the Wikimedia family, where relative urls are used, it will not fully expand, for example here it displays //www.mediawiki.org, which can neither be clicked nor copy-pasted into the address bar as it is. </p><p>You can also use a protocol relative URL as shown below. When using a protocol relative URL, be sure to set <code class="mw-highlight mw-highlight-lang-php mw-content-ltr" style="" dir="ltr"><span class="nv">$wgCanonicalServer</span></code>. <code class="mw-highlight mw-highlight-lang-php mw-content-ltr" style="" dir="ltr"><span class="nv">$wgCanonicalServer</span></code> is needed for some places in the code where an origin with a protocol and hostname is needed. </p> <div class="mw-highlight mw-highlight-lang-php mw-content-ltr" dir="ltr"><pre><span></span><span class="nv">$wgServer</span> <span class="o">=</span> <span class="s1">'//www.example.com'</span><span class="p">;</span> <span class="nv">$wgCanonicalServer</span> <span class="o">=</span> <span class="s1">'https://www.example.com'</span><span class="p">;</span> </pre></div> <div class="mw-heading mw-heading3"><h3 id="Script_name">Script name</h3></div> <p><b><a href="/wiki/Special:MyLanguage/Manual:$wgScript" title="Special:MyLanguage/Manual:$wgScript">$wgScript</a><span style="display:none"><a href="/wiki/Manual:$wgScript" title="Manual:$wgScript"> </a></span></b> is the name of the main (index) MediaWiki PHP script, named <code>index.php</code> by default. Changing the script name is probably not a good idea. However, if you feel the urge to do so, this is the place to make your changes. Make sure you know what you are doing. </p> <div class="mw-heading mw-heading3"><h3 id="Article_path">Article path</h3></div> <p><b><a href="/wiki/Special:MyLanguage/Manual:$wgArticlePath" title="Special:MyLanguage/Manual:$wgArticlePath">$wgArticlePath</a><span style="display:none"><a href="/wiki/Manual:$wgArticlePath" title="Manual:$wgArticlePath"> </a></span></b> is the path to use when accessing a page in MediaWiki. The path should contain the path to the main script (usually making use of <code class="mw-highlight mw-highlight-lang-php mw-content-ltr" style="" dir="ltr"><span class="nv">$wgScript</span></code>) and use the <code>$1</code> placeholder for the article name. </p><p>If you are using Apache rewrite rules to create pretty and short URLs, you probably need to adjust <code class="mw-highlight mw-highlight-lang-php mw-content-ltr" style="" dir="ltr"><span class="nv">$wgArticlePath</span></code> to address the right path. Note that wgArticlePath is used to construct URLs from within MediaWiki. If you make a mistake here, internal links will show up incorrectly while you still may be able to access the main page by specifying the correct URL manually. See <a href="/wiki/Special:MyLanguage/Manual:Short_URL" title="Special:MyLanguage/Manual:Short URL">Manual:Short URL</a><span style="display:none"><a href="/wiki/Manual:Short_URL" title="Manual:Short URL"> </a></span> for more information on URL configuration. </p><p>Typical values are: </p> <table class="wikitable"> <tbody><tr> <td><code>"$wgScript/$1"</code> </td> <td>pass the article name with separator "/" </td></tr> <tr> <td><code>"$wgScript?title=$1"</code> </td> <td>pass the article name as a parameter (old style) </td></tr> <tr> <td><code>"/mypath/$1"</code> </td> <td>custom path. Use Apache rewrite rules to convert "mypath" to the proper path accessing the main script </td></tr></tbody></table> <div class="mw-heading mw-heading3"><h3 id="Stylesheet_location">Stylesheet location</h3></div> <p>Use <b><a href="/wiki/Special:MyLanguage/Manual:$wgStylePath" title="Special:MyLanguage/Manual:$wgStylePath">$wgStylePath</a><span style="display:none"><a href="/wiki/Manual:$wgStylePath" title="Manual:$wgStylePath"> </a></span></b> to set the URL path to the place where the stylesheets (CSS) for the MediaWiki installation are located. <b><a href="/wiki/Special:MyLanguage/Manual:$wgStyleDirectory" title="Special:MyLanguage/Manual:$wgStyleDirectory">$wgStyleDirectory</a><span style="display:none"><a href="/wiki/Manual:$wgStyleDirectory" title="Manual:$wgStyleDirectory"> </a></span></b> should point the same place, but note that this is a local file system path for use in internal scripts accessing the file system. </p> <div class="mw-heading mw-heading3"><h3 id="Upload_location">Upload location</h3></div> <p>The upload directory is the place where files uploaded by the users are stored. <b><a href="/wiki/Special:MyLanguage/Manual:$wgUploadPath" title="Special:MyLanguage/Manual:$wgUploadPath">$wgUploadPath</a><span style="display:none"><a href="/wiki/Manual:$wgUploadPath" title="Manual:$wgUploadPath"> </a></span></b> specifies the URL path, <b><a href="/wiki/Special:MyLanguage/Manual:$wgUploadDirectory" title="Special:MyLanguage/Manual:$wgUploadDirectory">$wgUploadDirectory</a><span style="display:none"><a href="/wiki/Manual:$wgUploadDirectory" title="Manual:$wgUploadDirectory"> </a></span></b> points to the local file system path. </p> <div class="mw-heading mw-heading3"><h3 id="Logo">Logo</h3></div> <p><b><a href="/wiki/Special:MyLanguage/Manual:$wgLogo" title="Special:MyLanguage/Manual:$wgLogo">$wgLogo</a><span style="display:none"><a href="/wiki/Manual:$wgLogo" title="Manual:$wgLogo"> </a></span></b> specifies which graphical logo is displayed in the top left corner of all MediaWiki pages. These steps replace the default logo in the /wiki/skins/common/images/ directory, replacing /wiki with the path to the directory where you installed the MediaWiki software. </p><p>First, copy whatever logo you want into the /wiki/skins/common/images/ directory (replacing /wiki with the path to the directory where you installed the MediaWiki software). </p><p>Next, try to find the line that looks like this in <code>LocalSettings.php</code>: </p> <div style="overflow:auto;" class="mw-highlight mw-highlight-lang-php mw-content-ltr" dir="ltr"><pre><span></span><span class="nv">$wgLogo</span> <span class="o">=</span> <span class="s2">"</span><span class="si">$wgStylePath</span><span class="s2">/common/images/wiki.png"</span><span class="p">;</span> </pre></div> <p>If there's no such line, you can copy and paste the line above at the end of the file. </p><p>Then, modify that line to point to your logo. The logo must be web accessible. The value of this variable is passed to the web browser, which uses it to fetch the logo. If in doubt, a good way to pick what to put here is navigate to the logo in your web browser (for example, this wiki the url of the logo is <a class="external free" href="https://upload.wikimedia.org/wikipedia/mediawiki/b/bc/Wiki.png">http://upload.wikimedia.org/wikipedia/mediawiki/b/bc/Wiki.png</a> ), and put the full URL as the value of this variable. </p><p>Some people just replace the skins/common/images/wiki.png file with their logo. This is not recommended, as the customized logo would be overwritten on upgrade. </p><p>MediaWiki 1.35 introduced <a href="/wiki/Special:MyLanguage/Manual:$wgLogos" title="Special:MyLanguage/Manual:$wgLogos">$wgLogos</a><span style="display:none"><a href="/wiki/Manual:$wgLogos" title="Manual:$wgLogos"> </a></span>, which allows multiple versions of the same logo. An example of using multiple logos is shown below. </p> <div style="overflow:auto;" class="mw-highlight mw-highlight-lang-php mw-content-ltr" dir="ltr"><pre><span></span><span class="nv">$wgLogos</span> <span class="o">=</span> <span class="p">[</span> <span class="s1">'1x'</span> <span class="o">=></span> <span class="s2">"</span><span class="si">$wgStylePath</span><span class="s2">/common/images/1x_version.png"</span><span class="p">,</span> <span class="s1">'1.5x'</span> <span class="o">=></span> <span class="s2">"</span><span class="si">$wgStylePath</span><span class="s2">/common/1.5x_version.png"</span><span class="p">,</span> <span class="o">...</span> <span class="s1">'tagline'</span> <span class="o">=></span> <span class="p">[</span> <span class="s1">'src'</span> <span class="o">=></span> <span class="s2">"</span><span class="si">$wgStylePath</span><span class="s2">/common/tagline_version.png"</span><span class="p">,</span> <span class="s1">'width'</span> <span class="o">=></span> <span class="mi">135</span><span class="p">,</span> <span class="s1">'height'</span> <span class="o">=></span> <span class="mi">15</span><span class="p">,</span> <span class="p">],</span> <span class="p">];</span> </pre></div> <div class="mw-heading mw-heading3"><h3 id="Contact_info">Contact info</h3></div> <p><b><a href="/wiki/Special:MyLanguage/Manual:$wgEmergencyContact" title="Special:MyLanguage/Manual:$wgEmergencyContact">$wgEmergencyContact</a><span style="display:none"><a href="/wiki/Manual:$wgEmergencyContact" title="Manual:$wgEmergencyContact"> </a></span></b> is the email address of the user to contact if something goes wrong. This email address is used to send internal bug reports to. As an administrator, you want to include your email address here. </p><p><b><a href="/wiki/Special:MyLanguage/Manual:$wgPasswordSender" title="Special:MyLanguage/Manual:$wgPasswordSender">$wgPasswordSender</a><span style="display:none"><a href="/wiki/Manual:$wgPasswordSender" title="Manual:$wgPasswordSender"> </a></span></b> is the email address where email gets sent <i>from</i>, when passwords are sent out to users who have forgotten their passwords. Choose an address people can reply to in case of trouble or confusion. </p> <div class="mw-heading mw-heading3"><h3 id="Database_settings">Database settings</h3></div> <p>MediaWiki needs access to the database (currently either <a href="https://en.wikipedia.org/wiki/MySQL" class="extiw" title="w:MySQL">MySQL</a> or <a href="https://en.wikipedia.org/wiki/PostgreSQL" class="extiw" title="w:PostgreSQL">PostgreSQL</a>) to store pages, modifications, user information, and a lot more things. </p><p><b><a href="/wiki/Special:MyLanguage/Manual:$wgDBserver" title="Special:MyLanguage/Manual:$wgDBserver">$wgDBserver</a><span style="display:none"><a href="/wiki/Manual:$wgDBserver" title="Manual:$wgDBserver"> </a></span></b> contains the hostname where the database is hosted on. In most cases this will be just "localhost" as the database is run on the same system, but for distributed installations, you need to fill in the fully qualified domain name of the computer running the database. </p><p><b><a href="/wiki/Special:MyLanguage/Manual:$wgDBname" title="Special:MyLanguage/Manual:$wgDBname">$wgDBname</a><span style="display:none"><a href="/wiki/Manual:$wgDBname" title="Manual:$wgDBname"> </a></span></b> is the <i>database name</i> of the database to be used by MediaWiki. A single MySQL or PostgreSQL installation can store more than one database and you can even run many MediaWiki installations on a single server. Make sure you have stated the correct database name here and use different database names for different wiki installations on the same database server. </p><p><b><a href="/wiki/Special:MyLanguage/Manual:$wgDBuser" title="Special:MyLanguage/Manual:$wgDBuser">$wgDBuser</a><span style="display:none"><a href="/wiki/Manual:$wgDBuser" title="Manual:$wgDBuser"> </a></span></b> and <b><a href="/wiki/Special:MyLanguage/Manual:$wgDBpassword" title="Special:MyLanguage/Manual:$wgDBpassword">$wgDBpassword</a><span style="display:none"><a href="/wiki/Manual:$wgDBpassword" title="Manual:$wgDBpassword"> </a></span></b> contain the login name and password to be used by MediaWiki to access the database. Make sure the specified user has the proper access rights to be able to manipulate the wiki's table on the database server. </p><p>Also see <a href="/wiki/Special:MyLanguage/Manual:Securing_database_passwords" title="Special:MyLanguage/Manual:Securing database passwords">Manual:Securing database passwords</a><span style="display:none"><a href="/wiki/Manual:Securing_database_passwords" title="Manual:Securing database passwords"> </a></span> for a method to move the sensitive parts of <code>LocalSettings.php</code> to a different file in a different directory. </p> <div class="mw-heading mw-heading3"><h3 id="User_rights">User rights</h3></div> <p><b><a href="/wiki/Special:MyLanguage/Manual:$wgGroupPermissions" title="Special:MyLanguage/Manual:$wgGroupPermissions">$wgGroupPermissions</a><span style="display:none"><a href="/wiki/Manual:$wgGroupPermissions" title="Manual:$wgGroupPermissions"> </a></span></b> is an associative array, controlling permissions for creating and editing pages for your different user groups. In this array, custom permission levels can be created, and permission levels for the different user groups can be set. See <a href="/wiki/Special:MyLanguage/Help:User_rights" title="Special:MyLanguage/Help:User rights">Help:User rights</a><span style="display:none"><a href="/wiki/Help:User_rights" class="mw-redirect" title="Help:User rights"> </a></span> for more information about the different permissions and user groups available. </p> <div class="mw-heading mw-heading3"><h3 id="Force_capital_links">Force capital links</h3></div> <p>By default, no page name can start with a lowercase <a href="https://en.wikipedia.org/wiki/Latin_alphabet" class="extiw" title="w:Latin alphabet">Roman letter</a>: in an attempt to do so the first letter is converted to uppercase; if a link target, included page, image or category is specified with a name starting with a lowercase letter, the actual target etc. is the page starting with the corresponding capital. </p><p>Alternatively page names <i>can</i> start with a lowercase letter, in addition to the possibilities of starting with a capital, a digit, etc. For that you must adjust <b><a href="/wiki/Special:MyLanguage/Manual:$wgCapitalLinks" title="Special:MyLanguage/Manual:$wgCapitalLinks">$wgCapitalLinks</a><span style="display:none"><a href="/wiki/Manual:$wgCapitalLinks" title="Manual:$wgCapitalLinks"> </a></span></b>. Setting it to <b>false</b> allows lowercase characters, <b>true</b> chooses the default behavior. </p> <div class="mw-heading mw-heading3"><h3 id="Enabling_subpages">Enabling subpages</h3></div> <p>In <code>LocalSettings.php</code>, <a href="/wiki/Special:MyLanguage/Help:Subpages" title="Special:MyLanguage/Help:Subpages">subpages</a> are enabled on a per-namespace basis using <b><a href="/wiki/Special:MyLanguage/Manual:$wgNamespacesWithSubpages" title="Special:MyLanguage/Manual:$wgNamespacesWithSubpages">$wgNamespacesWithSubpages</a><span style="display:none"><a href="/wiki/Manual:$wgNamespacesWithSubpages" title="Manual:$wgNamespacesWithSubpages"> </a></span></b>. For example, to enable subpages in the main namespace: </p> <div class="mw-highlight mw-highlight-lang-php mw-content-ltr" dir="ltr"><pre><span></span><span class="nv">$wgNamespacesWithSubpages</span><span class="p">[</span><span class="nx">NS_MAIN</span><span class="p">]</span> <span class="o">=</span> <span class="mi">1</span><span class="p">;</span> </pre></div> <div class="mw-heading mw-heading3"><h3 id="Image_uploads">Image uploads</h3></div> <p>Before users are allowed to upload files to the MediaWiki system, you have to enable that feature. Make sure the Upload Directory is properly configured and writeable by the Apache web server process. Then set <b><a href="/wiki/Special:MyLanguage/Manual:$wgEnableUploads" title="Special:MyLanguage/Manual:$wgEnableUploads">$wgEnableUploads</a><span style="display:none"><a href="/wiki/Manual:$wgEnableUploads" title="Manual:$wgEnableUploads"> </a></span></b> to <b>true</b> to allow uploading in the web user interface. </p><p>i.e. Here's some example code from <i>includes/DefaultSettings.php</i> to put in <code>LocalSettings.php</code>: </p> <div style="overflow:auto;" class="mw-highlight mw-highlight-lang-php mw-content-ltr" dir="ltr"><pre><span></span><span class="nv">$wgUploadPath</span> <span class="o">=</span> <span class="s2">"</span><span class="si">$wgScriptPath</span><span class="s2">/uploads"</span><span class="p">;</span> <span class="c1">## Wiki 1.5 defaults to /images, but allows more than just images</span> <span class="nv">$wgUploadDirectory</span> <span class="o">=</span> <span class="s2">"</span><span class="si">$IP</span><span class="s2">/uploads"</span><span class="p">;</span> <span class="c1">## Wiki 1.5 defaults to /images, but allows more than just images</span> <span class="c1">## To enable image uploads, make sure the above '$wgUploadPath' directory is writable by Apache User or group.</span> <span class="c1">## ''(i.e. chmod og+w uploads images)'' then the following should be true:</span> <span class="nv">$wgEnableUploads</span> <span class="o">=</span> <span class="k">true</span><span class="p">;</span> <span class="nv">$wgUseImageMagick</span> <span class="o">=</span> <span class="k">true</span><span class="p">;</span> <span class="nv">$wgImageMagickConvertCommand</span> <span class="o">=</span> <span class="s2">"/usr/bin/convert"</span><span class="p">;</span> <span class="c1">## If you want to use image uploads under safe mode, create the directories images/archive, images/thumb and</span> <span class="c1">## images/temp, and make them all writable. Then uncomment this, if it's not already uncommented:</span> <span class="nv">$wgHashedUploadDirectory</span> <span class="o">=</span> <span class="k">false</span><span class="p">;</span> </pre></div> <p>If you want to be able to resize images on the fly to support thumbnails, MediaWiki needs a working <a href="https://en.wikipedia.org/wiki/ImageMagick" class="extiw" title="w:ImageMagick">ImageMagick</a> installation. Set <b><a href="/wiki/Special:MyLanguage/Manual:$wgUseImageMagick" title="Special:MyLanguage/Manual:$wgUseImageMagick">$wgUseImageMagick</a><span style="display:none"><a href="/wiki/Manual:$wgUseImageMagick" title="Manual:$wgUseImageMagick"> </a></span></b> to <b>true</b> once you have installed and tested ImageMagick on your system. Make sure <b><a href="/wiki/Special:MyLanguage/Manual:$wgImageMagickConvertCommand" title="Special:MyLanguage/Manual:$wgImageMagickConvertCommand">$wgImageMagickConvertCommand</a><span style="display:none"><a href="/wiki/Manual:$wgImageMagickConvertCommand" title="Manual:$wgImageMagickConvertCommand"> </a></span></b> points to the proper location of the <code>convert</code> command of your installation, that the command is executable by the web server process, and <b><a href="/wiki/Special:MyLanguage/Manual:$wgMaxShellMemory" title="Special:MyLanguage/Manual:$wgMaxShellMemory">$wgMaxShellMemory</a><span style="display:none"><a href="/wiki/Manual:$wgMaxShellMemory" title="Manual:$wgMaxShellMemory"> </a></span></b> is large enough. See <a href="/wiki/Special:MyLanguage/Manual:Image_administration#Image_thumbnailing" title="Special:MyLanguage/Manual:Image administration">Manual:Image administration#Image thumbnailing</a><span style="display:none"><a href="/wiki/Manual:Image_administration#Image_thumbnailing" title="Manual:Image administration"> </a></span> for detailed information and troubleshooting. </p><p>Also, you may want to modify the list of accepted extensions, which is stored within <b><a href="/wiki/Special:MyLanguage/Manual:$wgFileExtensions" title="Special:MyLanguage/Manual:$wgFileExtensions">$wgFileExtensions</a><span style="display:none"><a href="/wiki/Manual:$wgFileExtensions" title="Manual:$wgFileExtensions"> </a></span></b>: </p> <div class="mw-highlight mw-highlight-lang-php mw-content-ltr" dir="ltr"><pre><span></span><span class="nv">$wgFileExtensions</span> <span class="o">=</span> <span class="p">[</span> <span class="s1">'png'</span><span class="p">,</span> <span class="s1">'jpg'</span><span class="p">,</span> <span class="s1">'jpeg'</span><span class="p">,</span> <span class="s1">'ogg'</span><span class="p">,</span> <span class="s1">'doc'</span><span class="p">,</span> <span class="s1">'xls'</span><span class="p">,</span> <span class="s1">'ppt'</span><span class="p">,</span> <span class="s1">'mp3'</span><span class="p">,</span> <span class="s1">'sxc'</span><span class="p">,</span> <span class="s1">'pdf'</span> <span class="p">];</span> </pre></div> <p>In case ImageMagick outputs an error message similar to the following: </p> <blockquote> <p>Fatal error: mime_magic could not be initialized, magic file is not available in includes/MimeMagic.php on line 506 </p> </blockquote> <p>then try adding the following line to <code>LocalSettings.php</code>: </p><p><code class="mw-code mw-highlight" style="display:block"><a href="/wiki/Special:MyLanguage/Manual:$wgMimeDetectorCommand" title="Special:MyLanguage/Manual:$wgMimeDetectorCommand">$wgMimeDetectorCommand</a><span style="display:none"><a href="/wiki/Manual:$wgMimeDetectorCommand" title="Manual:$wgMimeDetectorCommand"> </a></span> = <span class="s2">"file -bi"</span>; </code> </p> <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r6651107"><div role="note" class="note note-info">Read the <a href="/wiki/Special:MyLanguage/Manual:Security#Upload_security" title="Special:MyLanguage/Manual:Security">upload security</a> section in the <a href="/wiki/Special:MyLanguage/Manual:Security#Upload_security" title="Special:MyLanguage/Manual:Security">Manual:Security</a>.<br /> <p>Further information is available in: </p> <ul><li><a href="/wiki/Special:MyLanguage/Manual:Configuring_file_uploads" title="Special:MyLanguage/Manual:Configuring file uploads">Manual:Configuring file uploads</a><span style="display:none"><a href="/wiki/Manual:Configuring_file_uploads" title="Manual:Configuring file uploads"> </a></span></li> <li><a href="/wiki/Special:MyLanguage/Manual:MIME_type_detection" title="Special:MyLanguage/Manual:MIME type detection">Manual:MIME type detection</a><span style="display:none"><a href="/wiki/Manual:MIME_type_detection" title="Manual:MIME type detection"> </a></span></li> <li><a href="/wiki/Special:MyLanguage/Manual:Image_administration#Image_thumbnailing" title="Special:MyLanguage/Manual:Image administration">Manual:Image administration#Image thumbnailing</a><span style="display:none"><a href="/wiki/Manual:Image_administration#Image_thumbnailing" title="Manual:Image administration"> </a></span></li></ul></div> <div class="mw-heading mw-heading3"><h3 id="Interwiki_support">Interwiki support</h3></div> <p>InterWiki support is built into MediaWiki but you need to configure the prefix to be used for your internal links. This prefix is usually the same as <code><a href="/wiki/Special:MyLanguage/Manual:$wgSitename" title="Special:MyLanguage/Manual:$wgSitename">$wgSitename</a><span style="display:none"><a href="/wiki/Manual:$wgSitename" title="Manual:$wgSitename"> </a></span></code>, but in case you need to change that, you set the <code><a href="/wiki/Special:MyLanguage/Manual:$wgLocalInterwikis" title="Special:MyLanguage/Manual:$wgLocalInterwikis">$wgLocalInterwikis</a><span style="display:none"><a href="/wiki/Manual:$wgLocalInterwikis" title="Manual:$wgLocalInterwikis"> </a></span></code> variable to the preferred name. </p><p><br /> </p> <div class="mw-heading mw-heading3"><h3 id="Language_of_user_interface">Language of user interface</h3></div> <p>MediaWiki allows for a variety of localized user interfaces languages instead of the English default. If you want to run your wiki in a non-English language, set the <code><a href="/wiki/Special:MyLanguage/Manual:$wgLanguageCode" title="Special:MyLanguage/Manual:$wgLanguageCode">$wgLanguageCode</a><span style="display:none"><a href="/wiki/Manual:$wgLanguageCode" title="Manual:$wgLanguageCode"> </a></span></code> variable to the proper <a href="/wiki/Special:SiteMatrix" title="Special:SiteMatrix">language code</a> (e.g. "de" for German, "es" for Spanish, etc.) </p><p>You may use any of the languages with a file in the directory <a href="https://gerrit.wikimedia.org/g/mediawiki/core/%2B/HEAD/languages/i18n" class="extiw" title="git:mediawiki/core/+/HEAD/languages/i18n">languages/i18n</a>. E.g. if you find <code>es.json</code>, then you can use <code>"es"</code> for Spanish. Do not use <code>"Es"</code> with a capital letter. Although it seems to work, not all texts are translated. </p> <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r6651107"><div role="note" class="note note-info">After changing the language code, you will need to run a PHP script to make it work. In a terminal window, change to your wiki directory, change to the <code>maintenance</code> folder, and enter <code class="mw-highlight mw-highlight-lang-bash mw-content-ltr" dir="ltr">php<span class="w"> </span>rebuildMessages.php<span class="w"> </span>--rebuild</code>. On Windows, the PHP folder might not be in your <code>PATH</code> environment variable and you'll have to prefix <kbd>php</kbd> with the path to the program.</div> <p>Not all languages are supported. See the <a rel="nofollow" class="external text" href="https://translatewiki.net/w/i.php?title=Special:MessageGroupStats&group=mediawiki">translation statistics on TranslateWiki</a> for an up-to-date list of which languages are supported and to what extent. That list reflects the current state of MediaWiki core, so depending on what version you are using there may be a discrepancy. </p> <div class="mw-heading mw-heading3"><h3 id="Setting_copyright_for_the_site">Setting copyright for the site</h3></div> <ul><li><b><a href="/wiki/Special:MyLanguage/Manual:$wgRightsPage" title="Special:MyLanguage/Manual:$wgRightsPage">$wgRightsPage</a><span style="display:none"><a href="/wiki/Manual:$wgRightsPage" title="Manual:$wgRightsPage"> </a></span></b> is the page on the wiki that covers the copyrights that it falls under. Usually, this will be <a href="/wiki/Special:MyLanguage/Project:Copyrights" title="Special:MyLanguage/Project:Copyrights">Project:Copyrights</a><span style="display:none"><a href="/wiki/Project:Copyrights" title="Project:Copyrights"> </a></span>.</li> <li><b><a href="/wiki/Special:MyLanguage/Manual:$wgRightsUrl" title="Special:MyLanguage/Manual:$wgRightsUrl">$wgRightsUrl</a><span style="display:none"><a href="/wiki/Manual:$wgRightsUrl" title="Manual:$wgRightsUrl"> </a></span></b> is the page describing full details of your license. (For the GNU FDL, for example, this would be <code><a rel="nofollow" class="external free" href="http://www.gnu.org/licenses/fdl.html">http://www.gnu.org/licenses/fdl.html</a></code>.)</li> <li><b><a href="/wiki/Special:MyLanguage/Manual:$wgRightsText" title="Special:MyLanguage/Manual:$wgRightsText">$wgRightsText</a><span style="display:none"><a href="/wiki/Manual:$wgRightsText" title="Manual:$wgRightsText"> </a></span></b> is the text in the footer that follows "Content is available under". It will be linked to the page specified in <code>$wgRightsPage</code>.</li> <li><b><a href="/wiki/Special:MyLanguage/Manual:$wgRightsIcon" title="Special:MyLanguage/Manual:$wgRightsIcon">$wgRightsIcon</a><span style="display:none"><a href="/wiki/Manual:$wgRightsIcon" title="Manual:$wgRightsIcon"> </a></span></b> is the URL of the image placed at the left of the footer.</li></ul> <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r6651107"><div role="note" class="note note-info">If <code>$wgRightsPage</code> is non-empty, the link in the copyright/license notice will link to that page on your site. If <code>$wgRightsPage</code> is empty then the copyright/license notice will link to <code>$wgRightsUrl</code> instead.</div> <p>To modify the copyright statements of the site, add something like this to <code>LocalSettings.php</code>: </p> <div style="overflow:auto;" class="mw-highlight mw-highlight-lang-php mw-content-ltr" dir="ltr"><pre><span></span><span class="nv">$wgRightsPage</span> <span class="o">=</span> <span class="s2">"YourWiki:Copyright"</span><span class="p">;</span> <span class="nv">$wgRightsText</span> <span class="o">=</span> <span class="s2">"copyright YourWiki"</span><span class="p">;</span> </pre></div> <p>Afterwards, edit <a href="/wiki/MediaWiki:Copyright" title="MediaWiki:Copyright">MediaWiki:Copyright</a> to provide an appropriate message, using <code>"$1"</code> to indicate the position where the link to your copyright page will be. </p><p><b>Example: setting a <a href="https://en.wikipedia.org/wiki/Creative_Commons" class="extiw" title="w:Creative Commons">Creative Commons</a> license</b> </p><p>To set a Creative Commons license do the following: </p> <ul><li>Choose your license: <a rel="nofollow" class="external free" href="http://creativecommons.org/choose/">http://creativecommons.org/choose/</a></li> <li>Examine the returned HTML code, e.g.:</li></ul> <div style="overflow:auto;" class="mw-highlight mw-highlight-lang-html mw-content-ltr" dir="ltr"><pre><span></span><span class="p"><</span><span class="nt">a</span> <span class="na">rel</span><span class="o">=</span><span class="s">"license"</span> <span class="na">href</span><span class="o">=</span><span class="s">"http://creativecommons.org/licenses/by-nc-sa/3.0/"</span><span class="p">></span> <span class="p"><</span><span class="nt">img</span> <span class="na">alt</span><span class="o">=</span><span class="s">"Creative Commons License"</span> <span class="na">border</span><span class="o">=</span><span class="s">"0"</span> <span class="na">src</span><span class="o">=</span><span class="s">"http://creativecommons.org/images/public/somerights30.png"</span> <span class="p">/></span> <span class="p"></</span><span class="nt">a</span><span class="p">></span> This work is licensed under a <span class="p"><</span><span class="nt">a</span> <span class="na">rel</span><span class="o">=</span><span class="s">"license"</span> <span class="na">href</span><span class="o">=</span><span class="s">"http://creativecommons.org/licenses/by-nc-sa/3.0/"</span><span class="p">></span> Creative Commons Attribution-NonCommercial-ShareAlike 3.0 License<span class="p"></</span><span class="nt">a</span><span class="p">></span>. </pre></div> <ul><li>For <code>$wgRightsURL</code> enter the href info from the first anchor:</li></ul> <div style="overflow:auto;" class="mw-highlight mw-highlight-lang-php mw-content-ltr" dir="ltr"><pre><span></span><span class="nv">$wgRightsUrl</span> <span class="o">=</span> <span class="s2">"http://creativecommons.org/licenses/by-nc-sa/3.0/"</span><span class="p">;</span> </pre></div> <ul><li>For <code>$wgRightsText</code> enter the text the second anchor links from (add the "a" to the Wiki variable for a more grammatically correct version)</li></ul> <div style="overflow:auto;" class="mw-highlight mw-highlight-lang-php mw-content-ltr" dir="ltr"><pre><span></span><span class="nv">$wgRightsText</span> <span class="o">=</span> <span class="s2">"a Creative Commons Attribution-NonCommercial-ShareAlike 3.0 License"</span><span class="p">;</span> </pre></div> <ul><li>For <code>$wgRightsIcon</code> enter the src info from the img link in the first anchor. You want to copy the badge to your own site instead of using the one from the Creative Commons site.</li></ul> <div style="overflow:auto;" class="mw-highlight mw-highlight-lang-php mw-content-ltr" dir="ltr"><pre><span></span><span class="nv">$wgRightsIcon</span> <span class="o">=</span> <span class="s2">"http://creativecommons.org/images/public/somerights30.png"</span><span class="p">;</span> </pre></div> <ul><li>For using <a href="https://en.wikipedia.org/wiki/Resource_Description_Framework" class="extiw" title="w:Resource Description Framework">RDF metadata</a> about copyright add one or both of the following lines to your <code>LocalSettings.php</code>:</li></ul> <div style="overflow:auto;" class="mw-highlight mw-highlight-lang-php mw-content-ltr" dir="ltr"><pre><span></span><span class="nv">$wgEnableCreativeCommonsRdf</span> <span class="o">=</span> <span class="k">true</span><span class="p">;</span> <span class="nv">$wgEnableDublinCoreRdf</span> <span class="o">=</span> <span class="k">true</span><span class="p">;</span> </pre></div> <p><br /> </p> <div class="mw-heading mw-heading3"><h3 id="Custom_namespaces">Custom namespaces</h3></div> <p>By declaring <b><a href="/wiki/Special:MyLanguage/Manual:$wgExtraNamespaces" title="Special:MyLanguage/Manual:$wgExtraNamespaces">$wgExtraNamespaces</a><span style="display:none"><a href="/wiki/Manual:$wgExtraNamespaces" title="Manual:$wgExtraNamespaces"> </a></span></b>, and modifying <b><a href="/wiki/Special:MyLanguage/Manual:$wgNamespacesWithSubpages" title="Special:MyLanguage/Manual:$wgNamespacesWithSubpages">$wgNamespacesWithSubpages</a><span style="display:none"><a href="/wiki/Manual:$wgNamespacesWithSubpages" title="Manual:$wgNamespacesWithSubpages"> </a></span></b>, and <b><a href="/wiki/Special:MyLanguage/Manual:$wgNamespacesToBeSearchedDefault" title="Special:MyLanguage/Manual:$wgNamespacesToBeSearchedDefault">$wgNamespacesToBeSearchedDefault</a><span style="display:none"><a href="/wiki/Manual:$wgNamespacesToBeSearchedDefault" title="Manual:$wgNamespacesToBeSearchedDefault"> </a></span></b>, extra namespaces can be added to a MediaWiki installation; and by declaring the <b><a href="/wiki/Special:MyLanguage/Manual:$wgNamespaceAliases" title="Special:MyLanguage/Manual:$wgNamespaceAliases">$wgNamespaceAliases</a><span style="display:none"><a href="/wiki/Manual:$wgNamespaceAliases" title="Manual:$wgNamespaceAliases"> </a></span></b> array namespace aliases can be added. <b>Take heed</b> not to have any pages already titled in that namespace, for instance if you had a page called "Technical:Support" and you created the Technical: namespace, then that page would not only be lost, but you cannot remove it from Special:Allpages. To fix this delete the namespace, move "Technical:Support" to "Support" in mainspace, delete the redirect, reinsert the namespace, and move it back to "Technical:Support". See <a href="/wiki/Special:MyLanguage/Manual:Using_custom_namespaces" title="Special:MyLanguage/Manual:Using custom namespaces">Custom namespaces</a><span style="display:none"><a href="/wiki/Manual:Using_custom_namespaces" title="Manual:Using custom namespaces"> </a></span> for more information as to how to do so. </p> <div class="mw-heading mw-heading3"><h3 id="Skins">Skins</h3></div> <p>The default skin of the site can be modified via <b><a href="/wiki/Special:MyLanguage/Manual:$wgDefaultSkin" title="Special:MyLanguage/Manual:$wgDefaultSkin">$wgDefaultSkin</a><span style="display:none"><a href="/wiki/Manual:$wgDefaultSkin" title="Manual:$wgDefaultSkin"> </a></span></b>. </p> <div class="mw-heading mw-heading2"><h2 id="See_also">See also</h2></div> <ul><li><span class="plainlinks"><a class="external text" href="https://doc.wikimedia.org/mediawiki-core/master/php/LocalSettingsGenerator_8php.html">LocalSettingsGenerator.php</a></span> source code, which generates the inital contents of <code>LocalSettings.php</code> during installation.</li> <li><a href="/wiki/Special:MyLanguage/Manual:Wiki_family" title="Special:MyLanguage/Manual:Wiki family">Wiki families</a> can share the same LocalSettings.php.</li> <li><a href="/wiki/Special:MyLanguage/Manual:Securing_database_passwords" title="Special:MyLanguage/Manual:Securing database passwords">Manual:Securing database passwords</a><span style="display:none"><a href="/wiki/Manual:Securing_database_passwords" title="Manual:Securing database passwords"> </a></span> - a guide to securing your database passwords and <code>LocalSettings.php</code> file.</li></ul> <!-- NewPP limit report Parsed by mw‐web.eqiad.main‐7c479b968‐fvd8t Cached time: 20241115165958 Cache expiry: 2592000 Reduced expiry: false Complications: [show‐toc] CPU time usage: 0.424 seconds Real time usage: 0.979 seconds Preprocessor visited node count: 4505/1000000 Post‐expand include size: 35265/2097152 bytes Template argument size: 16718/2097152 bytes Highest expansion depth: 16/100 Expensive parser function count: 41/500 Unstrip recursion depth: 0/20 Unstrip post‐expand size: 22910/5000000 bytes Lua time usage: 0.068/10.000 seconds Lua memory usage: 1322711/52428800 bytes Number of Wikibase entities loaded: 0/400 --> <!-- Transclusion expansion time report (%,ms,calls,template) 100.00% 622.213 1 -total 25.57% 159.131 56 Template:Ll 16.40% 102.057 59 Template:Pagelang 14.20% 88.337 112 Template:Translatable 8.19% 50.944 4 Template:Note 6.17% 38.409 1 Template:BOMWarning 5.34% 33.208 1 Template:MW_file 5.19% 32.301 1 Template:Warning 4.57% 28.439 1 Template:Dir 2.90% 18.064 11 Template:Phpi --> <!-- Saved in parser cache with key mediawikiwiki:pcache:idhash:11002-0!canonical and timestamp 20241115165958 and revision id 6732110. Rendering was triggered because: page-view --> </div><!--esi <esi:include src="/esitest-fa8a495983347898/content" /> --><noscript><img src="https://login.wikimedia.org/wiki/Special:CentralAutoLogin/start?type=1x1" alt="" width="1" height="1" style="border: none; position: absolute;"></noscript> <div class="printfooter" data-nosnippet="">Retrieved from "<a dir="ltr" href="https://www.mediawiki.org/w/index.php?title=Manual:LocalSettings.php&oldid=6732110">https://www.mediawiki.org/w/index.php?title=Manual:LocalSettings.php&oldid=6732110</a>"</div></div> <div id="catlinks" class="catlinks" data-mw="interface"><div id="mw-normal-catlinks" class="mw-normal-catlinks"><a href="/wiki/Special:Categories" title="Special:Categories">Categories</a>: <ul><li><a href="/wiki/Category:MediaWiki_code" title="Category:MediaWiki code">MediaWiki code</a></li><li><a href="/wiki/Category:MediaWiki_configuration" title="Category:MediaWiki configuration">MediaWiki configuration</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 31 August 2024, at 02:54.</li> <li id="footer-info-copyright">Text is available under the <a rel="nofollow" class="external text" href="https://creativecommons.org/licenses/by-sa/4.0/deed.en">Creative Commons Attribution-ShareAlike License</a>; additional terms may apply. Text in <a class="external text" href="https://www.mediawiki.org/wiki/Special:MyLanguage/Help:Contents">the Help: namespace</a> is available under the <a rel="nofollow" class="external text" href="https://creativecommons.org/publicdomain/zero/1.0/">Creative Commons CC0 License</a>. By using this site, you agree to the <a class="external text" href="https://foundation.wikimedia.org/wiki/Special:MyLanguage/Policy:Terms_of_Use">Terms of Use</a> and <a class="external text" href="https://foundation.wikimedia.org/wiki/Special:MyLanguage/Policy:Privacy_policy">Privacy Policy</a>.</li> </ul> <ul id="footer-places"> <li id="footer-places-privacy"><a href="https://foundation.wikimedia.org/wiki/Special:MyLanguage/Policy:Privacy_policy">Privacy policy</a></li> <li id="footer-places-about"><a href="/wiki/Project:About">About mediawiki.org</a></li> <li id="footer-places-disclaimers"><a href="/wiki/Project:General_disclaimer">Disclaimers</a></li> <li id="footer-places-wm-codeofconduct"><a href="https://www.mediawiki.org/wiki/Special:MyLanguage/Code_of_Conduct">Code of Conduct</a></li> <li id="footer-places-developers"><a href="https://developer.wikimedia.org">Developers</a></li> <li id="footer-places-statslink"><a href="https://stats.wikimedia.org/#/www.mediawiki.org">Statistics</a></li> <li id="footer-places-cookiestatement"><a href="https://foundation.wikimedia.org/wiki/Special:MyLanguage/Policy:Cookie_statement">Cookie statement</a></li> <li id="footer-places-mobileview"><a href="//m.mediawiki.org/w/index.php?title=Manual:LocalSettings.php&mobileaction=toggle_view_mobile" class="noprint stopMobileRedirectToggle">Mobile view</a></li> </ul> <ul id="footer-icons" class="noprint"> <li id="footer-copyrightico"><a href="https://wikimediafoundation.org/" class="cdx-button cdx-button--fake-button cdx-button--size-large cdx-button--fake-button--enabled"><img src="/static/images/footer/wikimedia-button.svg" width="84" height="29" alt="Wikimedia Foundation" loading="lazy"></a></li> <li id="footer-poweredbyico"><a href="https://www.mediawiki.org/" class="cdx-button cdx-button--fake-button cdx-button--size-large cdx-button--fake-button--enabled"><img src="/w/resources/assets/poweredby_mediawiki.svg" alt="Powered by MediaWiki" width="88" height="31" loading="lazy"></a></li> </ul> </footer> </div> </div> </div> <div class="vector-settings" id="p-dock-bottom"> <ul></ul> </div><script>(RLQ=window.RLQ||[]).push(function(){mw.config.set({"wgHostname":"mw-web.codfw.canary-84779d6bf6-nb2j4","wgBackendResponseTime":105,"wgPageParseReport":{"limitreport":{"cputime":"0.424","walltime":"0.979","ppvisitednodes":{"value":4505,"limit":1000000},"postexpandincludesize":{"value":35265,"limit":2097152},"templateargumentsize":{"value":16718,"limit":2097152},"expansiondepth":{"value":16,"limit":100},"expensivefunctioncount":{"value":41,"limit":500},"unstrip-depth":{"value":0,"limit":20},"unstrip-size":{"value":22910,"limit":5000000},"entityaccesscount":{"value":0,"limit":400},"timingprofile":["100.00% 622.213 1 -total"," 25.57% 159.131 56 Template:Ll"," 16.40% 102.057 59 Template:Pagelang"," 14.20% 88.337 112 Template:Translatable"," 8.19% 50.944 4 Template:Note"," 6.17% 38.409 1 Template:BOMWarning"," 5.34% 33.208 1 Template:MW_file"," 5.19% 32.301 1 Template:Warning"," 4.57% 28.439 1 Template:Dir"," 2.90% 18.064 11 Template:Phpi"]},"scribunto":{"limitreport-timeusage":{"value":"0.068","limit":"10.000"},"limitreport-memusage":{"value":1322711,"limit":52428800}},"cachereport":{"origin":"mw-web.eqiad.main-7c479b968-fvd8t","timestamp":"20241115165958","ttl":2592000,"transientcontent":false}}});});</script> </body> </html>