Discover Centmin Mod today
Register Now

Beta Branch Update Varnish Cache 3.0 YUM repo to 4.1 YUM repo in 123.09beta01

Discussion in 'Centmin Mod Github Commits' started by eva2000, Sep 25, 2016.

  1. eva2000

    eva2000 Administrator Staff Member

    54,893
    12,240
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,811
    Local Time:
    6:57 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    Update Varnish Cache 3.0 YUM repo to 4.1 YUM repo in 123.09beta01

    Centmin Mod includes the official Varnish Cache 3.0 YUM repository so to leave it to end users to install Varnish Cache and configure it for their own needs. This update updates to Varnish Cache 4.1 YUM repo from official site. Documentation for Varnish Cache 4.1 is at https://varnish-cache.org/docs/4.1/index.html and it's up to end users to understand how to install via this YUM repo, Varnish Cache 4.1 and configure and setup their own VCL rules for their respective web applications. Centmin Mod is provided as is and without support for Varnish Cache configuration and setup issues. End users are welcome to help each other out on the forums though ;)

    Continue reading...


    123.09beta01 branch
     
  2. eva2000

    eva2000 Administrator Staff Member

    54,893
    12,240
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,811
    Local Time:
    6:57 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+

    Varnish Cache 3.0 YUM Repo Updated to 4.1 YUM Repo



    Updated 123.09beta01's included Varnish Cache YUM repo from 3.0 to 4.1 version at Beta Branch - Update Varnish Cache 3.0 YUM repo to 4.1 YUM repo in 123.09beta01 | Centmin Mod Community

    For existing 123.09beta01 and older users prior to this update, you need to do a yum check to install the updated Varnish Cache 4.1 YUM repo. The yum checks are the 1st steps in centmin.sh menu option 4 and 5 runs for nginx and php recompiles/updates. You can run centmin.sh menu option 4 and when asked to do a yum check, answer yes so it installs any new YUM repos coded into Centmin Mod. Then just answer no when continuing to nginx upgrade/recompile.

    You can update Centmin Mod 123.09beta01 via centmin.sh menu option 23 submenu option 2 outlined at Upgrade Centmin Mod - CentminMod.com LEMP Nginx web stack for CentOS or just use git pull in /usr/local/src/centminmod

    example of git pull method of updating
    Code (Text):
    cmdir
    git stash
    git pull
    ./centmin.sh


    sample output
    Code (Text):
    [root@centos7 ~]# cmdir
    /usr/local/src/centminmod ~
    
    [root@centos7 centminmod]# git stash
    No local changes to save
    
     git pull
    Updating 497e0fa..4ad1156
    Fast-forward
     addons/acmetool.sh                | 170 ++++++++++++++++++++++++++++++++++++++++++++++++++++++-------------------
     addons/mysqladmin_shell.sh        |  50 +++++++++++++++++++---
     centmin.sh                        |   2 +-
     config/mysql/my-mdb10-16gb.cnf    |   1 +
     config/mysql/my-mdb10-32gb.cnf    |   1 +
     config/mysql/my-mdb10-4gb.cnf     |   1 +
     config/mysql/my-mdb10-64gb-8c.cnf |   1 +
     config/mysql/my-mdb10-64gb.cnf    |   1 +
     config/mysql/my-mdb10-8gb.cnf     |   1 +
     config/mysql/my-mdb10-min.cnf     |   1 +
     config/mysql/my-mdb10.cnf         |   1 +
     example/custom_config.inc         |   2 +-
     inc/downloadlinks.inc             |   8 ++--
     inc/nginx_addvhost.inc            | 159 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++---------
     inc/nginx_patch.inc               |  13 +++++-
     inc/nginx_upgrade.inc             |   4 ++
     inc/openssl_install.inc           |   9 ++++
     inc/phpsededit.inc                |  16 +++----
     inc/tcp.inc                       |   8 +++-
     inc/wpsetup.inc                   | 486 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++-----------------------------------------------------
     inc/yumpriorities.inc             |  22 +++++-----
     tools/nginxupdate.sh              |   2 +-
     tools/nv.sh                       | 159 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++---------
     tools/nvwp.sh                     |  23 +++++++++-
     tools/setio.sh                    |  45 +++++++++++++++++++-
     25 files changed, 941 insertions(+), 245 deletions(-)

    so 24 files were changed / updated

    run centmin.sh menu option 4 (if using centmin.sh menu option 23, be sure to exist centmin.sh after update and re-enter /usr/local/src/centminmod to re-run centmin.sh menu option 4)
    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]: 

    relevant part of the yum check output
    Code (Text):
    Error: varnish-4.1.el7.rpm not found !!! Downloading now......
    2016-09-24 16:44:32 URL:https://repo.varnish-cache.org/redhat/varnish-4.1.el7.rpm [7088/7088] -> "varnish-4.1.el7.rpm" [1]
    Download done.
    setting yum priorities for varnish-4.1.repo
    [varnish-4.1]
    name=Varnish Cache 4.1 for Enterprise Linux
    baseurl=https://repo.varnish-cache.org/redhat/varnish-4.1/el7/$basearch
    enabled=1
    gpgcheck=1
    *************************************************
    Fixing varnish-4.1.repo YUM Priorities
    *************************************************
    [varnish-4.1]
    name=Varnish Cache 4.1 for Enterprise Linux
    baseurl=https://repo.varnish-cache.org/redhat/varnish-4.1/el7/$basearch
    enabled=1
    gpgcheck=1
    priority=2
    gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-VARNISH
    

    List of all installed YUM repos on Centmin Mod
    Code (Text):
    yum repolist all -q
    

    varnish-4.1 and previously installed varnish-3.0 YUM repo is listed. varnish-3.0 yum repo is disabled by default while varnish 4.1 yum repo is enabled by default
    Code (Text):
    yum repolist all -q | grep varnish
    varnish-3.0/x86_64                   Varnish 3.0 for Enterp disabled
    varnish-4.1/x86_64                   Varnish Cache 4.1 for  enabled:          29
    

    available packages in varnish-4.1 yum repo only
    Code (Text):
    yum list available --disablerepo=* --enablerepo=varnish-4.1 -q
    Available Packages
    varnish.x86_64                     4.1.3-1.el7           varnish-4.1
    varnish-agent.x86_64               4.1.1-1.el7.centos    varnish-4.1
    varnish-agent-debuginfo.x86_64     4.1.1-1.el7.centos    varnish-4.1
    varnish-debuginfo.x86_64           4.1.3-1.el7           varnish-4.1
    varnish-docs.x86_64                4.1.3-1.el7           varnish-4.1
    varnish-libs.x86_64                4.1.3-1.el7           varnish-4.1
    varnish-libs-devel.x86_64          4.1.3-1.el7           varnish-4.1
    


    @cloud9 ;)
     
  3. eva2000

    eva2000 Administrator Staff Member

    54,893
    12,240
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,811
    Local Time:
    6:57 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    Unfortunately, Varnish Cache 4.1 still doesn't support HTTPS natively SSL revisited — Varnish version 4.1.2 documentation

    Varnish Cache 5.0 with HTTP/2 HTTPS support was released a few days ago Varnish 5.0 Release Note — Varnish version 5.0.0 documentation though but they don't recommend production use right now
    Changes in Varnish 5.0 — Varnish version 5.0.0 documentation