Project

General

Profile

Actions

Bug #96966

closed

Postgres: Installation fails at step 2/5

Added by Gerald Z almost 3 years ago. Updated about 2 years ago.

Status:
Closed
Priority:
Should have
Assignee:
Category:
Database API (Doctrine DBAL)
Target version:
-
Start date:
2022-02-18
Due date:
% Done:

0%

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

Description

I tried installing TYPO3 10.4.24 on Debian 11 with Nginx, php-fpm and postgresql 13.
Installation when moving from Step 1 to Step 2/5: i never get to enter the DB-Dtails.

Firefox Console:

GEThttps://deepthought.zegenet.eu/typo3/install.php?install[action]=checkDatabaseConnect
[HTTP/2 500 Internal Server Error 45ms]

Uncaught (in promise) 
Object { response: Response }
​
response: Response { type: "basic", url: "https://deepthought.zegenet.eu/typo3/install.php?install[action]=checkDatabaseConnect", redirected: false, … }
​​
body: ReadableStream { locked: false }
​​
bodyUsed: false
​​
headers: Headers {  }
​​
ok: false
​​
redirected: false
​​
status: 500
​​
statusText: "Internal Server Error" 
​​
type: "basic" 
​​
url: "https://deepthought.zegenet.eu/typo3/install.php?install[action]=checkDatabaseConnect" 
​​
<prototype>: ResponsePrototype { clone: clone(), arrayBuffer: arrayBuffer(), blob: blob(), … }
​
<prototype>: Object { … }
​​
constructor: class  { constructor(e) }​​
dereference: async function dereference()​​
raw: function raw()​​
resolve: async function resolve(e)​​
<prototype>: Object { … }

nginx error.log

2022/02/18 13:46:21 [error] 14879#14879: *355 FastCGI sent in stderr: "PHP message: PHP Fatal error:  Uncaught Error: Call to undefined function mysqli_init() in /var/www/deepthought.zegenet.eu/typo3_src-10.4.24/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/Mysqli/MysqliConnection.php:64
Stack trace:
#0 /var/www/deepthought.zegenet.eu/typo3_src-10.4.24/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/Mysqli/Driver.php(16): Doctrine\DBAL\Driver\Mysqli\MysqliConnection->__construct()
#1 /var/www/deepthought.zegenet.eu/typo3_src-10.4.24/vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(362): Doctrine\DBAL\Driver\Mysqli\Driver->connect()
#2 /var/www/deepthought.zegenet.eu/typo3_src-10.4.24/typo3/sysext/core/Classes/Database/Connection.php(101): Doctrine\DBAL\Connection->connect()
#3 /var/www/deepthought.zegenet.eu/typo3_src-10.4.24/vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(428): TYPO3\CMS\Core\Database\Connection->connect()
#4 /var/www/deepthought.zegenet.eu/typo3_src-10.4.24/vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(388): Doctrine\DBAL\Connectio" while reading response header from upstream, client: 139.178.125.26, server: deepthought.zegenet.eu, request: "GET /typo3/install.php?install[action]=checkDatabaseConnect HTTP/2.0", upstream: "fastcgi://unix:/var/run/php/php-fpm.sock:", host: "deepthought.zegenet.eu", referrer: "https://deepthought.zegenet.eu/typo3/install.php" 

Looks like the install.php is looking for mysql when no mysql is present. The install.php also creates a LocalConfiguration.php:

<?php
return [
    'BE' => [
        'explicitADmode' => 'explicitAllow',
        'loginSecurityLevel' => 'normal',
    ],
    'DB' => [
        'Connections' => [
            'Default' => [
                'charset' => 'utf8',
                'driver' => 'mysqli',
            ],
        ],
    ],
    'EXTENSIONS' => [
        'backend' => [
            'backendFavicon' => '',
            'backendLogo' => '',
            'loginBackgroundImage' => '',
            'loginFootnote' => '',
            'loginHighlightColor' => '',
            'loginLogo' => '',
        ],
        'extensionmanager' => [
            'automaticInstallation' => '1',
            'offlineMode' => '0',
        ],
    ],
    'FE' => [
        'disableNoCacheParameter' => true,
    ],
    'SYS' => [
        'encryptionKey' => '82e5ff5aefbd41ffc9a2cd2781a8302c0dc9d6c2c66fc90dadf8213a0c1f3202c4d376141e3246f6804ff659c7836e56',
        'features' => [
            'felogin.extbase' => true,
            'fluidBasedPageModule' => true,
            'rearrangedRedirectMiddlewares' => true,
            'unifiedPageTranslationHandling' => true,
            'yamlImportsFollowDeclarationOrder' => true,
        ],
        'sitename' => 'New TYPO3 site',
    ],
];


Files

nginx.tgz (4.91 KB) nginx.tgz Full nginxconfig Gerald Z, 2022-02-22 09:50
docroot.tgz (3.42 KB) docroot.tgz Documentroot Gerald Z, 2022-02-22 10:06
Step_0.png (33 KB) Step_0.png Gerald Z, 2022-02-22 10:08
Step_1.png (26.1 KB) Step_1.png Gerald Z, 2022-02-22 10:08
Step_2.png (26.3 KB) Step_2.png Gerald Z, 2022-02-22 10:08
firefox_console.png (129 KB) firefox_console.png Gerald Z, 2022-02-22 10:16
step2_mysql_installed.png (33.3 KB) step2_mysql_installed.png Gerald Z, 2022-02-22 10:48
step2_typo3_v11.png (32.4 KB) step2_typo3_v11.png Gerald Z, 2022-02-22 10:54
step_2_v11_msql_installed.png (31.3 KB) step_2_v11_msql_installed.png Gerald Z, 2022-02-22 10:59

Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Bug #95545: Web based installation with php8.1 impossible, as the database configuration step is not displayedClosedStefan Bürk2021-10-08

Actions
Actions

Also available in: Atom PDF