Upgrade OLS to Edge Tier

You are here:
< Back

This guide will teach you how to upgrade your OpenLiteSpeed install to OLS’s Edge Tier.

Repository

This section assumes you have already set up OpenLiteSpeed via LiteSpeed’s Repository from this guide here.

CentOS

Setup

      1. First, you will need to make sure you have the latest version of our repo file installed. This can be accomplished by running the following in a terminal:
        • CentOS 6:
          $ sudo rpm -Uvh http://rpms.litespeedtech.com/centos/litespeed-repo-1.2-1.el6.noarch.rpm
        • CentOS 7:
          $ sudo rpm -Uvh http://rpms.litespeedtech.com/centos/litespeed-repo-1.2-1.el7.noarch.rpm
        • CentOS 8:
          $ sudo rpm -Uvh http://rpms.litespeedtech.com/centos/litespeed-repo-1.2-1.el8.noarch.rpm
        • Manual: Edit the /etc/yum.repos.d/litespeed.repo file with your favorite text editor and add the following to the end of the file:
          $ sudo vi /etc/yum.repos.d/litespeed.repo
          [litespeed-edge]
          name=LiteSpeed Tech Edge Repository for CentOS $releasever - $basearch
          baseurl=http://rpms.litespeedtech.com/edge/centos/$releasever/$basearch/
          failovermethod=priority
          enabled=0
          gpgcheck=1
          gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-litespeed
          
          [litespeed-edge-update]
          name=LiteSpeed Tech Edge Update Repository for CentOS $releasever - $basearch
          baseurl=http://rpms.litespeedtech.com/edge/centos/$releasever/update/$basearch/
          failovermethod=priority
          enabled=0
          gpgcheck=1
          gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-litespeed
      2. Next edit the /etc/yum.repos.d/litespeed.repo file with your favorite text editor and change enabled=0 to enabled=1 inside of the [litespeed-edge] and [litespeed-edge-update] sections.
      3. After that is done, run $ sudo yum update. This will update your OpenLiteSpeed install to the latest Edge tier version.

That’s it! You are now on the Edge tier of OLS!

Remove

To go back to the stable tier of OLS follow these steps:

  1. First edit the /etc/yum.repos.d/litespeed.repo file with your favorite text editor and change enabled=1 to enabled=0 inside of the [litespeed-edge] and [litespeed-edge-update] sections.
  2.  You can end here if you want to wait for Stable Tier to catch up as it will stay on this version till Stable Tier gets a higher version number. If you want to go back to stable right away then continue.
  3. Next run $ sudo yum --showduplicates list openlitespeed and find the latest version in the regular litespeed repository.
  4. After you find the latest version, run $ sudo yum downgrade openlitespeed-1.5.9-1.el8 to downgrade. Be sure to replace 1.5.9-1.el8 with the latest stable version at that time.

That’s it! You are now back on the stable tier and will only update from the stable tier!

Ubuntu/Debian

Setup

    1. First you will need to make sure you have our latest repo file installed. This can be accomplished by running the following command:
      $ sudo wget -O - http://rpms.litespeedtech.com/debian/enable_lst_debian_repo.sh | sudo bash
    2. Next, edit the /etc/apt/sources.list.d/lst_debian_repo.list file with your favorite text editor and remove the “#” from the second line.
    3. Then run $ sudo apt update.
    4. Finally, run $ sudo apt install --upgrade openlitespeed. This will update your OpenLiteSpeed installation to the latest Edge tier version.

That’s it! You are now on the Edge tier of OLS!

Remove

To go back to Stable Tier of OLS, follow these steps:

    1. First, edit the /etc/apt/sources.list.d/lst_debian_repo.list file with your favorite text editor and comment out the second line that includes “edge” with a # at the beginning of the line.
    2.  You can end here if you want to wait for Stable Tier to catch up. It will remain on this version until Stable Tier increases its version number. If you want to go back to stable right away then continue to step 3.
    3. Next, run $ sudo apt-cache policy openlitespeed and find the latest version not currently installed.
    4. After you find the latest version, run $ sudo apt install openlitespeed=1.5.9-3+bionic to downgrade. Be sure to replace 1.5.9-3+bionic with the latest stable version at that time.

That’s it! You are now back on Stable Tier and will only update from Stable Tier!

Manual

This section will show you how to install the latest Edge tier manually. Note that this should not be run when using OLS installed by the Repository. Also note that this just updates the binary files, WebAdmin may still be out of date. To update everything please follow the guide here.

To get the latest version manually, run the following:

$ sudo /usr/local/lsws/admin/misc/testbeta.sh -d VERSION

Be sure to replace version listed with the version you wish to install.