Table of Contents

Switching Web Servers

Switching between LiteSpeed Enterprise(LSWS) and Apache is a very simple task using the CentOS Web Panel(CWP). It can also be accomplished via included scripts in the terminal.

Method 1: CentOS Web Panel

  1. Visit the CWP Install at https://IP_OR_HOSTNAME:2031 and log in.
  2. Navigate to Apache Settings → Select Web Servers.
  3. Next to LiteSpeed Enterprise, there will be a “Switch to LiteSpeed” button and a “Switch to Apache” button.
  4. Select either button to switch between them.

Method 2: Shell + Script

  1. Log in to the terminal.
  2. Change the directory to the following: LSWS_INSTALL_DIR/admin/misc/.
    • Example: cd /usr/local/lsws/admin/misc
  3. Then, run the following command replacing <webserver> with either “lsws” or “apache”, depending on what you wish to switch to.
    • ./cp_switch_ws.sh <webserver>