I have an issue with the use of /home as www folder. Actually I'm using userdir mod on ubuntu 14.04 and apache2.4 in order to have all my websites in home folder. Everything was working so far. But I made a mistake in my permissions and my www-data user write in the folder of my home, and he becomes owner of the written files. Which makes the true home folder owner incapable to delete it.
I tried (with root access) :
chmod -R 775 /home/administrateur/ chmod -R ug+rwx /home/administrateur/ chown -R administrateur:administrateur /home/administrateur/ chgrp -R administrateur /home/administrateur/
With no success, the files which are written remains the property of www-data.
Thanks for helping