# Litespeed Webserver
# About
LiteSpeed (opens new window) web server is a drop-in Apache replacement. From adopting LiteSpeed you can expect to see;
- Faster site loading times
- Increased security (ModSecurity rules)
- LiteSpeed’s caching plugins for the major CMS’s (WordPress)
- Improved server load
Enhance supports Apache, LiteSpeed and OpenLiteSpeed. It is possible to run different web servers on each server in your Enhance cluster. You can also switch between all supported web servers without any configuration changes.
# Switching to LiteSpeed
Switching to LiteSpeed web server will:
- Automatically shut down Apache and run the official LS docker image on the default http and https ports
- If switching from Apache, all php-fpm containers will be stopped and restarted as lsphp
TIP
Before proceeding, you must firstly obtain a LiteSpeed licence. If you do not enter a LiteSpeed licence key, LiteSpeed will attempt to obtain a trial licence. If the IP has been previously licenced this may fail.
To switch to LiteSpeed web server:
- Select Servers from the left hand menu
- Select the server you would like to edit the Application role for
- Scroll to Roles section and select the Application tab
- Select Settings and when the page loads, select Edit
- Select LiteSpeed and follow the instructions on screen to finish
You can expect to see downtown from 30 seconds to 10 minutes, this depends on server load and the number of hosted websites.
TIP
If you change web server on the control panel server and the new web server cannot start, due to a licence issue or otherwise, you can use the CLI to switch back. Run:
appcd-cli 127.0.0.1 change-webserver apache
LiteSpeed configuration
The LiteSpeed config can not yet be customised.
Sensible default config settings for mass hosting are set with caching enabled on all websites when used with a suitable CMS plugin such as LiteSpeed Cache.
Any changes made within the LiteSpeed admin panel will not be retained after any config change.
Change admin username and password
Upon installation a randomised LiteSpeed Admin panel username and password is generated.
To change LiteSpeed username and password:
- Enter your LiteSpeed container
docker exec -it litespeed /bin/bash
- Run the command below and follow the onscreen prompts;
/usr/local/lsws/admin/misc/admpass.sh