GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing www.mediawiki.org — Local development quickstart - MediaWiki This page is a quickstart guide to setting up a local development for MediaWiki using PHP and Composer. This workflow is only suitable for local development. To serve a public website, see Manual:Installation requirements .
Install prerequisitesMediaWiki's master branch requires PHP 8.3.0+ and Composer 2. LinuxOn Ubuntu 24+ or Debian 13+, install the required packages using APT. sudo apt install php php-intl php-mbstring php-xml php-apcu php-curl php-sqlite3 composer On Fedora 40+, install the required packages using DNF. sudo dnf install php composer On Arch Linux, install the required packages using pacman. sudo pacman -S php composer MacInstall the required packages using Homebrew and make it the active version of PHP, by linking it. brew install [email protected] composer brew link --overwrite [email protected] If the following command succeeds, it should show the PHP version. If it fails, likely your $PATH is not configured to find commands from brew. php -v
WindowsYou have the option to use the Windows Subsystem for Linux and follow the Linux instructions on this page. Or, to install MediaWiki directly on Windows, install the required packages using Chocolatey. choco install -y php composer To load the required PHP extensions, edit your php.ini file, and uncomment the following lines.
To find the location of php.ini, run extension=fileinfo extension=intl extension=pdo_sqlite extension=zip extension=sodium Clone MediaWikiUse Git to clone the MediaWiki core repository and the default skin. git clone https://gerrit.wikimedia.org/r/mediawiki/core.git mediawiki git clone https://gerrit.wikimedia.org/r/mediawiki/skins/Vector.git mediawiki/skins/Vector cd mediawiki Cloning MediaWiki takes a few minutes. While you're waiting, if you plan to create and share patches, create a Wikimedia developer account if you don't already have one. Install dependenciesFrom within your composer update
Install MediaWikiInstall MediaWiki with PHP's built-in SQLite database. composer mw-install:sqlite
Start serverStart PHP's built-in webserver, and open localhost:4000 in a browser to see your MediaWiki instance.
To log in as an administrator , use username composer serve
Next steps
|
| You are visitor 01402503 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |