- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
fopen() permission denied in Magento 2.30 Windows XAMP
I am getting the below error while reading files using fopen() command.
Warning: fopen(C:/xampp/htdocs/magento/var/log): failed to open stream: Permission denied in C:\xampp\htdocs\magento\app\code\Reddot\Rapi\Controller\Rapi\Email.php on line 37
I am using Magento 2.3.0 in windows 10 using XAMP. Do i need to give any specific commands to get permission?
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: fopen() permission denied in Magento 2.30 Windows XAMP
you need to have write permission for following folders
- /var
- /generated
- /pub/media
- /pub/static
you can update the permission in Windows by following :
- go to folder Properties & goto Security tab :: Advanced
- Permissions tab, Click on Change Permissions
- Click :Add: :: -> Advanced
- Find Now, & click on user "Everyone",
- Click OK
- For "Everyone" Select "Read Write & execute" permissions
- Select "Replace all child object permissions with inheritable permissions from this object"
- Click OK.
you are now all set
kindly Accept as a Solution if this works for you and give Kudos.
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: fopen() permission denied in Magento 2.30 Windows XAMP
Sorry for the late reply. I tried all the above steps but initially it didnt worked, but after couple of days of testing and some BIOS setup things are working now. Anyway thanks for the above suggestion.
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: fopen() permission denied in Magento 2.30 Windows XAMP
Keep in mind that while this can fix permission issues, it may not be the most secure configuration. It's important to configure permissions according to how to fix your specific needs while ensuring security.
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: fopen() permission denied in Magento 2.30 Windows XAMP
If you have any questions related to FIFA 2024 or need more specific guidance on Magento permissions.