Table of Contents

Installing LiteSpeed

These instructions will step you through installing LiteSpeed Web Server, as a front-end webserver on your Accelerator.

Unlike most of the software for which guides have been written in this Knowledge Base, LiteSpeed Web Server is a commercial product. You can choose between installing a free, standard edition. Or, you can purchase a full, enterprise edition. To help you decide, there is a editions comparison chart available.

Preflight

  1. Disable Apache, or any other webserver that may be running on Port 80. For example, if you are using CoolStack Apache:
    svcadm disable csk-http/CSKapache2
    
  2. Disable (or remove) Webmin. LiteSpeed provides its own comprehensive Web Console, web administration tool. You can re-enable Webmin postflight, after a successful installation. If you do, you will have to disable the Apache module and recheck your configuration.
    You should decide if its worth the overhead of another process to keep Webmin around to manage other aspects of server setup (such as mail). To disable Webmin:
    svcadm disable webmin
    

Installation

  1. Login as root.
  2. Create a new user for the LiteSpeed web server:
    /usr/sbin/useradd -g webservd -s /bin/false litesped
    

Note Create a user with the namelitesped not litespeed, to satisfy the eight letter username restriction.

  1. Download the package you wish to install:
    • Standard Edition:
      wget http://www.litespeedtech.com/packages/3.0/lsws-3.3.4-std-i386-solaris.tar.gz
    • Enterprise Edition:
      wget http://www.litespeedtech.com/packages/3.0/lsws-3.3.4-ent-x86_64-solaris.tar.gz
  2. Expand the package:
    gtar xvfz lsws-3.3.4-std-i386-solaris.tar.gz 
    cd lsws-3.3.4
  3. Run the install
    ./install.sh
    
  1. Read the License Agreement, and if you agree to it type “Yes”
  2. Press “Enter” to select the recommended destination ”/opt/lsws”
  3. Specify user name, password for admin web interface.
  4. Specify an email address for the administrator.
  1. HTTP port: 80
  2. Admin HTTP port: 7080 (or you may want to change to something different)
  3. Select defaults for PHP, AWStats
Would you like to have LiteSpeed Web Server started automatically \nwhen the server restarts [Y/n]? Y

[OK] The startup script has been successfully installed!
Would you like to start it right now [Y/n]? Y

Polish your installation

  1. You may want to secure your admin access with a self-signed SSL certificate (see the tutorial on litespeed website)
  2. Have a look over there for possible SMF manifests (untested).
  3. Usefuljaja has plenty of tutorials about how to configure LiteSpeed with PHP, Rails and more

Migrate over your default page

The default sites HTML files are located in /opt/lsws/DEFAULT/html (if you selected default installer paths).

If you're moving from apache you can copy you files from there

rm index.html
cp /opt/coolstack/apache2/htdocs/index.html .

Configuration

Visit your http://YOURDOMAIN:7080/ to open the Web Console.

FIXME add in LiteSpeed + SMF

Reference