Question

moving my phpBB site to digitalocean and scaling it out !

  • Posted on June 19, 2014
  • medya.ghAsked by medya.gh

Hi I have a vps on another company, I have a phpBB forum on it, it goes down frequently because of the load on the server, I am thinking about moving my site to digital ocean, I would like to know what is the best practice to scale it out ?

do I need a loadbalancer ? or do you recommend having the mysql server on a seprate server than the php server ?

and should I still use apache or ngnix ?


Submit an answer

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!

Sign In or Sign Up to Answer

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.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

There are a lot of ways you can take this, and a lot depends on the kind of traffic that you expect to receive. What are the specs on the VPS you’ll be migrating from?

I’m partial to Nginx, but there’s no reason not to use Apache if you are more comfortable with it. While Nginx does use slightly less resources, Apache is probably not your real problem. It’s much more likely to be MySql.

The first thing is to make sure you are on a server with enough RAM. For example, running an entire website on a 1GB droplet will very likely be more performant than running the front end on a 512MB droplet and the database on a separate 512MB droplet, especially if the problem is MySql’s memory usage.

Once you get to a larger scale, running the database on a separate server may begin to make sense. Check out this article:

https://www.digitalocean.com/community/tutorials/how-to-set-up-a-remote-database-to-optimize-site-performance-with-mysql

It uses Wordpress as an example, but will mostly apply to phpBB as well.

Let us know how it goes, and feel free to ask questions if you hit on a specific problem.