How can you Switch to Apache from LiteSpeed?

Apache and Litespeed are web servers. Both of them are good in their own ways and both of them do the same kind of work. A web server’s work is to handle the request, perform all the code execution tasks using different compilers, create a static HTML page that can be served on the browser, and return the response accordingly.

Apache is more popular than Litespeed because it is one of the oldest and most well-documented web servers available in the market right now. You can use any one of them in your cPanel account. In this tutorial, I will show you how you can switch from the Litespeed web server to the Apache webserver.

You can switch web servers from Litespeed in your WHM using the plugin “Switch to Apache”. It is a very simple procedure; you can do the switch with a single click in WHM.

To perform this task, please follow the steps given below:

  1. Login to WHM.
  2. Navigate to “Plugins”.
  3. Click on “Litespeed Web Server” to access the control panel.
  4. To convert the Litespeed to Apache, you would only need a single click on the button ‘Switch to Apache’ under the section “Switch between Apache and LiteSpeed”.
  5. It will redirect you to another screen, from there you would need to click on the ‘Switch to Apache’ button to convert the webserver to Apache. This action will stop LiteSpeed and start Apache as the main web server. It may take a little while for LiteSpeed to stop completely.
  6. Once it’s done, the webserver will automatically switch to Apache. If you want to abort this request, you can simply cancel the request by clicking on the “Cancel” button given at the bottom of the page.
---
 
How to perform through the Command Line Interface (CLI)?

LiteSpeed provides the /usr/local/lsws/admin/misc/cp_switch_ws.sh script. To switch from LiteSpeed to Apache run this command:

/usr/local/lsws/admin/misc/cp_switch_ws.sh apache

If you need to switch back to LiteSpeed you would run this command:

/usr/local/lsws/admin/misc/cp_switch_ws.sh lsws
  • 5 Users Found This Useful
Was this answer helpful?

Related Articles

How to install LiteSpeed Web Server in cPanel?

Run the following command to install the LSWS plugin in cPanel: cd /usr/local/srcwget -N...

How to uninstall LiteSpeed on cPanel web server?

To uninstall LiteSpeed Web Server, perform the following steps: As the root user, convert your...

Apache Fails With "Syntax error on line #" on Server?

If you had an Apache/LiteSpeed-powered web server, you might see such an error that the HTTPD...

404 Not Found Error on All Websites (CyberPanel)

Make sure to check your website without HTTPS. If your website is accessible with HTTP and can't...

What to do if the activation of the LSWS license is failed?

If you've purchased a LiteSpeed license for your server from us, but you can't activate the...