Join the community today
Become a Member

Wordpress Best configuration?

Discussion in 'Blogs & CMS usage' started by Everlind, Jun 9, 2014.

  1. Everlind

    Everlind New Member

    15
    4
    3
    Jun 3, 2014
    Ratings:
    +4
    Local Time:
    12:28 AM
    1.7.1
    /
    Hello,

    I read many configuration for Nginx / WordPress on your portal, they seems really interesting. According to you, what is the best configuration to boost WordPress?

    Actually, on my VPS I am using Nginx + php-fpm, fastcgi_cache + ngx_pagespeed + Redis Cache = performance very good. I have 93/100 as pagespeed score and on Pingdoom Tools, my blog of 1MB load about in 500 - 600 ms.


    Howeaver, I would like test a new configuration for another my WP blog; what configuration do you suggest me? W3 Total Cache + Memcached? Batcache? WP Super Cache?

    Thank you !
     
  2. eva2000

    eva2000 Administrator Staff Member

    53,209
    12,113
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,649
    Local Time:
    8:28 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    Last edited: Jun 9, 2014
  3. Everlind

    Everlind New Member

    15
    4
    3
    Jun 3, 2014
    Ratings:
    +4
    Local Time:
    12:28 AM
    1.7.1
    /
    Hello George,

    thank you for your reply! And regard Redis Cache, did you ever tested it? What is your opinion?

    Another things, do you have e favourite configuration for Ngx Pagespeed? What are the best filters for you?
     
  4. rdan

    rdan Well-Known Member

    5,439
    1,397
    113
    May 25, 2014
    Ratings:
    +2,186
    Local Time:
    6:28 AM
    Mainline
    10.2
  5. eva2000

    eva2000 Administrator Staff Member

    53,209
    12,113
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,649
    Local Time:
    8:28 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    for performance

    fastcgi_cache > redis > wp super cache

    and what @RoldanLT posted for the forums, but you have to have a specific one tailored for wordpress depending on wordpress themes you use etc
     
  6. Everlind

    Everlind New Member

    15
    4
    3
    Jun 3, 2014
    Ratings:
    +4
    Local Time:
    12:28 AM
    1.7.1
    /
    Thank you George,

    so according you, is unuseful use fastcgi cache and Redis Cache toghether? I read many user advice also to use Nginx + fastcgi_cache + W3 Total Cache with Memcached, only with Database Cache and Object Cache options enabled.

    At this point, if there aren't improvements as performance, is good only use Nginx + fastcgi_cache + ngx_pagespeed?
     
  7. eva2000

    eva2000 Administrator Staff Member

    53,209
    12,113
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,649
    Local Time:
    8:28 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
  8. Everlind

    Everlind New Member

    15
    4
    3
    Jun 3, 2014
    Ratings:
    +4
    Local Time:
    12:28 AM
    1.7.1
    /
    So, same thing also for Memcached?

    I believed that fastcgi cache served only php files, so for database cache was always useful use a software like Memcached.

    George please, do you have some advice regard the best pagespeed's configuration for Wordpress?

    I saw who you use settings more particular in pagespeed conf for Xenforo, buy they are not very easy to set.

    Thank you!
     
  9. eva2000

    eva2000 Administrator Staff Member

    53,209
    12,113
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,649
    Local Time:
    8:28 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    depends on how memcached is being used if it's straight nginx memcached then no need as fastcgi_cache does that for PHP files only. If memcached is for database or object cache then you can use it in conjunction with fastcgi_cache.

    As to Wordpress and Nginx pagespeed, it all depends on Wordpress theme and it's elements. Best advice learn how to troubleshot Nginx pagespeed https://community.centminmod.com/threads/nginx-pagespeed-troubleshooting-steps.32/ with examples at https://community.centminmod.com/threads/nginx-pagespeed-troubleshooting-issues-and-errors.106/ and https://community.centminmod.com/threads/ngx_pagespeed-advertising-conflicts.186/ so you can resolve issues and exclude Wordpress elements which have conflicts or cause issues.
     
  10. Everlind

    Everlind New Member

    15
    4
    3
    Jun 3, 2014
    Ratings:
    +4
    Local Time:
    12:28 AM
    1.7.1
    /
  11. Peter Downey

    Peter Downey Member

    64
    24
    8
    May 28, 2014
    Ratings:
    +27
    Local Time:
    6:28 PM
    This was a very insightful thread for me.

    Right now I'm set up with the Super Cache configuration listed on the site for 3 wordpress installations on a vps with 1gb ram. I'm considering moving to a higher performance vps with 3gb ram this week, and I'm thinking of moving to the fastcgi_cache config.

    I noticed some of the Nginx + wordpress configurations use pagespeed while others use autoptimize. Is there a performance reason for this?

    With the fastcgi configuration, it skips using Super Cache or W3 Total Cache entirely. Apart from minifying code, would the caching plugin increase performance further or is that something pagespeed and fastcgi_cache handles already with this setup?
     
    Last edited: Jul 9, 2014
  12. eva2000

    eva2000 Administrator Staff Member

    53,209
    12,113
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,649
    Local Time:
    8:28 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    link to wp super cache guide thread at https://community.centminmod.com/threads/wordpress-super-cache-plugin-nginx-install-guide.83/ as link to http://wp1.centmincache.com/1 which explains autoptimize vs pagespeed

     
  13. Daniel J. Lewis

    Daniel J. Lewis Award-winning podcaster and consultant

    117
    15
    18
    Oct 20, 2014
    Ratings:
    +33
    Local Time:
    6:28 PM
    1.8.0
    5.6
    Do all of the caching methods hold up equally as well for WordPress Multisite with a highly active bbPress forum and lots of simultaneous visitors? Or is one particularly best for my needs?

    I had been testing HHVM, but it's not stable enough for my use. I was, however, amazed at its extremely low RAM usage. What used 100+ MB on Synthesis (Nginx, PHP-FPM, MySQL) was using only 10 or 20 MB with HHVM (plus Nginx and MariaDB 10.1).

    I tried the WP Super Cache method on a test website and ran it through webpagetest.org. I was pleased with the results. I also tested with loadimpact.com and couldn't see any kind of RAM usage spike while running top.

    EDIT: By the way, the HHVM is my live site running on Vultr 2 GB Ubuntu 14.04, the test site is Vultr 1 GB CentOS 6.5.
     
  14. eva2000

    eva2000 Administrator Staff Member

    53,209
    12,113
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,649
    Local Time:
    8:28 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    maybe other wordpress multi site users can speak to that performance compared to single wordpress sites as I never used multi site wordpress myself so can't speak with any experience

    WP Super Cache is though the least troublesome setup you can have :) Fastcgi_cache is faster than WP Super Cache but can be problematic
     
  15. Daniel J. Lewis

    Daniel J. Lewis Award-winning podcaster and consultant

    117
    15
    18
    Oct 20, 2014
    Ratings:
    +33
    Local Time:
    6:28 PM
    1.8.0
    5.6
    Problematic in what way? Crashes? Caching errors? 404's on post publish? Or just more tedious to setup?
     
  16. eva2000

    eva2000 Administrator Staff Member

    53,209
    12,113
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,649
    Local Time:
    8:28 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    bit of both as outlined at Nginx Wordpress Configuration Examples for rewrite rules & FastCGI Caching with possible 404 errors after previewing posts - there's probably a work around for it but haven't found it myself
     
  17. Daniel J. Lewis

    Daniel J. Lewis Award-winning podcaster and consultant

    117
    15
    18
    Oct 20, 2014
    Ratings:
    +33
    Local Time:
    6:28 PM
    1.8.0
    5.6
    I'll try it, as long as I'm still playing with a rebuilt server.

    I think Synthesis (by Copyblogger) uses Nginx with fastcgi for server-side caching. When they do, I can't save drafts or publish posts without seeing "404" errors. I also frequently lose my connection while editing pages and posts.

    I'll report back with my findings, and I'll be trying Peter Downey's approach with my subdomain Multisite.
     
  18. dett

    dett New Member

    3
    0
    1
    Nov 24, 2014
    Ratings:
    +0
    Local Time:
    8:28 AM
    1.6.2
    5.5
    hi, Daniel, how did u get the wordpress multisite subdomain setup works with Peter Downey's approach work?
    can u share tq
     
  19. Daniel J. Lewis

    Daniel J. Lewis Award-winning podcaster and consultant

    117
    15
    18
    Oct 20, 2014
    Ratings:
    +33
    Local Time:
    6:28 PM
    1.8.0
    5.6
    Sorry for never replying.

    I did get this working. I think I primarily followed the main instructions and adapted this a little. Unfortunately, I don't remember all of the details. Are you having a particular problem?
     
  20. dett

    dett New Member

    3
    0
    1
    Nov 24, 2014
    Ratings:
    +0
    Local Time:
    8:28 AM
    1.6.2
    5.5
    thank for the reply, yep,im having a white / blank page problem,
    will try to solve and update here tq