Wordpress database error (again and again)

Posted April 20, 2014 2.5k views
I used quick wordpress install (Application > Wordpress on Ubuntu 13.10) Then I used Wp Super cache plugin for caching. When I get huge traffic I got "database error". Then I researched and found swapping. ( After swapped, everything was fine but today, when I get more traffic again I got "database error" again. I dont know what will I need to do. Can anyone help me?
1 comment

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
1 answer
How big is your droplet? 512MB is usually not enough for a moderately active site running Apache (which is what the 1-click image uses).

You can either upgrade your droplet, or dump Apache in favor of nginx: How To Install Wordpress, Nginx, PHP, and Varnish on Ubuntu 12.04.
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.