Manual:installPreConfigured.php

Details

edit

installPreConfigured.php is a CLI install script introduced in MediaWiki 1.44. Instead of generating a LocalSettings.php file, like the web installer and install.php, installPreConfigured.php gets the database name and other configuration details from an existing LocalSettings.php.

The LocalSettings.php you use might be one generated by the traditional installer and modified to use a different database name. This could be useful to install another wiki in a wiki farm.

Usage

edit
php run.php installPreConfigured [OPTION]...

Generic maintenance options

edit
--help (-h) Display a help message
--quiet (-q) Whether to suppress non-error output
--conf Location of LocalSettings.php, if not at the default location.
--wiki For specifying the wiki ID. This can be accessed as the MW_WIKI_NAME constant in LocalSettings.php.
--memory-limit Set a specific memory limit for the script, "max" for no limit or "default" to avoid changing it
--server The protocol and server name to use in URLs, e.g. https://en.wikipedia.org. Typically LocalSettings.php should set $wgServer based on MW_WIKI_NAME, so this should not be needed.
--profiler Profiler output format (usually "text")

Script specific options

edit
-c <name>=<value> Set a configuration variable, overriding the value present in LocalSettings.php. The value is in YAML format. It is not necessary to include the "wg" prefix. This may be specified multiple times.
-o <name>=<value> Set an installer option. The value is in YAML format. This may be specified multiple times. This is a generic mechanism for communicating with installer stages. Setting Shared=true will cause tables which may be shared between multiple wikis to be installed.
--show-tasks Show the list of tasks to be executed, do not actually install.
--skip <task> When installing, skip the task with the specified name. This can be specified multiple times. The task names can be discovered with --show-tasks.
--task <task> Execute only the task with the specified name. The task names can be discovered with --show-tasks.