INSTALL 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. ---
  2. Installing MediaWiki
  3. ---
  4. Starting with MediaWiki 1.2.0, it's possible to install and configure the wiki
  5. "in-place", as long as you have the necessary prerequisites available.
  6. Required software:
  7. * Web server with PHP 5.x or higher.
  8. * A MySQL server, 4.0.14 or higher OR a Postgres server, 8.1 or higher
  9. MediaWiki is developed and tested mainly on Unix/Linux platforms, but should
  10. work on Windows as well.
  11. If your PHP is configured as a CGI plug-in rather than an Apache module you may
  12. experience problems, as this configuration is not well tested. safe_mode is also
  13. not tested and unlikely to work.
  14. If you want math support see the instructions in math/README
  15. Don't forget to check the RELEASE-NOTES file...
  16. Additional documentation is available online, which may include more detailed
  17. notes on particular operating systems and workarounds for difficult hosting
  18. environments:
  19. http://www.mediawiki.org/wiki/Manual:Installation_guide
  20. ******************* WARNING *******************
  21. REMEMBER: ALWAYS BACK UP YOUR DATABASE BEFORE
  22. ATTEMPTING TO INSTALL OR UPGRADE!!!
  23. ******************* WARNING *******************
  24. ----
  25. In-place web install
  26. ----
  27. Decompress the MediaWiki installation archive either on your server, or on your
  28. local machine and upload the directory tree. Rename it from "mediawiki-1.x.x" to
  29. something nice, like "wiki", since it'll be in your URL.
  30. +--------------------------------------------------------------------------+
  31. | Hint: If you plan to use a fancy URL-rewriting scheme to prettify your |
  32. | URLs, you should put the files in a *different* directory from the |
  33. | virtual path where page names will appear. |
  34. | |
  35. | See: http://www.mediawiki.org/wiki/Manual:Short_URL |
  36. +--------------------------------------------------------------------------+
  37. To run the install script, you'll need to temporarily make the 'config'
  38. subdirectory writable by the web server. The simplest way to do this on a
  39. Unix/Linux system is to make it world-writable:
  40. chmod a+w config
  41. Hop into your browser and surf into the wiki directory. It'll direct you into
  42. the config script. Fill out the form... remember you're probably not on an
  43. encrypted connection.
  44. Gaaah! :)
  45. If all goes well, you should soon be told that it's set up your wiki database
  46. and written a configuration file. There should now be a 'LocalSettings.php' in
  47. the config directory; move it back up to the main wiki directory, and the wiki
  48. should now be working.
  49. +-------------------------------------------------------------------------+
  50. | Security hint: if you have limited access on your server and cannot |
  51. | change ownership of files, you might want to *copy* instead of *move* |
  52. | LocalSettings.php. |
  53. | |
  54. | This will make the file owned by your user account instead of by |
  55. | the web server, which is safer in case another user's account is |
  56. | compromised. |
  57. +-------------------------------------------------------------------------+
  58. Once the wiki is set up, you should remove the config directory, or at least
  59. make it not world-writable (though it will refuse to config again if the wiki
  60. is set up).
  61. ----
  62. Don't forget that this is free software under development! Chances are good
  63. there's a crucial step that hasn't made it into the documentation. You should
  64. probably sign up for the MediaWiki developers' mailing list; you can ask for
  65. help (please provide enough information to work with, and preferably be aware of
  66. what you're doing!) and keep track of major changes to the software, including
  67. performance improvements and security patches.
  68. http://lists.wikimedia.org/mailman/listinfo/mediawiki-announce (low traffic)
  69. http://lists.wikimedia.org/mailman/listinfo/mediawiki-l (site admin support)
  70. http://lists.wikimedia.org/mailman/listinfo/wikitech-l (development)