Learn about Centmin Mod LEMP Stack today
Become a Member

Nginx PageSpeed Following guide to install ngx_pagespeed and want to get to console

Discussion in 'Install & Upgrades or Pre-Install Questions' started by EckyBrazzz, Jul 13, 2019 at 12:46 PM.

  1. EckyBrazzz

    EckyBrazzz Active Member

    462
    94
    28
    Mar 28, 2018
    Brazil
    Ratings:
    +175
    Local Time:
    10:12 AM
    1.17.x
    10.3.x
    I followed by instructions the pages to use ngx_pagespeed. Works fine until I want to go to domain/pagespeed_console

    There I get a warnging
    Code (Text):
    pagespeed Statistics on;
    pagespeed StatisticsLogging on;
    pagespeed LogDir /var/log/pagespeed;
    pagespeed AdminPath /pagespeed_admin;
    
    location ~ ^/pagespeed_admin {
      allow 127.0.0.1;
      deny all;
    }
    

     
  2. eva2000

    eva2000 Administrator Staff Member

    40,625
    9,016
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +13,883
    Local Time:
    11:12 PM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    which instructions did you follow ?
    did you add your ISP and server IPs to allow listings ?
     
  3. EckyBrazzz

    EckyBrazzz Active Member

    462
    94
    28
    Mar 28, 2018
    Brazil
    Ratings:
    +175
    Local Time:
    10:12 AM
    1.17.x
    10.3.x
    I followed the instuction you normaly give. Nginx PageSpeed - CentminMod.com LEMP Nginx web stack for CentOS

    Look at all settings again and missed the first step to comment out
    Code (Text):
    #######################################################
    # Set it to 0 if you want to disable this feature.
    # pagespeed MessageBufferSize 100000;
    

    and also, mistakenly, I added an extra space after my ISP IP. Corrected these 2 mistakes.
    Entering into the domain.com/pagespeed_global_admin/console or domain/pagespeed_console still gives me the same error. Most of the other pages work in domain.com/pagespeed_global_admin
    Noticed some errors in the
    Code (Text):
    [Sat, 13 Jul 2019 10:12:17 GMT] [Info] [21222] Could not rewrite resource in-place because URL is not in cache: http://localhost/nginx_status
    [Sat, 13 Jul 2019 10:12:17 GMT] [Info] [21221] Could not rewrite resource in-place because URL is not in cache: http://localhost/phpstatus
    

    and even purging the complete cache is not possible, but it is enabled in the pagespeed.conf.
    Code (Text):
    pagespeed on;
    
    #######################################################
    # Purge nginx pagespeed cache
    # https://developers.google.com/speed/pagespeed/module/system#flush_cache
    #######################################################
    pagespeed EnableCachePurge on;
    pagespeed PurgeMethod PURGE;
    

    But the page gives me an error
    ngx_pagespeed was one of the most important things for me to start with CMM, most other panels don't allow that you recompile nginx. I wanted to use the best parts of CMM and of ngx_pagespeed (mixed) to get my perfect server.

    FYI: I follow this for many years angristan/nginx-autoinstall Get every conversation because I subscribed to that thread. Maybe there are some good parts to use in CMM. And yes, I will keep following this as it was a black day in my history and lost many accounts when they introduced 2FA, also on GitHub, device broken and no way to get my old GitHub account and other accounts back.:banghead::banghead::muted:
     
    style="display:inline-block;min-width:400px;max-width:970px;width:95%;height:90px" data-ad-client="ca-pub-6669518204467592" data-ad-slot="4024536743" data-ad-format="auto">
  4. eva2000

    eva2000 Administrator Staff Member

    40,625
    9,016
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +13,883
    Local Time:
    11:12 PM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    i believe that is the url you access with now as it's the url i have bookmarked in my browsers so guess need to update the guide on page - haven't used ngx_pagespeed in a while since moving to Cloudflare :)
     
  5. EckyBrazzz

    EckyBrazzz Active Member

    462
    94
    28
    Mar 28, 2018
    Brazil
    Ratings:
    +175
    Local Time:
    10:12 AM
    1.17.x
    10.3.x
    @eva2000 thanks for your response but it does not resolve my issue
    Project_CMM_7275.png Project_CMM_7274.png
     
  6. eva2000

    eva2000 Administrator Staff Member

    40,625
    9,016
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +13,883
    Local Time:
    11:12 PM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    probably can ignore that as console = pagespeed_global_online for intended purposes IIRC