LiteSpeed web server
LiteSpeed is a profit-oriented web server that is known for its high performance. LiteSpeed differs from other web servers in terms of:
- operation speed
- security level
- way of handling dynamic content
Below are the main differences between the free and paid editions of web servers: OpenLiteSpeed LiteSpeed Only supports native format of configuration file templates Fully compatible with Apache configuration files. Loads and replaces all of its pre-installed functions Limited .htaccess support only for rewriting rules, not directives Full .htaccess support
Learn more about advantages of LiteSpeed on our website ispmanager.com.
Requirements
- ispmanager panel version 6.123 or higher
- the server does not use CloudLinux OS
- the server does not have any other web servers installed
Web server installation
There are two ways to install LiteSpeed: during panel installation and after panel installation.
During panel installation
- Connect to the server with the panel via SSH.
- Run the panel installation script:
sh install.eu.sh
Use the --litespeed KEY parameter to activate the web server license key. - At the second step of installation, select the panel with the recommended software. When choosing the minimal panel build, LiteSpeed can be installed later in the panel's Modules section.
- At the third step, choose to install the LiteSpeed web server.
- Compete panel installation process.
After panel installation
- Log in to ispmanager panel under an administartor level account or above.
- Navigate to the Modules section.
- Find the LightSpeed server in the list.
- Click Install.
- Wait untill the web server installation is complete.
Enabling web server
- Installation of other web servers is is available after uninstalling LiteSpeed.
- The web server is installed in addition to Apache.
- The only PHP mode available for sites is LSAPI.
- The only PHP handler type available for users is LSAPI.
- Setting user limits that operate at the Nginx level will not be available.
- PHP 5.2 is not available after installing LiteSpeed.
Technical details
Commands and their purpose:
/usr/local/mgr5/etc/scripts/litespeed_install.sh
— LiteSpeed installation script. Is automatically called after the ispmanager-pkg-litespeed package, which is responsible for installing the web server as an addition to Apache.httpd -t
orapachectl -t
— Apache site configuration testing commands. Unlike the script/usr/local/lsws/bin/lshttpd -t
, the commands do not ignore errors in the web server configurations.
Directories and their purpose:
/usr/local/lsws/conf/httpd_config.xml
— LiteSpeed configuration file./usr/local/mgr5/etc/ispmgr.conf.d/litespeed.conf
— LiteSpeed handler configuration file./etc/APACHE2_OR_HTTPD/users-php/USER.conf
— user configuration file with PHP settings./etc/APACHE2_OR_HTTPD/vhosts-php/SITE.conf
— site configuration file with PHP settings.
Directives of site configuration files intended only for LiteSpeed are enclosed in the <IfModule LiteSpeed> tag, those intended only for Apache are enclosed in the <IfModule !LiteSpeed> tag. This allows to stop LiteSpeed and start Apache at any time.
License activation
To start working with the web server, you can activate a license or trial key.
All web server tariff plans are listed on our website. You can order the paid version of LiteSpeed in your personal account. After purchase, the license is linked to one IP address. If you need to change the address to another, unlink it in your personal account.
There are two ways to activate the web server: during installation of the panel and after its installation.
During panel installation
- Connect to the server with the panel via SSH.
- Run the panel installation script with the
--litespeed KEY parameter:
sh install.eu.sh --litespeed KEY
Detailswhere KEY:- License key from your personal account in the XXXX-XXXX-XXXX-XXXX format.
- TRIAL for trial key.
If the key is specified incorrectly, the script will prompt you to enter the data again.
- Complete panel installation process.
After panel installation
- Log in to ispmanager panel under an administrator level account or above.
- Navigate to the Modules section.
- Find the LightSpeed server in the list.
- Click
next to the module.
- In the new tab, click
- In the form on the right, enter the license key number from your personal account.
- Save the changes.
Working with license
After activating the key in the LiteSpeed settings, one of three options is displayed in the License type:
- ispmanager — license purchased in your personal account.
- Third-party license — license purchased at the official LiteSpeed website.
- Trial — web server trial license.
The following buttons are available to manage the license:
- Buy a license — purchase of LiteSpeed license in your personal account.
-
Update ispmanager license information or
Switch to ispmanager license — check for a license and automatically activate it using a key. The button display changes according to the type of license used: the ispmanager or a Third-party license, respectively.
-
Enter LiteSpeed license key — calls a form for entering a license key. The button is not displayed if ispmanager is specified in the License type.
Onve the web server is activated, the key is stored in the serial.no
file in the /usr/local/lsws/conf/
directory. To display information about the license, use the /usr/local/lsws/bin/lshttpd -t
command in the terminal.
Once a day, the panel automatically checks the connected license. If there are less than 5 days left until its expiration, the administrator will receive a notification in the ispmanager panel. The number of days and the frequency of checking can be changed in the litespeed.conf
file in the /usr/local/mgr5/etc/ispmgr.conf.d/
directory.
- LitespeedLicenseWarningDay 5 — checks the license expiration date. Affects the receipt of a notification after a specified number of days. Default value: "5 days".
- LitespeedLicenseCheckPeriod 1440 — sets the frequency of license operation check. Default value: "1440 minutes" or 24 hours.
Disabling web server
- If the active license period has expired, the web server is suspended.
- If LiteSpeed is not operational for any reasons, Apache web server is automatically enabled.