Warning: include(/home/healthba/public_html/var/view_preprocessed/pub/static/vendor/magento/module-theme/view/base/templates/root.phtml): failed to open stream: No such file or directory in /home/healthba/public_html/vendor/magento/framework/View/Result/Page.php on line 326

2 Answers 2


Please run the following commands in the given order and check,

php bin/magento setup:upgrade

rm -rf var/{cache,di,generation,page_cache,view_preprocessed}

php bin/magento setup:static-content:deploy

php bin/magento setup:di:compile


Just remove var folder content by below command,

rm -rf var/generation/ var/view_preprocessed/ pub/static/frontend/ pub/static/_requirejs/ var/cache var/di var/page_cache pub/static/_cache

Now, give full permission to the var folder,

sudo chmod -R 0777 var/

If the above method is not working then check your file and folder permissions, You need to give permissions to your Magento 2 instance. Check Magento Docs for file permissions

Hope it helps.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.