How to install OpenLiteSpeed on CentOS, Debian & Ubuntu

2020-09-08 By Mark 74 Views linux openlitespeed development
0 reviews

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

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

Also, it is faster than Apache web server While serving PHP contents. Hence it is recommendable to use hosting platforms such us Drupal,Joomla and based websites as it can easily increases 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 setup 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 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 run 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 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