I have webmin installed where I create new virtual hosts and new users to manage those sites.
My process is:
- Create a new user. (/home/nameofuser/)
- SSH in as the new user, and create a webroot folder (/home/nameofuser/www/)
- Create a virtual host pointed to that webroot (home/nameofuser/www/)
The problem with this is that the apache www-data user is not the owner of the files. However, if I let webmin create the webroot for me, the user/group becomes www-data:www-data but the new user is unable to create files/folders.
An example of why this is an issue is when I try to install wordpress, it is unable to install plugins or create files such as log files.
How should I set the permissions on and/or within my webroot folder