KNOWNHOST WIKI

User Tools

Site Tools


control-panels:cpanel-whm:litespeed

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
control-panels:cpanel-whm:litespeed [2019/08/09 13:24]
Derrick B. removed
control-panels:cpanel-whm:litespeed [2019/08/09 13:24] (current)
Derrick B. created
Line 1: Line 1:
-====== Introduction to LiteSpeed ====== +{{page>control-panels/misc/introduction-to-litespeed}}
- +
-LiteSpeed is a [[https://​www.litespeedtech.com/​products/​litespeed-web-server/​overview|webserver]] that can be used instead of Apache. Currently, we only support this configuration for cPanel servers, where we use their [[https://​www.litespeedtech.com/​products/​control-panel-plugins/cpanel-whm-plugin|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 [[https://​www.knownhost.com/​wiki/​software-addons#​litespeed_webserver_enterprise|Software Addon]] which can be added via the [[https://​my.knownhost.com/​|Billing Portal (My Knownhost)]] as described [[https://​www.knownhost.com/​wiki/​my-knownhost/​manage-services/​add-remove-features|here]]. If you have trouble doing so, you can contact the Billing Department ​to assist you, either by [[billing@knownhost.com|emailing them]] or opening a ticket from the [[https://​support.knownhost.com|Support Portal]] but choosing the Billing Department when [[https://​www.knownhost.com/​wiki/​my-knownhost/​howto-login#​submitting_the_ticket|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 ''​[[https://​documentation.cpanel.net/​display/​EA4/​Apache#​Apache-Apachemodules|mod_ruid2]]'',​ due to the way it changes the user the webserver processes run as, and is probably not compatible with ''​[[https://​documentation.cpanel.net/​display/​EA4/​Apache+Module%3A+MPM+ITK|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 and running SuPHP, Opcode caching (such as Zend OPCache) would no longer work (and for this reason, all Opcode cachers should be removed while Apache and SuPHP are in use), but LiteSpeed'​s built-in PHP handler should still cache Opcode correctly if suEXEC is in [[https://​www.litespeedtech.com/​products/​litespeed-sapi/​php/​suexec-processgroup|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 [[https://​www.knownhost.com/​managed-vps.html|Managed VPS]] and [[https://​www.knownhost.com/​managed-cloud-kvm-vps.html|Managed KVM Cloud]] packages, the cost of the LiteSpeed license depends on the amount of RAM the server has. For our [[https://​www.knownhost.com/​dedicated-servers.html|Dedicated Server]] 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 [[billing@knownhost.com|email]] or by opening a ticket with the Billing Department from the [[https://​support.knownhost.com|Support Portal]].((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 [[https://​www.knownhost.com/​wiki/​my-knownhost/​howto-login#​support_portal|logged in]].)) +
- +
-===== 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/​%%''​.((replacing ''​%%<​IP address>​%%''​ with the server'​s IP address.)) 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 the rootuser , and then running the following command: +
- +
-<​code>​ +
-/​usr/​local/​lsws/​admin/​misc/​admpass.sh +
-</​code>​ +
- +
-This will prompt you for a new password. Make sure to choose a strong one! +
- +
-You can also feel free to [[support:​how-do-i-submit-a-ticket|open a Support Ticket]] if you need assistance resetting the LiteSpeed password, or with other LiteSpeed configuration changes. +
control-panels/cpanel-whm/litespeed.txt · Last modified: 2019/08/09 13:24 by Derrick B.