How create several installations of WordPress independents?

I use Digital Ocean about one year. I want create a a service to sell small websites using WordPress as CMS, alright a simple service/panel using Digital Ocean API to create a new domain in apache, database and some configurations.

But I have a HUUUGGGGEEEE question, how create isolated configuration for each domain? Example: Imagine one of this small website infected or hacked. This will create a huge problem for all users.

Exists any tool, to deny one user/website to access other directories/files from other user/website?

== My scenario

1 Droplet to MySQL 1 Droplet to Apache/PHP 1 Droplet to Webmail Domains

*Apache (virtual sever) and MySQL databases are created by API

Directories structure

/var/www/[website files]

/var/www/[website files]

/var/www/[website files]

Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

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.


With the DigitalOcean API you could, for example, create separate droplets:

But once the droplet is created you would need your own automation in order to make changes to your Apache config. For example, you could use Ansible or BASH scripts to automate the creation of Apache Virtual Hosts.

Here’s a step by step guide on how to host multiple websites on 1 droplet with Apache Vhosts:

Hope that this helps! Regards, Bobby