Server Error 500 during step 2 installing 14.0.5 from zip to shared Linux web server

Installing to a shared Linux server at Dreamhost.
Dolibarr 14.0.5
PHP 7.4.15
MySQL database
Using http, not https

Domain: nattest . hartspice . com
Web Server: logsdon . dreamhost . com
DB server: mysql . nattest . hartspice . com
Filesystem user ID: dh_qr5byn
Apache user ID: dh_qr5byn
DB user ID: dh_qr5byn

Fresh install to newly created database with user already created.
Initial setup page shows all green checks, I select Fresh Install
Step 1 shows all green checks, can connect to database. I click Next Step
After a couple of minutes, the browser gets:

Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.

The server error log shows:

[Thu Feb 03 13:27:25.619773 2022] [fcgid:warn] [pid 429174:tid 3988036495104] [client 38.21.58.252:33380] mod_fcgid: stderr: PHP Warning: mysqli::__construct(): (HY000/1045): Access denied for user ‘dh_qr5byn’@‘logsdon.dreamhost.com’ (using password: NO) in /home/dh_qr5byn/nattest.hartspice.com/core/db/mysqli.class.php on line 216, referer: www . nattest . hartspice . com/install/fileconf.php?selectlang=en_US
[Thu Feb 03 13:30:00.605806 2022] [fcgid:warn] [pid 429174:tid 3988061673216] [client 38.21.58.252:33392] mod_fcgid: read data timeout in 120 seconds, referer: www . nattest . hartspice . com/install/step1.php
[Thu Feb 03 13:30:00.605902 2022] [core:error] [pid 429174:tid 3988061673216] [client 38.21.58.252:33392] End of script output before headers: step2.php, referer: www . nattest . hartspice . com/install/step1.php

The problem appears to me to be the “password NO”, since the DB user requires a password to login, which I did provide.

Not sure what to try next, this looks to me like a problem deep in the setup code. Hoping for more knowledgable help.

Hello,

Means timeout : Server is not powerfull enough to finish the script.

Contact your hosting company, or try to launch it when server is not overloaded (middle of the night)

ksar, thank you for replying. I had considered that, and will try again late tonight, but the timeout was the last error logged.
The first error was the DB login error, followed 2 minutes later by the 120 second read timeout, then the script termination. That’s why I focused on the DB login, as the likely source of all problems.
I’ll be back after a midnight run tonight.

Yes also this DB login error is strange…
But usually, when you have a DB login error, it stop very fast (doesn’t last 120s)…

I’m also getting the two last errors (but not the DB error). Any updates on your end? I noticed that some posts suggest that the database might not be “fast” enough.

I was able to solve my problem by switching to CGI instead of FastCGI and increasing max_execution_time (used 500 for this, but did not actually time the operation).