Showing results for 
Search instead for 
Did you mean: 

Home page empty

Home page empty

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.





Screenshot 2021-07-05 at 19-46-50 Index of magento2.png

Screenshot 2021-07-05 at 19-47-06 Screenshot.png


Re: Home page empty

I looked at a similar post ( ) that has a solution, but it doesn't work for me - new errors popping up during the procedure:



php bin/magento setup:upgrade

This fails (I think) with error Connection "default" is not defined



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.