Report this

What is the reason for this report?

Best Practice installing Wordpress on LEMP

Posted on June 3, 2014

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.

http://codex.wordpress.org/Nginx



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!

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.

Cool, thanks! <br> <br>By comparing both tutorials/files, the first differences are related to the following parameters: <br> <br>These two are not used according to the WP Codex: <br>tcp_nopush on; <br>tcp_nodelay on; <br> <br>The next ones have different values: <br>worker_connections - 1024 instead of 768. <br>keepalive_timeout - 3 instead of 65. <br> <br>The setting bellow is included on Nginx installation but it’s not mentioned in WP Codex: <br>types_hash_max_size 2048; <br> <br>So, should I include/exclude them all? The parameters that are off on the WP Codex do make a difference on performance? <br> <br>

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!

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: <br> <br>https://www.digitalocean.com/community/articles/how-to-optimize-nginx-configuration <br> <br>You can also look at the Nginx documentation: <br> <br>http://nginx.org/en/docs/dirindex.html

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.