Projet

Général

Profil

Actions

Souhaits #1821

ouvert

Unattended install

Ajouté par Chris Christiansen il y a 7 mois. Mis à jour il y a 6 mois.

Statut:
Nouveau
Priorité:
Normal
Assigné à:
-
Catégorie:
-
Version cible:
-
Début:
27/04/2024
Echéance:
% réalisé:

0%

Temps estimé:

Description

Wish / goal:
Make unattended install possible, by providing database info in a file, before starting the installer

Problem description:
If you place 'config.inc.php' in the '/var/www/galette/config', before accessing galette, there are 2 problems and a suggestion for improvement:
  1. 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
  2. The data in 'config.inc.php' is ignored
    No workaround, except typing the data again
  3. 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.
Problem solution suggestions for point 1 and 2:
  1. 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'
  2. 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.
Problem solutions suggestions for point 3:
  1. First page of installer has a checkbox: Install automatically. If checked, there will only be prompts / stops if data is missing.
  2. 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

galetteneedsupdate.jpg (14,8 ko) galetteneedsupdate.jpg Chris Christiansen, 09/05/2024 01:27
galettedb.jpg (75,3 ko) galettedb.jpg Chris Christiansen, 09/05/2024 01:34

Demandes liées 1 (0 ouverte1 fermée)

Dupliqué par Galette - Souhaits #1843: Galette 1.1.1: Missing redirect to installerRejeté15/06/2024

Actions
Actions

Formats disponibles : Atom PDF