Upgrading LiteSpeed web server from 3.x.x to 4.x.x is easy even though you cannot do so through the web admin console. You are probably used to being able to click the upgrade link in the web admin console and have LiteSpeed do all of the work including having already downloaded the newer release. When upgrading between major versions though you are going to have to put in a little bit more work. Follow the directions below which outline step by step what needs to be done to upgrade LiteSpeed web server from 3.x to 4.x. Below the installation instructions is a more descriptive output of what you will see during the upgrade.
- Download New LiteSpeed Version: Logon to your Linux server and change the directory to /usr/local/src to download the 4.x version of LiteSpeed as described below.
- cd /usr/local/src
- wget http://www.litespeedtech.com/packages/4.0/lsws-4.0.1-std-i386-linux.tar.gz
- Unpack LiteSpeed: Now unpack the LiteSpeed web server package you have just downloaded.
- tar -zxvf lsws-4.0.1-std-i386-linux.tar.gz
- Start LiteSpeed Upgrade: Now cd into the newly created LiteSpeed directory and start the LiteSpeed web server upgrade process using the syntax shown below.
- cd lsws-4.0.1
- sh install.sh
- Answer LiteSpeed Upgrade Questions: Now answer the questions as described below.
Do you agree with above license? Yes
–NOTE– You must agree to the license to continue the upgrade process.Destination [/opt/lsws]: /var/lsws
–NOTE– Enter the same directory where LiteSpeed is currently installed or you will not get the upgrade option.Would you like to Upgrade, Reinstall or Change directory [U/r/c]? U
–NOTE– You can just hit Enter if it has noticed your other LiteSpeed installation.Would you like to reset the login password for Administration Web Interface [y/N]? N
–NOTE– You can obvisouly type “y” if you want to change the password but the default is not to change it.Would you like to install AWStats Add-on module [y/N]? N
–NOTE– You can also install the AWStats module if you want to but I did not require this module.Would you like to restart it right now [Y/n]? Y
–NOTE– You should definitely restart LiteSpeed after upgrading. - Verify Upgrade: Now login to the web admin console of your LiteSpeed installation typically located on port 7080. Click Actions in the top navigtion and select Version Manager from the drop down. You should see a 4.0.1 line with Active under the Actions column. You should also see your old version of LiteSpeed with Switch To and Remove as links under the Actions column.
More detailed output of the answering questions section after running install.sh are below:
- [root@corp lsws-4.0.1]# sh install.sh
- IMPORTANT: In order to continue installation you must agree with above
- license terms by typing "Yes" with capital "Y"!
- Do you agree with above license? Yes
- #####################
- Please specify the destination directory. You must have permissions to
- create and manage the directory. It is recommended to install the web server
- at /opt/lsws, /usr/local/lsws or in your home directory like '~/lsws'.
- ATTENTION: The user 'nobody' must be able to access the destination
- directory.
- Destination [/opt/lsws]: /var/lsws
- #####################
- Found old configuration file under destination directory /var/lsws.
- To upgrade, press 'Enter', current configuration will not be changed.
- To reinstall, press 'R' or 'r'.
- To change directory, press 'C' or 'c'.
- Would you like to Upgrade, Reinstall or Change directory [U/r/c]?
- ######################
- Would you like to reset the login password for Administration Web Interface [y/N]?
- ######################
- Installing, please wait...
- AWStats Integration
- AWStats is a popular log analyzer that generates advanced web server
- statistics. LiteSpeed web server seamlessly integrates AWStats into
- its Web Admin Interface. AWStats configuration and statistics update
- have been taken care of by LiteSpeed web server.
- Note: If AWStats has been installed already, you do not need to
- install again unless a new version of AWStats is available.
- Would you like to install AWStats Add-on module [y/N]?
- #########################
- Congratulations! The LiteSpeed Web Server has been successfully installed.
- Command line script - "/var/lsws/bin/lswsctrl"
- can be used to start or stop the server.
- It is recommended to limit access to the web administration interface.
- Right now the interface can be accessed from anywhere where this
- machine can be reached over the network.
- Three options are available:
- 1. If the interface needs to be accessed only from this machine, just
- change the listener for the interface to only listen on the loopback
- interface - localhost(127.0.0.1).
- 2. If the interface needs to be accessible from limited IP addresses or sub
- networks, then set up access control rules for the interface accordingly.
- 3. If the interface has to be accessible via internet, SSL (Secure Sockets
- Layer) should be used. Please read respective HOW-TOs on SSL configuration.
- To change configurations of the interface, login and click
- "Interface Configuration" button on the main page.
- The administration interface is located at http://localhost:/
- or http://:/
- Would you like to restart it right now [Y/n]?
- ###########################
- [OK] Send SIGUSR1 to 16357
- [OK] lshttpd: pid=12619.
- LiteSpeed Web Server started successfully! Have fun!
- [root@corp lsws-4.0.1]#