I ran into the same issue today. InIt appeared that the app/etc/env.php
was missing. This means that Magento was not yet installed. During Magento installation it will create this file, so:
- make sure
app/etc/
is writable for the magento user/webuser - run
bin/magento setup:install ...params...
In my case, some script that I made was not copying my env.php
file into the app/etc/
folder.
It is also possible that the file is there, but it is not readable for the Magento user/webuser.