I have installed a new nextcloud-server. Everything works fine with one exeption: I can’t run any occ-Command from the comand-line. It gives the message "An unhandled exception has been thrown: Doctrine\DBAL\DBALException: Failed to connect to the database: An exception occurred in driver: SQLSTATE[HY000] [2002] No such file or directory in /httpdocs/nextcloud/lib/private/DB/Connection.php:72
The webbased updater works, I can add users and files, so the connection to the database should be working. I tried the occ-command db:add-missing-indices and the occ-command maintenance:mode both times with the same result.
In the installation-process something strange happened: The webbased installation-process went well. At the end, when starting the installation of recommended apps, the browser showed an unvalid URL: https:///index.php/core/apps/recommended. The Adress of my Server was missing. I added the adress, and the Installtion of the recommended apps finished. I already restartet the installation from scratch, always with the same result. Has anybody a suggestion what to do?
Nextcloud Vers. 20.0.9, Linux-Server Redhat, PHP vers. 7.4, MySQL