How to install OpenLiteSpeed web server on Ubuntu 19.04

  1. Update the system packages

     sudo apt-get update
  2. Install OpenLiteSpeed dependencies

     sudo apt-get install -y build-essential
     sudo apt-get install -y rcs libpcre3-dev libexpat1-dev libssl-dev libgeoip-dev libudns-dev zlib1g-dev libxml2 libxml2-dev libpng-dev openssl
  3. Install OpenLiteSpeed

    wget https://openlitespeed.org/packages/openlitespeed-1.4.34.tgz
    tar -xzvf openlitespeed-1.4.34.tgz
    cd openlitespeed-1.4.34/
    sudo ./configure
    sudo make && sudo make install
  4. Configure the Admin user and password for the Web server

    sudo /usr/local/lsws/admin/misc/admpass.sh
    Please specify the user name of administrator.
    This is the user name required to login the administration Web interface.
    
    User name [admin]: <Enter the User name here>
    
    Please specify the administrator's password.
    This is the password required to login the administration Web interface.
    
    Password:<Enter the password>
    Retype password:<Re-enter the password>
    Administrator's username/password is updated successfully!
  5. Configure the firewall

    sudo ufw allow http
    sudo ufw allow https
    sudo ufw allow 8088/tcp
    sudo ufw allow 7080/tcp
    sudo ufw reload
  6. Start the OpenLiteSpeed server

    sudo /etc/init.d/lsws start
  7. Go to https://server-ipaddress:7080

CrownCloud - Get a SSD powered KVM VPS at $4.5/month!
Use the code WELCOME for 10% off!

1 GB RAM / 25 GB SSD / 1 CPU Core / 1 TB Bandwidth per month

Available Locations: LAX | MIA | ATL | FRA | AMS