The File Permissions Check fails during the Readiness Check for Magento 2.1.0 Setup. I am consulting Set pre-installation file system ownership and permissions but to no avail.

I am running Fedora on an Amazon EC2 instance. The web server user and group is apache, command line user is fedora and currently the owner and group of the Magento install directory and its contents is root.

I have tried setting the group and owner of the Magento install directory and its contents to several combinations including apache:apache, root:root (current), fedora:apache and fedora:fedora. I have also recursively set the permissions to 664 and 644 for files and 755 for directories yet,

  • /var/www/html/app/etc
  • /var/www/html/var
  • /var/www/html/pub/media ; and
  • /var/www/html/pub/static

are apparently not writable.

Can anyone share some insight? This is my first time setting up Magento not using a quick start or quick install option and using an AWS VPC.

EDIT: I have performed a clean install, the Magento install dir is owned by a seperate user (magento_user) that belongs to the web server group apache. All files and directories are owned by magento_user:apache and permissions for var, pub etc. updated to 0664 and 2755 for files and directories respectively. The bin/magento to 0744.

  • 1
    Maybe this could help: magento.stackexchange.com/a/132294/2380 Commented Aug 21, 2016 at 7:18
  • @RaphaelatDigitalPianism i too have chown everything to apache:apache and chmod everything to the world. Where would I insert the var_dump() to debug the setup?
    – TimD
    Commented Aug 21, 2016 at 9:37
  • before the return statement. Try to check the content of the variables I mentioned in my answer Commented Aug 21, 2016 at 10:04
  • Inserting immediately before the return statement in the filePermissionsAction method, I use echo i get "Server failed to respond. Please try again." and when I use var_dump I get "0 file permission not met.".
    – TimD
    Commented Aug 21, 2016 at 11:43

3 Answers 3


Just for the record - probably will help somebody - I had the same issue installing Magento 2.1.8 and, changing the owner of those 4 folders/directories to the user apache runs, made it pass the File Permissions Check right away.

This is in CentOS, "sudo" makes it run as root, so adapt as needed:

sudo chown -R apache:apache /path/to/magento/var/  
sudo chown -R apache:apache /path/to/magento/pub/media/  
sudo chown -R apache:apache /path/to/magento/pub/static/  
sudo chown -R apache:apache /path/to/magento/app/etc/

I've been trying everything I found, from devdocs permissions guide to chmod 777 (775, 755, 700, ...), selinux disable, nothing worked until I tried the above. Changing the owner of those folders to apache user.


I think to resolve this issue, you can follow these steps below:

Step1: You have to check your apache to know which user that it is running on. Use "ps -aux | grep httpd" command to get this information. It often is daemon or nobody

Step2: Run command "chown -R user:group /path" to change owner on your folders to those user/group that apache run on. Then, chmod 755 for your folders and 644 for files.

Step3: Restart your apache & check again

You also can edit "httpd.conf" file, change user/group configuration to your current logined user. Then, go to Step2


in my case, when i Disable SELinux Temporarily, it works. hope this will help u.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.