How-To Guides

OpenLiteSpeed Server Setup and Performance Optimization with CyberPanel

  • 18 min read
  • Hostragons Team
OpenLiteSpeed Server Setup and Performance Optimization with CyberPanel

OpenLiteSpeed Server Setup is the process of installing and optimizing the OpenLiteSpeed web server with the CyberPanel control panel to run high-traffic WordPress and PHP-based websites more quickly, securely, and with low resource consumption. The most practical method involves installing CyberPanel on a clean VPS, selecting the correct PHP version, enabling LSCache, configuring SSL, opening the firewall, and then adjusting cache, worker, database, and CDN settings according to server resources. In this guide, you will find a step-by-step process for installing OpenLiteSpeed and CyberPanel, realistic performance settings, and critical points to consider in a production environment.

OpenLiteSpeed is an open-source web server developed by LiteSpeed Technologies. Its Apache compatibility, event-driven architecture, low memory usage, and especially LSCache integration make it a robust solution for WordPress, WooCommerce, Laravel, custom PHP projects, and static sites. CyberPanel is a free control panel that works natively with OpenLiteSpeed, allowing you to manage website, DNS, email, SSL, FTP, database, and backup operations through a graphical interface.

This article is prepared for system administrators, agencies, developers, and performance-focused website owners who are setting up a new VPS. If you haven't chosen a server yet, it is recommended to start with at least 2 vCPUs, 2 GB of RAM, and an NVMe disk. For high-traffic WordPress sites or WooCommerce projects, starting with 4 vCPUs and 4-8 GB of RAM is a healthier option. You can review the Hostragons VPS Server Solutions page for suitable infrastructure options.

Why Choose OpenLiteSpeed and CyberPanel Together?

The combination of OpenLiteSpeed and CyberPanel strikes a strong balance between performance and manageability. Managing a web server solely through the command line requires experience; relying solely on a control panel often leads to missing fine performance settings. CyberPanel simplifies tasks like creating sites, setting up SSL, selecting PHP versions, and managing backups on OpenLiteSpeed, while you can take advantage of advanced features on the OpenLiteSpeed side, such as LSCache, HTTP/3, Gzip/Brotli compression, and connection management.

The most noticeable difference in experience arises in WordPress sites. A site responding in the range of 800 ms to 1500 ms with a classic Apache configuration on the same VPS resources can drop to the range of 150 ms to 500 ms with the correct LSCache and PHP settings. These values vary based on the theme, number of plugins, database status, CDN usage, and visitor location; however, OpenLiteSpeed uses resources more efficiently, especially for dynamic PHP requests.

Comparison of OpenLiteSpeed with Apache and Nginx

Comparison of OpenLiteSpeed with Apache and Nginx
CriteriaOpenLiteSpeedApacheNginx
WordPress cache integrationVery strong with LSCachePlugin-dependentStrong with FastCGI cache but more technical
Control panel easeEasy with CyberPanelCommonly uses cPanel/DirectAdminPanel support varies
.htaccess compatibilityMostly compatibleNatural supportDoes not directly support
Resource consumptionLow and efficientCan be higher depending on configurationLow
Learning curveMediumEasy-MediumMedium-Advanced

This table summarizes the practical decision-making process: for WordPress-heavy projects that will be managed via a panel and need to be deployed quickly, OpenLiteSpeed and CyberPanel are quite advantageous. Nginx may be preferred for large-scale custom architectures; meanwhile, Apache remains popular in heavily shared hosting environments.

Pre-Installation Requirements

Starting with a clean server is crucial for a healthy OpenLiteSpeed Server Setup. Conflicts may arise on a machine where a different control panel, web server, or security tool has been previously installed. If ports 80, 443, 8090, 7080, and 25 are used by other services, you might encounter errors during installation.

  • Small blog or corporate site: 1-2 vCPUs, 2 GB RAM, 30 GB NVMe disk.
  • Medium-sized WordPress site: 2-4 vCPUs, 4 GB RAM, 50-80 GB NVMe disk.
  • WooCommerce or high-traffic publication: 4-8 vCPUs, 8 GB RAM, over 100 GB NVMe disk.
  • Operating system: Ubuntu 22.04 LTS, Ubuntu 24.04 LTS, AlmaLinux 8/9, or Rocky Linux 8/9.
  • Access: Root or sudo-enabled SSH user.
  • Domain: An active domain with the A record pointing to the server's IP address. For a new domain, you can use the Hostragons Domain Lookup and Registration page.

Before installation, you should plan your main domain and the subdomain you will use for panel access in terms of DNS. For example, for the website example.com, panel.example.com can be designated for CyberPanel access. DNS propagation usually varies from a few minutes to 24 hours; therefore, check that the A records point to the correct IP address before SSL installation.

Security and Backup Preparations

If you are working on a server in a production environment, always take a backup first. In a new installation, SSH port, root access, and firewall plans should also be determined. Using an SSH key instead of a strong password significantly reduces unauthorized attempts. Additionally, if you expect that not just a single website but also customer projects will be hosted on the server, you should plan for daily or weekly backup frequency.

Installing OpenLiteSpeed with CyberPanel

The installation of CyberPanel is the quickest way as it automatically installs the OpenLiteSpeed web server and its essential components. After logging into your clean VPS via SSH, updating the system is a good start. You can use the commands apt update and apt upgrade -y for Ubuntu, or dnf update -y for AlmaLinux or Rocky Linux. Restart the server if necessary after the update.

1. Run the CyberPanel Installation Command

The official installation script for CyberPanel is used for installation. You can execute the command sh <(curl https://cyberpanel.net/install.sh || wget -O - https://cyberpanel.net/install.sh) in your SSH screen. The installation wizard will ask you to choose between OpenLiteSpeed or LiteSpeed Enterprise. For the free and open-source setup, OpenLiteSpeed should be selected. After that, options for full service installation, remote MySQL, password setting, Memcached, Redis, and WatchDog will appear on the screen.

Enabling Redis and Memcached options is beneficial in a performance-oriented general installation. However, on low-resource servers like those with 1 GB of RAM, it is better to install only the necessary components instead of enabling every service. On servers with 2 GB of RAM or more, Redis provides significant benefits, especially for WordPress object cache.

2. Access the Panel After Installation

Once the installation is complete, you can access the CyberPanel interface via https://server-ip-address:8090. Your browser may display a certificate warning; this is normal in the initial stage. The panel username is usually admin, and the password set during installation is used. After logging in, your first task should be to update the admin password to a strong value and, if possible, restrict panel access to specific IP addresses.

The CyberPanel port is 8090, while the OpenLiteSpeed web admin port is 7080. It is not recommended to leave port 7080 open to the internet in a production environment. If you are not using it, you can disable it through the firewall or restrict access to only your own IP address.

3. Configure Hostname and SSL Settings

Accessing the panel using a domain name instead of an IP address is more professional for both management and SSL purposes. You can create hostname SSL from the SSL menu on CyberPanel. For this, a subdomain like panel.example.com must have its A record pointed to the server's IP address. You can use the free Let’s Encrypt for the SSL certificate. For projects that require more comprehensive assurance or a corporate appearance, you can consider alternatives in Hostragons SSL Certificates.

Creating a Website and Basic Configuration

After installation, to create the first website, go to the Websites section in the CyberPanel panel and select Create Website. You will choose the package, owner user, domain name, email, and PHP version. Up-to-date and supported versions should be preferred when selecting the PHP version. PHP 8.2 and 8.3 are commonly stable options for 2026; if your project is compatible, a more recent version may provide better performance.

PHP Version and PHP Settings

For WordPress, keeping the memory_limit value at 256M for smaller sites and 512M for WooCommerce sites yields practical results. The upload_max_filesize and post_max_size values can be set to 64M or 128M for media-uploading sites. Setting the max_execution_time value between 120-180 seconds reduces timeout issues during large import operations. However, excessively increasing these values can cause malfunctioning plugins to consume server resources for extended periods.

In managing PHP processes, maintain resource balance. Opening dozens of concurrent PHP workers on a server with 2 vCPUs and 2 GB of RAM does not increase performance; rather, it creates memory pressure. If PHP requests are slow in initial measurements, first check the cache status, slow queries, and plugin load. Simply increasing the number of workers is usually not a permanent solution.

Creating a Database and User Permissions

You can create a database and user through the Databases section in CyberPanel. Creating a separate database user for each website is more secure. Keep user passwords random and long. Changing the table prefix in the WordPress installation from the default wp_ to a different value does not provide security alone; however, it adds an extra layer against automated attack scripts.

OpenLiteSpeed Performance Optimization

After the installation is complete, performance optimization is what makes the real difference. OpenLiteSpeed is fast; however, you may not achieve the expected speed due to the wrong PHP version, disabled cache, unoptimized database, heavy theme, or unnecessary plugins. Therefore, optimization should be considered in layers: web server, PHP, application, database, static files, DNS, and CDN.

Activating LSCache

The strongest feature of OpenLiteSpeed is the LiteSpeed Cache ecosystem. If you are using WordPress, install and activate the LiteSpeed Cache plugin. Then configure Page Cache, Browser Cache, and Object Cache settings. If Redis is installed, you can select Redis in the Object Cache section. For TTL values, you can use initial values like 30 minutes to 2 hours for the homepage, 1 day for posts, and 1 week for static pages. For projects that are frequently updated, such as news sites, shorter TTLs may be preferred; for corporate pages, longer TTLs can be suitable.

For WooCommerce sites, cart, checkout, my account, and user-specific pages should be excluded from cache. Otherwise, user cart or session information may get mixed up. The LiteSpeed Cache plugin largely auto-detects WooCommerce; still, it's necessary to test with different users before going live.

Static File Optimization

CSS, JavaScript, image, and font files have a significant impact on page speed. CSS/JS minification, deferring, and merging features should be used cautiously via LiteSpeed Cache. In modern HTTP/2 and HTTP/3 environments, merging every file does not always result in speed gains. Especially in complex themes, aggressive JS deferring can lead to errors in menus, sliders, or payment forms.

  • Convert images to WebP or AVIF format.
  • Do not upload hero images excessively large; 1600 px for desktop is usually sufficient.
  • Use lazy loading but exclude the LCP image visible on the first screen from lazy loading.
  • Limit the number of fonts; 2 families and 2-3 weights are generally sufficient.
  • Regularly check third-party scripts; live support, advertising, and analytics codes can affect post-TTFB metrics.

HTTP/3, QUIC, and Compression

OpenLiteSpeed can provide lower latency in modern browsers with HTTP/3 and QUIC support. Ensure that UDP port 443 is open in your CyberPanel and OpenLiteSpeed configuration. Even if TCP 443 is open, HTTP/3 will not work if UDP 443 is closed. Gzip compression is commonly used by default; Brotli support can also provide additional gains in static files. Compression on text-based files can reduce transfer size by 60-80%.

Keep-Alive and Connection Settings

Keep-Alive allows the same client to receive multiple files without opening a new connection. A very low timeout value increases connection retries; a very high value can cause unnecessary connection buildup in high traffic. A range of 5-15 seconds is balanced for starters. As traffic increases, you should update these values by monitoring OpenLiteSpeed statistics and system load.

Security Optimization on CyberPanel

Security is as integral to the setup as performance. A fast but poorly configured server can quickly encounter issues due to brute force attacks, malicious bots, or outdated plugins. Although CyberPanel provides basic security features, the system administrator must conduct regular checks.

Firewall and Port Management

You can manage necessary ports from the Firewall section of CyberPanel. Ports 80 and 443 must be open on a general web server. If port 22 is used for SSH, strong security measures must be taken, or a different port should be preferred. Port 8090 is for CyberPanel, and if email is used, ports like 25, 465, 587, 110, 143, 993, and 995 may be necessary. Do not leave ports of unused services open.

For SSH, key-based login is recommended instead of password-based login. Root login can be disabled, and a separate user with sudo privileges can be used. Fail2Ban or similar brute force protections are particularly useful against WordPress login pages and SSH attempts.

SSL, HSTS, and Updated TLS

SSL has become mandatory for all websites. HTTPS should be used not only for SEO but also for user trust and browser compatibility. Let’s Encrypt certificates can be installed with a few clicks via CyberPanel. After SSL, a 301 redirect from HTTP to HTTPS should be implemented, mixed content errors should be checked, and HSTS should be enabled if possible. However, before enabling HSTS, ensure that your subdomains have SSL; misconfiguration can lead to access issues.

Update and Backup Discipline

Server software, PHP versions, WordPress core, themes, and plugins should be regularly updated. However, not every update should be made directly on the live site. Especially in projects with WooCommerce, membership systems, or custom software, testing in a staging environment first is essential. For this purpose, you can create a separate subdomain or consider the backup and isolation features within Hostragons Web Hosting Packages.

For backup, the 3-2-1 approach is recommended: 3 copies of the data, stored in 2 different environments, and 1 copy kept in a different location. If CyberPanel backups remain on the same server, they will not be sufficient in case of disk failure or security breach. External storage, remote servers, or cloud targets are safer.

Sample Performance Scenario for WordPress

Sample Performance Scenario for WordPress

Let's proceed with a concrete example. Assume an enterprise WordPress site is running on a VPS with 2 vCPUs, 4 GB of RAM, and an NVMe disk. The site has 25 pages, 40 blog posts, 18 active plugins, and an average page size of 1.5 MB. Initial measurement might show TTFB of 900 ms, LCP of 3.8 seconds, total requests of 92, and a mobile PageSpeed score of 58. These values represent a typical starting level encountered in many real projects.

When LSCache is enabled on OpenLiteSpeed and CyberPanel, images are converted to WebP, unnecessary plugins are removed, CSS/JS deferring is carefully set, and Redis object cache is turned on, TTFB can drop to the range of 200-350 ms, LCP to 1.8-2.5 seconds, and the mobile score can rise above 80. The most critical point here is not to look for a single magic setting, but to follow the measurement-result-improvement cycle.

Key Metrics You Should Measure

  • TTFB: Server's first response time. Important for observing cache effects.
  • LCP: Load time of the largest visible content. Affected by image and theme optimization.
  • INP: User interaction delay. Heavy JavaScript files can distort this metric.
  • CLS: Cumulative layout shift. Influenced by image sizes, ad spaces, and font loads.
  • CPU and RAM usage: Should be monitored to understand bottlenecks during traffic spikes.

Do not rely on a single tool for testing. PageSpeed Insights, WebPageTest, GTmetrix, browser developer tools, and server logs should be evaluated together. Getting a high score in one test does not always mean that the real user experience is good.

Common Errors and Solutions

Cannot Access the Panel After Installation

If you cannot access CyberPanel, first check if port 8090 is open. Your cloud provider's security group or the server's internal firewall might be blocking this port. Also, ensure that the installation has completed fully; services may start incompletely in interrupted installations. The commands systemctl status lscpd and systemctl status lsws can help understand service status.

SSL Certificate Cannot Be Generated

The most common reason for SSL errors is incorrect DNS records pointing to the wrong IP or port 80 being closed. For Let’s Encrypt verification, the domain must reach the server. If you are using Cloudflare, temporarily setting the proxy status to DNS only during the initial setup may resolve the issue. Additionally, making too many certificate attempts in a short time for the same domain can hit the rate limit.

WordPress Loads Very Slowly

If the site is slow despite having OpenLiteSpeed installed, check whether LSCache is actually working. LiteSpeed cache hit information can be seen in the response headers. Testing while logged in as an admin can be misleading; measure as a logged-out user. Additionally, slow database queries, excessive plugin usage, unoptimized images, and remote third-party services are the most common reasons.

PHP Errors and White Screen Issue

Incompatibility between the PHP version and theme or plugins can cause a white screen. Temporarily switch to a different PHP version via CyberPanel and check the error logs. The debug mode for WordPress can be enabled briefly; however, do not display error output to visitors on the live site. Analyzing error logs to identify the problematic plugin or function is the most accurate method.

Production Environment Checklist

Using a short but effective checklist before going live prevents many issues from arising later. The following items are applicable for most projects using OpenLiteSpeed and CyberPanel:

  • Are the A and www records of the domain pointing to the correct IP address?
  • Is the SSL certificate active and is the HTTP to HTTPS redirect working?
  • Is the CyberPanel admin password strong, and has the panel port been restricted?
  • Are unnecessary ports closed?
  • Is LSCache enabled and are cache hits being obtained in tests?
  • Are the PHP memory_limit, upload_max_filesize, and max_execution_time suitable for project needs?
  • Is Redis or object cache working correctly?
  • Is there a daily or weekly backup plan?
  • Are images in WebP/AVIF format and optimized in size?
  • Have PageSpeed, WebPageTest, and real browser tests been conducted?

Making this checklist a standard operational procedure for every new site installation saves time for agencies and developers. Especially in multi-client servers, standardization after installation significantly reduces support requests.

Costs and Scaling of OpenLiteSpeed Server Setup

OpenLiteSpeed can be used without a license cost as it is open-source. CyberPanel is also free for basic usage. This reduces initial costs; however, in calculating costs, not only licensing but also management time, backup, security, monitoring, and technical support should be taken into account. Managing your own VPS provides flexibility; however, the responsibility for system management also falls on you.

When traffic increases, the first reflex may be to switch to a larger server. However, before scaling, cache hit rates, database queries, bot traffic, and static file distribution should be examined. Sometimes, proper CDN configuration, image optimization, and bot filtering can save 30-50% of resources without upgrading the server. Nevertheless, if CPU is consistently above 80%, RAM is using swap, or disk I/O wait times are increasing, you need to move to a more robust plan.

In critical projects, opting for managed infrastructure makes sense as well. If you do not have a technical team or if downtime tolerance for customer sites is low, Hostragons Managed Hosting and Server Services options can reduce operational burdens.

Conclusion

The OpenLiteSpeed Server Setup and performance optimization with CyberPanel offers a fast, secure, and manageable web infrastructure when done correctly. The key to success is not just completing the installation but also addressing PHP, LSCache, SSL, firewall, backup, image optimization, and measurement processes together. This structure allows you to achieve high performance with low resources, from a small blog to a high-traffic WordPress site.

If you are launching a new project, first determine the right VPS resource, domain name, and SSL plan; then apply the checklist in this guide. For a more stable start, you can explore Hostragons' server, domain, and SSL solutions, choosing the infrastructure that fits your needs and establishing a stronger foundation for the optimization process.

Frequently Asked Questions

Is OpenLiteSpeed free?

Yes, OpenLiteSpeed is an open-source and free web server. LiteSpeed Enterprise is a different product with a commercial license. You can host high-performance websites without license costs by using OpenLiteSpeed with CyberPanel.

What VPS specifications are sufficient to install CyberPanel?

A VPS with 2 vCPUs, 2 GB of RAM, and an NVMe disk is a good starting point for basic use. For more resource-intensive projects like WordPress and WooCommerce, 4 vCPUs and 4-8 GB of RAM should be preferred. Traffic, plugin count, and database load directly affect resource needs.

Is OpenLiteSpeed faster than Nginx for WordPress?

With the correct configuration, OpenLiteSpeed offers very strong performance for WordPress sites thanks to LSCache integration. Nginx is also fast; however, in terms of WordPress caching and panel management, the OpenLiteSpeed-CyberPanel combination might be easier to implement. The most accurate results are obtained by measuring the same site.

How can I install SSL with CyberPanel?

In CyberPanel, you can create a Let’s Encrypt certificate from the SSL menu for the website or hostname. The A record of the domain must point to the correct server IP address, and ports 80/443 should be open. Paid SSL certificates can also be used for corporate needs.

Should LSCache be enabled on every site?

LSCache provides significant speed advantages on most WordPress and PHP sites. However, cache should be excluded for cart, checkout, user panel, and dynamically personalized pages. Cache settings should be tested with different user scenarios before going live.

Share this article:

Hostragons Team

Up-to-date guides from our expert team on hosting, servers, and domain names. Let's find the right solution for your project together.

Contact Us