By rhombusone
Hi there,
I’ve recently got the $10/m package and I’ve got two sites running off the server. A static jekyll site, and a wordpress website.
I had both running really nicely, however, this morning I found: Error establishing a database connection when visiting the wordpress site. I ran free -m to see how much memory I had left and I could see there was only like 96mb left.
Can anyone help me figure out how it’d suddenly stop working and drain all the memory, and why, even after a restart I still can’t access the site. What can I do to fix and avoid this problem in the future. Do you recommend a higher package to run a wordpress website?
Thanks in advance
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!
You need to add swap: <a href=“https://digitalocean.com/community/articles/how-to-add-swap-on-ubuntu-12-04”>How To Add Swap on Ubuntu 12.04</a>. WordPress is also best optimized with Nginx and caching. So, it’s advisable to check out (i) memcache; (ii) APC; (iii) varnish; and (iv) the W3 Total Cache plugin – in addition to switching to Nginx.
@Ibranhim, did you manage to fix it? we got the same problem here with an wordpress installation… :/
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.