User Tools

Site Tools


control-panels:cpanel-whm:litespeed

Introduction to LiteSpeed

LiteSpeed is a webserver that can be used instead of Apache. Currently, we only support this configuration for cPanel servers, where we use their official WHM plugin to do so. With this plugin, cPanel Support will also officially support LiteSpeed, so if LiteSpeed itself or the plugin itself is broken in a way we are not able to fix, we will be able to ask them for additional assistance (or to open a bug report if needed). In part for this reason, LiteSpeed is often a better option than nginx, despite the price difference.

For very high-traffic websites, LiteSpeed can sometimes be more efficient than Apache. Sometimes, adding LiteSpeed to a server can allow it to handle the site traffic more easily without needing to add more resources to the server. Since, depending on the size of the server, adding LiteSpeed can sometimes cost less than moving to a higher tier server plan, it can be worth considering. Additionally, for sites with the highest of traffic levels, even a large server might not be able to keep up well enough if using Apache. In such situations, switching to LiteSpeed may be necessary in order for the site to work well.

If you do decide you would like LiteSpeed added to your server, it is available as a Software Addon which can be added via the Billing Portal (My Knownhost) as described here. If you have trouble doing so, you can contact the Billing Department to assist you, either by emailing them or opening a ticket from the Support Portal but choosing the Billing Department when opening the ticket.

Uses

LiteSpeed is most useful for sites with very high traffic. Under these conditions, Apache (with typical configurations) would launch many processes in order to handle these requests. Each of these processes would take up some of the cpu time and some of the memory, so even if some of the limits are set higher to allow Apache to "attempt" to handle more requests, that could put other daemons in danger such as mysql, if there isn't enough memory left for them.

LiteSpeed can also help somewhat in a server with many sites of low to medium traffic, if there are enough sites that even this amount of traffic causes high server load. However, in these cases, it may be more effective to split the accounts among more servers.

Compatibility

It is important to note that LiteSpeed is not compatible with mod_ruid2, due to the way it changes the user the webserver processes run as, and is probably not compatible with mpm-itk for the same reason. For this reason, if you will be using LiteSpeed, it is recommended to set apache's php handler to suphp. While the server is in apache-mode, opcode caching would no longer work (and for this reason, all opcode cachers should be removed from apache's php in this case), but LiteSpeed's built-in php handler should still cache opcode correctly if suEXEC is in ProcessGroup mode.

Other Bottlenecks

If Apache is not the bottleneck slowing down the sites, the impact of switching to LiteSpeed may be minimal. For example, if your sites are spending much more time waiting for MySQL queries to complete than for Apache to serve the pages or PHP to run the scripts, MySQL would be likely to require a similar amount of time to run the queries even if LiteSpeed is being used instead of Apache.

License Levels

For our VPS1) and SSD-VPS2) packages, the cost of the LiteSpeed license depends on the amount of RAM the server has. For our Dedicated Server3) packages, the cost of the LiteSpeed license depends on how many of the server's CPUs you would like to be used for LiteSpeed at once. For more information about licensing, please feel free to contact the Billing Department either by email or by opening a ticket from the Support Portal.4)

Accessing

Some of the features of the LiteSpeed plugin for WHM can be accessed directly from WHM, at Home → Plugins → LiteSpeed Web Server. However, some of the features can only be accessed from within the LiteSpeed admin area. This can be found at url http://<IP address>:7080/.5) This page requires a separate login from WHM. By default, the LiteSpeed admin area will have uesrname admin and the password will be what the server's root password was at the time LiteSpeed was installed.

Resetting Password

If you need to change the password for the LiteSpeed admin area, this can be done by logging into SSH as root, and then running the following command:

/usr/local/lsws/admin/misc/admpass.sh

This will prompt you for a new password. Make sure to choose a strong one!

You can also feel free to open a Support Ticket if you need assistance resetting the LiteSpeed password, or with other LiteSpeed configuration changes.

1) , 2) , 3)
Pricing information about package Add-Ons is near the bottom of the page.
4)
Remember if trying to contact the Billing Department, to choose that Department when opening the ticket. If "Billing" is not one of the options available, please check if you have logged in.
5)
replacing <IP address> with the server's IP address.
control-panels/cpanel-whm/litespeed.txt · Last modified: 2016/10/12 18:42 by Marjorie S.