Step-by-Step Guide: Installing a LiteSpeed Web Server Trial on cPanel with AlmaLinux ٩

Step-by-Step Guide: Installing a LiteSpeed Web Server Trial on cPanel with AlmaLinux ٩
This guide provides a comprehensive walkthrough for installing a trial version of LiteSpeed Web Server on your cPanel server running AlmaLinux ٩. LiteSpeed is a high-performance, Apache-interchangeable web server that can significantly enhance your server٨٢١٧;s speed and efficiency.
١. Prerequisites
Before you begin the installation, ensure you have the following:
- A server running AlmaLinux ٩ with cPanel/WHM already installed and fully configured.
- Root access to the server via SSH.
- Your server٨٢١٧;s hostname must be a fully qualified domain name (FQDN).
- It is recommended to disable or uninstall any other web server management plugins or reverse proxies like Nginx to avoid conflicts.
٢. Requesting a LiteSpeed Trial License
To initiate the installation, you will use a special command that automatically fetches a ١٥-day trial license for LiteSpeed Web Server Enterprise.
٣. Installation Process
The installation is performed via a single command-line script that handles the entire process.
Step ١: Connect to your server
Log in to your server as the root
user using SSH.
Step ٢: Run the LiteSpeed Installer Script
Execute the following command in your terminal. This script will download and run the LiteSpeed installer, which will automatically detect your cPanel environment and request a trial license.
bash <( curl ٩١;https://get.litespeed.sh](https://get.litespeed.sh) ) TRIAL
Step ٣: Follow the On-Screen Prompts
The installer is automated but may ask for your input on a few configuration options. For a standard installation, the default options are generally suitable. The installer will:
- Detect your cPanel/WHM environment.
- Install the LiteSpeed WHM plugin.
- Compile PHP with LiteSpeed٨٢١٧;s LSAPI for optimal performance.
This process may take several minutes to complete.
٤. Switching from Apache to LiteSpeed in WHM
Once the installation script is finished, you need to switch your web server from Apache to LiteSpeed.
Step ١: Log in to WHM
Access your WHM panel, usually at https://your-server-ip:٢٠٨٧
.
Step ٢: Navigate to the LiteSpeed Plugin
In the WHM search bar, type ٨٢٢٠;LiteSpeed٨٢٢١; and click on LiteSpeed Web Server.
Step ٣: Switch to LiteSpeed
On the LiteSpeed plugin page, click the ٨٢٢٠;Switch to LiteSpeed٨٢٢١; button. This will seamlessly transition your web server to LiteSpeed without downtime. The process will stop Apache and start LiteSpeed.
Step ٤: Verify the Switch
After the switch is complete, the plugin page should indicate that LiteSpeed is running.
٥. Installing LiteSpeed Cache
One of the most significant advantages of LiteSpeed is its advanced caching capabilities. To manage this for your websites, you should install the LiteSpeed Cache management plugin.
Step ١: Access the LiteSpeed Cache Management
In the LiteSpeed Web Server plugin in WHM, click on ٨٢٢٠;Manage Cache Installations٨٢٢١;.
Step ٢: Install the LiteSpeed Cache Plugin
Click the ٨٢٢٠;Install٨٢٢١; button. This will enable the LSCache for cPanel feature, allowing you and your cPanel users to manage the cache for your web applications (like WordPress, Magento, etc.) directly from the cPanel interface.
Step ٣: Enable Cache for New Accounts (Recommended)
It is recommended to enable caching for newly created accounts by default. You can configure this in the ٨٢٢٠;Settings٨٢٢١; tab within the LiteSpeed Web Server plugin.
٦. Firewall Configuration
LiteSpeed Web Server uses the same ports as Apache (٨٠ for HTTP and ٤٤٣ for HTTPS), so you typically do not need to make firewall changes for your websites to be accessible. However, if you wish to access the LiteSpeed WebAdmin Console, you will need to open port ٧٠٨٠.
To open port ٧٠٨٠, run the following commands:
firewall-cmd --permanent --add-port=٧٠٨٠/tcp
firewall-cmd --reload
Your LiteSpeed trial is now successfully installed and running on your cPanel server with AlmaLinux ٩. You can now take advantage of the performance benefits and advanced features that LiteSpeed offers.