How to install the OpenLiteSpeed ​​environment on Ubuntu 20.04 system

888u

Last update at :2024-02-04,Edit by888u

OpenLiteSpeed ​​is a free, open source web server developed by LiteSpeed ​​Technologies. Known for being a lightweight, well-optimized web server, OpenLiteSpeed ​​combines security, simplicity, and speed into one package, improving the performance of hosted web applications.

OpenLiteSpeed, also a free version of LiteSpeed ​​Enterprise, features a beginner-friendly web interface that allows you to configure a web server, deploy and enable support for various backend applications. In this article, I will guide you to install and configure OpenLiteSpeed ​​on Ubuntu 20.04 server.

Install necessary software packages

Install the dependencies required by OpenLiteSpeed ​​to run on your server.

$ sudo apt-get install build-essential libexpat1-dev libgeoip-dev libpcre3-dev zlib1g-dev libssl-dev libxml2-dev rcs libpng-dev

Install PHP and common extensions:

$ sudo apt-get install php php-common php-curl php-mysql php-opcache php-imap php-opcache

Install MySQL:

$ sudo apt-get install mysql

Install OpenLiteSpeed

Option 1: Install from repository

First, download the OpenLiteSpeed ​​installation script:

$ wget http://rpms.litespeedtech.com/debian/enable_lst_debian_repo.sh

Run the script:

$ sudo bash enable_lst_debian_repo.sh

This script will automatically download the required files and update the server, then install OpenLiteSpeed:

$ sudo apt-get install openlitespeed

Start OpenLiteSpeed:

$ sudo systemctl start lsws

Option 2: Install from binary file

Download the latest OpenLiteSpeed ​​installation package:

$ wget https://openlitespeed.org/packages/openlitespeed-1.7.14.tgz

Unzip:

$ tar -xvzf openlitespeed-1.7.14.tgz

Enter directory:

$ cd openlitespeed

Configure and compile OpenLiteSpeed ​​by running the installation script. By default, it installs OpenLiteSpeed ​​in the /usr/local/ directory.

$ sudo bash install.sh

You can now start the web server by running the following command:

$ sudo /usr/local/lsws/bin/lswsctrl start

Option 3: One-click installation for WordPress users

If you plan on installing WordPress, this is your one-stop shop for installing a web server and optionally MySQL and WordPress. Once the script is complete, you can directly configure your web server or start setting up WordPress directly.

Download one-click script:

$ wget https://raw.githubusercontent.com/litespeedtech/ols1clk/master/ols1clk.sh

Run the script to start the installation:

$ sudo bash ./ols1clk.sh

Configuring OpenLiteSpeed

After installing OpenLiteSpeed ​​on your server, you will need to set up an administrator username and password by running an administration script.

sudo bash /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]: Please specify the administrator's password. This is the password required to login the administration Web interface. Password: Retype password: Administrator's username/password is updated successfully!

Access the OpenLiteSpeed ​​web server

After configuring OpenLiteSpeed ​​on your server, access your public server IP using port 8088 to view the default OpenLiteSpeed ​​web page.

For example: http://192.0.2.123:8088

To log in to the OpenLiteSpeed ​​web interface, access port 7080 on the server through a web browser. You will need to enter the username and password you created in step 3.

Your OpenLiteSpeed ​​installation is complete. Through the web server interface, you can launch web applications and integrate LiteSpeed ​​caching into your WordPress installation.

In fact, there is an open source panel available for OpenLiteSpeed. If we don’t want to be so troublesome, we can also use CyberPanel directly, or use the Pagoda panel directly.

Recommended plan for bricklayers

Warm reminder: If you have difficulty choosing, just choose the CN2 GIA-E plan in the middle. The quarterly payment is $49.99, and you can switch between up to 12 computer rooms at will. plan Memory CPU harddisk Traffic/month bandwidth engine room price Buy Banwagonhost Discount Code: BWH3HYATVBJW Real-time inventory of bricklayers
CN2 (cheapest) 1GB 1 core 20GB 1TB 1Gbps DC3 CN2 DC8 ZNET $49.99/year Direct
CN2 2GB 1 core 40GB 2TB 1Gbps $52.99/half year $99.99/year Direct
CN2 GIA-E (Most recommended) 1GB 2 cores 20GB 1TB 2.5Gbps DC6 CN2 GIA-E DC9 CN2 GIA Japan SoftBank JPOS_1 Netherlands EUNL_9 $49.99/quarter $169.99/year Direct
CN2 GIA-E 2GB 3 core 40GB 2TB 2.5Gbps $89.99/quarter $299.99/year Direct
HK 2GB 2 cores 40GB 0.5TB 1Gbps Hong Kong, China CN2 GIA $89.99/month $899.99/year Direct
HK 4GB 4 core 80GB 1TB 1Gbps $155.99/month $1559.99/year Direct
TOKYO 2GB 2 cores 40GB 0.5TB 1.2Gbps Tokyo, Japan CN2 GIA $89.99/month $899.99/year Direct
TOKYO 4GB 4 core 80GB 1TB 1.2Gbps $155.99/month $1559.99/year Direct

Recommended site search: Hong Kong server, Hong Kong server recommendation, domain name query, registered domain name, icp registration query system, US host review, ip query network, registration-free space, what is domain name resolution virtual space purchase,

How to install the OpenLiteSpeed ​​environment on Ubuntu 20.04 system

All copyrights belong to 888u unless special state
取消
微信二维码
微信二维码
支付宝二维码