Report this

What is the reason for this report?

Have had to reboot server twice in two days

Posted on December 25, 2013

Hi, I set up a WordPress blog on Digital Ocean and I’ve had to reboot the server twice in two days. After setting up the blog, and posting one story successfully, I returned to admire my beautiful work two hours later only to see the message (Error Establishing Database Connection). I then rebooted the server and got it working again, posted another heartbreaking story successfully, and, after waiting a period of time, I returned to admire my first two stories only to see Error Establishing Database Connection again, which I was able to fix by rebooting the server.

I used the tutorial on your website to setup wordpress with Apache and Mysql.

Is this expected behavior? Is there anything I could do to prevent this from happening?



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!

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.

Maybe you have to optimize your web server / sql stuff? I’m doing fine and I’m using WP as well. <br>If I was you I will just set up cron to restart AMP every 2 hours etc.

<b>“Error Establishing Database Connection”</b> <br> <br>That’s a very common problem w/Apache + MySQL residing on the same server. That’s why WordPress.com (the inventors of WordPress) dumped Apache – in favor of Nginx – years ago (not to mention that every premium/dedicated WordPress-hosting company also uses Nginx instead of Apache).

Thanks, can you post a gist explaining how to do the cron job every two hours?

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.