Best Practice installing Wordpress on LEMP

Posted June 3, 2014 3.8k views
Hi! I am running a wordpress Blog and I used the tutorials here to setup my server, since I don't have a lot of experience with this. By going through other tutorials, I found out that there is an "official" set of parameters/configurations related to it in the Wordpress Codex. Is it okay to use it? Because some of the settings are different than the ones presented on the DO tutorials.

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
3 answers
The tutorial here on DigitalOcean is a barebones setup that should get you up and running quickly. The Wordpress Codex docs have some advanced configurations. Some of those are focused on multi-site setups and others are regarding specific plugins. They should be fine you use, but if you have questions about any specific setting feel free to ask!
Cool, thanks!

By comparing both tutorials/files, the first differences are related to the following parameters:

These two are not used according to the WP Codex:
tcp_nopush on;
tcp_nodelay on;

The next ones have different values:
worker_connections - 1024 instead of 768.
keepalive_timeout - 3 instead of 65.

The setting bellow is included on Nginx installation but it's not mentioned in WP Codex:
types_hash_max_size 2048;

So, should I include/exclude them all? The parameters that are off on the WP Codex do make a difference on performance?

Those all seem like sane settings to me. If you want to understand them a bit better, there's an article that goes over what some of these setting mean:

You can also look at the Nginx documentation:
by Alex Kavon
Nginx is a fast and lightweight alternative to the sometimes overbearing Apache 2. However, Nginx just like any kind of server or software must be tuned to help attain optimal performance. Here's how to optimize Nginx configuration.