{"id":93940,"date":"2023-09-20T10:12:45","date_gmt":"2023-09-20T10:12:45","guid":{"rendered":"\/tutorials\/?p=93940"},"modified":"2026-03-10T09:28:06","modified_gmt":"2026-03-10T09:28:06","slug":"optimize-wordpress-with-kvm-vps","status":"publish","type":"post","link":"\/ca\/tutorials\/optimize-wordpress-with-kvm-vps","title":{"rendered":"WordPress on VPS: Best Virtualization + How to Optimize Your Site with KVM VPS"},"content":{"rendered":"<?xml encoding=\"utf-8\" ?><p>When choosing a virtual private server (VPS) plan, WordPress users must consider its web server and virtualization technology to achieve optimal site speed. At Hostinger, our VPS plans use Kernel-based Virtual Machine (KVM) and OpenLiteSpeed.<\/p><p>In this article, we will explain how to optimize WordPress with KVM VPS at Hostinger. In addition, we will discuss virtualization, its types, and how it affects your site&rsquo;s performance.<\/p><p>We will also compare popular VPS virtualization technologies and different web servers&rsquo; performance for various WordPress website types. Lastly, you will learn how to easily set up an optimized WordPress hosting environment on Hostinger VPS using KVM and OpenLiteSpeed.<\/p><div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><a href=\"https:\/\/assets.hostinger.com\/content\/tutorials\/pdf\/Linux-Commands-Cheat-Sheet.pdf\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"283\" src=\"https:\/\/www.hostinger.com\/tutorials\/wp-content\/uploads\/sites\/2\/2022\/11\/Linux-cheat-sheet-1024x283.png\" alt=\"\" class=\"wp-image-69262\"  sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure><\/div><p>\n\n\n\n<\/p><h2 class=\"wp-block-heading\" id=\"h-what-is-virtualization-and-why-you-should-care-about-it\">What Is Virtualization and Why You Should Care About It<\/h2><p>Virtualization technology is software that enables users to create and manage multiple virtual environments, called <strong>virtual machines<\/strong> (VMs), in a physical server. Each VM operates as an autonomous server with its own operating system, applications, and dedicated hardware resources.<\/p><p>At the core of VPS virtualization is the <strong>hypervisor<\/strong>, a software layer positioned between the physical server and the VMs. It is responsible for allocating resources, creating VMs, and maintaining strict isolation between virtual machines.<\/p><p>Hypervisor allows the actions and processes of each VM in the same server to remain entirely independent, ensuring a secure and reliable hosting environment.<\/p><p>Virtualization&rsquo;s main objective is to optimize hardware resource utilization, boost operational efficiency, and lower overall hosting costs. By running multiple VMs on a single host, the server can distribute workloads more evenly, resulting in more efficient resource usage.<\/p><p>This setup enables users to deploy diverse operating systems on each VM according to their needs, including Linux-based distributions like Ubuntu or CentOS. Moreover, they can install other software in an isolated environment based on their applications&rsquo; requirements.<\/p><h3 class=\"wp-block-heading\" id=\"h-types-of-virtualization\">Types of Virtualization<\/h3><p><strong>KVM<\/strong> and Open Virtuozzo (<strong>OpenVZ<\/strong>) are popular virtualization technologies with distinct approaches. In this section, we will explain their pros and cons.<\/p><p><strong>KVM or Kernel-based Virtual Machine<\/strong><\/p><p>KVM is a hardware-level virtualization solution that gives each VM a dedicated kernel for better environment isolation and security. It uses hardware virtualization extensions to create virtual environments.<\/p><p><strong>Pros of KVM:<\/strong><\/p><ul class=\"wp-block-list\">\n<li><strong>Complete isolation<\/strong> &ndash; each VM operates as an independent system with dedicated resources, providing robust isolation and security.<\/li>\n\n\n\n<li><strong>Wide OS support<\/strong> &ndash; KVM is compatible with different guest operating systems, including various Linux distributions versions.<\/li>\n\n\n\n<li><strong>Performance<\/strong> &ndash; KVM can achieve near-native performance due to hardware-assisted virtualization.<\/li>\n\n\n\n<li><strong>Snapshot and live migration<\/strong> &ndash; KVM enables users to take VM snapshots and supports live migration, allowing the VMs to seamlessly switch between physical hosts without downtime.<\/li>\n\n\n\n<li><strong>Flexible resource allocation<\/strong> &ndash; the hypervisor can dynamically allocate resources like CPU and memory to VMs based on their requirements.<\/li>\n<\/ul><p><strong>Cons of KVM:<\/strong><\/p><ul class=\"wp-block-list\">\n<li><strong>Overhead<\/strong> &ndash; running a full-fledged guest OS in each VM can lead to higher <a href=\"https:\/\/dbpedia.org\/page\/Overhead_(computing)\" target=\"_blank\" rel=\"noreferrer noopener\">overhead<\/a> than other virtualization types.<\/li>\n\n\n\n<li><strong>Complexity<\/strong> &ndash; KVM environments&rsquo; setup process can be more complex, especially for beginners, as it requires configuring the hypervisor and installing the guest OS separately.<\/li>\n<\/ul><p><strong>OpenVZ or Open Virtuozzo<\/strong><\/p><p>OpenVZ is an operating system-level virtualization solution based on containerization. It shares the host OS kernel among multiple containers &ndash; in this case, VPS instances.<\/p><p><strong>Pros of OpenVZ:<\/strong><\/p><ul class=\"wp-block-list\">\n<li><strong>Lightweight<\/strong> &ndash; OpenVZ containers share the host OS kernel, leading to minimal overhead and efficient resource utilization.<\/li>\n\n\n\n<li><strong>Fast deployment<\/strong> &ndash; the containers&rsquo; quick startup time enables rapid deployment and application scaling.<\/li>\n\n\n\n<li><strong>High density<\/strong> &ndash; OpenVZ allows for a higher container density on the same physical host than full virtualization solutions.<\/li>\n\n\n\n<li><strong>Easy management<\/strong> &ndash; containers are easy to manage and use fewer server resources than full VMs.<\/li>\n\n\n\n<li><strong>Application isolation<\/strong> &ndash; each container provides a degree of isolation, allowing applications to run in separate environments.<\/li>\n<\/ul><p><strong>Cons of OpenVZ:<\/strong><\/p><ul class=\"wp-block-list\">\n<li><strong>Limited OS flexibility<\/strong> &ndash; all containers must use the same OS kernel as the host, which may limit the choice of supported operating systems.<\/li>\n\n\n\n<li><strong>Reduced isolation<\/strong> &ndash; containers share the host OS kernel, meaning they are less isolated than full VMs. A process inside one container could impact other containers or the host.<\/li>\n\n\n\n<li><strong>Limited kernel modification<\/strong> &ndash; the host kernel version must be compatible with the containers&rsquo; requirements.<\/li>\n<\/ul><p>Hostinger uses both virtualizations, but now users can only <a href=\"\/ca\/vps-hosting\">purchase the KVM plan<\/a>. To help you understand its benefits, we will compare two Hostinger VPS plans with different virtualization technologies.<\/p><p>For the OpenVZ virtualization, we will use the old <strong>Hostinger VPS 2<\/strong> plan with <strong>two cores<\/strong> and <strong>2 GB of RAM<\/strong>. We will compare it against the <strong>Hostinger KVM 1<\/strong> plan with KVM virtualization, <strong>one core<\/strong>, and <strong>4 GB of RAM<\/strong>.<\/p><p>This test will measure three main performance metrics &ndash; CPU, storage, and network speed.<\/p><p><div class=\"protip\">\n                    <h4 class=\"title\">Pro Tip<\/h4>\n                    <p>As of April 18th, 2023, all of the VPS plans Hostinger offers come with <a href=\"https:\/\/roadmap.hostinger.com\/c\/44-vps-with-next-gen-kvm-virtualization\" target=\"_blank\" rel=\"noopener\">KVM virtualization<\/a> instead of the OpenVZ one. However, existing OpenVZ VPS users can still renew their plans.<\/p>\n                <\/div>\n\n\n\n<\/p><p><strong>CPU Speed &ndash; Geekbench<\/strong><\/p><p>CPU speed is a crucial factor in determining VPS performance. The CPU is the brain of the server responsible for executing instructions and processing data.<\/p><p>To ensure data accuracy, we use <a href=\"https:\/\/www.geekbench.com\/\" target=\"_blank\" rel=\"noreferrer noopener\">Geekbench<\/a> CPU benchmark software to test each VPS plan&rsquo;s performance. A higher score means a faster and more powerful CPU.<\/p><div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><a href=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2023\/09\/kvm-openvz-geekbench-cpu-performance-comparison-graph.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"992\" src=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2023\/09\/kvm-openvz-geekbench-cpu-performance-comparison-graph-1024x992.png\" alt=\"Graph comparing the Geekbench CPU performance of KVM and OpenVZ\" class=\"wp-image-93971\"  sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure><\/div><p>The graph shows that the<strong> KVM 1<\/strong> plan offers <strong>35%<\/strong> higher single-core CPU performance despite only having a single core compared to two in Hostinger&rsquo;s<strong> VPS 2 OpenVZ<\/strong>. The multi-core performance is also nearly identical.<\/p><p><strong>Storage Speed &ndash; FIO<\/strong><\/p><p>Storage speed, also known as disk speed or I\/O (Input\/Output) performance, is another critical factor significantly impacting a VPS&rsquo; overall performance. In this benchmark, we are testing a combined random read and write test (50\/50).<\/p><p>The <strong>read<\/strong> speed measures how fast the drive accesses data stored in it. Meanwhile, <strong>write <\/strong>speed<strong> <\/strong>measures how quickly the drive saves information.<\/p><div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><a href=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2023\/09\/kvm-openvz-fio-storage-speed-comparison-graph.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"992\" src=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2023\/09\/kvm-openvz-fio-storage-speed-comparison-graph-1024x992.png\" alt=\"Graph comparing the FiO storage speed of KVM and OpenVZ\" class=\"wp-image-93947\"  sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure><\/div><p>The graph shows that the KVM plan offers a <strong>67% <\/strong>increase in read and write speeds compared to the OpenVZ one.<\/p><p><strong>Network Speed &ndash; iPerf3<\/strong><\/p><p>Network speed is crucial for fast data transfer, quick site load time, smooth media streaming, low-latency gaming, remote access, and handling concurrent users on a VPS. It ensures efficient content delivery, data backups, and software updates.<\/p><p>In the following benchmark, we compare network transfer speeds for <strong>Hostinger KVM 1<\/strong> and <strong>Hostinger VPS 2 OpenVZ <\/strong>plans using <a href=\"https:\/\/iperf.fr\/\" target=\"_blank\" rel=\"noreferrer noopener\">iPerf3<\/a>. This tool measures the maximum achievable bandwidth on a network, including between a client and VPS.<\/p><div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><a href=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2023\/09\/Graph-comparing-the-iPerf3-network-speed-of-KVM-and-OpenVZ.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"992\" src=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2023\/09\/Graph-comparing-the-iPerf3-network-speed-of-KVM-and-OpenVZ-1024x992.png\" alt=\"Graph comparing the iPerf3 network speed of KVM and OpenVZ\" class=\"wp-image-93946\"  sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure><\/div><p>KVM shows <strong>66%<\/strong> better performance in download and upload speeds. In addition, our new KVM plans use a <strong>300<\/strong> <strong>Mbps <\/strong>network, while the deprecated OpenVZ plan uses <strong>100<\/strong> <strong>Mbps<\/strong>.<\/p><p><strong>Choosing Based on Performance<\/strong><\/p><p>KVM uses hardware virtualization extensions to create virtual environments, like Intel VT-x or AMD-V. As a result, it provides near-native performance for most workloads. It also gives each VM an independent kernel for better VPS isolation.<\/p><p>KVM is generally better for workloads requiring complete isolation, compatibility with various operating systems, and plenty of processing power due to its capabilities to optimize your WordPress website.<\/p><h3 class=\"wp-block-heading\" id=\"h-best-virtualization-for-wordpress\">Best Virtualization for WordPress<\/h3><p>The best virtualization technology to optimize your WordPress site depends on various factors such as performance, resource requirements, scalability, isolation, and management complexity.<\/p><p>Both OpenVZ and KVM have their advantages and drawbacks for hosting WordPress websites. To help you pick the best one, let&rsquo;s compare them based on their performance, scalability, and isolation.<\/p><p><strong>Performance<\/strong><\/p><p>KVM provides near-native performance since it operates as a full virtualization solution with dedicated resources and hardware virtualization extensions. This makes it suitable for resource-intensive applications like WordPress, especially when you need consistent performance.<\/p><p>OpenVZ has lower overhead due to sharing the host OS kernel. It can achieve better resource efficiency and performance for lightweight applications or when hosting multiple instances of the same WordPress site.<\/p><p><strong>Scalability<\/strong><\/p><p>KVM offers greater flexibility and scalability when adding more resources like CPU, RAM, and disk to individual VMs to accommodate various workloads.<\/p><p>OpenVZ containers share the host&rsquo;s resources, making scaling out and deploying multiple instances of the same WordPress site easier.<\/p><p><strong>Isolation<\/strong><\/p><p>KVM offers complete isolation between virtual machines, providing better security and separation between WordPress sites.<\/p><p>While OpenVZ containers provide some isolation, each VM is not fully independent. This could be a concern if you want to host multiple unrelated WordPress sites as it may cause software conflict.<\/p><p><strong>KVM and OpenVZ for WordPress: Which One is Better?<\/strong><\/p><p>KVM is the better choice for a WordPress website if you prioritize high performance, complete isolation, and the ability to handle resource-intensive workloads.<\/p><p>In addition, KVM&rsquo;s full virtualization approach ensures dedicated resources and strong isolation between VMs, preventing software conflicts. It makes the virtualization suitable for hosting multiple WordPress sites with different requirements.<\/p><p>To support this, we will compare the more powerful<strong> Hostinger VPS 4 OpenVZ<\/strong> plan with <strong>4 CPU Cores<\/strong> + <strong>4 GB of RAM <\/strong>against the<strong> Hostinger KVM 1 <\/strong>plan with a <strong>single core<\/strong> + <strong>4 GB of RAM<\/strong>.<\/p><p>We will use <strong>GTmetrix<\/strong> to test three website types &ndash; personal, eCommerce, and web design agency. We will run the test five times and take the average score to see which configuration offers the fastest <strong>fully loaded time<\/strong>.<\/p><p><div><p class=\"important\"><strong>Important!<\/strong> All tests in this section use the LiteSpeed cache plugin on an OpenLiteSpeed web server. In addition to the virtualization, both software can significantly affect performance.<\/p><\/div>\n\n\n\n<\/p><p><strong>Personal<\/strong><\/p><p>A simple personal website usually functions to showcase personal information, interests, or projects. It typically serves as a digital identity or online portfolio, allowing visitors to learn more about the website owner and their activities.<\/p><div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><a href=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2023\/09\/a-personal-website-landing-page.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"584\" src=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2023\/09\/a-personal-website-landing-page-1024x584.png\" alt=\"A landing page of a personal website\" class=\"wp-image-93948\"  sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure><\/div><p>The VPS requirement for this type of site is generally modest since personal websites are simple, draw low traffic, and consume minimal server resources. A VPS plan with <strong>one CPU core<\/strong> and <strong>1-2 GB of RAM<\/strong> should be sufficient. Here&rsquo;s the test result:<\/p><div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><a href=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2023\/09\/personal-website-loading-speed-with-openvz-and-kvm-comparison-graph.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"992\" src=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2023\/09\/personal-website-loading-speed-with-openvz-and-kvm-comparison-graph-1024x992.png\" alt=\"A graph comparing the loading speed of a personal website with OpenVZ and KVM\" class=\"wp-image-93949\"  sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure><\/div><p>The graph shows that the KVM plan offers a considerable <strong>10%<\/strong> site speed improvement. Moreover, it performs better despite having <strong>three<\/strong> <strong>fewer CPU cores<\/strong> than the OpenVZ one.<\/p><p><strong>eCommerce<\/strong><\/p><p>Unlike personal websites, an <a href=\"\/ca\/tutorials\/what-is-ecommerce\">eCommerce website<\/a> has more resource and feature requirements. It needs additional features for handling online transactions, showcasing product catalogs, and processing customer data.<\/p><p>As such, a WordPress-based online store is generally more resource-heavy than a simple personal website. Aside from the additional functionalities, an eCommerce website typically has more data and web pages to offer a seamless shopping experience to customers.<\/p><div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><a href=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2023\/09\/an-ecommerce-website-appearance.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"739\" src=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2023\/09\/an-ecommerce-website-appearance-1024x739.png\" alt=\"An eCommerce website appearance\" class=\"wp-image-93950\"  sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure><\/div><p>For these reasons, eCommerce websites deal with more complex operations and potentially higher traffic. So, we recommended having a VPS with at least <strong>two to four CPU cores<\/strong> and <strong>4 GB to 8 GB of RAM<\/strong> to ensure optimal site performance.<\/p><div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><a href=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2023\/09\/openvz-kvm-ecommerce-website-loading-speed-comparison-graph.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"992\" src=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2023\/09\/openvz-kvm-ecommerce-website-loading-speed-comparison-graph-1024x992.png\" alt=\"A graph comparing an eCommerce website loading speed using OpenVZ and KVM\" class=\"wp-image-93951\"  sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure><\/div><p>Despite the fewer processing units, the KVM plan handles the eCommerce website well and offers a <strong>21%<\/strong> page load time improvement compared to the OpenVZ VPS.<\/p><p><strong>Web Design Agency<\/strong><\/p><p>A web design agency site is a digital platform showcasing a company&rsquo;s services, expertise, portfolio, and contact information. Its primary purpose is to attract potential clients, demonstrate the agency&rsquo;s capabilities, and provide essential information to visitors.<\/p><div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><a href=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2023\/09\/web-design-agency-website-landing-page.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"503\" src=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2023\/09\/web-design-agency-website-landing-page-1024x503.png\" alt=\"A web design agency website landing page\" class=\"wp-image-93952\"  sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure><\/div><p>The requirements for a VPS will depend on factors such as the expected traffic, the number of websites hosted, the WordPress theme, and the web pages&rsquo; complexity.<\/p><p>For instance, the server resource consumption will increase if a page uses many JavaScript (JS) files and external HTTP requests. In addition, the more web pages a website has, the longer it takes to load.<\/p><p>You will also need a higher-performance VPS if the website requires specific services or applications, like a map API. A VPS hosting plan with at least <strong>two CPU cores<\/strong> and <strong>4 GB RAM<\/strong> for a web design agency should be sufficient to start with.<\/p><div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><a href=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2023\/09\/openvz-kvm-web-design-agency-website-loading-speed-comparison-graph.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"992\" src=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2023\/09\/openvz-kvm-web-design-agency-website-loading-speed-comparison-graph-1024x992.png\" alt=\"A graph comparing web design agency website loading speed with OpenVZ and KVM\" class=\"wp-image-93953\"  sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure><\/div><p>Based on the findings, our new <strong>KVM 1 <\/strong>plan handles the web design agency WordPress website well, offering a <strong>5%<\/strong> page speed improvement compared to the OpenVZ plan.<\/p><h2 class=\"wp-block-heading\" id=\"h-best-web-server-choice-for-wordpress\">Best Web Server Choice for WordPress<\/h2><p>In addition to the virtualization technology, choosing the best web server is crucial to speed up your WordPress website performance. To help with your WordPress optimization, this section will compare three popular web servers &ndash; <strong>Apache<\/strong>, <strong>NGINX<\/strong>, and <strong>OpenLiteSpeed<\/strong>.<\/p><h3 class=\"wp-block-heading\" id=\"h-apache\">Apache<\/h3><p>Apache is a popular web server currently powering <a href=\"https:\/\/w3techs.com\/technologies\/details\/ws-apache\" target=\"_blank\" rel=\"noreferrer noopener\">around 30%<\/a> of websites worldwide, making it the second largest in the market. This open-source web server is known for its performance, extensive compatibility, and module system.<\/p><p>It is compatible with various operating systems, including OpenVMS and other Unix-like operating systems, like MacOS or Linux. It is also a <a href=\"https:\/\/make.wordpress.org\/hosting\/handbook\/server-environment\/\" target=\"_blank\" rel=\"noreferrer noopener\">recommended web server for hosting a WordPress site<\/a>.<\/p><p>The module system lets users add or remove functions to configure their web server according to their needs. In addition to flexibility, Apache modules are dynamically loadable, resulting in more efficient memory utilization and better performance.<\/p><p><strong>Pros:<\/strong><\/p><ul class=\"wp-block-list\">\n<li><strong>Extensive support<\/strong> &ndash; wide community support and comprehensive documentation.<\/li>\n\n\n\n<li><strong>Simplicity<\/strong> &ndash; easy to set up and configure, making it beginner-friendly.<\/li>\n\n\n\n<li><strong>Dynamic modules <\/strong>&ndash; Apache modules can be loaded anytime during runtime for easier development.<\/li>\n\n\n\n<li><strong>Directory-level configuration <\/strong>&ndash; it provides a <strong>.htaccess<\/strong> file to allow users to tweak the site&rsquo;s settings without modifying the main server.<\/li>\n<\/ul><p><strong>Cons:<\/strong><\/p><ul class=\"wp-block-list\">\n<li><strong>Resource-demanding <\/strong>&ndash; due to its architecture, the Apache web server is less efficient at handling concurrent connections and static content than NGINX.<\/li>\n<\/ul><h3 class=\"wp-block-heading\" id=\"h-nginx\">NGINX<\/h3><p>NGINX is a free, open-source web server popular for its high performance, resource efficiency, and speed. It has a similar market share as Apache but is currently the most used web server, powering <a href=\"https:\/\/w3techs.com\/technologies\/details\/ws-nginx\" target=\"_blank\" rel=\"noreferrer noopener\">over 34%<\/a> of websites worldwide.<\/p><p>Unlike Apache, NGINX uses an asynchronous, event-driven architecture that efficiently distributes client requests across worker processes. It allows the web server to serve many concurrent connections with consistent performance and minimal resources.<\/p><p><strong>Pros:<\/strong><\/p><ul class=\"wp-block-list\">\n<li><strong>High performance<\/strong> &ndash; superior performance in handling concurrent connections and static files.<\/li>\n\n\n\n<li><strong>Resource-efficient<\/strong> &ndash; NGINX&rsquo;s efficient resource utilization makes the web server well-suited for high-traffic websites.<\/li>\n\n\n\n<li><strong>Low memory footprint<\/strong> &ndash; NGINX requires a small amount of memory to run, suitable for systems with limited resources.<\/li>\n\n\n\n<li><strong>Dedicated support <\/strong>&ndash; the web server&rsquo;s premium version, NGINX Plus, offers dedicated support from the developer.<\/li>\n<\/ul><p><strong>Cons:<\/strong><\/p><ul class=\"wp-block-list\">\n<li><strong>Difficult setup<\/strong> &ndash; configuration syntax might be complicated for beginners.<\/li>\n\n\n\n<li><strong>Limited configurability <\/strong>&ndash; since NGINX doesn&rsquo;t provide <strong>.htaccess<\/strong> files, users may need to modify certain WordPress plugins.<\/li>\n<\/ul><p><div class=\"protip\">\n                    <h4 class=\"title\">Learn More About NGINX vs Apache<\/h4>\n                    <p>Want to learn more about these two web servers? Check out our in-depth <a href=\"\/ca\/tutorials\/nginx-vs-apache-what-to-use\/\">comparison between NGINX vs Apache<\/a>.<\/p>\n                <\/div>\n\n\n\n<\/p><h3 class=\"wp-block-heading\" id=\"h-openlitespeed\">OpenLiteSpeed<\/h3><p>OpenLiteSpeed is an open-source variant of LiteSpeed, a commercial web server designed to replace Apache. It is compatible with Apache configurations, enabling users to switch between the web servers without making significant changes.<\/p><p>However, OpenLiteSpeed offers significant performance and scalability improvements over Apache. It incorporates the asynchronous event-driven architecture similar to NGINX, resulting in better efficiency when handling concurrent connections.<\/p><p>Since Apache is more popular, OpenLiteSpeed&rsquo;s community support may be less extensive. Moreover, it&rsquo;s only compatible with Unix-like operating systems.<\/p><p><strong>Pros:<\/strong><\/p><ul class=\"wp-block-list\">\n<li><strong>High performance<\/strong> &ndash; the web server can handle many concurrent connections and PHP requests efficiently to ensure optimal WordPress website speed during high traffic.<\/li>\n\n\n\n<li><strong>Built-in caching features<\/strong> &ndash; users can use LiteSpeed Exclusive Features to enable the <a href=\"https:\/\/wordpress.org\/plugins\/litespeed-cache\" target=\"_blank\" rel=\"noreferrer noopener\">LiteSpeed Cache<\/a> WordPress plugin to speed up their WordPress site.<\/li>\n\n\n\n<li><strong>Beginner-friendly <\/strong>&ndash; due to its similarity to Apache, OpenLiteSpeed is easy to set up and configure.<\/li>\n\n\n\n<li><strong>Drop-in replacement<\/strong> &ndash; OpenLiteSpeed is compatible with Apache&rsquo;s rules and configurations, making it easy to transition between the web servers.<\/li>\n<\/ul><p><strong>Cons:<\/strong><\/p><ul class=\"wp-block-list\">\n<li><strong>Open-source version limitations<\/strong> &ndash; the free version might lack some advanced features compared to the commercial Enterprise and Standard LiteSpeed editions.<\/li>\n<\/ul><h3 class=\"wp-block-heading\" id=\"h-choosing-the-best-web-server\">Choosing the Best Web Server<\/h3><p>When choosing a web server for your WordPress website, note that each option has its strengths. Apache is well-established, user-friendly, and compatible with various applications. Meanwhile, NGINX performs better, efficiently handling concurrent connections and serving static content.<\/p><p>On the other hand, OpenLiteSpeed may be an excellent choice if you want an alternative to both web servers. It offers NGINX&rsquo;s PHP handling performance with seamless Apache compatibility and straightforward configuration.<\/p><p>OpenLiteSpeed provides a balance between performance and ease of use, making it an ideal option for hosting a WordPress site. Its built-in caching capabilities and efficiency in handling PHP requests ensure optimal page speed and responsiveness.<\/p><p>Moreover, transitioning from Apache to OpenLiteSpeed is relatively seamless due to its compatibility with the web server&rsquo;s configurations. Plus, you won&rsquo;t experience a performance drop when switching from NGINX for their similar architecture.<\/p><p>To objectively measure their performance, we tested each web server by running personal, eCommerce, and web agency WordPress websites. Like the previous test, we will use GTmetrix and focus on the fully loaded time metric.<\/p><p>We also use the same VPS plan, <strong>Hostinger KVM 1<\/strong> with <strong>one core<\/strong> and <strong>4 GB of RAM<\/strong>.<\/p><div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><a href=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2023\/09\/apache-openlitespeed-nginx-performance-comparison-graphs-for-three-website-types.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"992\" src=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2023\/09\/apache-openlitespeed-nginx-performance-comparison-graphs-for-three-website-types-1024x992.png\" alt=\"Graphs comparing the performance of Apache, OpenLiteSpeed, and NGINX web servers for different website types\" class=\"wp-image-93954\"  sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure><\/div><p>Our tests show that OpenLiteSpeed offers faster page speed for every website type than Apache and NGINX. It is <strong>16% <\/strong>to<strong> 32%<\/strong> faster in fully loaded time than Apache and performs <strong>14%<\/strong> to <strong>38% <\/strong>better than NGINX.<\/p><h2 class=\"wp-block-heading\" id=\"h-how-to-set-up-best-optimized-wordpress-on-hostinger-vps-with-openlitespeed-and-kvm\">How to Set Up Best-Optimized WordPress on Hostinger VPS (with OpenLiteSpeed and KVM)<\/h2><p>In this section, we will explain the steps to set up OpenLiteSpeed and KVM virtualization using Hostinger&rsquo;s VPS hosting for your WordPress site. Before proceeding, ensure you have purchased the new KVM hosting plan.<\/p><?xml encoding=\"utf-8\" ?><figure class=\"wp-block-image size-large\"><a class=\"hgr-tutorials-cta hgr-tutorials-cta-vps-hosting\" href=\"\/ca\/vps-hosting\" target=\"_blank\" rel=\"noreferrer noopener\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"300\" src=\"https:\/\/www.hostinger.com\/tutorials\/wp-content\/uploads\/sites\/2\/2023\/02\/VPS-hosting-banner-1024x300.png\" alt=\"\" class=\"wp-image-77934\"  sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure><h3 class=\"wp-block-heading\" id=\"h-step-1-install-a-template-with-openlitespeed-and-wordpress\">Step 1. Install a Template With OpenLiteSpeed and WordPress<\/h3><p>Hostinger offers templates that let you change your server&rsquo;s operating system and install an application in one click. These templates make the VPS configuration process faster and easier since you don&rsquo;t need to manually install the software individually.<\/p><p>For this tutorial, we will use the <strong>Ubuntu <\/strong>with WordPress template, which comes with OpenLiteSpeed. After <a href=\"\/ca\/tutorials\/getting-started-with-vps-hosting\">setting up your VPS<\/a>, follow these steps to apply the template:<\/p><ol class=\"wp-block-list\">\n<li>Log in to <strong>hPanel<\/strong> and select <strong>VPS <\/strong>on the sidebar. Click <strong>Manage <\/strong>on your VPS plan:<\/li>\n<\/ol><div class=\"wp-block-image\"><figure data-wp-context='{\"imageId\":\"69e1a27eafc57\"}' data-wp-interactive=\"core\/image\" class=\"aligncenter size-full wp-lightbox-container\"><img loading=\"lazy\" decoding=\"async\" width=\"2280\" height=\"700\" data-wp-class--hide=\"state.isContentHidden\" data-wp-class--show=\"state.isContentVisible\" data-wp-init=\"callbacks.setButtonStyles\" data-wp-on-async--click=\"actions.showLightbox\" data-wp-on-async--load=\"callbacks.setButtonStyles\" data-wp-on-async-window--resize=\"callbacks.setButtonStyles\" src=\"https:\/\/www.hostinger.com\/tutorials\/wp-content\/uploads\/sites\/2\/2021\/10\/vps-list-on-hpanel.png\" alt=\"VPS list on hPanel\" class=\"wp-image-125813\"  sizes=\"auto, (max-width: 2280px) 100vw, 2280px\" \/><button class=\"lightbox-trigger\" type=\"button\" aria-haspopup=\"dialog\" aria-label=\"Enlarge\" data-wp-init=\"callbacks.initTriggerButton\" data-wp-on-async--click=\"actions.showLightbox\" data-wp-style--right=\"state.imageButtonRight\" data-wp-style--top=\"state.imageButtonTop\">\n\t\t\t<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"12\" height=\"12\" fill=\"none\" viewbox=\"0 0 12 12\">\n\t\t\t\t<path fill=\"#fff\" d=\"M2 0a2 2 0 0 0-2 2v2h1.5V2a.5.5 0 0 1 .5-.5h2V0H2Zm2 10.5H2a.5.5 0 0 1-.5-.5V8H0v2a2 2 0 0 0 2 2h2v-1.5ZM8 12v-1.5h2a.5.5 0 0 0 .5-.5V8H12v2a2 2 0 0 1-2 2H8Zm2-12a2 2 0 0 1 2 2v2h-1.5V2a.5.5 0 0 0-.5-.5H8V0h2Z\"><\/path>\n\t\t\t<\/svg>\n\t\t<\/button><\/figure><\/div><ol start=\"2\" class=\"wp-block-list\">\n<li>Navigate to the<strong> sidebar <\/strong>&rarr;<strong> OS &amp; Panel<\/strong> &rarr; <strong>Operating System<\/strong> section, choose <strong>Applications<\/strong>, and select the <strong>WordPress<\/strong> template:<\/li>\n<\/ol><div class=\"wp-block-image\"><figure data-wp-context='{\"imageId\":\"69e1a27eb1212\"}' data-wp-interactive=\"core\/image\" class=\"aligncenter size-large wp-lightbox-container\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"234\" data-wp-class--hide=\"state.isContentHidden\" data-wp-class--show=\"state.isContentVisible\" data-wp-init=\"callbacks.setButtonStyles\" data-wp-on-async--click=\"actions.showLightbox\" data-wp-on-async--load=\"callbacks.setButtonStyles\" data-wp-on-async-window--resize=\"callbacks.setButtonStyles\" src=\"https:\/\/www.hostinger.com\/tutorials\/wp-content\/uploads\/sites\/2\/2023\/09\/wordpress-vps-template-on-hpanel-os-installation-menu-1024x234.png\" alt=\"The WordPress VPS template on hPanel's operating system installation menu\" class=\"wp-image-125822\"  sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><button class=\"lightbox-trigger\" type=\"button\" aria-haspopup=\"dialog\" aria-label=\"Enlarge\" data-wp-init=\"callbacks.initTriggerButton\" data-wp-on-async--click=\"actions.showLightbox\" data-wp-style--right=\"state.imageButtonRight\" data-wp-style--top=\"state.imageButtonTop\">\n\t\t\t<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"12\" height=\"12\" fill=\"none\" viewbox=\"0 0 12 12\">\n\t\t\t\t<path fill=\"#fff\" d=\"M2 0a2 2 0 0 0-2 2v2h1.5V2a.5.5 0 0 1 .5-.5h2V0H2Zm2 10.5H2a.5.5 0 0 1-.5-.5V8H0v2a2 2 0 0 0 2 2h2v-1.5ZM8 12v-1.5h2a.5.5 0 0 0 .5-.5V8H12v2a2 2 0 0 1-2 2H8Zm2-12a2 2 0 0 1 2 2v2h-1.5V2a.5.5 0 0 0-.5-.5H8V0h2Z\"><\/path>\n\t\t\t<\/svg>\n\t\t<\/button><\/figure><\/div><ol start=\"3\" class=\"wp-block-list\">\n<li>Lastly, click on the <strong>Change OS<\/strong> button.<\/li>\n<\/ol><p>Wait until the installation is complete, which usually takes around 10 minutes. Once finished, you will see a confirmation message at the top of your screen.<\/p><p><div class=\"protip\">\n                    <h4 class=\"title\">Pro Tip<\/h4>\n                    <p>In addition to WordPress, Hostinger VPS provides OpenLiteSpeed templates for other content management systems like Joomla or Drupal. We also offer templates for <a href=\"\/ca\/tutorials\/install-ruby-on-rails-on-ubuntu\">installing web development frameworks like Ruby on Rails<\/a> or Django.<\/p>\n                <\/div>\n\n\n\n<\/p><h3 class=\"wp-block-heading\" id=\"h-step-2-log-in-to-ssh-and-run-the-interactive-script\">Step 2. Log in to SSH and Run the Interactive Script<\/h3><p>After installing the template, run the bash script via SSH to configure the web server. You can <a href=\"\/ca\/tutorials\/how-to-use-putty-ssh\">use an SSH client like PuTTY<\/a> or Terminal, but we recommend hPanel&rsquo;s <strong>Browser terminal <\/strong>since it is more convenient.<\/p><p>On hPanel&rsquo;s VPS overview menu, follow these steps:<\/p><ol class=\"wp-block-list\">\n<li>Click <strong>Browser terminal<\/strong>. If your browser returns a pop-up notification message for permission, select <strong>Allow<\/strong>.<\/li>\n<\/ol><div class=\"wp-block-image\"><figure data-wp-context='{\"imageId\":\"69e1a27eb2743\"}' data-wp-interactive=\"core\/image\" class=\"aligncenter size-full wp-lightbox-container\"><img loading=\"lazy\" decoding=\"async\" width=\"1460\" height=\"535\" data-wp-class--hide=\"state.isContentHidden\" data-wp-class--show=\"state.isContentVisible\" data-wp-init=\"callbacks.setButtonStyles\" data-wp-on-async--click=\"actions.showLightbox\" data-wp-on-async--load=\"callbacks.setButtonStyles\" data-wp-on-async-window--resize=\"callbacks.setButtonStyles\" src=\"https:\/\/www.hostinger.com\/tutorials\/wp-content\/uploads\/sites\/2\/2019\/04\/browser-terminal-button-on-hpenel.png\" alt=\"The Browser terminal button on hPanel's VPS overview page\" class=\"wp-image-125795\"  sizes=\"auto, (max-width: 1460px) 100vw, 1460px\" \/><button class=\"lightbox-trigger\" type=\"button\" aria-haspopup=\"dialog\" aria-label=\"Enlarge\" data-wp-init=\"callbacks.initTriggerButton\" data-wp-on-async--click=\"actions.showLightbox\" data-wp-style--right=\"state.imageButtonRight\" data-wp-style--top=\"state.imageButtonTop\">\n\t\t\t<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"12\" height=\"12\" fill=\"none\" viewbox=\"0 0 12 12\">\n\t\t\t\t<path fill=\"#fff\" d=\"M2 0a2 2 0 0 0-2 2v2h1.5V2a.5.5 0 0 1 .5-.5h2V0H2Zm2 10.5H2a.5.5 0 0 1-.5-.5V8H0v2a2 2 0 0 0 2 2h2v-1.5ZM8 12v-1.5h2a.5.5 0 0 0 .5-.5V8H12v2a2 2 0 0 1-2 2H8Zm2-12a2 2 0 0 1 2 2v2h-1.5V2a.5.5 0 0 0-.5-.5H8V0h2Z\"><\/path>\n\t\t\t<\/svg>\n\t\t<\/button><\/figure><\/div><ol start=\"2\" class=\"wp-block-list\">\n<li>Enter your VPS root username and password. You can find them in the <strong>SSH access<\/strong> tab.<\/li>\n\n\n\n<li>An interactive script will appear after logging in. Enter your domain or VPS IP address to start the installation.<\/li>\n<\/ol><div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><a href=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2023\/09\/browser-terminal-interactive-script-request-user-vps-domain.jpg\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"683\" src=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2023\/09\/browser-terminal-interactive-script-request-user-vps-domain-1024x683.jpg\" alt=\"Browser terminal interactive script requests the user's VPS domain\" class=\"wp-image-93958\"  sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure><\/div><ol start=\"4\" class=\"wp-block-list\">\n<li>The command line will prompt you with various questions. Enter <strong>y <\/strong>or <strong>n <\/strong>to answer the prompts and continue the installation.<\/li>\n<\/ol><div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><a href=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2023\/09\/browser-terminal-outputs-installation-prompts-and-a-confirmation-about-successful-OpenLiteSpeed-installation.jpg\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"389\" src=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2023\/09\/browser-terminal-outputs-installation-prompts-and-a-confirmation-about-successful-OpenLiteSpeed-installation-1024x389.jpg\" alt=\"Browser terminal outputs installation prompts and a confirmation message about the successful OpenLiteSpeed installation.\" class=\"wp-image-93959\"  sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure><\/div><p>Once the OpenLiteSpeed web server is installed, the command line will output a confirmation message.<\/p><h3 class=\"wp-block-heading\">Step 3. Install and Configure WordPress<\/h3><p>After setting up the web server, install and configure the WordPress platform. To do so, open your web browser and follow these steps:<\/p><ol class=\"wp-block-list\">\n<li>Visit your website using its domain name or VPS IP address.<\/li>\n\n\n\n<li>Choose the WordPress installation language.<\/li>\n<\/ol><div class=\"wp-block-image\"><figure class=\"aligncenter size-full\"><a href=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2023\/09\/wordpress-installation-language-selection-menu.png\"><img loading=\"lazy\" decoding=\"async\" width=\"489\" height=\"504\" src=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2023\/09\/wordpress-installation-language-selection-menu.png\" alt=\"WordPress installation language selection menu\" class=\"wp-image-93960\"  sizes=\"auto, (max-width: 489px) 100vw, 489px\" \/><\/a><\/figure><\/div><ol start=\"3\" class=\"wp-block-list\">\n<li>Fill in the required information, like the site title, username, and password, then click <strong>Install WordPress <\/strong>to confirm.<\/li>\n<\/ol><div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><a href=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2023\/09\/wordpress-installation-requesting-user-information.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1016\" height=\"1024\" src=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2023\/09\/wordpress-installation-requesting-user-information-1016x1024.png\" alt=\"WordPress requests user information during the installation process\" class=\"wp-image-93961\"  sizes=\"auto, (max-width: 1016px) 100vw, 1016px\" \/><\/a><\/figure><\/div><p>WordPress is now ready to use, and the LiteSpeed caching plugin will install automatically.<\/p><div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><a href=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2023\/09\/successful-wordpress-installation-confirmation-message.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"558\" src=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2023\/09\/successful-wordpress-installation-confirmation-message-1024x558.png\" alt=\"A confirmation message about successful WordPress installation\" class=\"wp-image-93962\"  sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure><\/div><p><div class=\"protip\">\n                    <h4 class=\"title\">Want a Simpler Hosting Solution?<\/h4>\n                    <p>For beginners, we recommend our <a href=\"\/ca\/wordpress-hosting\">managed WordPress hosting solution<\/a> instead of VPS since it is simpler to set up and maintain. It comes with various WordPress development features, a free domain, and an <a href=\"https:\/\/support.hostinger.com\/en\/articles\/7935917-hostinger-cdn-website-optimization\" target=\"_blank\" rel=\"noopener\">in-house content delivery network (CDN)<\/a>.<\/p>\n                <\/div>\n\n\n\n<\/p><h3 class=\"wp-block-heading\" id=\"h-step-4-start-managing-your-server\">Step 4. Start Managing Your Server<\/h3><p>After installing WordPress, configure OpenLiteSpeed&rsquo;s Web Admin control panel and phpMyAdmin to manage your website.<\/p><p><strong>Setting Up Web Admin<\/strong><\/p><p>OpenLiteSpeed has a pre-installed management panel called Web Admin, which offers a graphical user interface that helps simplify system administration tasks.<\/p><p>To access Web Admin, enter <strong>https:\/\/vpsip:7080<\/strong> into your browser and replace <strong>vpsip<\/strong> with your actual IP address. Also, ensure your operating system firewall opens <strong>port 7080<\/strong> to make the panel accessible.<\/p><p>You can open the port using <a href=\"\/ca\/tutorials\/how-to-configure-firewall-on-ubuntu-using-ufw\/\">Ubuntu&rsquo;s Uncomplicated Firewall<\/a> (UFW) command utility via SSH. Here&rsquo;s the command:<\/p><pre class=\"wp-block-preformatted\">ufw allow 7080<\/pre><p>Alternatively, Hostinger VPS users can ask <strong>Kodee AI assistant<\/strong> to create the new firewall rule by asking it, &ldquo;Open port 7080 to all IP addresses.&rdquo;<\/p><p>For more information, refer to the <a href=\"https:\/\/docs.litespeedtech.com\/cloud\/images\/wordpress\/\" target=\"_blank\" rel=\"noreferrer noopener\">LiteSpeed control panel access manual<\/a>. Once you successfully access Web Admin, you will see a login screen similar to the one below.<\/p><div class=\"wp-block-image\"><figure class=\"aligncenter size-full\"><a href=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2023\/09\/openlitespeed-web-admin-login-page.png\"><img loading=\"lazy\" decoding=\"async\" width=\"636\" height=\"620\" src=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2023\/09\/openlitespeed-web-admin-login-page.png\" alt=\"OpenLiteSpeed's Web Admin login page\" class=\"wp-image-93963\"  sizes=\"auto, (max-width: 636px) 100vw, 636px\" \/><\/a><\/figure><\/div><p>Enter your Web Admin access credentials and click <strong>Login<\/strong>. By default, the login username is <strong>Admin<\/strong>. For the password, check it by running either of the following commands in <strong>Browser terminal<\/strong>:<\/p><pre class=\"wp-block-preformatted\">sudo cat \/home\/ubuntu\/.litespeed_password<\/pre><pre class=\"wp-block-preformatted\">sudo cat .litespeed_password<\/pre><p>In the control panel, you can manage your domains, SSL certificates, and other server settings:<\/p><div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><a href=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2023\/09\/openlitespeed-web-admin-main-dashboard.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"778\" src=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2023\/09\/openlitespeed-web-admin-main-dashboard-1024x778.png\" alt=\"OpenLiteSpeed's web admin main dashboard\" class=\"wp-image-93964\"  sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure><\/div><p><strong>Setting Up phpMyAdmin<\/strong><\/p><p>The OpenLiteSpeed template automatically installs a MySQL WordPress database for your website. It also provides phpMyAdmin for managing the database, accessible via <strong>http:\/\/vpsip\/phpmyadmin<\/strong>.<\/p><p>The default login username is <strong>root<\/strong>. Meanwhile, run one of these commands via SSH to check the MySQL and WordPress user passwords:<\/p><pre class=\"wp-block-preformatted\">sudo cat \/home\/ubuntu\/.db_password<\/pre><pre class=\"wp-block-preformatted\">sudo cat .db_password<\/pre><p>Your web server is now ready for hosting a website. We recommend checking the official LiteSpeed documentation to learn more about optional setup processes, like enabling HTTPS and configuring SSL.<\/p><h3 class=\"wp-block-heading\" id=\"h-step-5-configure-litespeed-cache-wordpress-plugin\">Step 5. Configure LiteSpeed Cache WordPress Plugin<\/h3><p>One of OpenLiteSpeed&rsquo;s key features is its capability to enable users to fully leverage the LiteSpeed Cache WordPress plugin. It is pre-installed with the web server and accessible via the <strong>Plugin <\/strong>menu on your <strong>WordPress dashboard<\/strong>.<\/p><p>You can adjust various caching settings based on your needs. For this tutorial, we will choose the default options and enable <a href=\"\/ca\/tutorials\/what-is-object-cache\">Object Cache<\/a>:<\/p><div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><a href=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2023\/09\/litespeed-cache-plugin-settings-in-wordpress-dashboard.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"748\" src=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2023\/09\/litespeed-cache-plugin-settings-in-wordpress-dashboard-1024x748.png\" alt=\"LiteSpeed Cache plugin settings in the WordPress dashboard\" class=\"wp-image-93965\"  sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure><\/div><p><div class=\"protip\">\n                    <h4 class=\"title\">Suggested Reading<\/h4>\n                    <p>Check out our <a href=\"\/ca\/tutorials\/litespeed-website-optimization-tool\/\">LiteSpeed optimization guide<\/a> to learn more about the settings of one of the best caching plugins on the market.<\/p>\n                <\/div>\n\n\n\n<\/p><p><strong>LiteSpeed Cache Performance<\/strong><\/p><p>To demonstrate the page speed improvement, we will test three WordPress site types with LiteSpeed Cache enabled and disabled. In this test, we will use the same Hostinger VPS plans with KVM and OpenVZ virtualization.<\/p><p><strong>Personal Website<\/strong><\/p><div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><a href=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2023\/09\/kvm-openvz-personal-website-loading-speed-with-and-without-litespeed-cache-comparison-graph.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"992\" src=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2023\/09\/kvm-openvz-personal-website-loading-speed-with-and-without-litespeed-cache-comparison-graph-1024x992.png\" alt=\"A graph comparing KVM and OpenVZ personal website loading speed with and without LiteSpeed cache\" class=\"wp-image-93966\"  sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure><\/div><p>The graph shows that the KVM plan offers a <strong>10%<\/strong> decrease in page load time with the LiteSpeed Cache plugin enabled compared to OpenVZ.<\/p><p>KVM also remains faster without the LiteSpeed caching plugin. It still offers a <strong>4%<\/strong> lower loading time than the OpenVZ plan with the plugin enabled.<\/p><p><strong>eCommerce Website<\/strong><\/p><div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><a href=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2023\/09\/kvm-openvz-ecommerce-website-loading-speed-with-and-without-litespeed-cache-comparison-graph.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"992\" src=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2023\/09\/kvm-openvz-ecommerce-website-loading-speed-with-and-without-litespeed-cache-comparison-graph-1024x992.png\" alt=\"A graph comparing KVM and OpenVZ eCommerce website loading speed with and without LiteSpeed cache\" class=\"wp-image-93967\"  sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure><\/div><p>For an eCommerce WordPress site, both plans perform similarly. However, the KVM plan offers<strong> 8%<\/strong> and <strong>11%<\/strong> faster loading time, with the LiteSpeed caching plugin enabled and disabled, respectively.<\/p><p><strong>Web Design Agency Website<\/strong><\/p><div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><a href=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2023\/09\/kvm-openvz-web-design-agency-website-loading-speed-with-and-without-litespeed-cache-comparison-graph.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"992\" src=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2023\/09\/kvm-openvz-web-design-agency-website-loading-speed-with-and-without-litespeed-cache-comparison-graph-1024x992.png\" alt=\"A graph comparing KVM and OpenVZ web design agency website loading speed with and without LiteSpeed cache\" class=\"wp-image-93968\"  sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure><\/div><p>Both VPS plans offer nearly identical performance, but the KVM plan outperforms with a <strong>5%<\/strong> faster loading time with LiteSpeed Cache on. With the plugin disabled, it still offers a <strong>3%<\/strong> shorter loading time.<\/p><p>To summarize, KVM VPS consistently delivers up to<strong> 11%<\/strong> better performance than OpenVZ. The LiteSpeed Cache plugin also improves website performance significantly when paired with the KVM virtualization technology.<\/p><p>The combination provides faster page loading speed and responsiveness, regardless of the website type. If you want to scale and <a href=\"\/ca\/tutorials\/speed-up-wordpress\">speed up your WordPress site<\/a>, Hostinger&rsquo;s VPS hosting OpenLiteSpeed template is an excellent choice.<\/p><?xml encoding=\"utf-8\" ?><figure class=\"wp-block-image size-large\"><a class=\"hgr-tutorials-cta hgr-tutorials-cta-vps-hosting\" href=\"\/ca\/vps-hosting\" target=\"_blank\" rel=\"noreferrer noopener\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"300\" src=\"https:\/\/www.hostinger.com\/tutorials\/wp-content\/uploads\/sites\/2\/2023\/02\/VPS-hosting-banner-1024x300.png\" alt=\"\" class=\"wp-image-77934\"  sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure><h2 class=\"wp-block-heading\" id=\"h-conclusion\">Conclusion<\/h2><p>Hosting a WordPress site on a VPS plan offers flexibility as you have different options for virtualization technologies and web servers. However, finding the ideal configuration for your needs can take time and effort, as choosing the wrong one can lead to a slow website.<\/p><p>Virtualization separates a physical server into multiple isolated virtual machines with their own operating system and hardware. Meanwhile, web server software controls how web users access web content online.<\/p><p>Based on our tests, combining KVM and OpenLiteSpeed offers the best performance for hosting a WordPress site. At Hostinger, you can easily set up a VPS to speed up your WordPress site using these steps:<\/p><ol class=\"wp-block-list\">\n<li>Install the OpenLiteSpeed and WordPress template via the VPS operating system configuration menu in hPanel.<\/li>\n\n\n\n<li>Open the Browser terminal<strong> <\/strong>and log in via SSH. Run the interactive script to complete the web server setup process.<\/li>\n\n\n\n<li>Complete the initial configuration by installing WordPress, the Web Admin control panel, and the phpMyAdmin database management tool.<\/li>\n\n\n\n<li>Enable the LiteSpeed caching plugin via WordPress to improve your website loading speed.<\/li>\n<\/ol><p>With caching enabled, the KVM and OpenLiteSpeed VPS hosting solution performs better than its OpenVZ counterpart. According to our tests, it reduces personal website loading speed by <strong>10%<\/strong>, eCommerce by <strong>8%<\/strong>, and web design agency by <strong>5%<\/strong>.<\/p><h2 class=\"wp-block-heading\" id=\"h-wordpress-with-kvm-faq\">WordPress with KVM &ndash; FAQ<\/h2><p>In this section, we will answer several commonly asked questions about optimizing WordPress with KVM VPS. If you have another one, leave us a comment below.<\/p><div class=\"schema-faq wp-block-yoast-faq-block\"><div class=\"schema-faq-section\" id=\"faq-question-1694762507173\"><h3 class=\"schema-faq-question\">What is KVM VPS?<\/h3> <p class=\"schema-faq-answer\">KVM VPS stands for Kernel-based Virtual Machine Virtual Private Server. It is a virtualization technology that enables multiple virtual web hosting servers to run on a single physical machine. Each VPS operates independently with its own dedicated resources and isolated environment.<\/p> <\/div> <div class=\"schema-faq-section\" id=\"faq-question-1694762535892\"><h3 class=\"schema-faq-question\">What is OpenLiteSpeed?<\/h3> <p class=\"schema-faq-answer\">OpenLiteSpeed is a lightweight open-source web server software. It provides a high-performance, scalable, and feature-rich platform for serving websites and web applications. It is designed to be a faster alternative to Apache, with support for PHP and other popular web technologies.<\/p> <\/div> <\/div>\n","protected":false},"excerpt":{"rendered":"<p>When choosing a virtual private server (VPS) plan, WordPress users must consider its web server and virtualization technology to achieve optimal site speed. At Hostinger, our VPS plans use Kernel-based Virtual Machine (KVM) and OpenLiteSpeed. In this article, we will explain how to optimize WordPress with KVM VPS at Hostinger. In addition, we will discuss [&#8230;]<\/p>\n<p><a class=\"btn btn-secondary understrap-read-more-link\" href=\"\/ca\/tutorials\/optimize-wordpress-with-kvm-vps\">Read More&#8230;<\/a><\/p>\n","protected":false},"author":279,"featured_media":139365,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"rank_math_title":"WordPress on VPS: Set Up Best-Optimized Site with KVM VPS","rank_math_description":"Looking for the best setup for your WordPress site on VPS? Check out this article to find out the best virtualization, webserver and more!","rank_math_focus_keyword":"how to optimize wordpress with kvm vps","footnotes":""},"categories":[22701,22699],"tags":[],"class_list":["post-93940","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-pre-installed-applications","category-vps"],"hreflangs":[{"locale":"en-US","link":"https:\/\/www.hostinger.com\/tutorials\/optimize-wordpress-with-kvm-vps","default":0},{"locale":"pt-BR","link":"https:\/\/www.hostinger.com\/br\/tutoriais\/otimizar-wordpress-com-kvm","default":0},{"locale":"fr-FR","link":"https:\/\/www.hostinger.com\/fr\/tutoriels\/comment-optimiser-wordpress-avec-kvm","default":0},{"locale":"es-ES","link":"https:\/\/www.hostinger.com\/es\/tutoriales\/como-optimizar-wordpress-con-kvm-vps","default":0},{"locale":"id-ID","link":"https:\/\/www.hostinger.com\/id\/tutorial\/cara-hosting-wordpress-di-vps-kvm","default":0},{"locale":"it-IT","link":"https:\/\/www.hostinger.com\/it\/tutorial\/come-ottimizzare-wordpress-con-kvm","default":0},{"locale":"en-UK","link":"https:\/\/www.hostinger.com\/uk\/tutorials\/optimize-wordpress-with-kvm-vps","default":0},{"locale":"en-MY","link":"https:\/\/www.hostinger.com\/my\/tutorials\/optimize-wordpress-with-kvm-vps","default":0},{"locale":"en-PH","link":"https:\/\/www.hostinger.com\/ph\/tutorials\/optimize-wordpress-with-kvm-vps","default":0},{"locale":"es-MX","link":"https:\/\/www.hostinger.com\/mx\/tutoriales\/como-optimizar-wordpress-con-kvm-vps","default":0},{"locale":"es-CO","link":"https:\/\/www.hostinger.com\/co\/tutoriales\/como-optimizar-wordpress-con-kvm-vps","default":0},{"locale":"es-AR","link":"https:\/\/www.hostinger.com\/ar\/tutoriales\/como-optimizar-wordpress-con-kvm-vps","default":0},{"locale":"pt-PT","link":"https:\/\/www.hostinger.com\/pt\/tutoriais\/otimizar-wordpress-com-kvm","default":0},{"locale":"en-IN","link":"https:\/\/www.hostinger.com\/in\/tutorials\/optimize-wordpress-with-kvm-vps","default":0},{"locale":"en-CA","link":"https:\/\/www.hostinger.com\/ca\/tutorials\/optimize-wordpress-with-kvm-vps","default":0},{"locale":"en-AU","link":"https:\/\/www.hostinger.com\/au\/tutorials\/optimize-wordpress-with-kvm-vps","default":0},{"locale":"en-NG","link":"https:\/\/www.hostinger.com\/ng\/tutorials\/optimize-wordpress-with-kvm-vps","default":0}],"_links":{"self":[{"href":"https:\/\/www.hostinger.com\/ca\/tutorials\/wp-json\/wp\/v2\/posts\/93940","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hostinger.com\/ca\/tutorials\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hostinger.com\/ca\/tutorials\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hostinger.com\/ca\/tutorials\/wp-json\/wp\/v2\/users\/279"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hostinger.com\/ca\/tutorials\/wp-json\/wp\/v2\/comments?post=93940"}],"version-history":[{"count":20,"href":"https:\/\/www.hostinger.com\/ca\/tutorials\/wp-json\/wp\/v2\/posts\/93940\/revisions"}],"predecessor-version":[{"id":137744,"href":"https:\/\/www.hostinger.com\/ca\/tutorials\/wp-json\/wp\/v2\/posts\/93940\/revisions\/137744"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.hostinger.com\/ca\/tutorials\/wp-json\/wp\/v2\/media\/139365"}],"wp:attachment":[{"href":"https:\/\/www.hostinger.com\/ca\/tutorials\/wp-json\/wp\/v2\/media?parent=93940"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hostinger.com\/ca\/tutorials\/wp-json\/wp\/v2\/categories?post=93940"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hostinger.com\/ca\/tutorials\/wp-json\/wp\/v2\/tags?post=93940"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}