I am used to adding sites in /home/USR/public_html. But now I have decided to put sites into /var/www/site1, /var/www/site2, and so on.
Root owns /var/www/, but you want your user to be able to work in this location so are these the right steps in order give a user permissions? Security wise, is this the right way, or is there a better way?
This is a drupal multisite 1 core instance. Virtual hosts are used, but all drupal sites sit in 1 folder under the drupal core code.
sudo adduser bob www-data sudo chown -R www-data:www-data /var/www sudo chmod -R g+rw /var/www