What is the optimal server software for WordPress, XenForo (Forum), Moodle, and MediaWiki?

  • Posted August 31, 2013


I’m just learning how to optimize my droplet. Please feel free to provide advice, links, etc.

My droplet operates but varnishstat shows a hitrate average of zero. Cloudflare is showing over 6K+ unique visitors in the past four days. Top shows up to 50% or greater CPU usage every 1/2 hour. My reverse proxy is not working; that is, it shows in XenForo … but I can use the WordPress plugin login attempts and click reverse proxy and get the correct IP. When the droplet is booting there is an red fail - but I don’t know how to read what is failing.

After optimizing mysql using then the site pages load very quickly BUT after some time then the pages served are blank. A restart of apache2 fixes this temporarily.

These are installed.

Apache APC memcached mysql Nginx PHPMyAdmin Varnish

How do I check if varnish is even installed properly since varnishstat is showing zero? Should varnish be removed? Do you believe this is the culprit of the blank pages?


Submit an 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.

<b>“… you’ll find some of your competition will offer “deployment scripts” as part of their (otherwise pretty similar) offerings.”</b> <br> <br>Like who? Why settle for deployment scripts? Why not use a configuration-management tool like Puppet? <i>See</i> <a href=“”>How To Install Puppet on a DigitalOcean VPS</a>.

I think the original question is a good one - what’s the best practice setup for a particular objective? and…far be it from me to tell you how to run your business…but, you’ll find some of your competition will offer “deployment scripts” as part of their (otherwise pretty similar) offerings. if it’s $10/month or whatever to host, but you spend 4 hours setting up (whereas on another host a script or two does most of this work) then the price advantage is gone. <br> <br>anyway, yes, I’m asking the same questions…what are the best practices for a particular objective, e.g. wordpress with mail, ftp, etc. you do have the answers to these questions but…if you looked at your customer base you’d probably find 60% want to install wordpress or joomla with mail and ftp…so a single 1,2,3 best practice instruction set (and or some scripts) would really put DO out ahead the very best solutions.

Hi <br> <br>Thanks for hanging in there. I’m figuring out that APC and Varnish were not set properly so they now work. Varnishstat shows hits and APC status page shows 100% hits. Unfortunately … there is a spike every 1hour which causes huge problem. <br> <br>I’m trying to install server-status module right now so that I can see what is happening. Nothing is showing in the error logs. I’ve been watching with top and it is definitely from www-data. Unfortunately browser is redirected to root whenever I go <br> <br>I think this is due to the reverse proxy not being set properly … dunno because I’m still learning. But the IP I am accessing from is definitely set in the mod properly. <br> <br>Another possibility for the spikes is garbage collection or reports. I’m seeing this in crontab. <br> <br>crontab shows: <br>17 * * * * root cd / && run-parts --report /etc/cron.hourly <br>25 6 * * * root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.daily ) <br>47 6 * * 7 root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.weekly ) <br>52 6 1 * * root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.monthly )

8GB should be enough. Seems like Varnish was the issue. <br> <br>Is it working well now?

Varnish was not installed properly. Used sample VCL from <br> <br>Now varnishstat shows <br> <br>Hitrate ratio: 10 100 108 <br>Hitrate avg: 0.2350 0.2545 0.2550 <br>

Thanks for the reply. I have the 4 core, 8 GB. After trying a bunch of different configurations, and messing things up, I’m recreating the droplet right now from an image but stepping it down to a 2 cores, 4 GB. <br> <br>Creating the droplet is taking a long time. Anyway - back to my questions - should varnish even be installed? It doesn’t seem to be working.

What size is your droplet? I have a feeling programs are running out of memory and crashing. Check the error logs – do you see anything?