Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
litespeed_wiki:admin:lsup [2018/03/22 18:41]
Jackson Zhang [Example]
litespeed_wiki:admin:lsup [2023/04/14 19:14] (current)
Lisa Clarke Redirect to new Documentation Site
Line 1: Line 1:
-====== The lsup Command ====== +~~REDIRECT>​https://docs.litespeedtech.com/​lsws/​updates/~~
- +
-If an update is unavailable in your control panel (or you just prefer the command line) you can update LSWS from the terminal. +
- +
-The ''​lsup''​ command is a simple way to update LiteSpeed Web Server from the command line, allowing the possibility of upgrading hordes of LSWS installations with a single command. +
- +
-===== Location ===== +
- +
-The ''​lsup''​ command is located at ''​$SERVER_ROOT/​admin/​misc/​lsup.sh''​. In most CentOS installations,​ the command is thus: +
- +
-  /​usr/​local/​lsws/​admin/​misc/​lsup.sh +
- +
-===== Function ===== +
- +
-Running the basic ''​lsup''​ command will automatically upgrade your installation of LiteSpeed Web Server to the latest release. There are also options for customizing the command listed below. +
- +
-===== Options ===== +
- +
-  * ''​-f'':​ If you already have the version to be installed, the basic ''​lsup''​ command will abort. The ''​-f''​ option forces ''​lsup''​ to install even if the version you have is the same version as the LSWS to be installed. This can be useful if there has been a change in the build since you upgraded, but a new build has not yet been released. +
-  * ''​-v'':​ You can control what version you install with the ''​-v''​ option followed by a version number. (For example: ''​./​lsup.sh -v 4.2.2''​) This will allow you to downgrade to older versions if you run into a bug. Keep in mind, LiteSpeed only keeps the most recent few versions available. Much older versions are not available. +
-  * ''​-b'':​ Designates a build number. All versions start from build ''​0''​. To view what build you are currently using, view ''/​usr/​local/​lsws/​autoupdate/​build''​. Will automatically upgrade to the latest build of the designated version if ''​-b''​ is not set. (Only available for versions 5.0 and higher.) +
- +
-**NOTE**: for ''​-v''​ and ''​-b'',​ you can get a version number [[https://www.litespeedtech.com/​products/​litespeed-web-server/​release-log|here]] if you need one. +
- +
-===== Example ===== +
- +
-Force an update to version 5.2.4: +
-<​code>/​usr/​local/lsws/admin/misc/​lsup.sh -f -v 5.2.4</​code>​ +
- +
-Force an update to version 5.2.5 build 4: +
-<​code>/​usr/​local/​lsws/​admin/​misc/​lsup.sh -f -v 5.2.5 -b 4</​code>​+
  • Admin
  • Last modified: 2018/03/22 18:41
  • by Jackson Zhang