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
11k views

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
17k views

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
758 views

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
1k views

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
676 views

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 http://devdocs.magento.com/guides/v2.0/install-gde/install/cli/install-cli-install.html for file permissions doesnt work there is ...
  • 181
0 votes
2 answers
4k views

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 1.9.2.1 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
16k views

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
30k views

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
6k views

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
5k views

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
4k views

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
3k views

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
588 views

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
360 views

Set the correct magento permissions

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

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
507 views

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 ...