[Magento\Framework\Exception\FileSystemException] File "D:/xampp/htdocs/zenmeds/var/view_preprocessed/pub/static/frontend/Magento/blank/en_US/info.json" cannot be opened Warning!fopen(D:/xampp/htdocs/zenmeds/var/v iew_preprocessed/pub/static/frontend/Magento/blank/en_US/info.json): failed to open stream: Permission denied

  • please tell me how to solve that error? – Parshuram Jun 3 '19 at 12:25
  • give 777 permission to your var/, pub/static and generated/ directories – Piyush Jun 3 '19 at 12:27
  • remove contents of pub/static/frontend and try again. – Marius Jun 3 '19 at 12:28
  • i am using local xampp server – Parshuram Jun 3 '19 at 12:28

Key to the answer is "Permission denied". I am unfortunately no windows expert. But seems like it is answered here.


Problem description:

The error is saying that var/view_preprocessed/pub/static/frontend/Magento/blank/en_US/info.json is not openable by Magento cause can be the wrong file permission.

Solution: Make a practice( what I prefer ) to run Magento commands as sudo if you are in linux machine to avoid such errors such as

sudo php bin/magento setup:static-content:deploy


Please check that the var/view_preprocessed/ folder have full access permission.

Try from project root,

chmod -R 777 /var/*

  • i am using local xampp server we dont need permissions right? – Parshuram Jun 3 '19 at 12:33
  • you need permissions, but you can't chmod them, ensure the user running xampp can access that directory, you could experiment with running xampp as admin or ensuring the file and all subfolders are writable and readable by the xampp user – Zachary Craig Jun 3 '19 at 12:34
  • Permission access is compulsory. If you are using windows, try by right-clicking on root folder -> properties. – Kazim Noorani Jun 3 '19 at 12:36

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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