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, “cp_switch_ws.sh,” to facilitate switching between web servers. To switch to Apache, execute the following command as root:
/usr/local/lsws/admin/misc/cp_switch_ws.sh apache
If you need to switch back to LiteSpeed, use the command:
/usr/local/lsws/admin/misc/cp_switch_ws.sh 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.