Manual:Installation requirements

From mediawiki.org
Revision as of 05:03, 25 January 2010 by Tim Starling (talk | contribs) (fix misinformation about PHP 5.2.11)

In addition to the software itself, a standard MediaWiki installation has the following requirements:

  • PHP is required to run the software.
  • A database server is required to store the pages and site data.
  • A web server is required to send the generated pages to your web browser.

In addition, there are various optional dependencies which are required if you want to use certain advanced features (see below).

Prerequisites can be installed individually or through the Xampp installer. Remember to read the documentation for each individual component before installation. If your website is hosted (i.e. you don't have direct control over it) then contact the server administrators or hosting company to ensure these are installed.

Note that although MediaWiki ships with an installation script which provides web-based configuration of the most important elements, some knowledge of PHP is required for more detailed customizations.

PHP

PHP is the programming language in which MediaWiki is written, and is required in order to run the software.

If you need to compile PHP from source, then see PHP configuration for compilation options that affect MediaWiki.

Notes:
  • Some servers may also require the equivalent database module and session management module be installed. See individual operating system instructions for more information.
  • When installing on Windows using the Microsoft installer, add the extension for your database of choice (MySQL or Postgres) to the features to be installed.

Database server

MediaWiki stores all the text and data (articles, user details, system messages, etc.) in a database, which it is capable of sharing with other web-based applications (phpBB, etc.). You will need one of the following database servers to run the latest version of MediaWiki:

Some users find it helpful to install an additional software package such as phpMyAdmin (MySQL) or phpPgAdmin (Postgres) to help administer the database server.

*Note: MySQL 4 support has been required since MediaWiki 1.6 - if you are using an older version of MySQL and cannot upgrade then you should use MediaWiki 1.5.8. Note that this version is no longer supported.

Web server

In order to serve the generated pages to your browser, MediaWiki requires some web server software. Often you will not have a choice of which software to use - it will be the one provided by your hosting provider.

Hardware requirements

The recommended minimum requirements are 256MB of RAM for a single-computer website and 40MB of storage, although this will not suffice for a busy public site or a site with uploading enabled. Some users have reported running MediaWiki on computers with as little as 48MB of RAM.

Optional dependencies

  • ImageMagick or GD is required for image thumbnailing.
  • TeX is required for the in-line display of mathematical formulae.
  • Sendmail is required in order for the system to be able to send e-mails.
  • Shell access is required to run maintenance scripts; upgrading may be more difficult without it.

For further information about the above items, see Manual:Installing third-party tools.


See also