[MediaWiki-l] What is <admin> in install.php

Jeffrey Walton noloader at gmail.com
Thu Dec 20 19:52:41 UTC 2018


I'm having trouble with a fresh install using the 1.31 tarball. We are
using MySQL, and I created the database and user per the instructions
at https://www.mediawiki.org/wiki/Manual:Installing_MediaWiki:

CREATE DATABASE wikidb;
CREATE USER 'wikiuser'@'localhost' IDENTIFIED BY 'XXXXX';
GRANT ALL PRIVILEGES ON wikidb.* TO 'wikiuser'@'localhost' WITH GRANT OPTION;

The next step is to run "php maintenance/install.php" but no
directions are provided. Running with information from "install.php
--help" is failing:

# php maintenance/install.php --dbname:wikidb --dbuser:wikiuser
--dbpass:XXXX root
Argument <admin> required!

What is the argument <admin>?

Thanks in advance

----------

# php maintenance/install.php --help

CLI-based MediaWiki installation and configuration.
Default options are indicated in parentheses.

Usage: php install.php [--conf|--confpath|--dbname|--dbpass|--dbpassfile|--dbpat
h|--dbport|--dbprefix|--dbschema|--dbserver|--dbtype|--dbuser|--env-checks|--glo
bals|--help|--installdbpass|--installdbuser|--lang|--memory-limit|--mwdebug|--pa
ss|--passfile|--profiler|--quiet|--scriptpath|--server|--wiki|--with-extensions]
 [name]

Generic maintenance parameters:
    --help (-h): Display this help message
    --quiet (-q): Whether to supress non-error output
    --conf: Location of LocalSettings.php, if not default
    --wiki: For specifying the wiki ID
    --globals: Output globals at the end of processing for debugging
    --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.
        http://en.wikipedia.org. This is sometimes necessary because server name
        detection may fail in command line scripts.
    --profiler: Profiler output format (usually "text")
    --mwdebug: Enable built-in MediaWiki development settings

Script dependant parameters:
    --dbuser: The DB user to use for this script
    --dbpass: The password to use for this script

Script specific parameters:
    --confpath: Path to write LocalSettings.php to (/var/www/html/wiki)
    --dbname: The database name (my_wiki)
    --dbpassfile: An alternative way to provide dbpass option, as the
        contents of this file
    --dbpath: The path for the SQLite DB ($IP/data)
    --dbport: The database port; only for PostgreSQL (5432)
    --dbprefix: Optional database table name prefix
    --dbschema: The schema for the MediaWiki DB in PostgreSQL/Microsoft
        SQL Server (mediawiki)
    --dbserver: The database host (localhost)
    --dbtype: The type of database (mysql)
    --env-checks: Run environment checks only, don't change anything
    --installdbpass: The password for the DB user to install as.
    --installdbuser: The user to use for installing (root)
    --lang: The language to use (en)
    --pass: The password for the wiki administrator.
    --passfile: An alternative way to provide pass option, as the
        contents of this file
    --scriptpath: The relative path of the wiki in the web server
        (/wiki)
    --with-extensions: Detect and include extensions

Arguments:
    [name]: The name of the wiki (MediaWiki)
    <admin>: The username of the wiki administrator.



More information about the MediaWiki-l mailing list