How to install OpenLiteSpeed on CentOS, Debian & Ubuntu

2020-09-08 By Mark 3105 Views linux openlitespeed development
7 reviews

OpenLiteSpeed is an open-source, high-performance and lightweight webserver from LiteSpeed technologies. One of the main advantages of LiteSpeed is that it can handle more than a hundred thousand concurrent connections with low resource usage (CPU and RAM). Also, it comes with an administration console to manage the LiteSpeed settings.

OpenLiteSpeed edition is generally used for high-traffic or large websites. This is an open-source edition and free for commercial and personal uses.

Also, it is faster than an Apache webserver While serving PHP content. Hence it is recommendable to use hosting platforms such as Drupal, Joomla and based websites as it can easily increase website performance.


See the instructions for installing OpenLiteSpeed on CentOS, Debian and Ubuntu below.


CentOS


  1. Add the OpenLiteSpeed Repository.

    To install OpenLiteSpeed on a CentOS server, we have to set up the lite speed repository. Add it with this rpm command:

    # rpm -ivh http://rpms.litespeedtech.com/centos/litespeed-repo-1.1-1.el7.noarch.rpm
    

    openlitespeed1

  2. Run the following command to install OpenLiteSpeed.

    # yum -y install openlitespeed14.x86_64
    

    openlitespeed2

  3. Install Epel Repository and PHP 7.

    The Epel repository is needed for the PHP 7 installation. It's available on the CentOS repository.

    # yum -y install epel-release
    

    openlitespeed3

  4. Run the following command to install PHP 7 for OpenLiteSpeed.

    # yum -y install lsphp70 lsphp70-mysqlnd lsphp70-process lsphp70-mbstring lsphp70-mcrypt lsphp70-gd lsphp70-opcache lsphp70-bcmath lsphp70-pdo lsphp70-common lsphp70-xml
    

    openlitespeed4

  5. Configure and Test GUI Admin.

    Run the below command to configure the admin user and password for the management GUI,

    # /usr/local/lsws/admin/misc/admpass.sh
    


    After running the above command, Need to enter the username and password for your GUI management.

    openlitespeed5

  6. Open your browser and visit the server IP address with port 7080.

    https://<serveripaddress>[:7080]
    

    openlitespeed6


Ubuntu & Debian


  1. To enable the repository for the Ubuntu server, first download and add the developer’s software signing key.

    #  wget -qO - https://rpms.litespeedtech.com/debian/lst_repo.gpg | sudo apt-key add -
    

    openlitespeed7

  2. Add the repository information to the Ubuntu server by using the below command.

    # sudo add-apt-repository 'deb http://rpms.litespeedtech.com/debian/ bionic main'
    

    openlitespeed8

  3. Install the OpenLiteSpeed server and its PHP processor by using the command.

    # sudo apt install openlitespeed lsphp73
    

    openlitespeed9

  4. Create a soft link to the PHP processor. This directs the OpenLiteSpeed server to use the correct version.

    # sudo ln -sf /usr/local/lsws/lsphp73/bin/lsphp /usr/local/lsws/fcgi-bin/lsphp5
    

    openlitespeed10

  5. Configure and Test GUI Admin.

    Run the below command to configure the admin user and password for the management GUI.

    # sudo /usr/local/lsws/admin/misc/admpass.sh
    

    openlitespeed11

  6. Open your browser and visit the server IP address with port 7080.

    https://<serveripaddress>[:7080]
    

    openlitespeed12


What do you think about this article?

Rate this article
LayerStack Promotion
Need assistance?

Try this guide to receive free bundled services at signup on a new free account.

Sign Up

Your Feedback Is Important

We hope you’ll give the new products and updates a try. If you have an idea for improving our products or want to vote on other user ideas so they get prioritized, please submit your feedback on our Community platform. And if you have any questions, please feel free to ask in the Community or contact our Technical Support team.