How to do set up for multiple wordpress sites on single ubuntu 16.04 server with apache?

Posted December 12, 2019 2.1k views

I have created a droplet and add 2 websites on ubuntu 16.04 and installed Linux, Apache, MySQL, PHP (LAMP) stack on Ubuntu 16.04 and PHP mY admin. Now i want to run my these 2 websites and others in wordpress on single Droplet. so what is the next step?

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.

Submit an Answer
3 answers


what you would need to do is use Apache virtual hosts in order to be able to host multiple sites. To do that you could by following the steps from this guide on how to create new virtual hosts for each site:

At the end you would have multiple virtual hosts for each site and each virtual host would have different document root (the directory where the files of the site are stored at) for example: > /var/www/ > /var/www/ > /var/www/

Then in those directories, you could just upload your Wordpress files and install Wordpress there, that way you would have multiple sites on a single droplet. To do the Wordpress installation step you can follow these steps here:

  • Follow only step 1 on “How to create a database”:

  • Step 4 on how to download and move the Wordpress files to the appropriate directory:

Hope that this helps! Let me know if you have any questions.


by Brennen Bearnes
The Apache web server is the most popular way to serve web content on the internet. Apache has the ability to serve multiple domains from a single server by using a mechanism called "virtual hosts". If a virtual host is configured correctly for each domain, the web server can correctly route traffic to the appropriate files based on the domain name requested. In this guide, we'll demonstrate how to configure Apache virtual hosts on an Ubuntu 16.04 server.

I use vesta control panel for droplets that require multiple wordpress installs. It’s pretty simple to install and use. It only takes 3 commands to install and it’s free.