mw dev mediawiki install
Releasev0.35.0 · cfeceb67
Watch it in action
mw dev mediawiki install [flags]Installs a new MediaWiki site using MediaWiki maintenance scripts:
The sequence of actions is as follows:
- Ensure we know where MediaWiki is installed
- Ensure a
LocalSettings.phpfile exists with the shim needed by this development environment - Ensure composer dependencies are up to date, or run
composer install&composer update - Move
LocalSettings.phpto a temporary location, as MediaWiki can’t install with it present - Wait for any needed databases to be ready
- Run
install.php - Move
LocalSettings.phpback - Run
update.php
Manual installation
Section titled “Manual installation”You can also run install.php and update.php manually, if you wish.
Documentation
Section titled “Documentation”Options
Section titled “Options”Global options
Section titled “Global options”Examples
Section titled “Examples”mw dev mediawiki install --dbtype=mysql # Install a MediaWiki site in a database called 'default' backed by MySQLmw dev mediawiki install --dbname=enwiki --dbtype=mysql # Install a MediaWiki site in a database called 'enwiki' backed by MySQLmw dev mediawiki install --dbname=thirdwiki --dbtype=postgres # Install a MediaWiki site in a database called 'thirdwiki' backed by PostgresSee also
Section titled “See also”Page views: —Sessions: —