< Cli < ref

mw docker mediawiki install

Installs a new MediaWiki site using install.php & update.php

Synopsis

MediaWiki Install

Installs a new MediaWiki site using MediaWiki maintenance scripts: - install.php - update.php

The sequence of actions is as follows: 1) Ensure we know where MediaWiki is installed 2) Ensure a LocalSettings.php file exists with the shim needed by this development environment 3) Ensure composer dependencies are up to date, or run composer install & composer update 4) Move LocalSettings.php to a temporary location, as MediaWiki can’t install with it present 5) Wait for any needed databases to be ready 6) Run install.php 7) Move LocalSettings.php back 8) Run update.php

Manual installation

You can also run install.php and update.php manually, if you wish.

Documentation

mw docker mediawiki install [flags]

Examples

install --dbtype=mysql                         # Install a MediaWiki site in a database called 'default' backed by MySQL
install --dbname=enwiki --dbtype=mysql         # Install a MediaWiki site in a database called 'enwiki' backed by MySQL
install --dbname=thirdwiki --dbtype=postgres   # Install a MediaWiki site in a database called 'thirdwiki' backed by Postgres

Options

      --dbname string   Name of the database to install (must be accepted by MediaWiki, stick to letters and numbers) (default "default")
      --dbtype string   Type of database to install (mysql, postgres, sqlite)

Options inherited from parent commands

  -c, --context string   The context to use (default "default")
      --help             Help for this command
      --no-interaction   Do not ask any interactive questions
  -v, --verbose count    Increase output verbosity. Example: --verbose=2 or -vv

SEE ALSO

This article is issued from Mediawiki. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.