How to Switch from LiteSpeed to Apache in WHM cPanel?

I’m currently using LiteSpeed, and I want to switch to Apache in WHM cPanel. I tried using the UI interface in WHM, but I’m getting a warning that both LiteSpeed and Apache are running. How can I stop LiteSpeed and ensure only Apache is running?

LiteSpeed provides a convenient script, “,” to facilitate switching between web servers. To switch to Apache, execute the following command as root:

/usr/local/lsws/admin/misc/ apache

If you need to switch back to LiteSpeed, use the command:

/usr/local/lsws/admin/misc/ lsws

In case LiteSpeed is still running after the switch, you can manually stop it with the following command:

/usr/local/lsws/bin/lswsctrl stop

This command ensures that LiteSpeed is stopped.