Actions
Souhaits #1821
ouvertUnattended install
Statut:
Nouveau
Priorité:
Normal
Assigné à:
-
Catégorie:
-
Version cible:
-
Début:
27/04/2024
Echéance:
% réalisé:
0%
Temps estimé:
Vote:
Description
Wish / goal:
Make unattended install possible, by providing database info in a file, before starting the installer
If you place 'config.inc.php' in the '/var/www/galette/config', before accessing galette, there are 2 problems and a suggestion for improvement:
- http://host:port (e.g. http://localhost:80) does not redirect to http://host:port/installer.php
Workaround: You can access http://host:port/installer.php yourself - The data in 'config.inc.php' is ignored
No workaround, except typing the data again - There is a lot of clicking, walking you through compatibility screens and various checks, but they require no input. Only the database connection input is required.
If the point above is solved, it would be nice to be able to skip the screens with checks and the database connection input completely and just have galette do it all automatically or with a single click.
- Create an 'init.config.inc.php' that the installer can use to solve problem 1 and 2 above. If it exists, installer can assume new installation. It can also be used to automatically populate the database connection info.
Problem with this solution: May cause user confusion about where the "truth" is 'init.config.inc.php' or 'confic.inc.php' - Change the index page, to use something else than the existence of 'config.inc.php' to determine if there should be a redirect to intaller.php.
It could be in pseudocode:if ((config.inc.php does not exist) OR (connection-info does not allow connection to database) OR (important database tables are missing)
redirect to installer.php
Problem with this solution: A lot harder to make, I assume.
- First page of installer has a checkbox: Install automatically. If checked, there will only be prompts / stops if data is missing.
- Allow placement of a file or option in config.inc.php "unattended install = true" which will cause the installer not to prompt on anything (except if database info is missing).
Fichiers
Actions