I'm installing Mediawiki 1.31 on CentOS 7. I'm following the instructions at Manual:Installing_MediaWiki. I'm having a trouble running install.php.

An earlier step had me create the MySQL database using:

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

Next, I am suppose to run php maintenance/install.php. However, they omit instructions on how to do so. The script is failing with:

# php maintenance/install.php
Argument <admin> required!

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

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

My question is, who is <admin>? Is it root on this machine? Is it wikiuser from the previous step? Or do I need to create another user and give it root privileges for the database? Or something else?


It is the MediaWiki username you want to give your first user. It's a largely arbitrary up-to-255-byte string (there are a few banned characters like @#<>|).

You know there is a much more user-friendly web installer, right?

| improve this answer | |
  • Thanks Tgr. I don't know about the user friendly web installer. The wiki still does not work: https://www.cryptopp.com/wiki/. Nothing but a blank page even though logging and exceptions are enabled. Apache logs showing 500 server error. – user40589 Dec 21 '18 at 18:10
  • You should just uncompress the tarball into a web-accessible directory, open that directory in a web browser, and the web installer will take you from there. – Tgr Dec 21 '18 at 18:15

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy