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.
var_dump()
to debug the setup?filePermissionsAction
method, I useecho
i get "Server failed to respond. Please try again." and when I usevar_dump
I get "0 file permission not met.".