Press ESC to close

How to Install and Configure LiteSpeed ​​Web Server?

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):
  1. Log into WHM: Log in to WHM as the root user.
  2. Activate LiteSpeed: Go to the “LiteSpeed Web Server” option in the WHM menu and activate LiteSpeed.
  3. Click on the Install LiteSpeed Web Server button.
  4. After reading the License Agreement, check the I agree box and enter your license serial number or request a trial license.
  5. Scroll down a bit to find the Installation Options and WebAdmin Console Login sections.
  6. 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.
  7. When you are ready, click the Install button.
  8. After the installation is complete, click Done at the bottom of the page and start LSWS by clicking Restart LiteSpeed.
  9. Click Switch to LiteSpeed. This will stop Apache and switch LSWS to your main server ports (80 and 443).
  10. 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 Plugin

Step 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

  1. In Plesk, go to Extensions > My Extensions. Click the Install Extension button and upload the package downloaded in step 3.
  2. Access the LiteSpeed Plesk Extension under Server Management > Extensions > LiteSpeed Extension.
  3. Click on the Install LiteSpeed Web Server button.
  4. After reading the License Agreement, check the I agree box and enter your license serial number or request a trial license.
  5. Scroll down a bit to find the Installation Options and WebAdmin Console Login sections.
  6. 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.
  7. When you are ready, click the Install button.
  8. After the installation is complete, click Done at the bottom of the page and start LSWS by clicking Restart LiteSpeed.
  9. Click Switch to LiteSpeed. This will stop Apache and switch LSWS to your main server ports (80 and 443).
  10. 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.

Conclusion

LiteSpeed Web Server is a great way to enhance the speed and security of your website. By following the installation steps for cPanel and Plesk, you can make your server fast and reliable. I hope this guide has been helpful in setting up LiteSpeed Web Server. If you have any questions, feel free to share them in the comments section. See you next time!

FAQ (Frequently Asked Questions)

What is LiteSpeed Web Server?

LiteSpeed Web Server is a high-performance and reliable web server. It can be used as a replacement for Apache and operates faster.

Why should LiteSpeed Web Server be preferred?

LiteSpeed reduces page load times, performs better on high-traffic sites, and offers advanced security features.

How is LiteSpeed Web Server configured?

After installing LiteSpeed on cPanel or Plesk, it can be optimized with various performance and security settings. Features such as cache settings, GZIP compression, and HTTP/2 support can be enabled.

Leave a Reply

Your email address will not be published. Required fields are marked *