Report this

What is the reason for this report?

What's the best php/mysql/apache configuration for the $10/mo, $20/mo plan droplet?

Posted on February 24, 2015

I’m running a Drupal website on my $10/mo droplet(I’m going to upgrade to $20/mo), but sometimes it crash with 200~250 concurrent users, I was thinking on give more resources to php/mysql/apache processes but don’t know where to start or what configurations are needed.

PD: I have optimized my Drupal website, so I’m just looking for php/mysql/apache.



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.

If you’re seeing services crash under high load there is a good chance your droplet is exhausting it’s available memory. The first thing I would recommend is to set up a swap file.

This should help prevent the crashes as a service would not simply run out of memory when the physical RAM is all in use. Instead of a crash you may see some slowdown in responses since your system would be swapping out memory to disk rather than simply crashing. This is a good stop-gap but you would then want to dig into things to see what you can further optimize or whether you need to upgrade to a larger droplet.

Another thing that may provide some relief to your server is to set up CloudFlare’s reverse proxy service for your domain. This provides a cache between your droplet and your users and can significantly reduce the load on your droplet, especially when you are seeing a lot of visitors.

If your site has a lot of database queries you might consider memcached (if mysql is crashing) I recently had an issue with Joomla running a custom application that was very database intensive and memcached solved things…although I already had a swap partition as well.

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.