After installing Magento in my machine home page not loading properly.
Hello @sakthivel_k1
are you using window?
Yes sir, I am using Windows 8
Hello @sakthivel_k1
please check
window 2.3 not working into local host solution for that #/vendor/magento/framework/View/Element/Template/File/Validator.php:139 foreach ($directories as $directory) { // Add this line $realDirectory = $this->fileDriver->getRealPath($directory); // and replace `$directory` with `$realDirectory` if (0 === strpos($realPath, $realDirectory)) { return true; } }
Hello @sakthivel_k1
is that works, if yes then mark as solution.
Here is the list of command you need to run in Magento root directory after adding the change shared by @Sunil Patel
sudo rm -Rf pub/static/frontend/* var/pre_processed/* pub/static/_requirejs/* sudo rm -Rf var/generation/* var/di/* var/cache/* sudo php bin/magento setup:upgrade sudo php bin/magento setup:di:compile sudo php bin/magento setup:static-content:deploy -f sudo php bin/magento cache:clean sudo php bin/magento cache:flush sudo chmod -R 777 var/ pub/ generated/
I hope it will help you.
Thanks
Looks like file permission issues to me.
Since you are using Windows I'm not sure what should be the correct file permission.