### OpenLiteSpeed Web Server Users' Manual

##### Version 1.6 — Rev. 2

- License
- Introduction
- Installation
- Administration
  - Service Manager
- Security
- Configuration
  - Server General
  - Server Log
  - Server Tuning
  - Server Security
  - External Apps
  - Fast CGI App
  - Fast CGI Authorizer
  - LSAPI App
  - Servlet Engine
  - Web Server
  - Piped logger
  - Load Balancer
  - Script Handler
  - App Server Settings
  - Module Configuration
  - Listener General
  - Listener SSL
  - Virtual Host Templates
  - Virtual Host Basic
  - Virtual Host General
  - Virtual Host Security
  - Virtual Host SSL
  - Rewrite
  - Context
  - Static Context
  - Java Web App Context
  - Servlet Context
  - Fast CGI Context
  - LSAPI Context
  - Proxy Context
  - CGI Context
  - Load Balancer Context
  - Redirect Context
  - App Server Context
  - Module Handler Context
  - Web Socket Proxy
- Web Console
  - Admin Console General
  - Admin Console Security
  - Admin Listener General
  - Admin Listener SSL

# Administration

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/admpass.sh

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/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