⚓ T48076 Make CLI installer interactive


Article Images

Make CLI installer interactive

Closed, ResolvedPublicFeature

Currently install.php requires passing a number of arguments to the script. It would be nice if the installer was interactive. A good reference example of interactive setup is composer init

image.png (502×1 px, 125 KB)

Some choices to start with:

  • Prompt for which database engine to use
    • if using MySQL, check that connection credentials work
  • Test that provided URL for the wiki works. Offer suggested Apache configuration if Apache is running.
  • If LocalSettings.php exists, prompt for deleting and starting over
  • If LocalSettings.php exists, prompt for adding a new wiki (wiki farm)

Suggest using Symfony Console as something that MW core already ships with, with good support for interactivity.

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 22 2014, 1:14 AM

bzimport added a subscriber: Unknown Object (MLST).

It should maybe be made more interactive, rather than just a load of command line arguments..

That's what I've been saying since the beginning. Make some generic way to specify arguments (similar to maven's -Dfoo=bar) so we don't have to keep adding arguments, and then prompt for any others.

(In reply to comment #1)

It should maybe be made more interactive, rather than just a load of command
line arguments..

It would be preferable, though, if there were still a way to fully install the wiki without it being interactive (in cases where the wiki will be automatically installed).

Which is why I suggest a hybrid of both...doing it my way means it stays up to date with the core installer and new silly cli-specific things don't need adding :)

Aklapper changed the subtype of this task from "Task" to "Feature Request".Feb 4 2022, 12:24 PM

Content licensed under Creative Commons Attribution-ShareAlike (CC BY-SA) 4.0 unless otherwise noted; code licensed under GNU General Public License (GPL) 2.0 or later and other open source licenses. By using this site, you agree to the Terms of Use, Privacy Policy, and Code of Conduct. · Wikimedia Foundation · Privacy Policy · Code of Conduct · Terms of Use · Disclaimer · CC-BY-SA · GPL · Credits