LiteSpeed Basic Commands

Category : Litespeed

LiteSpeed Web Server is proprietary web server software. LiteSpeed Web Server is the leading high-performance, high-scalability web server from Litespeed technologies. In this guide, we will learn about LiteSpeed Basic Commands.

LiteSpeed Control Commands:

  • sudo service lsws start – start webserver
  • sudo service lsws stop – stop webserver
  • sudo service lsws restart – gracefully restart the webserver with zero downtime
  • sudo service lsws reload – same as restart
  • sudo service lsws condrestart – gracefully restart the webserver if the server is running
  • sudo service lsws try-restart – same as condrestart
  • sudo service lsws status – show service status
  • sudo service lsws help – list of all the above commands

License Commands

  • Register a new license key
    sudo /usr/local/lsws/bin/lshttpd -r
  • Test current license locally
    sudo /usr/local/lsws/bin/lshttpd -t
  • Verify current license
    sudo usr/local/lsws/bin/lshttpd -V
  • Migrate current license
    sudo /usr/local/lsws/bin/lshttpd -m

Misc Commands

  • Reset your password
    sudo /usr/local/lsws/admin/misc/admpass.sh
  • Check version
    sudo /usr/local/lsws/bin/lshttpd -v
  • Switch version
    sudo /usr/local/lsws/admin/misc/mgr_ver.sh <version>
  • Force re-install/update
    sudo /usr/local/lsws/admin/misc/lsup.sh -f -v <version>
  • Install startup script
    sudo /usr/local/lsws/admin/misc/rc-inst.sh 
  • Uninstall startup script
    sudo /usr/local/lsws/admin/misc/rc-uninst.sh

Find more LiteSpeed related guides here.