I am working on Apache2 OctoberCMS projects in the /var/www directory on Ubuntu, and every time I start a new project, or create a new file/ folder in there, I have to ensure I have permissions by running:
sudo chmod -R g+rwx *folderName*
sudo chmod -R g+s *folderName*
My user has been added to the www-data group and the directories are set to www-data:www-data.
Is there a way to not have to run those commands every time?