LiteSpeed web server can be controlled in three ways: through the WebAdmin console, from the command line, or by sending signals.
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/admpass.sh
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:
To stop the web server:
To restart the web server:
To reload the configuration:
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:
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