↑ ↓ select, Enter open, Esc close

Gracefully restart LiteSpeed

Caution: This command changes the system. Understand what it does before you run it.

root@server
/usr/local/lsws/bin/lswsctrl restart

With LiteSpeed, restart is a graceful restart: new processes take over immediately, while old ones finish serving their active requests. Required after changes to the server configuration, or with OpenLiteSpeed after changes to .htaccess files, which are not reloaded automatically.

Note: A hard stop with lswsctrl stop, in contrast, drops all connections.

Also searched as

  • restart litespeed web server
  • openlitespeed apply configuration changes
  • lsws graceful restart
  • apply htaccess changes openlitespeed

Related one-liners

All in LiteSpeed

Read first, then run.

The commands on myline.de act directly on servers, files and databases. A wrong path or placeholder can delete data irreversibly or make a server unreachable.

  • All commands are provided without warranty and are not tested on every system.
  • Understand what a command does before running it, and check every placeholder.
  • Make a backup first and, if possible, try it on a test system.
  • You run commands at your own risk. Liability for damages is excluded to the extent permitted by law.