OpenLiteSpeed Users' Manual - Administration
Description: OpenLiteSpeed Users' Manual - Administration.

Users' Manual
Version 1.9 — Rev. 3

# Administration

OpenLiteSpeed 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 OpenLiteSpeed settings.

Log on to the WebAdmin Console (by default https://[your site's address]:7080/). 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 OpenLiteSpeed through the WebAdmin Console - Service Manager

To change the login name and password for the WebAdmin Console, 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:
/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

## 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/lshttpd.pid

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