
Table of Contents
Introduction
Hello dear readers! Today, we will learn how to install and configure the LiteSpeed Web Server, an excellent option to enhance your web performance and security. We have prepared a step-by-step guide specifically for cPanel and Plesk users. If you are ready to set up a fast and reliable web server, let’s get started!What is LiteSpeed Web Server?
LiteSpeed Web Server is a high-performance web server that can replace Apache. It operates faster and more efficiently, reducing your site’s load times and improving user experience. It is especially ideal for high-traffic sites and resource-intensive applications.Installing LiteSpeed Web Server for cPanel
Step 1: Purchasing a LiteSpeed License
First, you will need to purchase a license to use LiteSpeed Web Server. You can select a license that fits your needs from the official LiteSpeed website.Step 2: Connecting to the Server via SSH
Connect to your server where cPanel is installed via SSH. You can use a terminal or an SSH client for this process.
ssh root@sunucu_ip_adresi
Step 3: Downloading and Installing the LiteSpeed Installation Plugin
Download and install the LiteSpeed Web Server installation package:
// install
cd /usr/src
wget http://www.litespeedtech.com/packages/cpanel/lsws_whm_plugin_install.sh
sh ./lsws_whm_plugin_install.sh
// uninstall
rm lsws_whm_plugin_install.sh
Step 5: Configuring LiteSpeed Settings in WHM
Activate and configure LiteSpeed Web Server through WHM (Web Host Manager):- Log into WHM: Log in to WHM as the root user.
- Activate LiteSpeed: Go to the “LiteSpeed Web Server” option in the WHM menu and activate LiteSpeed.
- Click on the Install LiteSpeed Web Server button.
- After reading the License Agreement, check the I agree box and enter your license serial number or request a trial license.
- Scroll down a bit to find the Installation Options and WebAdmin Console Login sections.
- The default values in the Installation Options section should be acceptable, but for initial installations, it is recommended to set a different Port Offset from scratch.
1000** Enable PHP SuEXEC**, recommended for shared hosting and selected by default. For the WebAdmin Console Login section, you are only asked to enter a password, but it is recommended to use a username other than the default username for security. - When you are ready, click the Install button.
- After the installation is complete, click Done at the bottom of the page and start LSWS by clicking Restart LiteSpeed.
- Click Switch to LiteSpeed. This will stop Apache and switch LSWS to your main server ports (80 and 443).
- LiteSpeed is now running as your primary web server. Congratulations!
Installing LiteSpeed Web Server for Plesk
Step 1: Purchasing a LiteSpeed License
As with the cPanel installation, first purchase a LiteSpeed license.Step 2: Download the LiteSpeed Plugin
Download the plugin package from the official LiteSpeed website to install LiteSpeed Web Server on your server where Plesk is installed. LiteSpeed Plesk PluginStep 3: Enable Plugin Installation Feature
Edit or create the following file to enable the plugin installation feature in your Plesk panel.
nano /usr/local/psa/admin/conf/panel.ini
Enter the following lines into the file and save and exit with ctrl + x.
[ext-catalog]
extensionUpload = true
Step 4: Install and Activate the Plugin
- In Plesk, go to Extensions > My Extensions. Click the Install Extension button and upload the package downloaded in step 3.
- Access the LiteSpeed Plesk Extension under Server Management > Extensions > LiteSpeed Extension.
- Click on the Install LiteSpeed Web Server button.
- After reading the License Agreement, check the I agree box and enter your license serial number or request a trial license.
- Scroll down a bit to find the Installation Options and WebAdmin Console Login sections.
- The default values in the Installation Options section should be acceptable, but for initial installations, it is recommended to set a different Port Offset from scratch.
1000** Enable PHP SuEXEC**, recommended for shared hosting and selected by default. For the WebAdmin Console Login section, you are only asked to enter a password, but it is recommended to use a username other than the default username for security. - When you are ready, click the Install button.
- After the installation is complete, click Done at the bottom of the page and start LSWS by clicking Restart LiteSpeed.
- Click Switch to LiteSpeed. This will stop Apache and switch LSWS to your main server ports (80 and 443).
- LiteSpeed is now running as your primary web server. Congratulations!
LiteSpeed Web Server Configuration
Performance Settings
LiteSpeed Web Server can be optimized with performance settings. Here are some recommendations:- Cache Settings: Enable LiteSpeed’s cache features to reduce page load times.
- GZIP Compression: Enable GZIP compression to increase data transfer speed.
- HTTP/2 Support: Enable HTTP/2 for faster and more efficient data transfer.
Security Settings
LiteSpeed Web Server can also be enhanced with security settings:- SSL Certificates: Improve your site’s security by adding SSL certificates.
- DDoS Protection: Enable LiteSpeed’s DDoS protection features to safeguard your server from attacks.
- IP Blocking: Protect your server by blocking malicious IP addresses.
Leave a Reply