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

    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/
    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