LiteSpeed Basic Commands
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 webserversudo service lsws stop
– stop webserversudo service lsws restart
– gracefully restart the webserver with zero downtimesudo service lsws reload
– same as restartsudo service lsws condrestart
– gracefully restart the webserver if the server is runningsudo service lsws try-restart
– same as condrestartsudo service lsws status
– show service statussudo 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.