I am running a Wordpress installation with Docker (apache) on Linux.
I set the ownership of my Wordpress folder and files to www-data:www-data, or 33:33 (otherwise, I couldn't install plugins or update wordpress from the WP dashboard. I found this solution in many tutorials.)
But because I changed the ownership to www-data, I don't have direct access anymore to the .php files in those folders (so I can't edit them with VS code, or simply modify them in the linux file explorer). How can I fix this?
What I tried:
I tried to add myself to the www-data group, but when I run 'groups' in the terminal, I get "myself adm cdrom sudo dip plugdev lpadmin lxd sambashare docker". I don't see www-data. When I run "grep ^www-data /etc/group", I see "www-data:x:33:myself" though. Weird.
I found a similar question here with a suggested solution to do "sudo chown user:www-data -R" on my WordPress folder, but if I do that, I'm back at the beginning where I cannot add themes, plugins or update wordpress from the WP Dashboard.

775after you chown? - ebvjr