### LiteSpeed Web Server Users' Manual

##### Version 5.0 Rev. 1

- License Std / Ent
- Introduction
- Installation
- Administration
  - Service Manager
- Security
- Configuration
  - Server General
  - Server Tuning
  - Server Security
  - Request Filter
  - Page Cache
  - External Apps
  - Fast CGI App
  - Fast CGI Authorizer
  - LSAPI App
  - Servlet Engine
  - Web Server
  - Pipped logger
  - Load Balancer
  - Script Handler
  - Rack/Rails Settings
  - Listeners
  - Templates
  - Virtual Host Basic
  - Virtual Host General
  - Virtual Host Security
  - Rewrite
  - Context
  - Static Context
  - Java Web App Context
  - Servlet Context
  - Fast CGI Context
  - LSAPI Context
  - Proxy Context
  - CGI Context
  - Load Balancer Context
  - Redirect Context
  - Rack/Rails Context
  - Web Socket Proxy
  - Add-ons
  - Admin Server
  - Admin Listeners

# Administration

LiteSpeed web server can be controlled in three ways: through the WebAdmin interface, 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, version management, 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