[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
Asked
Active
Viewed 647 times
0
Manashvi Birla
- 8,833
- 9
- 27
- 53
Parshuram
- 65
- 5
3 Answers
1
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
Adarsh Shukla
- 573
- 1
- 7
- 25
0
Please check that the var/view_preprocessed/ folder have full access permission.
Try from project root,
chmod -R 777 /var/*
Kazim Noorani
- 2,981
- 3
- 20
- 42
-
-
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 03 '19 at 12:34
-
Permission access is compulsory. If you are using windows, try by right-clicking on root folder -> properties. – Kazim Noorani Jun 03 '19 at 12:36
var/,pub/staticandgenerated/directories – Piyush Jun 03 '19 at 12:27