Join the community today
Become a Member

Hi I'm a new nginx + pagespeed user

Discussion in 'Introductions' started by Saumya Majumder, Mar 19, 2016.

Tags:
  1. Saumya Majumder

    Saumya Majumder Member

    60
    3
    8
    Mar 16, 2016
    Ratings:
    +12
    Local Time:
    8:29 AM
    1.9.12
    10.0.24
    Hi,
    I'm Saumya Majumder. I mostly work with web programming and recently started using nginx + pagespeed on my vps. It is super awesome and I'm loving it. But still as I'm new in this game, I do have some questions in my mind. I'll be glad if others share their thoughts on my question.

    1. Do you guys suggest to use memcache for a single vps? Well I have asked this question in the Google pagespeed group and some Google guys said that, it will not help much if I'm running it on a single VPS. They said it will be helpful if I have multiple nodes to handle. But I do have opcache on my server.

    2. Did anyone tried using Redis with nginx + nginx_pagespeed configuration? I've tried it but as I turn on redis, pagespeed stopped working on my site.

    3. Did anyone of you guys tried using letsencrypt with nginx + nginx_pagespeed config? What is your experience? Do you suggest it to be installed on a production environment?

    BTW, my server is running Cent OS 7 + PHP 7.0.4 + nginx (latest ver) + nginx_pagespeed (latest ver) + MariaDB (latest)
     
    • Like Like x 1
  2. eva2000

    eva2000 Administrator Staff Member

    28,942
    6,570
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +9,751
    Local Time:
    12:59 PM
    Nginx 1.13.x
    MariaDB 5.5
    welcome @Saumya Majumder to Centmin Mod Community.

    yes that's generally correct

    this very forum uses xenforo redis cache addon + centmin mod nginx with ngx_pagespeed
    should technically be same as other web browser trusted ssl certificates. Haven't had any problems with Centmin Mod's experimental 123.09beta01le4 branch (although haven't tested that branch in a while now). Only thing is Letsencrypt official and 3rd party clients are undergoing constant changes, updates etc so it may change how the client is used to obtain the ssl certificate. That's why my Centmin Mod letsencrypt integration outlined at Letsencrypt Free SSL Certificates is still under testing and not added to stable or 123.09beta01 beta branches yet.

    Threads you might want to participate in ;)
    Threads to read, pages to bookmark and threads to watch/subscribe to get to know Centmin Mod would include:
    Premium Membership
     
    • Like Like x 1
  3. Saumya Majumder

    Saumya Majumder Member

    60
    3
    8
    Mar 16, 2016
    Ratings:
    +12
    Local Time:
    8:29 AM
    1.9.12
    10.0.24
    Thanks @eva2000 for your reply.
    I'm using wp-cli on my vps because my primary domain runs on wordpress and I have a few other sub domain which runs on normal php. Now as I use a managed vps hosting my host has enabled the redis addon and they said that as I'm using wp-cli mainly, the redis is going to work only over wp-cli and other wordpress installations. But it will not work on my normal php running subdomains.

    but as soon as they enabled redis, the pagespeed filters stopped working. Pagespeed was running on php running subdomains, but not on my main domain.

    So, I thought wpcli + pagespeed + redis may be has some issues. Can you confirm if this is truly an issue or not?

    Also thanks a lot for confirming about lets encrypt. I will wait for it to get mature before using it.
     
  4. eva2000

    eva2000 Administrator Staff Member

    28,942
    6,570
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +9,751
    Local Time:
    12:59 PM
    Nginx 1.13.x
    MariaDB 5.5
    There is no technically interaction between wp-cli and ngx_pagespeed and redis caching server or redis wordpress wp plugins usually. Especially, if the other sites are separate subdomain sites. ngx_pagespeed doesn't even support redis as a caching mechanism so won't use or interact with redis as ngx_pagespeed only supports memcached caching.

    To confirm, you are using Centmin Mod LEMP stack ? 123.08stable official branch or 123.09beta01 beta branch ? FYI, This forum is for Centmin Mod LEMP stack built servers
     
  5. ModeltogTossen

    ModeltogTossen I wish I could??

    313
    97
    28
    Dec 20, 2015
    Denmark
    Ratings:
    +143
    Local Time:
    4:59 AM
    1.9.12
    10.0.23
  6. Saumya Majumder

    Saumya Majumder Member

    60
    3
    8
    Mar 16, 2016
    Ratings:
    +12
    Local Time:
    8:29 AM
    1.9.12
    10.0.24
    @eva2000 Yes. I'm using Centmin Mod LEMP stack. I think I'm using the 123.08stable official branch, but again I will ask my host to re-confirm that.

    So, what you are saying is even if I'm using wpcli + pagespeed, I can still use redis without any issue? Any helpful artcile about that? Because everytime I enable redis, the pageseed stopped working for wordpress.
     
    • Like Like x 1
  7. Saumya Majumder

    Saumya Majumder Member

    60
    3
    8
    Mar 16, 2016
    Ratings:
    +12
    Local Time:
    8:29 AM
    1.9.12
    10.0.24
  8. eva2000

    eva2000 Administrator Staff Member

    28,942
    6,570
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +9,751
    Local Time:
    12:59 PM
    Nginx 1.13.x
    MariaDB 5.5
    should be okay, best to post in wordpress forums at Blogs & CMS usage | Centmin Mod Community
     
  9. Saumya Majumder

    Saumya Majumder Member

    60
    3
    8
    Mar 16, 2016
    Ratings:
    +12
    Local Time:
    8:29 AM
    1.9.12
    10.0.24
    @eva2000 Thanks for your reply. Can you please clarify one thing. Are you mentioned Redis cache at plugin level or server level?
    Actually I've tried just now enabling redis at my server level and after that pagespeed stopeed working. So, my host said that you might be referring to redis at plugin level and not at server level.

    Just wanna clear things out.
     
  10. eva2000

    eva2000 Administrator Staff Member

    28,942
    6,570
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +9,751
    Local Time:
    12:59 PM
    Nginx 1.13.x
    MariaDB 5.5
    I mean both, redis cacheing at nginx level + redis object cache at wp plugin work fine for me with ngx_pagespeed. But you generally can disable ngx_pagespeed with that and just use keycdn cache enabler wp plugin + autooptimizer wp plugin for wordpress.

    For xenforo caching, xenforo redis cache at xenforo level not web server
     
  11. Saumya Majumder

    Saumya Majumder Member

    60
    3
    8
    Mar 16, 2016
    Ratings:
    +12
    Local Time:
    8:29 AM
    1.9.12
    10.0.24
    @eva2000 Hi thanks for reply. I'm not looking for installing keycdn cache enabler or auto optimizer.

    I'm just looking for a reason why redis at server level not working with pagespeed even though you are saying it work. Just looking for a thing that what I miss, so that it can be fixed.
     
  12. eva2000

    eva2000 Administrator Staff Member

    28,942
    6,570
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +9,751
    Local Time:
    12:59 PM
    Nginx 1.13.x
    MariaDB 5.5
    could be due to ngx_pagespeed no-cache requirement, so redis at server level may not cache pagespeed optimised resources. But that doesn't break anything, it just doesn't properly cache.
     
  13. Saumya Majumder

    Saumya Majumder Member

    60
    3
    8
    Mar 16, 2016
    Ratings:
    +12
    Local Time:
    8:29 AM
    1.9.12
    10.0.24
    So is there a way around to fix this? May be by disabling extend cache in pagespeed config?
     
  14. eva2000

    eva2000 Administrator Staff Member

    28,942
    6,570
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +9,751
    Local Time:
    12:59 PM
    Nginx 1.13.x
    MariaDB 5.5
    probably need to disable ngx_pagespeed/turn it off
     
  15. Saumya Majumder

    Saumya Majumder Member

    60
    3
    8
    Mar 16, 2016
    Ratings:
    +12
    Local Time:
    8:29 AM
    1.9.12
    10.0.24
    No I wanna keep pagespeed. Thats my first priority and then on top of that I wanna use redis (if thats possible). So, you are saying thats not possible.
     
  16. eva2000

    eva2000 Administrator Staff Member

    28,942
    6,570
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +9,751
    Local Time:
    12:59 PM
    Nginx 1.13.x
    MariaDB 5.5
    yeah might not be but depends on what you're after pagespeed (how fast a page can load) or site scalability via redis caching (how many users you can handle)