Manual:Install.php

Details
install.php file is a CLI-based maintenance script for installing and configuring MediaWiki.

This script creates a new LocalSettings.php. It will abort if a file exists already, and it can't read existing settings from that file.

Usage
Default options are indicated in parentheses: php install.php [--conf|--confpath|--dbgroupdefault|--dbname|--dbpass|--dbpassfile|--dbpath|--dbport|--dbprefix|--dbschema|--dbserver|--dbtype|--dbuser|--env-checks|--globals|--help|--installdbpass|--installdbuser|--lang|--memory-limit|--pass|--passfile|--profiler|--quiet|--scriptpath|--server|--skins|--wiki|--with-extensions] [name] &lt;admin>

Examples
Set up wiki using a user with required permissions in database to create a new database for the wiki and a user to operate the wiki: