17 votes

How to re-run the file permission check during installation?

Use The following commands to set permissions, it may help find . -type f -exec chmod 644 {} \; find . -type d -exec chmod 755 {} \; find ./var -type d -exec chmod 777 {} \; find ./media -...
  • 3,622
11 votes
Accepted

PHP Fatal error: Uncaught Zend_Cache_Exception

I had to re-run permission commands on my magento 2 installation directory. Don't know why would I need to re-run them. sudo chmod -R 777 /var/www/html/mg Is this correct? Seems excessive permission ...
  • 753
7 votes

How to re-run the file permission check during installation?

I accidentally screwed up the folder permissions of the Magento root directory. There is no harm in resetting the correct permissions. For more information on permissions you can consult the official ...
  • 5,189
6 votes

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

If you deleted samples files, you may have an error such as : update-cron.ERROR: Cron readiness check failure! Found non-writable paths: /magento2/.htaccess.sample /magento2/.php_cs /magento2/....
5 votes
Accepted

Magento 2: Recommended File Permission for shared hosting

Please, check the following links to set the permission properly: http://devdocs.magento.com/guides/v2.0/install-gde/prereq/integrator_install.html http://devdocs.magento.com/guides/v2.0/install-gde/...
5 votes

Internal Server Error (500) in Installation of magento 1.9.2.1 on aruba hosting

Try changing your permission for Index.php from 664 to 644 in root directory Do the same to Index.php in Downloader folder Delete cache
5 votes
Accepted

Permission change after setup:upgrade

See my answer to this question. The problem here is that newly generated files are owned by the user and group who issues the command $USER:$USER, where they should belong to $USER:www-data or $USER:...
  • 653
5 votes

Trying to install magento 2 and get page_cache is not writable

Had the same issue with var/page_cache not writable. OP's answer pointed me in the right direction. Rather than disabling SELinux completely, need to update SELinux security context for following ...
  • 97
5 votes
Accepted

Cant run commands in terminal magento 2

You need to Set permission in Var like ... Sudo chmod 0777 -R var/ generated/ If sudo not working then just .. chmod 0777 -R var/ generated/
4 votes
Accepted

www.mySITE.com is currently unable to handle this request. 500

This is a server error. if you have a developer store, please go to index.php under your root magento store and enable developer mode. Just paste this code after line 72 Mage::setIsDeveloperMode(true);...
3 votes

Error from Updater Application Cron Script

I guess it's just a permission problem. Just make this .htaccess.sample writeable for the user that runs the script You can find the permissions documentation on the official website: http://devdocs....
3 votes
Accepted

Magento 2 Permission Issues

The M2 setup requires a specific user, not www-data, to be magento system owner. Running any bin/magento command as root will create files and folders as root, which may cause issues. See: http://...
  • 4,013
3 votes
Accepted

Files and Folders permission issue after I copied all files

777 should never be used. For a Magento installation, after it has been installed, the entire document root should be unwritable by the web server user (with some exceptions). They should be owned ...
3 votes

PHP Fatal error: Uncaught Zend_Cache_Exception

As this is a permissions issue you should run all commands from the CLI as the web server user. Typically it is www-data user, so after you set all permissions (as magento devdocs recommends) DO NOT ...
3 votes

Magento 2 installation & Linux file folder permission

Give 775 permission to your var and pub/media directory. Run below command for the same. sudo chmod -R 775 /var/generation sudo chmod -R 775 /pub/media If in case in your server 775 not work then ...
  • 9,660
3 votes

Magento 2 : Permission denied with colinmollenhour module cache

I think its not a bug, I experienced the same after running the cache:clean command as root user. So by applying the file permission again this issue has been fixed. http://devdocs.magento.com/guides/...
  • 41
3 votes

Magento 2 : Permission denied with colinmollenhour module cache

I think you might be running magento2 cron as sudo user which is generating those files for you, can you check if you have crontab as sudo and without, go to your working directory and write crontab -...
  • 31
3 votes

Can't create directory

main.CRITICAL: Can't create directory This is a permission problem, Magento is unable to write to your generated directory. Please check this documentation to setup your permissions properly. If you ...
3 votes

How to set permisions for var/cache folder?

Run this command: chmod -R 777 var/*
  • 114
2 votes
Accepted

Magento - upgraded to 1.9 - admin not loading images & js because 403 error

You should only use 755 for directories and 644 for files (they don't need the executable permission). Use these commands in the skin directory to apply the permissions recursively: find . -type f -...
2 votes
Accepted

File permission change to 640 after uploading via Wysisyg - [Patch 7882 fixes]

I use Nexcess, magento use 700 permissions (drwx------) for the media/ and var/ directories give full control (that is, read/write/execute) to the owner and no permissions to anyone else. Magento ...
2 votes

Product image missing from backend after updating to magento 1.9.2.3

I reckon it's related to the following changes from 1.9.2.3: Files uploaded via admin panel (i.e. product image upload) are now not world readable by default (before: 777 / after: 640). Directories ...
2 votes
Accepted

Magento 2 cutom theme is not deployed

your parent theme name is <parent>Magento/blank</parent> so change this "name": "magento/theme-frontend-luma", to "name": "magento/theme-frontend-blank", check this link
  • 32.2k
2 votes

Error log: cache_dir "‘tmp’" must be a directory

Make sure that your var and var/cache directories are writable. The issue generally arises when var directory is not writable. For one guy he commented this as solution: Finally I found a little ...
  • 4,778
2 votes

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

With regards to Mohammad's answer, permissions should never be set to 777. The problem here is that newly generated files are owned by the user and group who issues the command $USER:$USER, where they ...
  • 653
2 votes

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

I had a simple fix for my Readiness check fail. Normally this happens due to issue with owner of the the file /folder where it says "non-writable" Issue was, Readiness check fails and says. Cron ...
2 votes
Accepted

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

@Lauren I would suggest taking a look at this if you haven't already: http://devdocs.magento.com/guides/v2.0/install-gde/install/post-install-umask.html . If you do decide to use this: rm -rf ...
  • 2,249
2 votes

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

This was happening with me, too. I ended up specifically outlining those directories in the CLI (the directories giving me issues were inside var/cache and var/generation) via chmod. But what did it ...
  • 41
2 votes

someone attacking my site by causing too much traffic...hosting says to: "make sure all your files and folders have correct permissions"

Which ones need the 777 and which ones don't? No directories should have 777 permissions. If 755 does not work for you, change group permissions instead. Look at the files created by Magento to see ...
2 votes

someone attacking my site by causing too much traffic...hosting says to: "make sure all your files and folders have correct permissions"

use: Linux Malware Detect Linux Malware Detect (LMD) is a malware scanner for Linux released under the GNU GPLv2 license, that is designed around the threats faced in shared hosted ...
  • 3,742

Only top scored, non community-wiki answers of a minimum length are eligible