: How do you isolate/silo websites on an Ubuntu w/ LEMP stack? I have an Ubuntu server with NGINX/PHP/MySQL with multiple website hosted on it. Several of them are Wordpress websites for friends,
I have an Ubuntu server with NGINX/PHP/MySQL with multiple website hosted on it.
Several of them are Wordpress websites for friends, so they can upload their own plugins and potentially malicious code.
How can I prevent scripts in their web folders from accessing other website folders and my home folder?
More posts by @Annie201
2 Comments
Sorted by latest first Latest Oldest Best
My answer for NGINX was to create php-fpm pools for each site/virtual host.
These pools each have their own user, and that use has no access to any files outside of the pool. So they are totally isolated.
Here is an in-depth tutorial
Just create new account and install WordPress separately.
Each WordPress site using separate database from phpmyadmin, so If your friends are not developer, then allowing FTP access is not good idea at all, they can do many things directly from WordPress dashboard.
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2024 All Rights reserved.