Project

General

Profile

Actions

Bug #105121

open

Take `additional.php` into account for `setup` command

Added by Stefan Bürk about 2 months ago. Updated about 1 month ago.

Status:
Under Review
Priority:
Should have
Assignee:
Category:
-
Target version:
-
Start date:
2024-09-25
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
12
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

The web based TYPO3 installer uses a already existing `additional.php`
configuration instead of asking for database connection configuration.
That is used to provide quick installation for automatic customer
instance deployments and the local development environment tool `ddev`
is also able to provide and manage this file. At least when [1] gets
merged also writing the correct file for TYPO3 v12+ projects in legacy
mode.

TYPO3 v12 introduced the `setup` command to setup a new installation,
but forces to provide database credentials along the way and ignores
an existing `additional.php` configuration setup.

[1] https://github.com/ddev/ddev/pull/6525

Can be tested with TYPO3 mono repository:

ddev config \
      --project-name 't3c-v13-mono' \
      --project-type 'typo3' \
      --docroot './' \
      --database 'mariadb:10.11' \
      --php-version '8.2' \
      --webserver-type 'apache-fpm' \
      --web-environment='TYPO3_CONTEXT=Development' \
  && ddev start \
  && ddev composer install \
  && ddev exec touch FIRST_INSTALL \
  && if [[ ! -f "typo3conf/system/additional.php" ]]; then mkdir -p "typo3conf/system" ; \cp -Rvf "typo3conf/AdditionalConfiguration.php" "typo3conf/system/additional.php"; fi \
  && ddev launch /typo3/install.php

versus

ddev config \
      --project-name 't3c-v13-mono' \
      --project-type 'typo3' \
      --docroot './' \
      --database 'mariadb:10.11' \
      --php-version '8.2' \
      --webserver-type 'apache-fpm' \
      --web-environment='TYPO3_CONTEXT=Development' \
  && ddev start \
  && ddev composer install \
  && ddev exec touch FIRST_INSTALL \
  && if [[ ! -f "typo3conf/system/additional.php" ]]; then mkdir -p "typo3conf/system" ; \cp -Rvf "typo3conf/AdditionalConfiguration.php" "typo3conf/system/additional.php"; fi \
  && ddev typo3 setup \
        --admin-username=john-doe \
        --admin-user-password='John-Doe-1701D.' \
        --admin-email="john.doe@example.com" \
        --project-name='new-page' \
        --no-interaction \
        --server-type=apache \
        --force
Actions #1

Updated by Gerrit Code Review about 2 months ago

  • Status changed from New to Under Review

Patch set 1 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/86337

Actions #2

Updated by Gerrit Code Review about 2 months ago

Patch set 2 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/86337

Actions #3

Updated by Gerrit Code Review about 2 months ago

Patch set 3 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/86337

Actions #4

Updated by Gerrit Code Review about 2 months ago

Patch set 4 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/86337

Actions #5

Updated by Gerrit Code Review about 2 months ago

Patch set 5 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/86337

Actions #6

Updated by Gerrit Code Review about 2 months ago

Patch set 6 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/86337

Actions #7

Updated by Gerrit Code Review about 2 months ago

Patch set 7 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/86337

Actions #8

Updated by Gerrit Code Review about 1 month ago

Patch set 8 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/86337

Actions

Also available in: Atom PDF