Join the community today
Register Now

Nginx PageSpeed Cannot update?

Discussion in 'Nginx, PHP-FPM & MariaDB MySQL' started by jellday, Feb 10, 2016.

  1. jellday

    jellday New Member

    26
    2
    3
    May 31, 2014
    Ratings:
    +3
    Local Time:
    10:33 AM
    1.4.6
    5.5
    Just read Nginx PageSpeed - ngx_pagespeed 1.9.32.13 beta security update ! | Centmin Mod Community
    So edited centmin.sh
    grep 1.9.32 centmin.sh showed:
    NGXPGSPEED_VER='1.9.32.13-beta'
    NGINX_PAGESPEEDPSOL_VER='1.9.32.13'

    then run centmin.sh menu option 4 to recompile Nginx.

    But nginx -V gave me:
    Code:
    nginx version: nginx/1.8.1
    built by gcc 4.4.7 20120313 (Red Hat 4.4.7-16) (GCC)
    built with OpenSSL 1.0.2 22 Jan 2015
    TLS SNI support enabled
    configure arguments: --sbin-path=/usr/local/sbin/nginx --conf-path=/usr/local/nginx/conf/nginx.conf --with-http_ssl_module --with-http_gzip_static_module --with-http_stub_status_module --with-http_sub_module --with-http_addition_module --with-http_image_filter_module --with-http_secure_link_module --with-http_flv_module --with-http_realip_module --with-openssl-opt=enable-tlsext --add-module=../ngx-fancyindex-ngx-fancyindex --add-module=../ngx_cache_purge-2.3 --add-module=../headers-more-nginx-module-0.25 --add-module=../nginx-accesskey-2.0.3 --add-module=../nginx-http-concat-master --with-http_dav_module --add-module=../nginx-dav-ext-module-0.0.3 --with-openssl=../openssl-1.0.2 --with-http_spdy_module --add-module=../ngx_pagespeed-release-1.9.32.3-beta
    Also, if type:
    pscontrol on
    nginx: [warn] nginx was built without PCRE JIT support in /usr/local/nginx/conf/nginx.conf:11
    nginx: the configuration file /usr/local/nginx/conf/nginx.conf syntax is ok
    nginx: configuration file /usr/local/nginx/conf/nginx.conf test is successful
    Stopping nginx: [ OK ]
    Starting nginx: nginx: [warn] nginx was built without PCRE JIT support in /usr/local/nginx/conf/nginx.conf:11

    But the configuration in the centmin.sh is "Y":
    NGINX_PCREJIT=y # Nginx configured with pcre & pcre-jit support

    Completely lost
     
  2. eva2000

    eva2000 Administrator Staff Member

    30,968
    6,919
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,422
    Local Time:
    12:33 PM
    Nginx 1.13.x
    MariaDB 5.5
    seems you have very old centmin mod version ? when was centmin mod installed ?

    i see nginx/1.8.1

    openssl is also very old too as latest is openssl 1.0.2f Security - OpenSSL 1.0.2f & Updating Centmin Mod Nginx SSL Support | Centmin Mod Community

    there's been 100s of updates in centmin mod 123.08stable and higher since so best to update centmin mod code before updating versions

    Upgrading Centmin Mod Code to Latest Version



    Upgrading Centmin Mod involves 2 parts.
    1. Upgrading the actual Centmin Mod code outlined at Upgrade Centmin Mod - CentminMod.com LEMP Nginx web stack for CentOS This is heart of Centmin Mod where the code is the engine that runs centmin.sh shell based menu and all the automation you're accustomed to.
    2. Upgrade software that Centmin Mod installed or manages. For this part following outline at Upgrade - How to upgrade Centmin Mod | Centmin Mod Community
    So essentially, you can upgrade from .07 to .08 in place, but not everything is upgraded as some things like server initial environment setup isn't changed i.e. how swap, tmp setup and allocation are created etc. The main parts from part 2 above are what in place upgrades do i.e. Nginx and PHP-FPM compilation and config/settings parameters and MariaDB version from 5.5 to 10.0.x. If you want the full environment changed including tmp and swap setup to .08's configuration, then you would need a fresh OS install and fresh .08 initial install. You can think of it like upgrading Windows 7 to Windows 8. An in place upgrade will upgrade code but won't change your computer environment from when you installed Windows 7 i.e. disk configuration and partition sizes won't change from when you initially installed Windows 7. Only way to change that would be fresh Windows 8 install.
     
  3. jellday

    jellday New Member

    26
    2
    3
    May 31, 2014
    Ratings:
    +3
    Local Time:
    10:33 AM
    1.4.6
    5.5
    Now I get (updated the cenminmod code to 08stable using the method above)
    nginx -V
    nginx version: nginx/1.9.11
    built by clang 3.4.2 (tags/RELEASE_34/dot2-final)
    built with LibreSSL 2.2.6
    TLS SNI support enabled
    configure arguments: --with-ld-opt='-lrt -ljemalloc -Wl,-z,relro' --with-cc-opt='-m32 -mtune=generic -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wno-sign-compare -Wno-string-plus-int -Wno-deprecated-declarations -Wno-unused-parameter -Wno-unused-const-variable -Wno-conditional-uninitialized -Wno-mismatched-tags -Wno-c++11-extensions -Wno-sometimes-uninitialized -Wno-parentheses-equality -Wno-tautological-compare -Wno-self-assign -Wno-deprecated-register -Wno-deprecated -Wno-invalid-source-encoding -Wno-pointer-sign -Wno-parentheses -Wno-enum-conversion' --sbin-path=/usr/local/sbin/nginx --conf-path=/usr/local/nginx/conf/nginx.conf --with-http_ssl_module --with-http_v2_module --with-http_gzip_static_module --with-http_stub_status_module --with-http_sub_module --with-http_addition_module --with-http_image_filter_module --with-http_secure_link_module --with-http_realip_module --with-http_geoip_module --with-openssl-opt=enable-tlsext --add-module=../ngx-fancyindex-ngx-fancyindex --add-module=../ngx_cache_purge-2.3 --add-module=../nginx-accesskey-2.0.3 --add-module=../nginx-http-concat-master --add-module=../openresty-memc-nginx-module-4f6f78f --add-module=../openresty-srcache-nginx-module-ffa9ab7 --add-module=../ngx_devel_kit-0.2.19 --add-module=../set-misc-nginx-module-0.29 --add-module=../echo-nginx-module-0.58 --add-module=../redis2-nginx-module-0.12 --add-module=../ngx_http_redis-0.3.7 --add-module=../nginx_upstream_check_module-0.3.0 --add-module=../nginx-module-vts --add-module=../headers-more-nginx-module-0.28 --with-openssl=../libressl-2.2.6 --with-libatomic --with-threads --with-stream --with-stream_ssl_module --with-pcre=../pcre-8.37 --with-pcre-jit

    The pagespeed module disappears?
     
  4. eva2000

    eva2000 Administrator Staff Member

    30,968
    6,919
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,422
    Local Time:
    12:33 PM
    Nginx 1.13.x
    MariaDB 5.5
  5. Sunka

    Sunka Active Member

    932
    243
    43
    Oct 31, 2015
    Rijeka, Croatia
    Ratings:
    +394
    Local Time:
    3:33 AM
    Nginx 1.13.3
    MariaDB 10.1.24
    If I remember correctly,Eva2000 set pagespeed NO in centminmod by default until bugs will be resolved for newest nginx version

    Edit: I am too slow :pigeon:
     
    • Like Like x 1
  6. jellday

    jellday New Member

    26
    2
    3
    May 31, 2014
    Ratings:
    +3
    Local Time:
    10:33 AM
    1.4.6
    5.5
  7. eva2000

    eva2000 Administrator Staff Member

    30,968
    6,919
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,422
    Local Time:
    12:33 PM
    Nginx 1.13.x
    MariaDB 5.5