Disclaimer: I already asked this on StackOverflow but it's kind of urgent and I'm getting no responses and I figure ServerFault might be the better place to post this anyways. If I get an answer on here I'll delete the other one.
I'm following the guide here (admittedly it's a little dated) to deploy my first Symfony 4 project to production. It was going all good until I got to the file permissions. I did the steps specifically in Step 4 of the link :
sudo chown -R myuser:myuser /var/www/html sudo chmod -R 750 /var/www/html sudo setfacl -R -m u:www-data:rX /var/www/html/project sudo setfacl -R -m u:www-data:rwX /var/www/html/project/var/cache /var/www/html/project/var/log sudo setfacl -dR -m u:www-data:rwX /var/www/html/project/var/cache /var/www/html/project/var/log
That gives me
getfacl /var/www/html/project # file: var/www/html/project/ # owner: myuser # group: myuser user::rwx user:www-data:r-x group::r-x mask::r-x other::---
getfacl /var/www/html/project/var/cache # file: var/www/html/project/var/cache # owner: myuser # group: myuser user::rwx user:www-data:rwx group::r-x mask::rwx other::--- default:user::rwx default:user:www-data:rwx default:group::r-x default:mask::rwx default:other::---
However when I go to run the web app I get a blank page and the error log shows
[crit] 3116#3116: *12 stat() "/var/www/html/project/public/" failed (13: Permission denied)
So it seems the setfacl isn't working? What am I doing wrong here? Is there a better guide for permissions?
EDIT: I just read here that:
To use ACL, it's necessary to use filesystems which can use ACL function like ext2/ext3/ext4 or xfs and also necessary to enable ACL option on those filesystems.
My drive is encrypted (done during installation). Could that be why this isn't working? If this is the case, what alternatives would I have?