Actions

Help

Difference between revisions of "Administration"

From OpenLiteSpeed Wiki

(Created page with "This administration guide lays down the basic commands for controlling OpenLiteSpeed. ======Commands Reference====== This reference lists all the commands for LSWS and LSLB. ...")
 
Line 1: Line 1:
 
This administration guide lays down the basic commands for controlling OpenLiteSpeed.
 
This administration guide lays down the basic commands for controlling OpenLiteSpeed.
  
======Commands Reference======
+
By default, OpenLiteSpeed is installed under <code>/usr/local/lsws/</code>.
This reference lists all the commands for LSWS and LSLB. Since most of them are license related, so we put in the license section.
 
    * For LSWS, assume it's installed under /usr/local/lsws/
 
    * For LSLB, assume it's installed under /usr/local/lslb/, the commands are same as LSWS, you can just replace "lshttpd" with "lslbd".
 
  
=====Control Commands=====
+
== Control Commands ==
    * For LSLB, the command is "lslbctrl"
 
<code>
 
cd /usr/local/lsws
 
bin/lswsctrl help  -- will list the below options
 
Usage: ./lswsctrl {start|stop|restart|reload|help}
 
  
start   - start web server
+
  * Start OpenLiteSpeed: <code>/usr/local/lsws/bin/lswsctrl start</code>
stop     - stop web server
+
  * Stop OpenLiteSpeed: <code>/usr/local/lsws/bin/lswsctrl stop</code>
restart - gracefully restart web server with zero down time
+
  * Gracefully restart OpenLiteSpeed (zero downtime): <code>/usr/local/lsws/bin/lswsctrl restart</code>
reload   - same as restart
+
   * Show OpenLiteSpeed commands: <code>/usr/local/lsws/bin/lswsctrl help</code>
help     - this screen
 
</code>
 
  
=====License Commands=====
+
== Miscellaneous Commands ==
  
   cd /usr/local/lsws
+
   * Reset the WebAdmin password from the command line: <code>/usr/local/lsws/admin/misc/admpass.sh</code>
 
+
  * Check OpenLiteSpeed version: <code>/usr/local/lsws/bin/lshttpd -v</code>
  * Register a new license key (-r)
 
 
 
  bin/lshttpd -r
 
 
 
  * Test current license locally (-t)
 
 
 
  bin/lshttpd -t
 
 
 
  * Verify current license against license server (-V)
 
 
 
  bin/lshttpd -V
 
 
 
  * Migrate current license (-m)
 
 
 
  bin/lshttpd -m
 
 
 
 
 
 
 
=====Misc Commands=====
 
    * If you forgot your admin web console login, you can reset your password from command line
 
 
 
    lsws/admin/misc/admpass.sh
 
 
 
  * Check version
 
 
 
    lsws/bin/lshttpd -v
 
  
  
 
[[Category:Help]]
 
[[Category:Help]]

Revision as of 14:09, 9 October 2014

This administration guide lays down the basic commands for controlling OpenLiteSpeed.

By default, OpenLiteSpeed is installed under /usr/local/lsws/.

Control Commands

 * Start OpenLiteSpeed: /usr/local/lsws/bin/lswsctrl start
 * Stop OpenLiteSpeed: /usr/local/lsws/bin/lswsctrl stop
 * Gracefully restart OpenLiteSpeed (zero downtime): /usr/local/lsws/bin/lswsctrl restart
 * 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
 * Check OpenLiteSpeed version: /usr/local/lsws/bin/lshttpd -v