Question

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

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?


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.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

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

This comment has been deleted

Hello,

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:

https://www.digitalocean.com/community/tutorials/how-to-set-up-apache-virtual-hosts-on-ubuntu-16-04

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:

website1.com > /var/www/website1.com
website2.com > /var/www/website2.com
website3.com > /var/www/website3.com
...

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

https://www.digitalocean.com/community/tutorials/how-to-install-wordpress-with-lamp-on-ubuntu-18-04#step-1-–-creating-a-mysql-database-and-user-for-wordpress

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

https://www.digitalocean.com/community/tutorials/how-to-install-wordpress-with-lamp-on-ubuntu-18-04#step-4-–-downloading-wordpress

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

Regards, Bobby