Jump to content
 







Main menu
   


Navigation  



Main page
Get MediaWiki
Get extensions
Tech blog
Contribute
 




Support  



User help
FAQ
Technical manual
Support desk
Communication
 




Development  



Developer portal
Code statistics
 




mediawiki.org  



Community portal
Recent changes
Translate content
Random page
Village pump
Sandbox
 




In other languages  




Add links
 







Search  









English
 


















Create account

Log in
 









Create account
 Log in
 




Pages for logged out editors learn more  



Contributions
Talk
 



















Contents

   



Beginning
 


1 Running the MediaWiki configuration script in the web browser  





2 Command-line alternative  














Manual:Config script










Manual
Discussion
 

















Read
View source
View history
 








Tools
   


Actions  



Read
View source
View history
 




General  



What links here
Related changes
Upload file
Special pages
Permanent link
Page information
Cite this page
Get shortened URL
Download QR code
Wikidata item
 




Print/export  



Create a book
Download as PDF
Printable version
 
















From mediawiki.org
 


  • Bahasa Melayu
  • Deutsch
  • Deutsch (Sie-Form)
  • English
  • Nederlands
  • Tiếng Việt
  • Yorùbá
  • dansk
  • español
  • français
  • italiano
  • magyar
  • polski
  • português
  • português do Brasil
  • čeština
  • русский
  • עברית
  • العربية
  • বাংলা
  • 中文
  • 日本語
  • 한국어
  • Download
  • Extract
  • Upload
  • Set up database
  • Install
  • Configure

  • Common issues
  • Get help and support

  • After downloading and extracting MediaWiki on your web server, complete the basic setup by running the configuration script. This script allows you to tell MediaWiki the information it needs in order to get the wiki up and running. The following steps describe how to complete basic setup:

    Running the MediaWiki configuration script in the web browser

    MediaWiki 1.38 web installer

    In the following examples, it is assumed that your website is located at http://www.example.com/. The physical location on your server depends on your web server software configuration. Adjust the examples as needed.

    1. Open a web browser and browse to the website address or path that you configured for MediaWiki in the web server software.
    2. You will see the version of MediaWiki which you extracted and a link to "Please set up the wiki first." Click on the link to begin the configuration script.
      For reference (in case you want to go there directly), this is located in MediaWiki's mw-config directory (so using the example above you would go to http://www.example.com/mw-config/, or on a local machine http://localhost/mw-config/).
    3. After selecting the language, the configuration script performs some environmental checks.
    4. Follow the instructions on the pages to connect to the database, create the MediaWiki administrator account, and to set further settings such as the logo or skin.
      Since LocalSettings.php stores the database user's password in plain text, it is strongly suggested that you create a wiki specific database account (i.e. not root).
    5. The script will populate the database and write a configuration file.
    6. After the configuration script has finished, download the generated configuration file LocalSettings.php and place the file in the base directory of your MediaWiki installation.

    LocalSettings.php contains all the information needed by MediaWiki to run.

    Set stringent file permissions which system users can read and write the LocalSettings.php file.
    For example, set chmod 600 and chown <webserver owner> (Owner read and write, no other permissions).

    Your wiki should now be ready to use. Browse to the address that you installed MediaWiki to.

    Continue with more advanced configuration on Manual:System administration .

    Command-line alternative

    Alternatively, you can run the command-line installer instead of the configuration script in the web browser: php maintenance/install.php


    Retrieved from "https://www.mediawiki.org/w/index.php?title=Manual:Config_script&oldid=6337294"

    Category: 
    Installation
     



    This page was last edited on 28 January 2024, at 01:41.

    Text is available under the Creative Commons Attribution-ShareAlike License; additional terms may apply. See Terms of Use for details.



    Privacy policy

    About mediawiki.org

    Disclaimers

    Code of Conduct

    Developers

    Statistics

    Cookie statement

    Mobile view



    Wikimedia Foundation
    Powered by MediaWiki