Learn about Centmin Mod LEMP Stack today
Become a Member

Can't recompile nginx

Discussion in 'Nginx, PHP-FPM & MariaDB MySQL' started by Jon Snow, Aug 31, 2017.

  1. Jon Snow

    Jon Snow Active Member

    191
    27
    28
    Jun 30, 2017
    Ratings:
    +32
    Local Time:
    6:10 PM
    Nginx 1.13.4
    MariaDB 10.1.26
    Last edited: Aug 31, 2017
  2. Jon Snow

    Jon Snow Active Member

    191
    27
    28
    Jun 30, 2017
    Ratings:
    +32
    Local Time:
    6:10 PM
    Nginx 1.13.4
    MariaDB 10.1.26
  3. Jon Snow

    Jon Snow Active Member

    191
    27
    28
    Jun 30, 2017
    Ratings:
    +32
    Local Time:
    6:10 PM
    Nginx 1.13.4
    MariaDB 10.1.26
    Does this mean pagespeed has been installed?

    Running the following command returns :
    Code (Text):
    pscontrol on
    systemctl restart nginx.service

    Restarting nginx returns :
    Code (Text):
    service nginx restart
    Restarting nginx (via systemctl):                          [  OK  ]

    I've already uncommented the three lines for my config file :
    Code (Text):
    # ngx_pagespeed & ngx_pagespeed handler
     include /usr/local/nginx/conf/pagespeed.conf;
     include /usr/local/nginx/conf/pagespeedhandler.conf;
     include /usr/local/nginx/conf/pagespeedstatslog.conf;
     
  4. Jon Snow

    Jon Snow Active Member

    191
    27
    28
    Jun 30, 2017
    Ratings:
    +32
    Local Time:
    6:10 PM
    Nginx 1.13.4
    MariaDB 10.1.26
  5. eva2000

    eva2000 Administrator Staff Member

    30,631
    6,862
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,308
    Local Time:
    8:10 AM
    Nginx 1.13.x
    MariaDB 5.5
    i only see in that guide at Nginx PageSpeed - CentminMod.com LEMP Nginx web stack for CentOS
    Code (Text):
    NGXDYNAMIC_NGXPAGESPEED='y'
    NGINX_PAGESPEED='y'
    

    don't need to set as they are old let centmin.sh define the latest instead
    Code (Text):
    NGXPGSPEED_VER='1.11.33.4'
    NGINX_PAGESPEEDPSOL_VER='1.11.33.4'
    
     
  6. Jon Snow

    Jon Snow Active Member

    191
    27
    28
    Jun 30, 2017
    Ratings:
    +32
    Local Time:
    6:10 PM
    Nginx 1.13.4
    MariaDB 10.1.26
    This part :
     
  7. eva2000

    eva2000 Administrator Staff Member

    30,631
    6,862
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,308
    Local Time:
    8:10 AM
    Nginx 1.13.x
    MariaDB 5.5
    run
    Code (Text):
    nginx -V
    

    to see if ngx_pagespeed is listed
     
  8. eva2000

    eva2000 Administrator Staff Member

    30,631
    6,862
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,308
    Local Time:
    8:10 AM
    Nginx 1.13.x
    MariaDB 5.5
    that is example explanation of what variables do not what to set - you'd only want to set those 3 variables if there's a new ngx_pagespeed version released and centmin.sh hasn't been updated with new version yet
     
  9. Jon Snow

    Jon Snow Active Member

    191
    27
    28
    Jun 30, 2017
    Ratings:
    +32
    Local Time:
    6:10 PM
    Nginx 1.13.4
    MariaDB 10.1.26
    Ah. I was using those instructions to set this up at first :facepalm:

    Seems like it's installed :

    --add-dynamic-module=../ngx_pagespeed-1.12.34.2-stable
     
    • Like Like x 1
  10. eva2000

    eva2000 Administrator Staff Member

    30,631
    6,862
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,308
    Local Time:
    8:10 AM
    Nginx 1.13.x
    MariaDB 5.5
    • Like Like x 1