It seems to be a common problem, and it's really annoying that the documentation has not been updated to add some missing steps.
So, this is what I see when I go to what it should be the home page (http://localhost/magento2): nothing.
The apache rewrite module is enabled, there is the .htaccess file in the directory with the right (?) rewrite rules, and the page still fails. No rewriting is occurring.
There is an "index.php" under the magento2/pub directory, but I try to load it, I get an empty page (see second picture). The page that it generates contains only an empty HTML page (nothing inside the <body> tag)
It's all very, very frustrating.
TIA
I looked at a similar post (https://community.magento.com/t5/Installing-Magento-2-x/Home-page-requires-home-or-index-php/m-p/437... ) that has a solution, but it doesn't work for me - new errors popping up during the procedure:
Step:
php bin/magento setup:upgrade
This fails (I think) with error Connection "default" is not defined
Step:
php bin/magento setup:static-content:deploy -f
fails with a screen full of red lines of stack trace, complaining in the end that The default website isn't defined.
So, I'm at square one.