mw docker mediawiki install
editInstalls a new MediaWiki site using install.php & update.php
Synopsis
edit
MediaWiki Install
editInstalls 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
editYou can also run install.php
and update.php
manually, if you wish.
Documentation
editmw docker mediawiki install [flags]
Examples
editinstall --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
edit--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
edit-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
edit- mw docker mediawiki - MediaWiki service