Join the community today
Register Now

Upgrade Unable to recompile nginx with extra modules

Discussion in 'Install & Upgrades or Pre-Install Questions' started by Tinkerd10, Feb 8, 2018.

  1. Tinkerd10

    Tinkerd10 New Member

    21
    3
    3
    Sep 28, 2016
    Ratings:
    +13
    Local Time:
    11:54 AM
    1.11
    5.5
    Please fill in any relevant information that applies to you:
    • CentOS Version: CentOS 6 64bit
    • Centmin Mod Version Installed: 123.09beta01
    • Nginx Version Installed: 1.3.18
    • PHP Version Installed: 7.0.27
    • MariaDB MySQL Version Installed: 10.1.31 Mariadb
    • When was last time updated Centmin Mod code base ? : Yesterday
    • Persistent Config: Do you have any persistent config file options set in /etc/centminmod/custom_config.inc ? You can check via this command:

      cat /etc/centminmod/custom_config.inc

      Code:
      DEVTOOLSETSEVEN='y'
      CLANG='n'
      DEVTOOLSETSIX='n'
      LIBRESSL_SWITCH='n'
      DEVTOOLSETEIGHT='n'
      NGINX_DEVTOOLSETGCC='y'
      CLOUDFLARE_ZLIB='y'
      OPENSSLECDSA_PATCH='y'
      NGINX_PATCH='y'
      NGINX_HPACK='y'
      NGINX_DYNAMICTLS='y'
      PHPFINFO='y'
      NGXDYNAMIC_BROTLI='y'
      NGINX_LIBBROTLI=y
      PHP_PGO='y'
      
      Upgrade log:
      ********************************************************************** * Ngin - Pastebin.com

      Code:
      nginx version: nginx/1.13.8
      built by clang 3.4.2 (tags/RELEASE_34/dot2-final)
      built with LibreSSL 2.6.4
      TLS SNI support enabled
      configure arguments: --with-ld-opt='-L/usr/local/lib -lrt -ljemalloc -Wl,-z,relro -Wl,-rpath,/usr/local/lib' --with-cc-opt='-I/usr/local/include -m64 -mtune=native -g -O3 -fstack-protector -fuse-ld=gold --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-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 -Wno-c++11-compat-deprecated-writable-strings -Wno-write-strings' --sbin-path=/usr/local/sbin/nginx --conf-path=/usr/local/nginx/conf/nginx.conf --with-compat --with-http_stub_status_module --with-http_secure_link_module --with-libatomic --with-http_gzip_static_module --add-module=../ngx_brotli --with-http_sub_module --with-http_addition_module --with-http_image_filter_module=dynamic --with-http_geoip_module --with-stream_geoip_module --with-stream_realip_module --with-stream_ssl_preread_module --with-threads --with-stream=dynamic --with-stream_ssl_module --with-http_realip_module --add-dynamic-module=../ngx-fancyindex-0.4.2 --add-module=../ngx_cache_purge-2.4.2 --add-module=../ngx_devel_kit-0.3.0 --add-dynamic-module=../set-misc-nginx-module-0.31 --add-dynamic-module=../echo-nginx-module-0.61 --add-module=../redis2-nginx-module-0.14 --add-module=../ngx_http_redis-0.3.7 --add-module=../memc-nginx-module-0.18 --add-module=../srcache-nginx-module-0.31 --add-dynamic-module=../headers-more-nginx-module-0.33 --with-pcre=../pcre-8.41 --with-pcre-jit --with-zlib=../zlib-1.2.11 --with-http_ssl_module --with-http_v2_module --with-openssl=../libressl-2.6.4
      

      I'm trying to recompile nginx with extra module for optimization purpose but it keep failing
      As you you can see from nginx -V it still use clang 3.4.2 instead of 7

      Being having this problem for a while now, what i'm doing wrong ?

      Thank you
     
  2. eva2000

    eva2000 Administrator Staff Member

    35,035
    7,734
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +11,928
    Local Time:
    8:54 PM
    Nginx 1.15.x
    MariaDB 5.5/10.x
  3. Tinkerd10

    Tinkerd10 New Member

    21
    3
    3
    Sep 28, 2016
    Ratings:
    +13
    Local Time:
    11:54 AM
    1.11
    5.5
    My CCM installation is few months old, but i always keep it up to date
    I went ahead and recompile ccache as you suggested , and tried again got the same error

    Code:
    for b in $(ls  /usr/local/bin); do if [[ "$(ldd "/usr/local/bin/$b" | grep libz.so)" ]]; then echo $b; ldd "/usr/local/bin/$b" | grep libz.so; fi; done
    ccache
            libz.so.1 => /lib64/libz.so.1 (0x0000003572400000)
    memcached
            libz.so.1 => /lib64/libz.so.1 (0x0000003572400000)
    pcregrep
            libz.so.1 => /lib64/libz.so.1 (0x0000003572400000)
    php
            libz.so.1 => /lib64/libz.so.1 (0x0000003572400000)
    php-cgi
            libz.so.1 => /lib64/libz.so.1 (0x0000003572400000)
    phpdbg
            libz.so.1 => /lib64/libz.so.1 (0x0000003572400000)
    siege
            libz.so.1 => /lib64/libz.so.1 (0x0000003572400000)
    wget
            libz.so.1 => /lib64/libz.so.1 (0x0000003572400000)
    Change log:
    Do you want to run YUM install checks ? [y/n] This will increase your upgr - Pastebin.com

    May i mention this happened to me before when i tried to install ngx_pagespeed with brotli
    i was only able to install one of them both at the same time return the same error
    At the end i just left brotli

    Also when i try to upgrade nginx or php i have to wait between 10 to 30 min before the process start

    Thank you
     
    Last edited: Feb 8, 2018
  4. eva2000

    eva2000 Administrator Staff Member

    35,035
    7,734
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +11,928
    Local Time:
    8:54 PM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    looks like OpenSSL didn't download so nginx failed at that part
    Code (Text):
    tar (child): /svr-setup/openssl-1.1.0g.tar.gz: Cannot open: No such file or directory
    tar (child): Error is not recoverable: exiting now
    tar: Child returned status 2
    tar: Error is not recoverable: exiting now
    

    Code (Text):
              | \ | |  __ _ (_) _ __  __  __ |  \/  |  __ _ | | __ ___
              |  \| | / _` || || '_ \ \ \/ / | |\/| | / _` || |/ // _ \
              | |\  || (_| || || | | | >  <  | |  | || (_| ||   <|  __/
              |_| \_| \__, ||_||_| |_|/_/\_\ |_|  |_| \__,_||_|\_\\___|
                      |___/                                           
    make -f objs/Makefile
    make[1]: Entering directory `/svr-setup/nginx-1.13.8'
    cd ../pcre-8.41 \
       && if [ -f Makefile ]; then make distclean; fi \
       && CC="gcc" CFLAGS="-O2 -fomit-frame-pointer -pipe " \
       ./configure --disable-shared  --enable-jit
    cd ../ \
       && if [ -f Makefile ]; then make clean; fi \
       && ./config --prefix=/svr-setup/nginx-1.13.8/..//.openssl no-shared 'enable-ec_nistp_64_gcc_128' \
       && make \
       && make install_sw LIBDIR=lib
    /bin/sh: line 2: ./config: No such file or directory
    make[1]: *** [..//.openssl/include/openssl/ssl.h] Error 127
    make[1]: *** Waiting for unfinished jobs....
    make[2]: Entering directory `/svr-setup/pcre-8.41'
    

    Try deleting openssl directory/tarball first
    Code (Text):
    cd /svr-setup
    rm -rf /svr-setup/openssl-*
    

    the upgrade log is longer than what you posted, so openssl download would of been logged further up before what you log posted shows
     
  5. Tinkerd10

    Tinkerd10 New Member

    21
    3
    3
    Sep 28, 2016
    Ratings:
    +13
    Local Time:
    11:54 AM
    1.11
    5.5
    I had to upload openssl and unzip it, after that it went through but not all modules were installed , some got removed somehow like brotli

    Upgradelog:
    View Paste rps1t

    Code:
    nginx -V
    nginx version: nginx/1.13.8
    built by gcc 4.4.7 20120313 (Red Hat 4.4.7-18) (GCC)
    built with OpenSSL 1.1.0g  2 Nov 2017
    TLS SNI support enabled
    configure arguments: --with-ld-opt='-ljemalloc -Wl,-z,relro -Wl,-rpath,/usr/local/lib' --with-cc-opt='-m64 -mtune=native -g -O3 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2' --sbin-path=/usr/local/sbin/nginx --conf-path=/usr/local/nginx/conf/nginx.conf --with-compat --with-http_stub_status_module --with-http_secure_link_module --with-libatomic --with-http_gzip_static_module --with-http_sub_module --with-http_addition_module --with-http_image_filter_module=dynamic --with-http_geoip_module --with-stream_geoip_module --with-stream_realip_module --with-stream_ssl_preread_module --with-threads --with-stream=dynamic --with-stream_ssl_module --with-http_realip_module --add-dynamic-module=../ngx-fancyindex-0.4.2 --add-module=../ngx_cache_purge-2.4.2 --add-module=../ngx_devel_kit-0.3.0 --add-dynamic-module=../set-misc-nginx-module-0.31 --add-dynamic-module=../echo-nginx-module-0.61 --add-module=../redis2-nginx-module-0.14 --add-module=../ngx_http_redis-0.3.7 --add-module=../memc-nginx-module-0.18 --add-module=../srcache-nginx-module-0.31 --add-dynamic-module=../headers-more-nginx-module-0.33 --with-pcre=../pcre-8.41 --with-pcre-jit --with-zlib=../zlib-1.2.11 --with-http_ssl_module --with-http_v2_module --with-openssl=../openssl-1.1.0g --with-openssl-opt='enable-ec_nistp_64_gcc_128'
     
  6. eva2000

    eva2000 Administrator Staff Member

    35,035
    7,734
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +11,928
    Local Time:
    8:54 PM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    did you still have same persistent config file settings in /etc/centminmod/custom_config.inc ? Looks like it didn't pick up settings in /etc/centminmod/custom_config.inc ?

    output for command
    Code (Text):
    cat /etc/centminmod/custom_config.inc
    
     
  7. Tinkerd10

    Tinkerd10 New Member

    21
    3
    3
    Sep 28, 2016
    Ratings:
    +13
    Local Time:
    11:54 AM
    1.11
    5.5
    Yes its the same, i didn't change anything in it
    All i did is updated CCM, and openssl then rerun it again

    Code:
    cat /etc/centminmod/custom_config.inc
    DEVTOOLSETSEVEN='y'
    CLANG='n'
    DEVTOOLSETSIX='n'
    LIBRESSL_SWITCH='n'
    DEVTOOLSETEIGHT='n'
    NGINX_DEVTOOLSETGCC='y'
    CLOUDFLARE_ZLIB='y'
    OPENSSLECDSA_PATCH='y'
    NGINX_PATCH='y'
    NGINX_HPACK='y'
    NGINX_DYNAMICTLS='y'
    PHPFINFO='y'
    NGXDYNAMIC_BROTLI='y'
    NGINX_LIBBROTLI=y
    PHP_PGO='y'
    
     
  8. eva2000

    eva2000 Administrator Staff Member

    35,035
    7,734
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +11,928
    Local Time:
    8:54 PM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    strange.. you've posted the partial nginx upgrade log, i need the full log to see further up in the nginx upgrade routine

    To troubleshoot, you need to check the full nginx upgrade log at /root/centminlogs and instructions under Sharing logs and errors heading for using Pastebin.com or Gists to share a sanitised version of the contents of the nginx_upgrade.log log. You can see full details at How to troubleshoot Centmin Mod initial install issues

    when you run centmin.sh menu option 4 there's a nginx upgrade log timestamped at /root/centminlogs

    if you type this command it lists all logs in date ascending order so latest log at bottom
    Code (Text):
    ls -lArt /root/centminlogs

    so copy the entire contents of latest nginx_upgrade log to gist.github.com or pastebin.com

    you can use grep to filter the logs, i.e. look for nginx_upgrade in log name
    Code (Text):
    ls -lahrt /root/centminlogs/ | grep nginx_upgrade
    -rw-r--r--  1 root root 3.2M Oct 11 15:55 centminmod_1.2.3-eva2000.09.001_111016-155345_nginx_upgrade.log
    -rw-r--r--  1 root root 672K Oct 11 22:06 centminmod_1.2.3-eva2000.09.001_111016-220515_nginx_upgrade.log

    So the last nginx upgrade log was named centminmod_1.2.3-eva2000.09.001_111016-220515_nginx_upgrade.log and located at /root/centminlogs/centminmod_1.2.3-eva2000.09.001_111016-220515_nginx_upgrade.log

    then use cat command to output the contents of that log

    clear your ssh window buffer/screen and type
    Code (Text):
    cat /root/centminlogs/centminmod_1.2.3-eva2000.09.001_111016-220515_nginx_upgrade.log

    then select and copy and paste output to pastebin.com or gist.github.com file to share. If your SSH client's scroll buffer isn't large enough using cat might not output the entire log file contents, so you may need to download the log and use local text editor to open and copy and paste.

    so only need content of one specific log, in this case most recent nginx_upgrade.log log
     
  9. eva2000

    eva2000 Administrator Staff Member

    35,035
    7,734
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +11,928
    Local Time:
    8:54 PM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    also how exactly was the file at /etc/centminmod/custom_config.inc populated /created ? has it ever worked for the added variables ?

    As root user in SSH session (not sudo user if you have setup but full root user) try deleting the file and creating it using nano linux text editor
    Code (Text):
    cd /etc/centminmod
    rm -rf /etc/centminmod/custom_config.inc
    nano /etc/centminmod/custom_config.inc
    

    copy and paste in
    Code (Text):
    DEVTOOLSETSEVEN='y'
    CLANG='n'
    DEVTOOLSETSIX='n'
    LIBRESSL_SWITCH='n'
    DEVTOOLSETEIGHT='n'
    NGINX_DEVTOOLSETGCC='y'
    CLOUDFLARE_ZLIB='y'
    OPENSSLECDSA_PATCH='y'
    NGINX_PATCH='y'
    NGINX_HPACK='y'
    NGINX_DYNAMICTLS='y'
    PHPFINFO='y'
    NGXDYNAMIC_BROTLI='y'
    NGINX_LIBBROTLI=y
    PHP_PGO='y'
    

    then exit and save with CTRL+X and answer y when prompted to save
     
  10. Tinkerd10

    Tinkerd10 New Member

    21
    3
    3
    Sep 28, 2016
    Ratings:
    +13
    Local Time:
    11:54 AM
    1.11
    5.5
    Yes that's what i did, downloaded the log, copied everything in it and paste in paste.ee
    As for cusom_config, was created manually in sublime then uploaded through sftp

    I have removed it and created a new one as you mention above, i will try again and let you know
    But the process will take a while to start


    Code:
    -rw-r--r-- 1 root root    1076 Feb  8 22:45 centminmod_123.09beta01.b013_080218-224505_git_updatecur_branch.log
    -rw-r--r-- 1 root root    2422 Feb  8 22:48 cmm-login-git-checks_080218-224804.log
    -rw-r--r-- 1 root root    2422 Feb  8 22:51 cmm-login-git-checks_080218-225120.log
    -rw-r--r-- 1 root root    2266 Feb  8 22:53 cmm-login-git-checks_080218-225301.log
    -rw-r--r-- 1 root root       8 Feb  9 00:02 patch_patchnginx_080218-224623.log
    -rw-r--r-- 1 root root    1212 Feb  9 00:02 gcc_native.log
    -rw-r--r-- 1 root root    1342 Feb  9 00:02 nginx-configure-080218-224623.log
    -rw-r--r-- 1 root root   22344 Feb  9 00:08 nginx_autoconf.err.080218-224623.log
    -rw-r--r-- 1 root root 1267783 Feb  9 00:08 centminmod_123.09beta01.b013_080218-224623_nginx_upgrade.log
    -rw-r--r-- 1 root root    2423 Feb  9 00:50 cmm-login-git-checks_090218-005045.log
    -rw-r--r-- 1 root root    2423 Feb  9 00:50 cmm-login-git-checks_090218-005048.log
    -rw-r--r-- 1 root root    2423 Feb  9 00:54 cmm-login-git-checks_090218-005402.log
    -rw-r--r-- 1 root root    2423 Feb  9 01:05 cmm-login-git-checks_090218-010525.log
    -rw-r--r-- 1 root root    3805 Feb  9 01:12 fixphpfpm_includes_090218-011208.log
    -rw-r--r-- 1 root root    5701 Feb  9 01:12 fixphpfpm_httpproxy_090218-011208.log
    -rw-r--r-- 1 root root    2423 Feb  9 01:59 cmm-login-git-checks_090218-015952.log
    -rw-r--r-- 1 root root    2423 Feb  9 02:02 cmm-login-git-checks_090218-020223.log
    

    Code:
    -rw-r--r--   1 root root   86K Feb  7 14:46 centminmod_123.09beta01.b013_070218-143812_nginx_upgrade.log
    -rw-r--r--   1 root root   60K Feb  7 21:13 centminmod_123.09beta01.b013_070218-190136_nginx_upgrade.log
    -rw-r--r--   1 root root   63K Feb  7 23:33 centminmod_123.09beta01.b013_070218-224509_nginx_upgrade.log
    -rw-r--r--   1 root root   60K Feb  8 01:48 centminmod_123.09beta01.b013_080218-012234_nginx_upgrade.log
    -rw-r--r--   1 root root   60K Feb  8 17:23 centminmod_123.09beta01.b013_080218-130251_nginx_upgrade.log
    -rw-r--r--   1 root root   57K Feb  8 22:35 centminmod_123.09beta01.b013_080218-172911_nginx_upgrade.log
    -rw-r--r--   1 root root  1.3M Feb  9 00:08 centminmod_123.09beta01.b013_080218-224623_nginx_upgrade.log
    
    I uploaded the log file to gist:
    log · GitHub

    Thank you for your time
     
  11. Tinkerd10

    Tinkerd10 New Member

    21
    3
    3
    Sep 28, 2016
    Ratings:
    +13
    Local Time:
    11:54 AM
    1.11
    5.5
    Thank you, that fixed it
    After i re-created custom_config with nano, it went through without any problem :D


    Code:
    nginx -V
    nginx version: nginx/1.13.8
    built by gcc 7.2.1 20170829 (Red Hat 7.2.1-1) (GCC)
    built with OpenSSL 1.1.0g  2 Nov 2017
    TLS SNI support enabled
    configure arguments: --with-ld-opt='-L/usr/local/lib -ljemalloc -Wl,-z,relro -Wl,-rpath,/usr/local/lib' --with-cc-opt='-I/usr/local/include -m64 -march=native -g -O3 -Wno-error=strict-aliasing -fstack-protector-strong -flto -fuse-ld=gold --param=ssp-buffer-size=4 -Wformat -Werror=format-security -Wimplicit-fallthrough=0 -fcode-hoisting -Wp,-D_FORTIFY_SOURCE=2 -Wno-deprecated-declarations -gsplit-dwarf' --sbin-path=/usr/local/sbin/nginx --conf-path=/usr/local/nginx/conf/nginx.conf --with-compat --with-http_stub_status_module --with-http_secure_link_module --with-libatomic --with-http_gzip_static_module --add-dynamic-module=../ngx_brotli --with-http_sub_module --with-http_addition_module --with-http_image_filter_module=dynamic --with-http_geoip_module --with-stream_geoip_module --with-stream_realip_module --with-stream_ssl_preread_module --with-threads --with-stream=dynamic --with-stream_ssl_module --with-http_realip_module --add-dynamic-module=../ngx-fancyindex-0.4.2 --add-module=../ngx_cache_purge-2.4.2 --add-module=../ngx_devel_kit-0.3.0 --add-dynamic-module=../set-misc-nginx-module-0.31 --add-dynamic-module=../echo-nginx-module-0.61 --add-module=../redis2-nginx-module-0.14 --add-module=../ngx_http_redis-0.3.7 --add-module=../memc-nginx-module-0.18 --add-module=../srcache-nginx-module-0.31 --add-dynamic-module=../headers-more-nginx-module-0.33 --with-pcre=../pcre-8.41 --with-pcre-jit --with-zlib=../zlib-cloudflare-1.3.0 --with-http_ssl_module --with-http_v2_module --with-http_v2_hpack_enc --with-openssl=../openssl-1.1.0g --with-openssl-opt='enable-ec_nistp_64_gcc_128'
    Also after i installed those module cloudflare started caching more than it did the past few years

    [​IMG]

    [​IMG]
     
    • Like Like x 1
  12. eva2000

    eva2000 Administrator Staff Member

    35,035
    7,734
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +11,928
    Local Time:
    8:54 PM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    excellent, probably due to persistent config file not being recognised when you used sublime editor as opposed to native nano linux text editor. You should really use nano for or vi/vim to edit system files on CentOS

    Easiest way to edit configuration or any files on your server is via logging into your server via ssh and directly editing them using nano or vim linux text editors. For nano which you can read up more about nano here and here. For vim text editor read here and here and thread at WebPerf - Popular Vim Commands – a Comprehensive Vim Cheatsheet. Also there's numerous online how to use guides for nano and vim you can search for via google :)
     
  13. Mak Adang

    Mak Adang Member

    44
    14
    8
    Jan 4, 2015
    Ratings:
    +15
    Local Time:
    5:54 PM
    1.9.0
    10.0.18-MariaDB
    Hi @eva2000 & @Tinkerd10

    Apologize if I do cross posting here because I have same related question and problem.

    I do follow guide here to boost Centminmod performance here
    And i get this information
    "NGX_DYNAMICCHECK nginx_upgrade.inc /svr-setup nginx dynamic module support detected Check for old ngx_pagespeed master branch existence Check for missing nginx modules Check for pagespeed nginx module download file Check for pagespeed PSOL library Download release-1.13.35.2-beta.tar.gz ... release-1.13.35.2-beta.tar.gz Archive found, skipping download... release-1.13.35.2-beta.tar.gz valid file. Download 1.13.35.2.tar.gz PSOL Library... --2018-02-14 04:30:24-- https://dl.google.com/dl/page-speed/psol/1.13.35.2-x64.tar.gz Resolving dl.google.com... 172.217.27.110, 2404:6800:4003:807::200e Connecting to dl.google.com|172.217.27.110|:443... connected. HTTP request sent, awaiting response... 416 Requested Range Not Satisfiable The file is already fully retrieved; nothing to do. Download done. gzip: stdin: decompression OK, trailing garbage ignored tar: Child returned status 2 tar: Error is not recoverable: exiting now Error: 1.13.35.2.tar.gz extraction failed."

    This is my custom_config.inc code

    Code:
    LIBRESSL_SWITCH='n'
    OPENSSLECDSA_PATCH='y'
    CLOUDFLARE_ZLIB='y'
    CLANG='n'
    DEVTOOLSETSEVEN='y'
    DEVTOOLSETEIGHT='n'
    DEVTOOLSETSIX='n'
    NGINX_PATCH='y'
    NGINX_DEVTOOLSETGCC='y'
    NGINX_HPACK='y'
    NGINX_DYNAMICTLS='y'
    NGXDYNAMIC_BROTLI='y'
    NGINX_LIBBROTLI=y
    NGXDYNAMIC_NGXPAGESPEED='y'
    NGINX_PAGESPEED='y'
    PHP_PGO='y'
    PHPFINFO='y'
    But when I delete pagespeed code it work normally.

    I think there is a conflict with other performance code, please help and advice what can I do to enable the pagespeed too.

    Thank you
     
  14. eva2000

    eva2000 Administrator Staff Member

    35,035
    7,734
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +11,928
    Local Time:
    8:54 PM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    looks like the download for pagespeed psol was corrupted so didn't extract properly

    To troubleshoot, you need to check the full nginx upgrade log at /root/centminlogs and instructions under Sharing logs and errors heading for using Pastebin.com or Gists to share a sanitised version of the contents of the nginx_upgrade.log log. You can see full details at How to troubleshoot Centmin Mod initial install issues

    also what's output of
    Code (Text):
    nginx -t

    when you run centmin.sh menu option 4 there's a nginx upgrade log timestamped at /root/centminlogs

    if you type this command it lists all logs in date ascending order so latest log at bottom
    Code (Text):
    ls -lArt /root/centminlogs

    so copy the entire contents of latest nginx_upgrade log to gist.github.com or pastebin.com

    you can use grep to filter the logs, i.e. look for nginx_upgrade in log name
    Code (Text):
    ls -lahrt /root/centminlogs/ | grep nginx_upgrade
    -rw-r--r--  1 root root 3.2M Oct 11 15:55 centminmod_1.2.3-eva2000.09.001_111016-155345_nginx_upgrade.log
    -rw-r--r--  1 root root 672K Oct 11 22:06 centminmod_1.2.3-eva2000.09.001_111016-220515_nginx_upgrade.log

    So the last nginx upgrade log was named centminmod_1.2.3-eva2000.09.001_111016-220515_nginx_upgrade.log and located at /root/centminlogs/centminmod_1.2.3-eva2000.09.001_111016-220515_nginx_upgrade.log

    then use cat command to output the contents of that log

    clear your ssh window buffer/screen and type
    Code (Text):
    cat /root/centminlogs/centminmod_1.2.3-eva2000.09.001_111016-220515_nginx_upgrade.log

    then select and copy and paste output to pastebin.com or gist.github.com file to share. If your SSH client's scroll buffer isn't large enough using cat might not output the entire log file contents, so you may need to download the log and use local text editor to open and copy and paste.

    so only need content of one specific log, in this case most recent nginx_upgrade.log log
     
    • Friendly Friendly x 1
  15. Mak Adang

    Mak Adang Member

    44
    14
    8
    Jan 4, 2015
    Ratings:
    +15
    Local Time:
    5:54 PM
    1.9.0
    10.0.18-MariaDB
  16. eva2000

    eva2000 Administrator Staff Member

    35,035
    7,734
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +11,928
    Local Time:
    8:54 PM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    looks like the pagespeed psol download is corrupted even i get that now
    Code (Text):
    Download 1.13.35.2.tar.gz PSOL Library...
    --2018-02-14 05:48:09--  https://dl.google.com/dl/page-speed/psol/1.13.35.2-x64.tar.gz
    Resolving dl.google.com... 2607:f8b0:4004:805::200e, 172.217.7.142
    Connecting to dl.google.com|2607:f8b0:4004:805::200e|:443... connected.
    HTTP request sent, awaiting response... 206 Partial Content
    Length: 18740791 (18M), 2781 (2.7K) remaining [application/x-tar]
    Saving to: ‘1.13.35.2-x64.tar.gz’
    
            [ skipping 18250K ]
     18250K ,,,,,,,,,, ,,,,,,,,,, ,,,,,,,,,, ,,,,,,,,,, ,,,,,,,,.. 99% 1.96G 0s
     18300K .                                                     100% 94.3M=0s
    
    2018-02-14 05:48:09 (65.6 MB/s) - ‘1.13.35.2-x64.tar.gz’ saved [18740791/18740791]
    
    Download done.
    
    gzip: stdin: decompression OK, trailing garbage ignored
    tar: Child returned status 2
    tar: Error is not recoverable: exiting now
    Error: 1.13.35.2.tar.gz extraction failed.
    

    will have to investigate
     
    • Like Like x 1
  17. eva2000

    eva2000 Administrator Staff Member

    35,035
    7,734
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +11,928
    Local Time:
    8:54 PM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    Ok updated 123.09beta01 code to ngx_pagespeed update from 1.13.35.2-beta to 1.13.35.2-stable version
    to update Centmin Mod 123.09beta01 code just run cmupdate command BEFORE running centmin.sh menu option 4
    Code (Text):
    cmupdate
    No local changes to save
    Updating b9ed563..b52c1b8
    Fast-forward
     centmin.sh                | 2 +-
     example/custom_config.inc | 2 +-
     tools/nginxupdate.sh      | 2 +-
     3 files changed, 3 insertions(+), 3 deletions(-)
    
     
    • Like Like x 2
  18. Mak Adang

    Mak Adang Member

    44
    14
    8
    Jan 4, 2015
    Ratings:
    +15
    Local Time:
    5:54 PM
    1.9.0
    10.0.18-MariaDB
    • Like Like x 1
..