wordpress - Apache multiple virtual hosts user permissions -
i have webmin installed create new virtual hosts , new users manage sites.
my process is:
- create new user. (/home/nameofuser/)
- ssh in new user, , create webroot folder (/home/nameofuser/www/)
- 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
Post a Comment