Server schema for multiple WordPress sites

Posted July 10, 2013 4.2k views
Hi. I need to host several WordPress sites, and I want to know witch "schema" is better: Schema 1 * 1 server with 2GB RAM and 2 cores ---> PHP, MySQL, Varnish. Schema 2 * 1 server with 1 GB RAM and 1 core ---> PHP, MySQL * 1 server with 1 GB RAM and 1 core ---> Varnish Schema 3? (ideas?) Thanks.

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
4 answers
by Etel Sverdlov
Varnish is an HTTP accelerator and a useful tool for speeding up a server, especially during a times when there is high traffic to a site. It works by redirecting visitors to static pages whenever possible and only drawing on the server itself if there is a need for an active process. This tutorial covers installing wordpress on a LEMP stack (with nginx instead of apache), and then installing varnish.
Several is 20.

Yes, I know all this points, but I want to know what is better:

1 server or
2 servers (for example: 1 for PHP, and other for MySQL and Varnish)?
I recommend having PHP and MySQL on one droplet and having Varnish act as a load balancer (in case you add more app servers later on) on a separate droplet.

If you ever add another app server, you should separate MySQL into its own droplet and have a load balancer (Varnish) droplet, a couple of app servers (php and a webserver), and a database server.
Put MySQL on its own server w/more RAM + memcache: How to Install and Use Memcache on Ubuntu 12.04

If you want to limit maintenance to 2 servers, put everything else on the other droplet. If you're open to deploying more than 2 droplets, check out: How To Set Up Nginx Load Balancing
by Etel Sverdlov
Memcache is a system that works to speed up virtual private servers by caching server information. The program allows you to allocate a specific amount of the server ram toward caching recently queried data for a certain amount of time. This tutorial covers Memcache installation and illustrates how to use memcache with a simple php script.