SQL Crash

December 10, 2013 1.8k views
Hi, we are using our VPS to host WordPress Themes (we are selling templates). The problem is that sometimes we get an SQL crash and the themes stop working just like that... we need to restart SQL to fix that, what may cause this? Is there any way to auto restart it?
2 Answers
"... what may cause this?"

Not enough memory...

1.) Dump Apache, for Nginx (Nginx is lighweight). See How To Install Wordpress, Nginx, PHP, and Varnish on Ubuntu 12.04;

2.) Add swap. See How To Add Swap on Ubuntu 12.04;

3.) Add MySQL caching. See How To Install and Use Memcache on Ubuntu 12.04;

4.) Create a CDN for static files.

5.) Install the W3 Total Cache plugin.
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.
you should upgrade more RAM or try this:
Have another answer? Share your knowledge.