Page MenuHomePhabricator

Clarify MediaWiki Docker installation instructions regarding re-installation and access after installation
Open, Needs TriagePublic

Description

I followed all the instructions at https://gerrit.wikimedia.org/r/plugins/gitiles/mediawiki/core/+/master/DEVELOPERS.md up to "run maintenance/update.php". At that point I got the following error:

Wikimedia\Rdbms\DBConnectionError from line 1418 of /Users/kaldari/Sites/mediawiki/includes/libs/rdbms/loadbalancer/LoadBalancer.php: Cannot access the database: Unknown error (localhost)

I have SQLite on my system (version 3.19.3). I did notice however that $wgDBserver, $wgDBuser, and $wgDBpassword are all set to empty string in my LocalSettings.php. Am I supposed to set that up manually? If so, it isn't mentioned in the instructions.

Event Timeline

kaldari updated the task description. (Show Details)

@kostajh - Pinging you only because you wrote the instructions :) Do you have any suggestions?

brennen subscribed.

This was on a first run-through, or a re-install? (Mainly asking because the "run maintenance/update.php" bit is in the reinstall section, which maybe we should elaborate on.)

@brennen - I guess I was confused because the "Re-install" section was inside the "Quickstart" instructions. Are those instructions not supposed to be part of the Quickstart? Also, it seems like the Quickstart instructions end prematurely. After you've installed it, how do you actually access your MediaWiki instance from a browser?

brennen moved this task from Radar to Next on the User-brennen board.

I guess I was confused because the "Re-install" section was inside the "Quickstart" instructions. Are those instructions not supposed to be part of the Quickstart?

Ah, yeah, those are intended for getting a fresh install once things are already set up, but that could be made more obvious.

After you've installed it, how do you actually access your MediaWiki instance from a browser?

...as could that. It should be at http://localhost:8080/, but I'll make that explicit in the document.

I re-did the installation, this time ignoring the instructions in the "re-install" section (ironically), and everything seems to have worked fine.

kaldari renamed this task from MediaWiki Docker installation instructions not working - cannot access the database to Clarify MediaWiki Docker installation instructions regarding re-installation and access after installation.Mar 24 2020, 12:05 AM

@brennen - While you're in there, I would suggest moving the "Use Vector skin" section into the Quickstart, as you have to set up at least one skin to use MediaWiki.