On the entire directory with the sites, I set 777 ugo=rwx ( ugo=rwx ), and the owner of www:data ( apache , php works under it).
I still can not delete and write files in php .
Why is that?
ps I found something about the Access Control List , but I didn’t figure out what exactly needs to be done. I would also like everything to work with the rights 755 ( u=rwx,go=rx ).
sudo find /path/to/docroot -type d -exec chmod u=rwx,go=rx {} +2. files:sudo find /path/to/docroot -type f -exec chmod u=rw,go=r {} +3. affiliation:sudo chown -R www:data /path/to/docroot- aleksandr barakinmount | grep aclmount | grep acl. - aleksandr barakinwww;datacopied there, apparently, from your question. and should bewww-data:www-data. - aleksandr barakin