LiteSpeed Technologies
Download Download     Blog Blog     Wiki Wiki     Forum Forum     Store     Contact Contact    

Administration


LiteSpeed web server can be controlled in three ways: through web administration interface, from command line or by sending signals.

1. Through the web administration interface.

    Log on to the web administration console, then select Control on top menu, the drop menu has shortcuts to common tasks. Clicking onControl to go to a dedicate control panel page.
    Clicking the corresponding link can perform the following task: restart server, reload server configuration, view log, real-time monitoring, reload virtual host, enable/disable virtual host and version management.

    More details ...

    To change the login name and password for the web interface, run following command from shell:
    [your install dir]/admin/misc/admpass.sh

2. Control the server process from command line.

    Assuming the web server is installed at /opt/lsws.
    Use the lswsctrl control script in /opt/lsws/bin/ directory.

    start the web server:
    /opt/lsws/bin/lswsctrl start

    stop web server:
    /opt/lsws/bin/lswsctrl stop

    restart web server:
    /opt/lsws/bin/lswsctrl restart

    reload configuration:
    /opt/lsws/bin/lswsctrl reload

3. Control the server process by sending signals.

    You can stop server process and reload configuration by sending signals to server process.

    First you need to know server's process id, either by the pid file or "ps" command.

    By pid File:
    more /tmp/lshttpd/lshttpd.pid

    By "ps" command:
    FreeBSD: ps -x | grep lshttpd
    Others: ps -ef | grep lshttpd

    If multiple processes are listed, use the process with PPID equal to 1.

    To stop the web server: kill XXXX (XXXX is the pid)
    If the server did not stop, use: kill -9 XXXX

    To reload the configuration, use: kill -HUP XXXX






© Copyright 2003-2011 LiteSpeed Technologies, Inc. All rights reserved. Privacy Policy.