When I open the home page, I have got blank page, when I have set ini_set(‘display_errors’, 1) I have saw the following error Can’t create directory var/generation/Magento/Framework/App/ResourceConnection
Usually its caused by the permission issue of “pub” folder , try give full control to your “pub” folder.
sudo chmod -R 777 var pub
Also try clearing your cache folder
sudo rm -rf var/cache/* var/generation/*