wordpress - Apache multiple virtual hosts user permissions -


i have webmin installed create new virtual hosts , new users manage sites.

my process is:

  1. create new user. (/home/nameofuser/)
  2. ssh in new user, , create webroot folder (/home/nameofuser/www/)
  3. create virtual host pointed webroot (home/nameofuser/www/)

the problem apache www-data user not owner of files. however, if let webmin create webroot me, user/group becomes www-data:www-data new user unable create files/folders.

an example of why issue when try install wordpress, unable install plugins or create files such log files.

how should set permissions on and/or within webroot folder

in above scenario easiest add users need access folders/files webmin created www-data group, may have give user directories 664. should solve access issues, if list of users grows access webroot. true solution vhosts , multiple users apache2-mpm-itk better solution requires little reading.


Comments

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -