• Home
  • Archive
  • Tools
  • Contact Us

The Customize Windows

Technology Journal

  • Cloud Computing
  • Computer
  • Digital Photography
  • Windows 7
  • Archive
  • Cloud Computing
  • Virtualization
  • Computer and Internet
  • Digital Photography
  • Android
  • Sysadmin
  • Electronics
  • Big Data
  • Virtualization
  • Downloads
  • Web Development
  • Apple
  • Android
Advertisement
You are here:Home » How to Install OpenLiteSpeed on Ubuntu Server

By Abhishek Ghosh May 7, 2023 9:31 am Updated on May 7, 2023

How to Install OpenLiteSpeed on Ubuntu Server

Advertisement

OpenLiteSpeed is the open-source edition of the LiteSpeed web server by LiteSpeed Technologies of China. It belongs to the closed-source segment and you have to install the PHP component from their repo. At the time of writing this guide, this web server supports HTTP/3. It supports a lot of Apache web server modules but there are differences with Apache. Unlike Apache, it provides a web-based control panel that allows you to configure and manage the web server via a web browser. It is simple, lightweight, and supports caching that suits most situations. Unlike Apache or NGINX, by default, it uses port 8088 instead of port 80.

 

Steps to Install OpenLiteSpeed

 

The easiest way for installing OpenLiteSpeed on a fresh server, add the OpenLiteSpeed files repository to the apt package manager. For installation with other web software running, it is probably safe to build from the source. SSH to your new server. Run these commands:

Vim
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
###
sudo apt install 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 libxml2-dev sqlite3 libsqlite3-dev libonig-dev
###
sudo apt update
###
sudo wget -O - http://rpms.litespeedtech.com/debian/enable_lst_debian_repo.sh | sudo bash
###
sudo wget -O - https://repo.litespeed.sh | sudo bash
###
sudo apt install openlitespeed
###
sudo systemctl status lsws
### PHP 8.0 ###
sudo apt-get install lsphp80 lsphp80-common lsphp80-mysql lsphp80-imap lsphp80-curl lsphp80-opcache lsphp80-intl lsphp80-redis
### MariaDB ###
sudo apt install mariadb-server
### complete the wizard ###
sudo mysql_secure_installation
###
sudo service lsws restart
### set admin ###
sudo /usr/local/lsws/admin/misc/admpass.sh

Check these two webpages:

Advertisement

---

Vim
1
2
http://your.server.ip:8088
http://your.server.ip:7080

The location of the files visible from port 8088 is here: /usr/local/lsws/Example/html. You can replace them with your website’s files or install WordPress in this directory.

The location of admin settings files are located at: /usr/local/lsws/admin/conf. DO NOT delete these files. DO NOT directly edit the files such as admin_config.conf from SSH unless the official documentation directs you to do so.

Login to the admin panel:

Vim
1
http://your.server.ip:7080

Navigate to the “Server Configuration”, then “External App” and edit the LiteSpeed SAPI App’s Command
field, to edit the PHP version which will be used. If the value in the Command field was:

Vim
1
lsphp74/bin/lsphp

Then for activating PHP 8.0 (which we have installed in the earlier step), edit it to:

Vim
1
lsphp80/bin/lsphp

How to Install OpenLiteSpeed on Ubuntu Server

Save the configuration, and restart the server:

Vim
1
service lsws restart

To change the port to 80, navigate to “Listeners”, edit the default port and save the configuration. Restart the server:

Vim
1
service lsws restart

Now, visit the default page and check the PHP version whether it is 8.0 now:

Vim
1
http://your.server.ip

 

Do We Recommend Using OpenLiteSpeed?

 

You can use OpenLiteSpeed to experiment with its cache, HTTP/3 etc. Apache HTTP Server is real free software. There is no paid tier for optimizing setup or performance.

Many individuals and companies use OpenLiteSpeed and the paid LiteSpeed. Free OpenLiteSpeed defaults to a blank number of workers which sets it to 1 worker and RAM is limited to 8GB. For the paid version, the number of workers can be up to 4. The price can go up to $100/month.

Facebook Twitter Pinterest

Abhishek Ghosh

About Abhishek Ghosh

Abhishek Ghosh is a Businessman, Surgeon, Author and Blogger. You can keep touch with him on Twitter - @AbhishekCTRL.

Here’s what we’ve got for you which might like :

Articles Related to How to Install OpenLiteSpeed on Ubuntu Server

  • Nginx WordPress Installation Guide (All Steps)

    This is a Full Nginx WordPress Installation Guide With All the Steps, Including Some Optimization and Setup Which is Compatible With WordPress DOT ORG Example Settings For Nginx.

  • Install Elastic Stack on Ubuntu 16.04, CentOS 7 Single Cloud Server

    Here is How to Install Elastic Stack on Ubuntu 16.04, CentOS 7 on Single Cloud Server Instance For Server Log Analysis, Big Data Processing.

  • Changing Data With cURL for OpenStack Swift (HP Cloud CDN)

    Changing Data With cURL For Object is Quite Easy in OpenStack Swift. Here Are Examples With HP Cloud CDN To Make it Clear. Official Examples Are Bad.

  • Steps To Install Nginx Plus on Ubuntu Server (HP Cloud)

    Here Are the Steps To Install Nginx Plus on Ubuntu Server Running on HP Cloud. Nginx Plus is the Paid Version of Nginx with Extra Features.

performing a search on this website can help you. Also, we have YouTube Videos.

Take The Conversation Further ...

We'd love to know your thoughts on this article.
Meet the Author over on Twitter to join the conversation right now!

If you want to Advertise on our Article or want a Sponsored Article, you are invited to Contact us.

Contact Us

Subscribe To Our Free Newsletter

Get new posts by email:

Please Confirm the Subscription When Approval Email Will Arrive in Your Email Inbox as Second Step.

Search this website…

 

Popular Articles

Our Homepage is best place to find popular articles!

Here Are Some Good to Read Articles :

  • Cloud Computing Service Models
  • What is Cloud Computing?
  • Cloud Computing and Social Networks in Mobile Space
  • ARM Processor Architecture
  • What Camera Mode to Choose
  • Indispensable MySQL queries for custom fields in WordPress
  • Windows 7 Speech Recognition Scripting Related Tutorials

Social Networks

  • Pinterest (24.3K Followers)
  • Twitter (5.8k Followers)
  • Facebook (5.7k Followers)
  • LinkedIn (3.7k Followers)
  • YouTube (1.3k Followers)
  • GitHub (Repository)
  • GitHub (Gists)
Looking to publish sponsored article on our website?

Contact us

Recent Posts

  • Hybrid Multi-Cloud Environments Are Becoming UbiquitousJuly 12, 2023
  • Data Protection on the InternetJuly 12, 2023
  • Basics of BJT TransistorJuly 11, 2023
  • What is Confidential Computing?July 11, 2023
  • How a MOSFET WorksJuly 10, 2023
PC users can consult Corrine Chorney for Security.

Want to know more about us?

Read Notability and Mentions & Our Setup.

Copyright © 2023 - The Customize Windows | dESIGNed by The Customize Windows

Copyright  · Privacy Policy  · Advertising Policy  · Terms of Service  · Refund Policy