Join 1M+ other developers and:
- Get help and share knowledge in Q&A
- Subscribe to topics of interest
- Get courses & tools that help you grow as a developer or small business owner
Ubuntu 16.04 WordPress LEMP Multiple Server Block Users Permissions
Read this great new article on setting up a server on 16.04 with the ideal LEMP stack for WordPress.
It works great for a single site, but not for multiple sites. This other article helps resolve that issue: https://www.digitalocean.com/community/tutorials/how-to-set-up-nginx-server-blocks-virtual-hosts-on-ubuntu-16-04
The issue is in that article is says to assign permissions to directory as user:user but that article even notes that won’t work well in dynamic sites like WordPress.
Is there an article on how to deal with that so that on 16.04 when using having multple wordpress sites using the above articles, so that each will have permissions so that you can update WordPress and plugins via WordPress backend, and edit files via SFTP, and to make sure each site uses a different user for security?
Such perhaps site1usr:www-data for site1 and site2usr:www-data for site 2, and not sure if have to add users to www-data, or if each site should have a user for editing files, and a seperate user for just updating wordpress (as the secure WP article on DO is back from 2013).
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.×