Basic Commands¶
The following commands are available for those who wish to control OpenLiteSpeed from the command line.
By default, OpenLiteSpeed is installed under the /usr/local/lsws/ directory.
Control Commands¶
- Start OpenLiteSpeed:
systemctl start lsws - Stop OpenLiteSpeed:
systemctl stop lsws - Gracefully restart OpenLiteSpeed (zero downtime):
systemctl restart lsws - Show additional OpenLiteSpeed commands:
/usr/local/lsws/bin/lswsctrl help
Other Commands¶
These other commands may be helpful from time to time:
- 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 for OpenLiteSpeed configuration errors:
/usr/local/lsws/bin/openlitespeed -t