Questions tagged [file-permissions]

For questions relating to file read/write permissions, user groups, executable bits etc. Be sure to include a tag for the operating system (Windows or Unix) and tag for operating system version.

Filter by
Sorted by
Tagged with
2 votes
3 answers

Magento 2 : Permission denied with colinmollenhour module cache

I regularly get this error message: 1 exception(s): Exception #0 (Exception): Warning: file_put_contents(/var/www/html/magento/var/cache//mage-tags/mage---365_COMPILED_CONFIG): failed to open ...
0 votes
1 answer

Magento 2: Recommended File Permission for shared hosting [duplicate]

I have hosted the Magento 2 on a shared hosting server where they recommend to keep all folders as 755 and files as 644. However Magento recommeds to keep 770 for folders and 660 for all files. As ...
  • 1,392
4 votes
1 answer

Magento 2 Permission Issues

During development of a magento 2 site I keep getting permission issues. When I move from modes I get "Cannot change permissions for path." Is there something else that I should be doing?
2 votes
1 answer

How to run external script outside of magento 2 root directory?

I have made a few external php scripts to update quantity and tracking numbers,etc Right now, i'm putting them in magento root and set the permission to 640. However, it's still accessible by the ...
2 votes
2 answers

What Are the Final Production File Permissions for Magento 2.0.6

pretty much what the title says the link at the bottom of this page for file permissions doesnt work there is ...
  • 181
0 votes
2 answers

How can i change file and folder permission in one go in godaddy hosting?

I am facing a lot of issues due to file and folder permission in magento What should be the file and folder permission codes.I am using 755for most. Is there any way of changing the file and ...
6 votes
6 answers

Readiness check fails for Found non-writable paths but they are

I'm having issues trying to run the Readiness check on Magento 2.1 It's saying "Found non-writable path(s)" with a massive list of paths what aren't writable. The thing is, they are writable, I've ...
  • 61
4 votes
5 answers

PHP Fatal error: Uncaught Zend_Cache_Exception

SOLVED - see my answer below. I changed my theme and all pages showed only html without any styling. Then I ran sudo php bin/magento setup:static-content:deploy and after website doesnt work and ...
  • 753
2 votes
7 answers

Magento 2 permission issue for cache folder

Everytime I install a new module on my Magento 2, I got an error that the cache cannot be created because of the permission. All what I need to do is to run the following command to fix it. chmod -...
5 votes
1 answer

Magento 2: How to fix incorrect permissions after executing setup:upgrade and/or setup:di:compile

After running setup:upgrade and di compile from the bin directory, permission and ownership is reset and the magento store stops working. It works if I manually reset the permission. When the var/...
3 votes
5 answers

Magento2 Missing write permissions to the following directories: 'site/public_html/pub/static'

unfortunately i get this error when I try to do a magento2 setup upgrade arredeom@chronos [~]# php public_html/bin/magento setup:upgrade Cache cleared successfully File system cleanup: /home/arredeom/...
2 votes
1 answer

How to give proper file and directory permission for magento localhost [duplicate]

Hi i am using Ubuntu 18 and apache2 when i setup magento 2 on localhost always have file permission problems and also whenever i run sudo php bin/magento setup:di:compile it will cancel all ...
  • 1,047
2 votes
1 answer

Files and Folders permission issue after I copied all files

I recently copied all files to other directory and it seems all files and folder permission changed so I run find . -type f -exec chmod 644 {} ; find . -type d -exec chmod 755 {} ; and I still got ...
  • 1,570
1 vote
2 answers

Set the correct magento permissions

What are the correct Magento permissions and how can one set them correctly?
0 votes
0 answers

Magneto admin Url is not working . Need to clear cache always

I am using magneto 2.2.6 . The website is working fine until i installed new extension . When the time of installation i run the following command php bin/magento setup:upgrade php bin/magento ...
0 votes
3 answers

magento 2.1.6 installation

I have some problem with the installation of magento. This is the config: Dedicated Server, CentOS Linux release 7.3.1611 (Core), Apache, Mysql, Magento CE 2.1.6 I have a user named web and the web ...