preme
By:
preme

Is there any detailed tutorial for W3 Total Cache for Nginx

June 25, 2015 1.4k views
WordPress Nginx Caching LEMP

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?

1 comment
  • 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.

1 Answer

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

Have another answer? Share your knowledge.