Page MenuHomePhabricator

Implement installing MediaWiki from an existing LocalSettings.php
Closed, DuplicatePublicFeature

Description

Feature summary (what you would like to be able to do and where):

Currently it is not possible to to install MediaWiki with an existing LocalSettings.php file. If you include a LocalSettings.php with your current MediaWiki installation and open MediaWiki the first time with an empty database, you will run into database errors. If you try to run install.php, you will run into A LocalSettings.php file has been detected. To upgrade this installation, please run update.php instead. Trying update.php fails as well.

Use case(s) (list the steps that you performed to discover that problem, and describe the actual underlying problem which you want to solve. Do not describe only a solution):

A containerized/exportable version of MediaWiki that can utilize an existing LocalSettings.php and does not have to go through the install process every time when recreated.

Benefits (why should this be implemented?):

Ease of testing and reproducing production MediaWikis.

Past conversations
https://www.mediawiki.org/wiki/Topic:Ut4s8i4nbghrc1sl
Change of installer code someone made that should be implemented: https://www.mediawiki.org/wiki/Topic:Vn3phnl79hyleo6s

Event Timeline

Lectrician1 renamed this task from way to install the database if LocalSettings.php is already created to Implement installing MediaWiki from an existing LocalSettings.php.Aug 11 2023, 9:57 PM
Lectrician1 updated the task description. (Show Details)

Note sure if the comments here: https://www.mediawiki.org/wiki/Topic:Vn3phnl79hyleo6s are helpful but figured I would mention it. Being able to script this database setup would be great.