How to Add Multiple WordPress Sites to Unbuntu 14.04 w/LEMP?

January 17, 2016 1.4k views
WordPress LEMP Ubuntu

Hey Guys,

Finally decided to take the leap and learn how to setup a server via command line. I've successfully got my server up and running on Unbuntu with LEMP and PHPMyadmin installed thanks to all of the amazing tutorials here.

I've run into a roadblock and am not sure how to proceed. I would like to add multiple WordPress (NOT Multisite) installations to the servers, but have not been able to find any good tutorials.

I found this one, but its not as clear as I would like it to be:
https://www.digitalocean.com/community/tutorials/how-to-configure-single-and-multiple-wordpress-site-settings-with-nginx

Any recommendations or someone willing to spell it out?

Thanks in advance!

1 comment
  • If you're not very good with server configuration and want to have isolated WordPress websites on your droplet, you might want to check out Wodby, it's free and has a native integration with DigitalOcean

1 Answer

You can host multiple websites easily by configuring your VHOSTs and using multiple php-fpm sockets. Create multiple directories inside /var/www and use this tutorial for example to setup a proper configuration.
If you got any more questions or need help don't hesistate to ask.

It's well known that the LEMP stack (Linux, nginx, MySQL, PHP) provides unmatched speed and reliability for running PHP sites. Other benefits of this popular stack such as security and isolation are less popular, though. In this article we'll show you the security and isolation benefits of running sites on LEMP with different Linux users. This will be done by creating different php-fpm pools for each nginx server block (site or virtual host).
Have another answer? Share your knowledge.