WordPress Complete LEMP instructions

Posted February 28, 2015 2.5k views


I have a WordPress site that gets over 2 million pageviews per month. Traffic is approx 3TB/month and the WP theme + plugins use approx 30MB frontend. The theme is built on the Genesis Framework.

Now we want to move the site here and install it on a LEMP stack.

Are there complete step by step instructions available for a LEMP stack completely optimized for WordPress?

I already have followed the basic instructions from Justin Ellingwood (, here on DO, which look very good.

However, I guess I need some more advanced instructions for further finetuning and optimizing everything for WordPress.

Things we’re thinking of are

With the instructions we want to create a secure, high performing server that is fully optimized for WordPress.

Any help would be highly appreciated.

Thank you,

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.

Submit an Answer
2 answers

First off the bat, replace PHP with HHVM (up to 9x faster using less resources) and sign up for CloudFlare if you havn’t already (you may have some issues if you want to use your own SSL cert with the free plan).

Check out MariaDB as a replacement to MySQL which is “supposedly” faster but different comparisons vary on their results.

HHVM is completely new to me. I’ve read something about it and I think it’s a good idea to investigate that further. No idea how to implement it, yet… but i’ll keep reading.. ;-) Thanks for the suggestion.