Speedup WordPress with Nginx, HHVM, fastcgi-cache and W3 total Cache on Debian 8

After installing a wordpress for personal reasons, i had to suffer from an awefully slow loading time.
Even the default Theme with no content took literally ages to load.
So what can we do to enhance the speed of WordPress without using a CDN – we can also do this for images etc. pp later on.

This are my steps:

  • Installing
    • nginx
    • hhvm
    • wordpress
  • Adding W3 total cache with nginx
  • Adding nginx fast_cgi cache
  • Tweaking my theme and WordPress
  • Adding some more headers
  • Conclusion
  • Files

 

Installing

I’m asuming you have installed a fresh minimal Debian setup.
First we have to add dependencies to our sources.lst

nano /etc/apt/sources.list

(more…)