How to Install LiteSpeed Web Server on cPanel/WHM Server
Introduction
Apache HTTP Server is one of the most widely used web servers in the hosting industry. However, with increasing performance demands, many administrators look for faster alternatives.
LiteSpeed Web Server is a high-performance web server that is compatible with Apache configurations and offers significantly better speed and scalability. It is widely used as a drop-in replacement for Apache in cPanel/WHM environments.
Prerequisites
Before proceeding, ensure:
- Root SSH access to your server
- A cPanel/WHM installed server
- Apache installed and running
- Basic knowledge of Linux commands
- Backup of existing configuration
Implementation
Step 1: Download LiteSpeed
Login to your server via SSH and download the LiteSpeed package:
cd ~
wget http://www.litespeedtech.com/packages/4.0/lsws-4.0.3-std-i386-linux.tar.gz
Note: Always verify the latest version from the official LiteSpeed website.
Step 2: Extract the Package
tar -zxvf lsws-4.0.3-std-i386-linux.tar.gz
cd lsws-4.0.3
Step 3: Run Installer
./install.sh
Step 4: Follow Installation Prompts
During installation, configure the following:
- Accept license → Type Yes (capital Y required)
- Installation directory → Default (
/usr/local/lsws) - Admin username → Default (
admin) - Admin password → Set a strong password
- Email address → Enter valid admin email
- Server user/group →
nobody(recommended) - HTTP Port →
80 - Admin Panel Port → Default (
7080) - PHP support → Y (recommended)
- AWStats → Optional (usually N)
- Auto start on boot → Y
Step 5: Start LiteSpeed
If not started automatically:
/usr/local/lsws/bin/lswsctrl start
Testing LiteSpeed
- Open your browser and visit:
http://your-server-ip - Access admin panel:
http://your-server-ip:7080
If you see the LiteSpeed welcome page, installation is successful.
Notes
- Ensure port 80 is free (stop Apache if needed)
- LiteSpeed can integrate with cPanel using LiteSpeed plugins (recommended for production)
- The Standard Edition has limitations; Enterprise version is recommended for hosting environments
- Always secure the admin panel (change default credentials and restrict access)
Conclusion
LiteSpeed Web Server is a powerful alternative to Apache, offering improved performance and better resource utilization. With proper configuration, it can significantly enhance website speed and server efficiency in a cPanel environment.
