How to Install and Configure OpenLiteSpeed Web Server on Debian 10
0

OpenLiteSpeed is a free, open-source and light-weight HTTP server developed by LiteSpeed Applied sciences. OpenLiteSpeed helps many working techniques together with, Debian, Ubuntu, Mac OS, FreeBSD and lots of extra. It offers a web-based consumer interface to handle net server from the online browser. OpenLiteSpeed is used to create and handle web sites simply. It’s a highly effective, modular HTTP server and might capable of deal with a whole bunch of 1000’s of concurrent connections.

On this tutorial, we are going to present you set up OpenLiteSpeed on Debian 10 server.

Necessities

  • A server working Debian 10.
  • A root password is configured in your server.

Getting Began

First, you’ll need to replace your packages with the most recent model. You’ll be able to replace them by working the next command:

apt-get replace -y
apt-get improve -y

As soon as your packages are up to date, restart your system to use configuration modifications.

Subsequent, set up required dependencies with the next command:

apt-get set up set up build-essential libexpat1-dev libgeoip-dev libpcre3-dev libudns-dev zlib1g-dev libssl-dev libxml2 libxml2-dev rcs libpng-dev libpng-dev openssl autoconf g++ make openssl libssl-dev libcurl4-openssl-dev libcurl4-openssl-dev pkg-config libsasl2-dev libzip-dev

As soon as all of the required dependecies are put in, you’ll be able to proceed to the subsequent step.

Set up and Configure OpenLiteSpeed

By default, OpenLiteSpeed isn’t out there within the Debian 10 default repository. So, you’ll need to put in OpenLiteSpeed from supply.

First, obtain the most recent model of OpenLiteSpeed with the next command:

wget https://openlitespeed.org/packages/openlitespeed-1.5.2.tgz

As soon as the obtain is accomplished, extract the downloaded file with the next command:

tar -xvzf openlitespeed-1.5.2.tgz

Subsequent, change the listing to the openlitespeed-1.5.2 and set up OpenLiteSpeed with the next command:

cd openlitespeed-1.5.2
sh set up.sh

After putting in OpenLiteSpeed, you’ll need to configure the executive password for the online interface. You are able to do it with the next command:

/usr/native/lsws/admin/misc/admpass.sh

Create admin consumer and password as proven beneath:

Please specify the consumer title of administrator.
 That is the consumer title required to login the administration Web interface.
 
 Consumer title [admin]: admin
 
 Please specify the administrator's password.
 That is the password required to login the administration Web interface.
 
 Password: 
 Retype password: 
 Administrator's username/password is up to date efficiently!
 

Subsequent, begin the OpenLiteSpeed net service with the next command:

/and so on/init.d/lsws begin

OpenLiteSpeed is now working and listening on port 8088. Open your net browser and sort the URL http://your-server-ip:8088. You can be redirected to the next web page:

OpenLiteSpeed Web Server on Debian 10

Set up MariaDB for OpenLiteSpeed

By default, MariaDB is out there within the Debian 10 default repository. You’ll be able to set up it by simply working the next command:

apt-get set up mariadb-server mariadb-client -y

As soon as the MariaDB is put in, begin MariaDB and allow it to begin after the system reboot with the next command:

systemctl begin mariadb
systemctl allow mariadb

Subsequent, you’ll need to safe your MariaDB set up. You’ll be able to safe it by working the next script:

mysql_secure_installation

This script will setup the foundation password, Take away nameless customers, Disallow root login remotely and Take away take a look at database.

mysql_secure_installation

Reply all of the questions as proven beneath:

    Enter present password for root (enter for none):
     Set root password? [Y/n]: N
     Take away nameless customers? [Y/n]: Y
     Disallow root login remotely? [Y/n]: Y
     Take away take a look at database and entry to it? [Y/n]:  Y
     Reload privilege tables now? [Y/n]:  Y
 

As soon as the MariaDB is secured, log in to MariaDB shell with the next command:

mysql -u root

Subsequent, disable the plugin authentication by working the next instructions:

MariaDB [(none)]>use mysql;
MariaDB [(none)]>replace consumer set plugin='' the place Consumer='root';

Subsequent, flush the privileges and exit from the MariaDB shell with the next command:

MariaDB [(none)]>flush privileges;
MariaDB [(none)]>exit;

After getting completed, you’ll be able to proceed to the subsequent step.

Set up PHP for OpenLiteSpeed

By default, PHP isn’t out there within the OpenLiteSpeed repository. So, you’ll need to compile PHP from OpenLiteSpeed net interface.

To entry the OpenLiteSpeed admin panel, open your net browser and sort the URL http://your-server-ip:7080. You need to see the next web page:

PHP for OpenLiteSpeed

Now, present your admin consumer title and password which you have got created earlier and click on on the Login button. You need to see the OpenLiteSpeed dashboard within the following web page:

OpenLiteSpeed Dashboard

Now, click on on the Instruments > Compile PHP, you need to see the next web page:

OpenLiteSpeed Compile PHP

Now, choose the PHP model you wish to set up and click on on the Subsequent button. You need to see the next web page:

Choose build options

Now, select the construct choices and click on on the Subsequent button to begin downloading PHP. As soon as the method accomplished efficiently, you need to see the next web page:

Download Sourcecode

Subsequent, click on on the Subsequent button. You need to see the next web page:

Install PHP on LWS

Now, log in to your server from terminal and run the pre-generated script as proven beneath:

/usr/native/lsws/phpbuild/buildphp_manual_run.sh

This script will obtain and compile PHP and associated modules to your system.

You’ll be able to test the set up course of with the next command:

tail -f /usr/native/lsws/phpbuild/buildphp_1563016683.8.log

As soon as the set up has been accomplished efficiently, you need to see the next output:

copy compiled php binary to litespeed listing
 cd /usr/native/lsws//fcgi-bin
 ln -sf lsphp-7.3.6 lsphp7
 
 ==============================================
 Completed constructing PHP 7.3.6 with LSAPI
 ==============================================
 Sat 13 Jul 2019 08:07:36 AM EDT
 
 **DONE**
 

Congratulations! you have got efficiently put in and configure OpenLiteSpeed on Debian 10 server. Now you can simply host your web site utilizing OpenLiteSpeed. For extra info, you’ll be able to go to the OpenLiteSpeed official documentation at OpenLiteSpeed Doc

Microsoft closes fiscal 2019 with income spikes pushed by cloud providers

Previous article

Amazon warns clients: These dietary supplements is perhaps pretend

Next article

You may also like

Comments

Leave a reply

Your email address will not be published. Required fields are marked *

More in debian