I have setup a local Apache2, with PHP and mysql. I wrote a maven build script to deploy my page on that local server. All that is working fine except for one thing:
When I instruct maven to clean up the page, means deleting all files, it runs in an permission problem, because maven must not delete Files and Directories created by php.
I have created a group called »web«. »Me« and »www-data« are both members of that group. After all the files are installed, means copied to the right location, maven runs two little commands:
chown -R me:web www-dir and
chmod -R 777 www-dir, and everything works fine.
Running the Website makes the PHP create files and Directories with this permissons:
drwxr-xr-x 2 www-data www-data and maven (or me) are not allowed to delete those files. Trying to run
chown gives the same permission error.
How can I fix that without using the magic »sudo-power«?