Mobile app version of vmapp.org
Login or Join
Annie201

: 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,

@Annie201

Posted in: #Ubuntu

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?

10.02% popularity Vote Up Vote Down


Login to follow query

More posts by @Annie201

2 Comments

Sorted by latest first Latest Oldest Best

 

@Annie201

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

10% popularity Vote Up Vote Down


 

@Margaret670

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.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme