Join the community today
Register Now

update centmin.sh menu option 22 & nginx vhost routines in 123.09beta01

Discussion in 'Centmin Mod Github Commits' started by eva2000, May 7, 2019.

  1. eva2000

    eva2000 Administrator Staff Member

    55,233
    12,253
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,831
    Local Time:
    12:58 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    update centmin.sh menu option 22 & nginx vhost routines in 123.09beta01


    - update wordpress auto installer routine in centmin.sh menu option 22
    - update nginx vhost creation routines detection for older OpenSSL 1.1.0 so checks no longer needed with OpenSSL 1.1.1* defaults
    - new wp cache method selection menu routine to do error checking confirmation of the selected menu option
    - create a wpinfo.sh script at /usr/local/nginx/conf/wpincludes/${vhostname}/wpinfo.sh where vhostname = your wordpress site domain, when you run the script it will output all relevant wordpress site install information for that wordpress site
    - update wordpress fastcgi_cache method routines - various bug fixes etc
    - add WP_AUTOPTIMIZE_GZIP='y' variable support https://community.centminmod.com/threads/15314/. If variable set in persistent config file /etc/centminmod/custom_config.inc prior to centmin.sh menu option 22 run, it will auto install Autoptimize Gzip companion wordpress plugin to precompress Autoptimize optimised js/css assets as by default Autoptimize wp plugin is already installed. By default css/js assets are gzip pre-compressed (.gz extension). However, starting with Autoptimize 2.5+, the Autoptimize Gzip companion wp plugin will also create brotli pre-compressed (.br extension) versions too. You will need to be using Centmin Mod 123.09beta01 and enable PHP compression extension support for PHP_BROTLI='y' at least as outlined at https://community.centminmod.com/th...-extensions-by-default-in-123-09beta01.16616/ and ensuring they have Nginx Brotli module enabled via NGXDYNAMIC_BROTLI='y' and NGINX_LIBBROTLI='y' variables (https://community.centminmod.com/th...sion-for-centmin-mod-nginx-web-servers.10688/) prior to Centmin Mod Ngixn recompiles - which will also install Brotli library required to do the actual Brotli compression.

    Continue reading...

    123.09beta01 branch
     
  2. eva2000

    eva2000 Administrator Staff Member

    55,233
    12,253
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,831
    Local Time:
    12:58 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    example of /usr/local/nginx/conf/wpincludes/w3.domain.com/wpinfo.sh output for new centmin.sh menu option 22 created wordpress sites

    Code (Text):
    /usr/local/nginx/conf/wpincludes/w3.domain.com/wpinfo.sh
    WP-CLI 2.2.0
    WP-Home    http://w3.domain.com
    WP-SiteURL http://w3.domain.com
    WordPress  version:   5.1.1
    Database   revision:  44719
    TinyMCE    version:   4.920  (4920-20181217)
    Package    language:  en_US
    +--------+------------------------------------+------------------------------------+---------------------------+---------------------+---------------+
    | ID     | user_login                         | display_name                       | user_email                | user_registered     | roles         |
    +--------+------------------------------------+------------------------------------+---------------------------+---------------------+---------------+
    | 154192 | zvocM0RdOj8Iaeha4lx3HjH4imAwp19386 | zvocM0RdOj8Iaeha4lx3HjH4imAwp19386 | usernamexx@yourdomain.com | 2019-05-07 11:50:46 | administrator |
    +--------+------------------------------------+------------------------------------+---------------------------+---------------------+---------------+
    

    Code (Text):
    +----------------------+------------------------------------------------------------------+----------+
    | name                 | value                                                            | type     |
    +----------------------+------------------------------------------------------------------+----------+
    | table_prefix         | 16630_                                                           | variable |
    | WP_CACHE             | 1                                                                | constant |
    | DB_NAME              | wp819324691db_5408                                               | constant |
    | DB_USER              | wpdb5408u11679                                                   | constant |
    | DB_PASSWORD          | wpdb9S2T8gYc1zQJS9Rp16558                                        | constant |
    | DB_HOST              | localhost                                                        | constant |
    | DB_CHARSET           | utf8                                                             | constant |
    | DB_COLLATE           |                                                                  | constant |
    | DISABLE_WP_CRON      |                                                                  | constant |
    | WP_AUTO_UPDATE_CORE  | minor                                                            | constant |
    | WP_POST_REVISIONS    | 10                                                               | constant |
    | EMPTY_TRASH_DAYS     | 10                                                               | constant |
    | WP_CRON_LOCK_TIMEOUT | 60                                                               | constant |
    | CONCATENATE_SCRIPTS  |                                                                  | constant |
    | AUTH_KEY             | _Z*?,HKZ*(>bxI$ i=s$WLJ_~zhCQwKTz|`52U&}imKX+qLOLh1RN%7WqzdsWJq` | constant |
    | SECURE_AUTH_KEY      | t?5[Z u3Ell]WU`E5SZ]:7*%Q.Jr1Q|=uDZToVP.QR= FQ^;IgL-;y.C2P=|rjnV | constant |
    | LOGGED_IN_KEY        | smV-{#DE^&YdTmVLxKSa uR^K3?Lh-ygW{0HB!C3.NFzBtSRtP@/>zvXL`[80 =m | constant |
    | NONCE_KEY            | MMwMt[T)09D/kWVLooqG6B,tH>|8?j#6b7#>aQKcy~CZ2jc10tuI)dUSy!|[rx2y | constant |
    | AUTH_SALT            | }^j9VAEX{~cCZMzIvL(-(Wj^{)fHg/,)eyg(xB>h>CqziSXJ!SEK3Ncq7o5b7)=t | constant |
    | SECURE_AUTH_SALT     | #0~TX.TcA7VQ#4_vja6AA3Vc~aIsA26QKDbRw@HhfA(bVa[(:l/vyNrxK(Bd8M=f | constant |
    | LOGGED_IN_SALT       | Uy=<#DnZPgL)>5]^sh[~cO|WkJ+}A%)]:~Rjo6RhVx1t^Hgek6b8;KE^/cLASgbJ | constant |
    | NONCE_SALT           | Fg(G[K6ahz[{qr$7-Zw|.D lm&Os%m0%`32b7,e+#urikhl`,]`S;LC.e-#rFpcI | constant |
    | WP_CACHE_KEY_SALT    | 3/+G$*_zt& YjOh1znRC#v(!-p_H#:MN69U(lWbKJzmfaT$RjvHD{zE1TV(0WK{] | constant |
    +----------------------+------------------------------------------------------------------+----------+
    

    Code (Text):
    +--------------------+----------+--------+---------+
    | name               | status   | update | version |
    +--------------------+----------+--------+---------+
    | akismet            | inactive | none   | 4.1.1   |
    | autoptimize        | active   | none   | 2.5.0   |
    | autoptimize-gzip   | active   | none   | 0.1     |
    | cache-enabler      | active   | none   | 1.3.3   |
    | cdn-enabler        | active   | none   | 1.0.8   |
    | disable-xml-rpc    | active   | none   | 1.0.1   |
    | sucuri-scanner     | active   | none   | 1.8.20  |
    | advanced-cache.php | dropin   | none   |         |
    +--------------------+----------+--------+---------+
    +-----------------+----------+--------+---------+
    | name            | status   | update | version |
    +-----------------+----------+--------+---------+
    | twentynineteen  | active   | none   | 1.3     |
    | twentyseventeen | inactive | none   | 2.1     |
    | twentysixteen   | inactive | none   | 1.9     |
    +-----------------+----------+--------+---------+
    
     
  3. fabianski

    fabianski Member

    102
    14
    18
    Feb 20, 2019
    Ratings:
    +36
    Local Time:
    11:58 AM
    wpinfo.sh is avaialble only for new sites or old instalations too?
     
  4. eva2000

    eva2000 Administrator Staff Member

    55,233
    12,253
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,831
    Local Time:
    12:58 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    for new centmin.sh menu option 22 created wordpress sites only right now

    i just quickly whipped up a wpinfo-generator.sh script at wpinfo.sh for centmin.sh menu option 22 you can use to create wpinfo.sh for your existing centmin.sh menu option 22 created wordpress sites

    So to download to /root/tools/wpinfo-generator.sh and make it executable and run it passing your wordpress domain name i.e. yourdomain.com
    Code (Text):
    mkdir -p /root/tools
    wget -4 -O /root/tools/wpinfo-generator.sh https://gist.githubusercontent.com/centminmod/bbaa3a5dfc78fbb199db193beb7719ee/raw/wpinfo-generator.sh
    chmod +x /root/tools/wpinfo-generator.sh
    ./root/tools/wpinfo-generator.sh yourdomain.com
    

    if successful should create wpinfo.sh at /usr/local/nginx/conf/wpincludes/yourdomain.com/wpinfo.sh