LiteSpeed web server can be controlled in three ways: through the WebAdmin console, from the command line, or by sending signals.

  1. Through the WebAdmin console:

    WebAdmin console is a centralized control panel to control and configure all LiteSpeed Web Server settings.

    Log on to the WebAdmin console (by default http://[your site's address]:7080/). Select "Service Manager". Here you will find a control panel with links to perform common tasks: server restart, server configuration reload, log viewing, real-time monitoring, virtual host reload, and virtual host enable/disable.

    More details on how to control LiteSpeed Web Server through the WebAdmin console - Service Manager

    To change the login name and password for the WebAdmin interface, run the following command from the shell:
    [your install dir]/admin/misc/

  2. Through the command line interface:

    Assuming the web server is installed at /usr/local/lsws.

    Use the lswsctrl control script in /usr/local/lsws/bin/ directory.

    To start the web server:
    /usr/local/lsws/bin/lswsctrl start

    To stop the web server:
    /usr/local/lsws/bin/lswsctrl stop

    To restart the web server:
    /usr/local/lsws/bin/lswsctrl restart

    To reload the configuration:
    /usr/local/lsws/bin/lswsctrl reload

  3. By sending signals:

    You can stop server processes and reload configurations by sending signals to the server processes.

    First, you need to know the server's process ID, either from the PID file or by running a "ps" command.

    To read the PID file:
    cat /tmp/lshttpd/

    By running a "ps" command:
    FreeBSD: ps -x | grep lshttpd
    Others: ps -ef | grep lshttpd

    If multiple processes are listed, use the process with PPID equal to 1.

    To stop the web server: kill XXXX (XXXX is the PID)
    If the server did not stop, use: kill -9 XXXX

    To reload the configurations, use: kill -HUP XXXX