WordPress Complete LEMP instructions


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, Maurice

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.

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.