Jump to content

OpenLiteSpeed CMD References for Administration

Recommended Posts

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/admpass.sh
  • Switch between XML and plain text configuration files: /usr/local/lsws/conf/switch_config.sh
  • Check OpenLiteSpeed version: /usr/local/lsws/bin/lshttpd -v
  • Check OpenLiteSpeed configuration errors: /usr/local/lsws/bin/openlitespeed -t
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...