Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

iTechGuides is reader-supported. When you buy through links on our site, we may earn an affiliate commission. As an Amazon Associate I earn from qualifying purchases. Learn more

The most repeatable way to install OpenLiteSpeed on a Linux VPS is to add the official LiteSpeed repository, install the server package, and then install LSPHP separately if the VPS will run PHP. This method supports current, non-EOL CentOS 8, 9 and 10; Debian 11, 12 and 13; and Ubuntu 22, 24 and 26, along with listed derivatives such as AlmaLinux, CloudLinux, Oracle Linux, Rocky Linux and VzLinux. You will need SSH access, sudo privileges, a supported 64-bit operating system, and permission to open TCP port 7080 for the WebAdmin console.

Choose the installation method before changing the VPS

OpenLiteSpeed has several installation paths. They are alternatives, not layers to combine. For most production VPSs, the repository method is the best default because package installation and later upgrades follow the operating system’s package manager. The one-click script is more automated but can add a complete application stack. A precompiled binary gives you a self-contained installation path, while a source build provides the most control at the cost of more administration.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Method Automation Control and reproducibility Bundled software Upgrade rule
Official repository Moderate; package manager handles installation Good, with packages managed by apt or yum OpenLiteSpeed; LSPHP is a separate step Use apt-get upgrade or yum update for OpenLiteSpeed
One-click script Highest Lower; the script makes multiple decisions for you OpenLiteSpeed and LSPHP; with -W, MariaDB, WordPress and LiteSpeed Cache Follow the script or package method it established; do not mix installation types casually
Precompiled binary Low to moderate High; you control the extracted package and install sequence OpenLiteSpeed only unless you add other software Continue with the binary approach; do not switch to repository packages over the same installation
Build from source Lowest Highest; you control configuration and compilation OpenLiteSpeed only unless separately installed Repeat a controlled source-build process and test each version

If you are replacing an incompatible VPS image, verify its distribution and release first. Package availability and supported releases change, so check the current OpenLiteSpeed support matrix immediately before installation rather than relying on an old image or tutorial.

Prerequisites and pre-installation checks

Confirm the operating system

Connect over SSH and identify the distribution and release:

#1 Best Overall
Sale
Compressed Air Duster,130000RPM Super Power Cordless Air Duster,Rechargeable Brushless Blower,3 Gear Adjustable Blower with LED Light,Dust Remover for Computer/House/Outdoor/Car
  • Powerful Turbo Fan:CAGIWIRU Electric Air Duster have reached speed up to 130000RPM,Can efficient remove dust and debris.With LED light and Three Adjustable Speed to meet with different cleaning tasks.
  • With Attached USB C Fasting Charging cable.Charing 3 hours,Enjoy up to 240 minutes of use on the lowest setting, For third speed can use for 25mins.with four charging options to meet with your needs.
  • Wide Application: attached 5 different nozzles,making it suitable for a variety of scenes, such as car,pet, pc, keyboards, and other electronic devices. It also serves for office and home clean duster.
  • Handy Design & Portable:Cordless air duster electric nozzle is Light weight and small size, design and comfortable to hold and space saving, convenient to carry around. You can put it in your room or inside the car without taking up space.
  • Economical &Reusable: Built durable materials with a long-lasting battery,our CAGIWIRU air duster it's a sustainable alternative to disposable air cans.
cat /etc/os-release

The repository procedure currently covers CentOS 8, 9 and 10; Debian 11, 12 and 13; and Ubuntu 22, 24 and 26, including the documented derivatives AlmaLinux, CloudLinux, Oracle Linux, Rocky Linux and VzLinux. “Current” means the release is still supported by both the operating-system vendor and the OpenLiteSpeed repository. If the VPS is running an older, end-of-life release, upgrade or rebuild it before installing.

Use an account with sudo privileges

The installation writes under /usr/local/lsws and adds system packages, so use a root shell or an account that can run sudo. Keep the SSH session open until the service and WebAdmin console have been tested.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Plan firewall access

OpenLiteSpeed’s WebAdmin console listens on TCP port 7080. Allow that port in both the VPS operating-system firewall and any cloud-provider firewall or security group, but do not expose administrative ports more broadly than necessary. Your normal website ports, such as HTTP and HTTPS, must also be allowed when you publish a site; opening those ports is separate from the OpenLiteSpeed installation itself.

Install OpenLiteSpeed from the official repository

The repository guide describes this as an easy way to install OpenLiteSpeed and PHP on a supported operating system. Run the following commands after connecting by SSH.

1. Add the repository

sudo wget -O - https://repo.litespeed.sh | sudo bash

This command downloads and runs the repository setup script from https://repo.litespeed.sh. Review the output for repository errors before moving to the package-installation step.

2. Install the server package

Use the package manager for the distribution family:

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
# Debian and Ubuntu
sudo apt-get -y install openlitespeed

# CentOS-family distributions
sudo yum install openlitespeed -y

When the command completes, the default OpenLiteSpeed installation is under /usr/local/lsws. The package step installs the web server itself; it does not automatically install every PHP component an application might require.

Rank #2
EVEO® Screen Cleaner Spray Kit (Streak-Free) TV Screen Cleaner for Smart TV, Lcd, LEd, Oled | Computer Screen Cleaner Spray and Wipe Microfiber Cloth - TV, Monitor, Laptop, iPad, Car - 6.7oz 1 Pack
  • Screen Cleaner is Your Screen’s New Bestfriend! - EVEO is proud to present a screen cleaner that’s perfectly suited for your TV. Meet your new screen cleaner, computer screen cleaner, laptop cleaner, iPad cleaner, Macbook,tv cleaner or any other electronic device. Our screen cleaner spray and wipe along with the included plush microfiber cloth, easily removes dust, fingerprints & other smudges on the screen’s surface. Clean effectively for a streak-free screen
  • Gentle on your Screens - Our screen cleaner spray and wipes is compatible to be used even for the most sensitive LCD, LED, CRT, and OLED screens in proper use. Be at ease knowing that this product is compatible with all the major brands: LG, SONY, Samsung, Sharp, iPad, iPhone, Android screens, Kindle, PC monitors - we’ve got you covered! Can be used as LCD screen cleaner, tv cleaner, smart tv screen cleaner, and more
  • Premium Super Soft Plush Microfiber Cloth - Included in this efficient screen cleaning kit. This screen cleaner spray and wipe has our signature plush microfiber cloth specially designed to comply with screens and monitors and leave them streak-free. Has been shown to effectively absorbs stubborn stains, zero streaks, and no fiber shedding. Always use this together with our screen cleaner for the best results
  • Easy-to-Use Screen Cleaner Kit + microfiber cleaning cloth - The EVEO Screen Cleaning Kit will easily be your new favorite tool when it comes to taking care of the things you love most, quick and easy solution for a streak-free screen. Simply screw on the sprayer gun on the screen cleaner bottle. Spray the cleaning liquid onto the microfiber cloth, then wipe the screen until desired cleanliness & shine is achieved.
  • Quality Screen Care Kit Worth Purchasing - Enjoy a convenient Screen Cleaner anytime, anywhere you need it. Your satisfaction is our top priority. We stand behind the quality of our products and that’s why, you shouldn’t be worrying at all. We manufacture the Best Screen Cleaner. and can be used for laptop cleaning kit, laptop screen cleaner, tv screen cleaner for smart tv. MacBook screen cleaner, monitor cleaner or screen cleaner spray for electronic devices with microfiber cleaning cloth

3. Install LSPHP for PHP applications

Install the LSPHP version and modules your application needs. The documented example uses LSPHP 8.4:

# Debian and Ubuntu
sudo apt-get install lsphp84 lsphp84-common lsphp84-mysql

# CentOS-family distributions
sudo yum install lsphp84 lsphp84-common lsphp84-mysqlnd

For this example, the LSPHP binary is located at /usr/local/lsws/lsphp84/bin/lsphp. Confirm that the package manager completes without dependency errors before configuring a PHP site. Additional PHP extensions may be needed by a particular application, but the exact list depends on that application and should not be guessed from the web-server installation alone.

Set the WebAdmin password and open the console

Find or change the generated password

OpenLiteSpeed stores the randomly generated WebAdmin password in:

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
/usr/local/lsws/adminpasswd

To set a new password or change the existing one, run:

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

Choose a unique, long password and store it in an approved password manager. Do not put the password in shell history, a ticket, or a public configuration file.

Allow TCP 7080

Permit TCP 7080 in the VPS firewall and in any external cloud firewall. Firewall syntax differs by distribution and provider, so use the control panel or firewall tool appropriate to your environment. If the port is blocked at either layer, the server can be healthy while the browser still reports a timeout.

Sign in

Open this address in a browser, replacing the placeholder with the VPS address or a DNS name that resolves to it:

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Rank #3
Sale
BladeHawks RGB Gaming Mouse Pad Extra Large Extended 31.5x12 Inch-Black | LED mouse pad with 14 lighting modes, covers keyboard & mouse, anti-slip rubber base, waterproof surface, USB powered
  • 【Large size】:Measuring 800 x 300 mm/ 31. 5×12 inches, which is wider and taller than others. Large mouse pad can perfectly fit your keyboard and mouse of any size, and there is also ample space for peripherals such as phones, tablets, etc.
  • 【LED backlight mouse pad】:Blade Hawks RGB mouse pad provides 7 static modes and 7 dynamic modes will give you the options you are looking for. Power-off memory function remembers the last lighting mode you selected. The super glow fiber Chroma will give you a colorful gaming setup that you want.
  • 【Anti-slip rubber base】:Made from Natural rubber, this gaming mousepad will firmly grip your desktop, allowing you to enjoy the ultimate precision in the games you are most passionate about. It also comes with a texture that enhances this ability even further.
  • 【Smooth and waterproof surface】: Micro-textured cloth surface, for extremely precise mouse control and a smooth movement. When liquid splashes on the gaming mouse pad, it forms water droplets and slides down. Will not delay your work or gameplay.
  • 【Plug and play】: This mouse and keyboard pad is powered by USB, plug and play, no driver required. One button control light modes. Press one time to change the lighting mode, press twice to change the brightness, press and hold about 3 seconds turn ON/OFF.
https://your-domain-or-vps-ip:7080/

A certificate warning is possible when the console is reached by an IP address or before a trusted certificate has been configured. Verify that you are connecting to your own VPS, then authenticate with the password from adminpasswd or the password you set with admpass.sh.

Start OpenLiteSpeed and verify the service

Use the bundled control utility for a basic start and status check:

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

The status command should report a running server. If it does not, inspect the command output and the OpenLiteSpeed logs under /usr/local/lsws before attempting repeated starts. A successful process check does not prove that a browser can reach the site: verify the firewall, DNS, listener ports and virtual-host configuration separately.

Validate the four installation layers

  • Package layer: the openlitespeed package and any requested LSPHP packages installed without errors.
  • Process layer: lswsctrl status reports the server as running.
  • Administration layer: TCP 7080 is reachable and the WebAdmin credentials work.
  • Application layer: the intended virtual host, document root and PHP handler are configured and tested with the application’s own health check.

Using the one-click installation script

The official one-click script is useful when you want OpenLiteSpeed and LSPHP installed together with minimal manual package work:

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
bash <(curl -k https://raw.githubusercontent.com/litespeedtech/ols1clk/master/ols1clk.sh)

The script can install OpenLiteSpeed and LSPHP only. The -k option tells curl not to verify the TLS certificate, so use this path only when you understand that trade-off and have verified the script source and destination independently.

With -W, the script also installs MariaDB, WordPress and LiteSpeed Cache:

bash <(curl -k https://raw.githubusercontent.com/litespeedtech/ols1clk/master/ols1clk.sh) -W

Use the bundled option only on a fresh VPS where all of those components are wanted together. It changes the machine beyond the web server itself, so document exactly what it will add, take a restorable snapshot if appropriate, and avoid running it over an existing production stack. If you need a minimal server or already operate a database and application separately, use the repository method instead.

Free tools Windows power users keep installed

One-click scans. No signup required.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Rank #4
Sale
Vaydeer Wrist Rest for Keyboard and Mouse, Computer Ergonomic Wrist Support Pad, Soft Memory Foam Arm Cushion for Desk, Palm Hand Office Laptop Typing
  • 【Softer and More Comfortable】Vaydeer wrist rest has unique diamond pattern, which is the combination of softness and aesthetics. The materials of wrist rest are improved into higher quality memory foam and covered with silky smooth lycra. The computer wrist rest makes you as comfortable and cushiony as like rest your wrists on clouds.
  • 【Ergonomic Wrist Saver】The wrist rests for keyboard and mouse comes with a 17.32×3.15×0.83 inch keyboard wrist pad and a 5.94×3.15×0.83 inch mouse wrist support. Based on ergonomic design, the unique concave shape is the perfect fit for your wrist joints. The wrist rest pad fits most computer keyboards and laptops, improve hand and wrist posture, release your wrist and arm stress.
  • 【Non-Slip Rubber Bottom】Featuring an anti-skid silicone base on the bottom, this wrist keyboard support stays firmly in place on your desk, preventing the padding from sliding around, ensuring stable and consistent wrist support during extended computer sessions.
  • 【Better Experience & Pain Relief】Our keyboard arm rest is beneficial to alleviate the soreness caused by direct contact and friction between your arm and a hard desk surface, reducing the risk of wrist fatigue or carpal tunnel. The soft texture of memory foam can evenly distribute the pressure around your wrists and provide good support with just enough give.
  • 【Helpful in Multiple Scenarios】Whether you're working, studying, writing, typing, gaming, this keyboard and mouse rest combo is an essential accessory to add comfort and support to your hands and wrists. It’s also a great gift for men, women, family, friend, coworker, gamer, teacher, etc.

Installing from a precompiled binary

The binary guide requires superuser privileges and documents a one-click binary path for its listed 64-bit operating systems. This route is appropriate when you need the supplied binary package rather than repository-managed packages.

  1. Obtain the appropriate OpenLiteSpeed binary archive for the supported 64-bit operating system.
  2. Extract the archive and enter its directory:
tar -zxvf openlitespeed-*.tgz
cd openlitespeed
  1. Run the installer as a privileged user:
./install.sh
  1. Start the server and check its status:
/usr/local/lsws/bin/lswsctrl start
/usr/local/lsws/bin/lswsctrl status

The binary route does not make repository packages part of the same installation. Keep a record of the archive version and installation date so future maintenance follows the same path.

Building OpenLiteSpeed from source

A source build is for administrators who need custom compilation or configuration control. It requires more testing because you own the dependency, compiler and configuration decisions.

  1. Extract the OpenLiteSpeed source archive.
  2. Run ./build.sh; the documented build process uses it to handle dependencies, configuration and compilation.
  3. Review ols.conf before installation so the resulting server settings are understood.
  4. Run ./install.sh.
  5. Use the default server root, /usr/local/lsws, unless your controlled build changes it.
  6. Start and verify the server:
/usr/local/lsws/bin/lswsctrl start
/usr/local/lsws/bin/lswsctrl status

The default WebAdmin port remains 7080. Test the compiled server and its application configuration on a staging VPS before replacing a production instance.

What’s actually slowing this PC down?

Pick the symptom - the matching free tool is one click away.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Configure PHP after installation

Installing LSPHP supplies the PHP runtime, but a PHP site still needs a virtual host, document root and script handler configured in OpenLiteSpeed. The repository example places the executable at /usr/local/lsws/lsphp84/bin/lsphp; use that path when the WebAdmin configuration asks for the PHP binary for this installation.

Keep the PHP version aligned with the application’s requirements and the packages available for your operating-system release. A package can install successfully while an application still fails because a required extension is absent, the document root is wrong, or the handler points to a different PHP version. Test a small application-specific PHP check and remove diagnostic files after testing.

Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Common failures and precise fixes

“Package openlitespeed has no installation candidate”

  • Confirm the VPS release is in the supported matrix.
  • Run the repository setup command again and read its output for a signing, network or distribution error.
  • Refresh package metadata, then retry the distribution-appropriate install command.
  • Do not substitute an unrelated third-party repository or mix packages from a different operating-system release.

The WebAdmin page times out

  • Run sudo /usr/local/lsws/bin/lswsctrl status to confirm the process is running.
  • Check TCP 7080 in both the VPS firewall and the cloud firewall or security group.
  • Use the VPS’s actual public IP or a DNS name that resolves to it.
  • Check whether an upstream network policy blocks nonstandard administrative ports.

The password is rejected

Read the generated password file with appropriate privileges or reset it using sudo /usr/local/lsws/admin/misc/admpass.sh. Make sure the browser is reaching the intended VPS, especially when several servers share similar DNS names.

Best Value
Sale
Under Desk Cable Management Tray No Drill, Metal Mesh Cable Management Under Desk with Clamp Mount, 2 Hole Cable Tray with Wire Management and Cord Organizer for Home Office Standing Desk
  • 【No Drill Mounted】Cable management tray can be assembled in as little as 3 minutes or less-simply. Side clips easily clampe the edge of desk, pass through the holes on the sides, and secure excess cables with baskets. Desk cable management supports inward or outward installation to meet your needs in different scenarios, and provides you with great convenience when collecting and organizing wires.
  • 【Rubber Pad Protects Desk】Wire organizer under desk built-in soft rubber pads on the clamp protect your desk from scratches, so you will not damage your furniture or office.
  • 【Sturdy and Beautiful】Cord management under desk is made of high-quality carbon steel and holds about 15 lbs. The wire basket has 2 holes on each side of the tray to enable your cables to pass freely. Cable baskets are suitable for desk thickness use from 0.4" to 2.4".
  • 【Space Saving & Keep Organized】Desk cable management tray holds all your power cords, outlet strips, USB hubs and computer transformers hidden from your feet, and the data cables will not enter the vacuum cleaner to keep your desk clean and tidy. Desk wire organizer is also suitable for use in the kitchen and outdoors.
  • 【Reduce Safety Risks】Cable tray under desk keeps all plugs away from your kids, no more worry about tripping. Using 2 holes wire tray saves extra space, helps you easily cabling and wire protection. The mesh design is not easy to accumulate dust, but avoids safety accidents caused by messy wires.

OpenLiteSpeed runs but PHP pages fail

  • Verify that the LSPHP packages were installed for the same distribution family as OpenLiteSpeed.
  • Confirm the configured executable is /usr/local/lsws/lsphp84/bin/lsphp for the documented LSPHP 8.4 example.
  • Check that every application-required extension is installed.
  • Review the virtual-host and script-handler configuration for path and permission errors.

The service will not start after configuration changes

Recheck the edited configuration, inspect the OpenLiteSpeed logs under /usr/local/lsws, and return to the last known-good configuration if necessary. Make one change at a time so the failing setting is identifiable.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Upgrade and maintenance without breaking the installation

Keep the installation and upgrade methods consistent. For repository installations, upgrade OpenLiteSpeed with the package manager:

# Debian and Ubuntu
sudo apt-get upgrade openlitespeed

# CentOS-family distributions
sudo yum update openlitespeed

The official upgrade guidance warns against mixing binary and repository installation. A server installed from a binary archive should not later be overwritten with repository packages simply because that appears faster; choose one lifecycle and document it.

Use staging for version changes

Package availability and supported distribution versions are volatile. Pin or test versions on a staging VPS before applying production changes, and keep a rollback plan that includes the OpenLiteSpeed configuration, virtual-host data and application backup. After an upgrade, check the service status, WebAdmin access, PHP execution and representative application requests.

Keep operational records

  • Record the operating-system release and architecture.
  • Record whether the server was installed from the repository, one-click script, binary archive or source.
  • Record the OpenLiteSpeed and LSPHP package versions.
  • Record firewall changes, the WebAdmin port and the location of backups.
  • Repeat upgrades in a maintenance window and monitor logs afterward.

Which method should you use?

Choose the repository procedure when you want the shortest repeatable path on Ubuntu, Debian or a CentOS-family VPS and intend to use normal package upgrades. Choose the one-click script only for a fresh machine where its complete software bundle is intentional. Choose a precompiled binary when you need a controlled archive-based installation, and choose a source build when custom compilation justifies the additional maintenance.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Whichever path you select, verify the supported operating-system release first, treat LSPHP as a separate PHP requirement, protect WebAdmin on port 7080, and use the same method for future upgrades.

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.