Question

Is there any detailed tutorial for W3 Total Cache for Nginx

Currently, i am struggling to install W3 Total Cache on LEMP stack.

I found this one is very helpful https://www.digitalocean.com/community/tutorials/how-to-set-up-wordpress-with-w3-total-cache-on-lighttpd-server

But there is no tutorial like the above one for W3 Total Cache on Nginx.

Can someone guide me to fix the basic issues (conf file, file permissions etc) to make the cache (also minify, CDN) working?

Show comments

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.

This question was answered by @mdsimoni:

It took a while for me to get mine running. I’m still not sure I did it 100% correctly. But for what it’s worth: In my notes, I used the following sites. http://john-dugan.com/setup-w3tc-nginx/ http://elivz.com/blog/single/wordpress_with_w3tc_on_nginx/ http://danielmiessler.com/study/web-performance/ http://dak1n1.com/blog/12-nginx-performance-tuning

I also use memcached - makes a big difference. run memcached on 127.0.0.1 unless you install it on a separate server. I also use php 55 with with Zend OPcache. According to the W3TC dashboard: PHP version: Not supported: 5.5.x. Supported versions are 5.2.x, 5.3.x, 5.4.x. But I am not having any problems. Of course, that may be why I have Object cache turned off. Still for my needs, the performance is more then adequate. these are the main settings i have set for W3TC you’ll find other settings for nginx on other blogs: Since you will probably be using a different php version your settings undoubtedly will be different from mine. page cache - enabled - disk: enhanced miify - enabled - auto - disk - default jsmin default database cache - enabled - memcached object cache - not enabled browser cache - enabled CDN - not enabled reverse proxy - not enabled

Quite frankly, All that is just the tip of the iceberg, you have a lot of reading to do. good luck.

View the original comment