I'm not too familiar with file ownership etc. in Linux but here's my problem. I log into my ubuntu (dev machine) which is local as let's say user abc group xyz.
Now files that reside under /var/www/vhosts/abc.com/htdocs
when created are owned by abc:xyz. In order for web server to run them I have to do sudo chown -R www-data:www-data .
which works like a charm. Problem is that I can't edit these files with my text editor since these files are not owned by abc:xyz.
Ideally I want my web server group to be replaced with abc and group to be replaced with xyz (if possible) so that files are both editable through IDE and executable by the web server user. I don't like the idea of symlinking files/directories from elsewhere.
Any advice on this will be greatly appreciated.