Join the community today
Become a Member

Nginx Unable to install Brotli

Discussion in 'Install & Upgrades or Pre-Install Questions' started by rdan, Sep 29, 2016.

  1. rdan

    rdan Well-Known Member

    5,447
    1,408
    113
    May 25, 2014
    Ratings:
    +2,201
    Local Time:
    11:27 AM
    Mainline
    10.2


     
  2. eva2000

    eva2000 Administrator Staff Member

    54,909
    12,240
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,811
    Local Time:
    1:27 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    You'll need to post on the forums with the following info
    • Server or VPS details ? XEN, KVM, OpenVZ, VMWare or dedicated server ? OS ? CentOS 6.7 or 7.2 ? 32bit or 64bit ?
    • What version of Centmin Mod ? .07 stable or 08 stable or .09 beta01 or another branch version ?
    • Was it fresh install or upgrade ?
    • Method of install ? Via centmin.sh menu option 1, Git install or curl one liner install as outlined at centminmod.com/download.html ?
    • How long ago did you install Centmin Mod ?
    • There's numerous code changes, bug fixes over time, so ensure you have latest Centmin Mod code installed by upgrading your Centmin Mod code as instructed below.

    Troubleshooting Initial Install



    To troubleshoot initial installation, you need to check the initial nginx install/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 initial install log. You can see full details at How to troubleshoot Centmin Mod initial install issues
     
  3. eva2000

    eva2000 Administrator Staff Member

    54,909
    12,240
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,811
    Local Time:
    1:27 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    just tested on 123.09beta01 latest updated code with persistent config file /etc/centminmod/custom_config.inc set to enable nginx brotli
    Code (Text):
    NGXDYNAMIC_BROTLI='y'
    NGINX_LIBBROTLI='y'

    then run centmin.sh menu option 4 to upgrade recompile Nginx
    Code (Text):
    --------------------------------------------------------
         Centmin Mod Menu 123.09beta01 centminmod.com    
    --------------------------------------------------------
    1).  Centmin Install
    2).  Add Nginx vhost domain
    3).  NSD setup domain name DNS
    4).  Nginx Upgrade / Downgrade
    5).  PHP Upgrade / Downgrade
    6).  XCache Re-install
    7).  APC Cache Re-install
    8).  XCache Install
    9).  APC Cache Install
    10). Memcached Server Re-install
    11). MariaDB 5.2/5.5 & 10.x Upgrade Sub-Menu
    12). Zend OpCache Install/Re-install
    13). Install/Reinstall Redis PHP Extension
    14). SELinux disable
    15). Install/Reinstall ImagicK PHP Extension
    16). Change SSHD Port Number
    17). Multi-thread compression: pigz,pbzip2,lbzip2...
    18). Suhosin PHP Extension install
    19). Install FFMPEG and FFMPEG PHP Extension
    20). NSD Install/Re-Install
    21). Update - Nginx + PHP-FPM + Siege
    22). Add Wordpress Nginx vhost + Cache Plugin
    23). Update Centmin Mod Code Base
    24). Exit
    --------------------------------------------------------
    Enter option [ 1 - 24 ] 4
    --------------------------------------------------------
    

    Code (Text):
    Do you want to run YUM install checks ?  [y/n]
    
    This will increase your upgrade duration time wise.
    Check the change log centminmod.com/changelog.html
    to see if any Nginx or PHP related new additions
    which require checking YUM prequisites are met.
    If no new additions made, you can skip the 
    YUM install check to speed up upgrade time.
    
     [y/n]: n
    

    Code (Text):
    Nginx Upgrade - Would you like to continue? [y/n] y
    
    Install which version of Nginx? (version i.e. type 1.11.4): 1.11.4
    

    end of nginx upgrade logs and info from centmin.sh menu option 4 recompile of nginx 1.11.4
    Code (Text):
    dynamic module directory at /usr/local/nginx/modules
    total 3.0M
    drwxr-xr-x.  2 root root 4.0K Sep 29 13:02 .
    drwxr-xr-x. 10 root root 4.0K Sep 23 12:36 ..
    -rwxr-xr-x   1 root root 124K Sep 29 13:02 ngx_http_brotli_filter_module.so
    -rwxr-xr-x   1 root root 114K Sep 29 13:02 ngx_http_brotli_static_module.so
    -rwxr-xr-x   1 root root 141K Sep 29 13:02 ngx_http_fancyindex_module.so
    -rwxr-xr-x   1 root root 146K Sep 26 15:09 ngx_http_fancyindex_module.so.old
    -rwxr-xr-x   1 root root 140K Sep 29 13:02 ngx_http_image_filter_module.so
    -rwxr-xr-x   1 root root 145K Sep 26 15:09 ngx_http_image_filter_module.so.old
    -rwxr-xr-x   1 root root 1.1M Sep 29 13:02 ngx_stream_module.so
    -rwxr-xr-x   1 root root 1.1M Sep 26 15:09 ngx_stream_module.so.old
    
    log files saved at /root/centminlogs
    -rw-r--r--  1 root root   45 Sep 29 13:01 centminmod_libresslinstalltime_290916-130042.log
    -rw-r--r--  1 root root    0 Sep 29 13:01 patch_patchnginx_290916-130042.log
    -rw-r--r--  1 root root 1.7K Sep 29 13:01 nginx-configure-290916-130042.log
    -rw-r--r--  1 root root 666K Sep 29 13:02 centminmod_1.2.3-eva2000.09.001_290916-130042_nginx_upgrade.log


    what do you have set in /etc/centminmod/custom_config.inc ?
     
    Last edited: Sep 29, 2016
  4. eva2000

    eva2000 Administrator Staff Member

    54,909
    12,240
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,811
    Local Time:
    1:27 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    Above was with default LibeSSL so retested with Nginx OpenSSL 1.0.2j (via LIBRESSL_SWITCH='n') on 123.09beta01 latest updated code with persistent config file /etc/centminmod/custom_config.inc set to enable nginx brotli
    Code (Text):
    NGXDYNAMIC_BROTLI='y'
    NGINX_LIBBROTLI='y'
    LIBRESSL_SWITCH='n'
    

    end of nginx upgrade logs and info from centmin.sh menu option 4 recompile of nginx 1.11.4
    Code (Text):
    dynamic module directory at /usr/local/nginx/modules
    total 3.2M
    drwxr-xr-x.  2 root root 4.0K Sep 29 13:08 .
    drwxr-xr-x. 10 root root 4.0K Sep 23 12:36 ..
    -rwxr-xr-x   1 root root 129K Sep 29 13:08 ngx_http_brotli_filter_module.so
    -rwxr-xr-x   1 root root 124K Sep 29 13:02 ngx_http_brotli_filter_module.so.old
    -rwxr-xr-x   1 root root 119K Sep 29 13:08 ngx_http_brotli_static_module.so
    -rwxr-xr-x   1 root root 114K Sep 29 13:02 ngx_http_brotli_static_module.so.old
    -rwxr-xr-x   1 root root 146K Sep 29 13:08 ngx_http_fancyindex_module.so
    -rwxr-xr-x   1 root root 141K Sep 29 13:02 ngx_http_fancyindex_module.so.old
    -rwxr-xr-x   1 root root 145K Sep 29 13:08 ngx_http_image_filter_module.so
    -rwxr-xr-x   1 root root 140K Sep 29 13:02 ngx_http_image_filter_module.so.old
    -rwxr-xr-x   1 root root 1.1M Sep 29 13:08 ngx_stream_module.so
    -rwxr-xr-x   1 root root 1.1M Sep 29 13:02 ngx_stream_module.so.old
    
    log files saved at /root/centminlogs
    -rw-r--r--  1 root root    0 Sep 29 13:06 patch_opensslpatches_290916-130640.log
    -rw-r--r--  1 root root   44 Sep 29 13:07 centminmod_opensslinstalltime_290916-130640.log
    -rw-r--r--  1 root root    0 Sep 29 13:07 patch_patchnginx_290916-130640.log
    -rw-r--r--  1 root root 1.7K Sep 29 13:07 nginx-configure-290916-130640.log
    -rw-r--r--  1 root root 1.6M Sep 29 13:08 centminmod_1.2.3-eva2000.09.001_290916-130640_nginx_upgrade.log
    


    double check what you have set in /etc/centminmod/custom_config.inc
     
  5. eva2000

    eva2000 Administrator Staff Member

    54,909
    12,240
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,811
    Local Time:
    1:27 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    Nginx brotli installed as a non-dynamic nginx module in persistent config file /etc/centminmod/custom_config.inc
    Code (Text):
    NGXDYNAMIC_BROTLI='n'
    NGINX_LIBBROTLI='y'


    Code (Text):
    dynamic module directory at /usr/local/nginx/modules
    total 2.7M
    drwxr-xr-x.  2 root root 4.0K Sep 29 13:13 .
    drwxr-xr-x. 10 root root 4.0K Sep 23 12:36 ..
    -rwxr-xr-x   1 root root 141K Sep 29 13:13 ngx_http_fancyindex_module.so
    -rwxr-xr-x   1 root root 141K Sep 29 13:11 ngx_http_fancyindex_module.so.old
    -rwxr-xr-x   1 root root 140K Sep 29 13:13 ngx_http_image_filter_module.so
    -rwxr-xr-x   1 root root 140K Sep 29 13:11 ngx_http_image_filter_module.so.old
    -rwxr-xr-x   1 root root 1.1M Sep 29 13:13 ngx_stream_module.so
    -rwxr-xr-x   1 root root 1.1M Sep 29 13:11 ngx_stream_module.so.old
    
    log files saved at /root/centminlogs
    -rw-r--r--  1 root root   45 Sep 29 13:12 centminmod_libresslinstalltime_290916-131222.log
    -rw-r--r--  1 root root    0 Sep 29 13:12 patch_patchnginx_290916-131222.log
    -rw-r--r--  1 root root 1.7K Sep 29 13:12 nginx-configure-290916-131222.log
    -rw-r--r--  1 root root 666K Sep 29 13:13 centminmod_1.2.3-eva2000.09.001_290916-131222_nginx_upgrade.log
    
     
    Last edited: Sep 29, 2016
  6. rdan

    rdan Well-Known Member

    5,447
    1,408
    113
    May 25, 2014
    Ratings:
    +2,201
    Local Time:
    11:27 AM
    Mainline
    10.2
    I track it down.
    It's NGINX_LIBBROTLISTATIC='y' that is causing the problem.
     
  7. eva2000

    eva2000 Administrator Staff Member

    54,909
    12,240
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,811
    Local Time:
    1:27 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    don't need that it's only if you want brotli static compression without dynamic on the fly brotli compression