Cloudbooklet
  • News
  • Artificial Intelligence
  • Applications
  • Linux
No Result
View All Result
Cloudbooklet
  • News
  • Artificial Intelligence
  • Applications
  • Linux
No Result
View All Result
Cloudbooklet
No Result
View All Result
Home Google Cloud

Install LiteSpeed on Ubuntu 18.04 – Google Cloud

by Cloudbooklet
4 years ago
in Google Cloud, Compute Engine
Install Litespeed On Ubuntu 18.04 - Google Cloud
ShareTweetSendShare
Readers like you help support Cloudbooklet. When you make a purchase using links on our site, we may earn an affiliate commission.

Install LiteSpeed on Ubuntu 18.04 – Google Cloud. In this guide you are going to learn how to install LiteSpeed web server on a virtual machine and configure firewall ports and update the default LiteSpeed port. This setup is tested on Google Compute Engine VM Instance with Ubuntu 18.04, so this tutorial will work on […]

ADVERTISEMENT

Install LiteSpeed on Ubuntu 18.04 – Google Cloud. In this guide you are going to learn how to install LiteSpeed web server on a virtual machine and configure firewall ports and update the default LiteSpeed port.

This setup is tested on Google Compute Engine VM Instance with Ubuntu 18.04, so this tutorial will work on any cloud hosting like AWS, Azure, DigitalOcean or any VPS or Dedicated servers.

Prerequisites

  1. A Ubuntu server set up with sudo privileges.
  2. Completed the initial Ubuntu server setup.

If you are using Google Cloud Platform to install PHP you need the following steps to be done.

ADVERTISEMENT
  1. A running Compute Engine, see the Setting up Compute Engine Instance with Ubuntu 18.04.

Enable LiteSpeed Repo

OpenLiteSpeed provides a repository which can be used to install the web server easily using the default apt command.

You might also like

How To Setup Ssh Keys On Ubuntu

How to Setup SSH Keys on Ubuntu 20.04

4 months ago
Draggan Ai Editing Tool Install And Use Draggan Photo Editor

DragGAN AI Editing Tool Install and Use DragGAN Photo Editor

4 months ago

Download the software signing key.

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

Now, add the repository to the server using add-apt

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

Once the repository is add LiteSpeed will be available to install directly.

Install LiteSpeed Web Server

Here you can install LiteSpeed and it’s PHP processor.

ADVERTISEMENT
sudo apt install openlitespeed lsphp73

Once the installation is completed you need the create a soft link for PHP processor we installed to use the correct version.

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

Now LiteSpeed is installed and ready to be configured.

ADVERTISEMENT

Configure Admin Password

By default LiteSpeed will have the username as admin and password as 123456. So we need to change those default values.

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

With this script you can configure a new username and password.

ADVERTISEMENT

Once you have created new credentials you will get an output similar to this.

Output
Administrator's username/password is updated successfully!

Verify LiteSpeed Installation

You can check the status of the web server using the following command.

sudo /usr/local/lsws/bin/lswsctrl status
Output
litespeed is running with PID 26920.

This indicates LiteSpeed is up and running.

If your web server hasn’t started you can start it using the following command.

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

Configure Firewall

By default LiteSpeed admin runs on port 7080 and the main page loads on 8088. We will configure Litespeed to use the default http port 80 instead of 8088. so we don’t have to open the port 8088.

sudo ufw allow 80
sudo ufw allow 7080

If you are on Google Cloud or AWS or Azure or DigitalOcean, you need to setup these two ports to allow connections.

Now go to your browser and check the admin interface using your IP add followed by port 7080.

https://External_IP:7080
Litespeed Login

Use the username and password you configured before to login.

Once logged in you will see the LiteSpeed dashboard.

Litespeed Dashboard

Configure Port for Default page

To make the server listen on standard http port, go to Listeners in the menu and click view.

Now Edit the Address Settings to modify the value of 8088 to 80.

Change Default Port
Install LiteSpeed on Ubuntu 18.04 - Google Cloud 1

Change the Port value to 80 and save the configuration.

Once done restart the LiteSpeed web server for the changes to take effect.

Once the server is restarted you can view the default web page with your IP address.

https://External_IP
Openlitespeed Web Page

Prepare yourself for a role working as an Information Technology Professional with Linux operating system

Conclusion

Now you have learned how to install LiteSpeed web server and configure it on your VM instance on Google Cloud Platform.

Thanks for your time. If you face any problem or any feedback, please leave a comment below.

Tags: Google Cloud PlatformUbuntu 18.04
ShareTweetSendShare
Cloudbooklet

Cloudbooklet

Comments 3

  1. Avatar Of Krishna Krishna says:
    4 years ago

    Thanks for the wonderful article.
    Could you please let me know how I could install
    1. How to install WebP on OLS?
    2. Email Server on OLS (1 GB RAM)

    Reply
    • Avatar Of Krishna Krishna says:
      4 years ago

      I am facing challenges in setting up a Virtual Host plus switching the domain name on OLS.

      Reply
    • Avatar Of Cloudbooklet Cloudbooklet says:
      4 years ago

      Thank you for using Cloudbooklet

      Reply

Leave a Reply Cancel reply

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

Related Posts

Set Up Deep Learning With Nvidia, Cuda, Cudnn On Ubuntu

How to Set Up Deep Learning with Nvidia, CUDA, cuDNN on Ubuntu 22.04

7 months ago
How To Install Or Upgrade Php 8.2 On Ubuntu 22.04

How to Install or Upgrade PHP 8.2 on Ubuntu 22.04

9 months ago
How To Change Timezone On Ubuntu 22.04

How to Change Timezone on Ubuntu 22.04

1 year ago
How To Install Ansible On Ubuntu 22.04

How to Install Ansible on Ubuntu 22.04

1 year ago

Follow Us

Trending Articles

Contact Poster On Iphone

How to Create and Customize Stunning Contact Poster on iPhone

September 21, 2023

5 Best TikTok Private Account Viewer in 2023

How to Use ChatGPT to Translate Your Website or Blog

5 Best Laptop for Minecraft in 2023: Top Picks for All Budgets

Best 10 AI Comic Generator: Create Comic book in Seconds

10 Best AI Song Generator in 2023 (Free and Paid)

Popular Articles

Ai Cover Song

6 Best AI Cover Song Generators for Free Online

September 13, 2023

3 Ways to View Instagram Posts Without Account (2023 Guide)

Bigjpg AI: Best AI Image Upscaler for Super Resolution

Google Watermark Feature: A Solution for AI Image Verification

AI Annotation Jobs: Everything You Need to Know

How to Stabilize Videos for Free with Online Video Stabilizer

Subscribe Now

loader

Subscribe to our mailing list to receives daily updates!

Email Address*

Name

Cloudbooklet Logo

Welcome to our technology blog, where we explore the latest advancements in the field of artificial intelligence (AI) and how they are revolutionizing cloud computing. In this blog, we dive into the powerful capabilities of cloud platforms like Google Cloud Platform (GCP), Amazon Web Services (AWS), and Microsoft Azure, and how they are accelerating the adoption and deployment of AI solutions across various industries. Join us on this exciting journey as we explore the endless possibilities of AI and cloud computing.

  • About
  • Contact
  • Disclaimer
  • Privacy Policy

Cloudbooklet © 2023 All rights reserved.

No Result
View All Result
  • News
  • Artificial Intelligence
  • Applications
  • Linux

Cloudbooklet © 2023 All rights reserved.