3

There are numerous tutorials/articles(some even with benchmarks) on how to create an optimized stack to run Wordpress(or any dynamic site, for that matter). The site doesn't get frequently updated(best case scenario one article per week), so a long cache retention period would be fine. Oh, and i plan on running that on a dedicated server(or maybe a VPS, not sure yet, depends on cost and performance), so i will have full control of the system.

But i've failed to find one with the stack that seems(at least to me) to be ideal for such a scenario: Linux(probably Debian), Nginx - on steroids, with pagespeed and fastcgi, MariaDB, PHP - on steroids, with HHVM and maybe something to help with caching(no idea if there won'be conflicts), like PHP-FPM or PHP-APC, Varnish.

So, in response to criticism, i have edited my main question to: What would be the optimal stack? Is pagespeed as good as it sounds? And what about HHVM? Does nginx's fastcgi work with PHP-FPM/PHP-APC?

closed as too broad by EEAA, Tero Kilkanen, Michael Hampton Jul 9 '15 at 16:26

Please edit the question to limit it to a specific problem with enough detail to identify an adequate answer. Avoid asking multiple distinct questions at once. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.

  • PHP-FPM with Nginx proxy_pass and proxy_cache is well-known robust and fast configuration – Anatoly Jul 12 '15 at 9:21
  • Yes, i am aware of that, but wouldn't it be faster coupled with HHVM and mod_pagespeed(the essence of my question, what would be the best and fastest combination)? – Adrian Todorov Jul 15 '15 at 8:49
  • it is, HHVM is probably the best option from performance point of view nowadays. Nevertheless it depends on read:write ratio. In case of semi-static web site environment (say, read:write could be 1000:1) it is difficult to measure the impact of backend. By the same reason stratus site generators are so popular for this kind of purpose. – Anatoly Jul 15 '15 at 8:59
  • Som if i manage to use cache to mostly statify my site(as i said, there aren't a lot of frequent updates), HHVM wouldn't make that much of a difference? Sooo a mod_pagespeed to optimise the HTML, nging and PHP-FPM to cache the optimised pages would be enough, no need to trouble myself with HHVM and Varnish? – Adrian Todorov Jul 15 '15 at 9:21
  • Varnish doesn't make sense, you can use Nginx caching for the same purpose. In case of different ratio read:write it probably makes a big sense to invest a time in HHVM – Anatoly Jul 15 '15 at 9:47