Manual:Install.php

Details
install.php file is a CLI-based maint-scripts>Special:MyLanguage/Manual:Maintenance scripts|maintenance script for the MediaWiki mwinstall>Special:MyLanguage/Manual:Installing MediaWiki|installation and configuration.

This script creates a new LocalSettings.php. It will abort if a LocalSettings.php 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: