Command References for Administration

How Can We Help?
< Back
You are here:


This administration guide lays down the basic commands for those who wish to control OpenLiteSpeed from the command line.
By default, OpenLiteSpeed is installed under /usr/local/lsws/.

Control Commands

  • Start OpenLiteSpeed: systemctl start lsws
  • Stop OpenLiteSpeed: systemctl stop lsws
  • Gracefully restart OpenLiteSpeed (zero downtime): systemctl restart lsws
  • Show OpenLiteSpeed commands: /usr/local/lsws/bin/lswsctrl help

Miscellaneous Commands

  • Reset the WebAdmin password from the command line: /usr/local/lsws/admin/misc/
  • Switch between XML and plain text configuration files: /usr/local/lsws/conf/
  • Check OpenLiteSpeed version: /usr/local/lsws/bin/lshttpd -v
  • Check OpenLiteSpeed configuration errors: /usr/local/lsws/bin/openlitespeed -t