Question
How do I switch from LiteSpeed to Apache using the command line, and then switch back to Litespeed?
Answer
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