Skip to content

Easy Installation Script #5

@banjosteve

Description

@banjosteve

In env.php, add a new parameter called is_installed, which is defaulted to 0.

In bootstrap.php, after the require of env.php, add a check for is_installed. If false, display the easy install page and stop processing bootstrap.php

==========
Easy Install Page (www/setup/install.php) - collect the following information

  1. Base Config: mode, base url, config name
  2. Error Handling
  3. MySQL connection
  4. Caching (file vs redis connection)
  5. Admin Username / Password - AvidBase Connection

Go through each step with this UI: https://adminlte.io/themes/v3/pages/examples/recover-password.html

Upon submission, test the MySQL connection, ability to write to the selected cache, test the AvidBase connection, then write the basic conf file to disk, then redirect to the Config Selection Page.

==========
Config Selection Page (www/setup/config_setup.php)
In a dropdown, show the folder names from conf and allow the selection of one.

Upon submission, write conf.php, then delete the setup directory, then redirect to the admin login page.

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions