• Contact
  • Contact Us
  • Disclamer
  • Home 1
  • Home 2
  • Home 3
  • Privacy Policy
Sunday, May 18, 2025
How VPS - How to use/setup VPS
  • Login
  • Home
  • Management guides
    • Web servers software
      • Directadmin
      • Hocvps Script
      • Centmin Mod
      • CWP
      • Kloxo-MR
      • Plesk
    • Control Panels
    • Securing VPS/Servers
      • SSL Certificates
      • Upgrading
      • Authentication
  • Operating System
    • CentOS
    • Fedora
    • Debian
    • Linux
    • Arch
    • BSD
    • CoreOS
  • Reviews
  • Coupon
    • Domain Coupon
    • Hosting Coupon
No Result
View All Result
  • Home
  • Management guides
    • Web servers software
      • Directadmin
      • Hocvps Script
      • Centmin Mod
      • CWP
      • Kloxo-MR
      • Plesk
    • Control Panels
    • Securing VPS/Servers
      • SSL Certificates
      • Upgrading
      • Authentication
  • Operating System
    • CentOS
    • Fedora
    • Debian
    • Linux
    • Arch
    • BSD
    • CoreOS
  • Reviews
  • Coupon
    • Domain Coupon
    • Hosting Coupon
No Result
View All Result
How VPS - How to use/setup VPS
No Result
View All Result
Home Control Panels

How to Prepare/Configure OpenLiteSpeed for CMS or Application Installation

How VPS by How VPS
November 2, 2018
in Control Panels
0
How to Prepare/Configure OpenLiteSpeed for CMS or Application Installation
0
SHARES
111
VIEWS
Share on FacebookShare on Twitter

Contents

  1. Introduction
  2. Pre-requisites:
  3. Installing and Configuring PHP 7.2 with LiteSpeed
    1. Overview
  4. Installing PHP 7.2 for Litespeed
  5. Configuring PHP 7.2 with LiteSpeed Web Server
  6. Configure Port 80 on Litespeed Web Server
  7. Installing MySQL 8.0
  8. Conclusion
  9. Check out these top 3 Linux hosting services
    1. Was this article helpful?

Introduction

OpenLiteSpeed is an open source web server characterized by high-performance, light-weight event-driven architecture, and Apache compatible rewrite rules. After installation on a VPS or Dedicated Server, it requires further configuration on its WebAdmin in preparation for installation of CMS websites and web applications.

In addition, it requires the installation of required packages i.e. the latest php version (i.e. 7.2 at the time of publication of this tutorial) for processing of web server requests and MySQL 8.0 for CMS or website database.

In this tutorial, we illustrate how to configure OpenLiteSpeed for CMS or Application installation by installing PHP 7.2 and MySQL 8.0 and configuring them with the OpenLiteSpeed web server on Ubuntu 18.04.

Pre-requisites:

  • Already installed LiteSpeed Web Server on Ubuntu 18.04. You can accomplish this by following our tutorial –How to install Litespeed Web Server on an Ubuntu 18.04 VPS or Dedicated Server
  • Basic understanding of Linux commands
  • A non-root user with sudo privileges

Installing and Configuring PHP 7.2 with LiteSpeed

Overview

Litespeed completely supports PHP without any further configuration. However, Litespeed by-default comes with php5.6binary (/usr/local/lsws/lsphp) which can only be used for development environments and NOT RECOMMENDED for production environments. This is because of its minimal build.

PHP Support in Litespeed comprises two parts as follows:

1. PHP External Application: Litespeed does not have PHP inbuilt into it but rather hands over execution tasks to external PHP applications/executables. This enables for greater stability, security and managing simultaneous connections. The two PHP external applications used are:

  • LSAPI (LiteSpeed SAPI – Server Application Programming Interface)
  • FCGI SAPI (FastCGI SAPI – Server Application Programming Interface)

LSAPI acts as an interface between LiteSpeed and PHP. It’s HIGHLY RECOMMENDED as it’s specially built for Litespeed while it’s designed for high performance, faster and has more features than FCGI SAPI. LSAPI also binds for Python and Ruby.

2. Script Handler: Enables Litespeed to determine how the files will be directed to specific applications by mapping suffixes.

Note: Both the external application and script handler must be configured in the WebAdmin Console as is illustrated in the section that follows – Installing PHP 7.2 for Litespeed.

Installing PHP 7.2 for Litespeed

Add the repository for Litespeed PHP 7.2 by running the commands

$ sudo bash
# wget -O - http://rpms.litespeedtech.com/debian/enable_lst_debain_repo.sh | bash

Then install PHP 7.2 for Litespeed by running the command.

$ sudo apt install lsphp72 lsphp72-common lsphp72-mysql lsphp72-dev lsphp72-curl lsphp72-dbg lsphp72-tidy lsphp72-recode lsphp72-opcache -y

Finally create symbolic link for php7.2

$ sudo ln -sf /usr/local/lsws/lsphp72/bin/lsphp /usr/local/lsws/fcgi-bin/lsphp7

Configuring PHP 7.2 with LiteSpeed Web Server

At this stage, we change the PHP version being used by LiteSpeed from 5.6 to 7.2.

Log into LiteSpeed Web Server.

Go to Server Configuration > External App > Click Add button as shown in the figure below.

How to Prepare/Configure OpenLiteSpeed for CMS or Application Installation

Then select the LiteSpeed SAPI App for the Type, then Click Next button as shown below.

How to Prepare/Configure OpenLiteSpeed for CMS or Application Installation

Enter the following configurations as follows:

Name: lsphp72

Address: uds://tmp/lshttpd/lsphp.sock

Notes: lsphp72forOpenLiteSpeed

Max Connections: 35

InitialRequestTimeout(secs):60

RetryTimeout(secs):0

Command: $SERVER_ROOT/lsphp72/bin/lsphp

Then click the Save button in the right corner as shown below:

How to Prepare/Configure OpenLiteSpeed for CMS or Application Installation

Since there are now two PHP versions in the web server, we should configure the Litespeed to only use PHP7.2 as follows.

Go to Script Handler > Click Edit button as shown below.

How to Prepare/Configure OpenLiteSpeed for CMS or Application Installation

The select lsphp72 in the HandlerName and Click Save button as shown.

How to Prepare/Configure OpenLiteSpeed for CMS or Application Installation

Click Graceful Restart button to apply the changes made as shown below.

How to Prepare/Configure OpenLiteSpeed for CMS or Application Installation

Now Litespeed Web Server is using PHP7.2

Configure Port 80 on Litespeed Web Server

By-default the Litespeed web server is receiving HTTP requests on Port8088. But of course, you wouldn’t want your website visitors to be including port 8088 on the browser whenever they visit your site. Hence you need to change this to port 80.

Go to Listeners > Click View button for the Default Listener as shown.

How to Prepare/Configure OpenLiteSpeed for CMS or Application Installation

Click the Edit button to edit the port as shown below.

How to Prepare/Configure OpenLiteSpeed for CMS or Application Installation

Change the Port value from 8088 to 80 and Click Save button.

How to Prepare/Configure OpenLiteSpeed for CMS or Application Installation

Click Graceful Restart button to apply the new changes.

Installing MySQL 8.0

MySQL is needed to provide the database infrastructure for your CMS or Web Application.

To install MySQL 8.0 in your Ubuntu 18.04 Server, follow our tutorial -How to Install MYSQL 8.0 and Create a Database on an Ubuntu 18.04 Linux VPS

Conclusion

Now that you’ve set up your setup and configured your Litespeed server environment, you can now install any CMS (e.g. WordPress, Drupal, Joomla), Web Application (e.g. Yii, Laravel), Ruby or Python Frameworks in the LiteSpeed Web Server.

The next steps are to learn the following:

How to Create VirtualHosts on LiteSpeed Web Server

How to Install and Configure WordPress on LiteSpeed Web Server

Check out these top 3 Linux hosting services

0

Was this article helpful?

Submit
Previous Post

Manage Files Effectively using head, tail and cat Commands in Linux

Next Post

How to Find MySQL, PHP and Apache Configuration Files

Next Post

How to Find MySQL, PHP and Apache Configuration Files

Leave a Reply Cancel reply

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

No Result
View All Result

Recent Post

Install Imagemagick on CentOS
CentOS

Install Imagemagick on CentOS

by How VPS
June 28, 2023
0

This is how I installed Imagemagick on a vanilla CentOS server Start off by installing the prerequisites yum install php-pear...

Read more
how to Check phpinfo

How to Check phpinfo of Hosting or VPS?

June 28, 2023
Failed to download metadata for repo 'appstream' on Centos 8

How to fix error: Failed to download metadata for repo ‘appstream’ on Centos 8

February 25, 2022
How to Fix MySQL Error "Plugin 'InnoDB' registration as a STORAGE ENGINE failed"?

How to Fix MySQL Error “Plugin ‘InnoDB’ registration as a STORAGE ENGINE failed”?

November 17, 2020
How to optimize Mysql or MariaDB

How to optimize Mysql or MariaDB

November 3, 2020

Recent News

  • Install Imagemagick on CentOS
  • How to Check phpinfo of Hosting or VPS?
  • How to fix error: Failed to download metadata for repo ‘appstream’ on Centos 8

Category

  • Arch
  • Authentication
  • Backups
  • BSD
  • Centmin Mod
  • CentOS
  • Control Panels
  • CoreOS
  • CWP
  • Debian
  • Directadmin
  • Encryption
  • Fedora
  • Firewalls
  • Hocvps Script
  • Hosting providers
  • Kloxo-MR
  • Linux
  • Mitigations
  • Operating System
  • Plesk
  • Reviews
  • Securing VPS/Servers
  • Security Patches
  • SSL Certificates
  • Uncategorized
  • Upgrading
  • VPS/Servers management guides
  • Vulnerability Detection
  • Web servers software
  • Webhosting Control Panel
  • About
  • Advertise
  • Careers
  • Contact

© 2025 JNews - Premium WordPress news & magazine theme by Jegtheme.

No Result
View All Result
  • Home
  • Management guides
    • Web servers software
      • Directadmin
      • Hocvps Script
      • Centmin Mod
      • CWP
      • Kloxo-MR
      • Plesk
    • Control Panels
    • Securing VPS/Servers
      • SSL Certificates
      • Upgrading
      • Authentication
  • Operating System
    • CentOS
    • Fedora
    • Debian
    • Linux
    • Arch
    • BSD
    • CoreOS
  • Reviews
  • Coupon
    • Domain Coupon
    • Hosting Coupon

© 2025 JNews - Premium WordPress news & magazine theme by Jegtheme.

Welcome Back!

Login to your account below

Forgotten Password?

Retrieve your password

Please enter your username or email address to reset your password.

Log In
Thabet