There are two different methods for upgrading your version of OpenLiteSpeed:
- LiteSpeed repository
- Binary install
In order to avoid complications, always upgrade or downgrade using the same method you used to install OpenLiteSpeed originally.
There is one exception to this rule. OpenLiteSpeed is generally available in two branches: the stable branch, and the edge branch. The LiteSpeed repository only keeps versions of the stable branch available. For example, at the time of this writing, the latest OpenLiteSpeed version is 1.6.1, but only versions in the 1.5.x branch are available in the LiteSpeed repo. As such, you cannot upgrade from 1.5.x to any 1.6.x version from the repo. If you wish to do this, please see Method 3.
Method 1: LiteSpeed Repository
If you installed OLS through the LiteSpeed repository before, you should simply run the package update command:
yum update OpenLiteSpeed
For Debian & Ubuntu:
apt-get upgrade OpenLiteSpeed
Method 2: Binary Install
If you installed OLS by downloading the package and running
./install.sh, you will need to do the same to upgrade. For example, you could upgrade from 1.5.x to 1.6.1 like so:
wget https://openlitespeed.org/packages/openlitespeed-1.6.1.tgz tar -zxvf OpenLiteSpeed-*.tgz cd OpenLiteSpeed ./install.sh
Method 3: Latest Branch via Binary Install
As we explained, the LiteSpeed repository can only upgrade to the latest version of the stable branch. If you wish to upgrade to the latest edge version, you will need to uninstall the repo version and re-install via the binary package, like so:
- Back up your entire OLS configuration.
- Uninstall OLS through
apt-get, as appropriate, to avoid accidentally downgrading in the future.
- Copy the OLS configuration backup to
- Download the latest binary package from https://openlitespeed.org/downloads/, unpack, and run