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
- 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
- CentOS 6:
- Next edit the
/etc/yum.repos.d/litespeed.repo
file with your favorite text editor and changeenabled=0
toenabled=1
inside of the[litespeed-edge]
and[litespeed-edge-update]
sections. - After that is done, run
$ sudo yum update
. This will update your OpenLiteSpeed install to the latest Edge tier version.
- 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:
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:
- First edit the
/etc/yum.repos.d/litespeed.repo
file with your favorite text editor and changeenabled=1
toenabled=0
inside of the[litespeed-edge]
and[litespeed-edge-update]
sections. - 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.
- Next run
$ sudo yum --showduplicates list openlitespeed
and find the latest version in the regularlitespeed
repository. - After you find the latest version, run
$ sudo yum downgrade openlitespeed-1.5.9-1.el8
to downgrade. Be sure to replace1.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
- 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
- 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. - Then run
$ sudo apt update
. - Finally, run
$ sudo apt install --upgrade openlitespeed
. This will update your OpenLiteSpeed installation to the latest Edge tier version.
- First you will need to make sure you have our latest repo file installed. This can be accomplished by running the following command:
That’s it! You are now on the Edge tier of OLS!
Remove
To go back to Stable Tier of OLS, follow these steps:
- 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. - 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.
- Next, run
$ sudo apt-cache policy openlitespeed
and find the latest version not currently installed. - After you find the latest version, run
$ sudo apt install openlitespeed=1.5.9-3+bionic
to downgrade. Be sure to replace1.5.9-3+bionic
with the latest stable version at that time.
- First, edit the
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.