#105121Take `additional.php` into account for `setup` command
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 \
--forceReviews 1
History 014
-
Gerrit Code Review pushed patch set 1 for main to change 86337 status
NewUnder Review <span data-processor="relativetime" data-value="2024-09-25T13:04:25+00:00" > 09/25/24, 13:04 </span> -
Gerrit Code Review pushed patch set 2 for main to change 86337 <span data-processor="relativetime" data-value="2024-09-25T13:20:04+00:00" > 09/25/24, 13:20 </span>
-
Gerrit Code Review pushed patch set 3 for main to change 86337 <span data-processor="relativetime" data-value="2024-09-25T15:16:59+00:00" > 09/25/24, 15:16 </span>
-
Gerrit Code Review pushed patch set 4 for main to change 86337 <span data-processor="relativetime" data-value="2024-09-25T15:28:29+00:00" > 09/25/24, 15:28 </span>
-
Gerrit Code Review pushed patch set 5 for main to change 86337 <span data-processor="relativetime" data-value="2024-09-25T15:36:12+00:00" > 09/25/24, 15:36 </span>
-
Gerrit Code Review pushed patch set 6 for main to change 86337 <span data-processor="relativetime" data-value="2024-09-25T15:50:53+00:00" > 09/25/24, 15:50 </span>
-
Gerrit Code Review pushed patch set 7 for main to change 86337 <span data-processor="relativetime" data-value="2024-09-25T15:56:44+00:00" > 09/25/24, 15:56 </span>
-
Gerrit Code Review pushed patch set 8 for main to change 86337 <span data-processor="relativetime" data-value="2024-10-18T14:03:44+00:00" > 10/18/24, 14:03 </span>
-
Gerrit Code Review pushed patch set 9 for main to change 86337 <span data-processor="relativetime" data-value="2025-05-09T11:38:26+00:00" > 05/09/25, 11:38 </span>
-
Gerrit Code Review pushed patch set 10 for main to change 86337 <span data-processor="relativetime" data-value="2026-04-22T06:34:18+00:00" > 04/22/26, 06:34 </span>
-
Gerrit Code Review pushed patch set 11 for main to change 86337 <span data-processor="relativetime" data-value="2026-07-16T15:41:42+00:00" > 07/16/26, 15:41 </span>
-
Gerrit Code Review pushed patch set 12 for main to change 86337 <span data-processor="relativetime" data-value="2026-07-17T13:50:41+00:00" > 07/17/26, 13:50 </span>
-
Gerrit Code Review pushed patch set 13 for main to change 86337 <span data-processor="relativetime" data-value="2026-08-15T23:24:53+00:00" > 08/15/26, 23:24 </span>
-
Gerrit Code Review pushed patch set 14 for main to change 86337 <span data-processor="relativetime" data-value="2026-11-10T13:49:20+00:00" > 11/10/26, 13:49 </span>