{"id":107934,"date":"2024-04-25T13:36:49","date_gmt":"2024-04-25T13:36:49","guid":{"rendered":"\/tutorials\/?p=107934"},"modified":"2026-03-10T10:05:14","modified_gmt":"2026-03-10T10:05:14","slug":"i-bought-a-vps-now-what","status":"publish","type":"post","link":"\/my\/tutorials\/i-bought-a-vps-now-what","title":{"rendered":"I bought a VPS now what? 8 steps to follow after purchasing a VPS"},"content":{"rendered":"<p class=\"wp-block-paragraph\">Once you&rsquo;ve purhcased a virtual private server (VPS), you&rsquo;ll have to complete several steps before deploying an application or a website.<\/p><p class=\"wp-block-paragraph\">These measures are crucial to ensure security and compatibility since VPS services are typically self-managed. They might not have any pre-configured software, so the user should prepare the hosting environment manually based on their specific needs.<\/p><p class=\"wp-block-paragraph\">To help you get started, this tutorial will explain what to do after purchasing a VPS hosting plan, from getting to know your server to integrating a monitoring tool.<\/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 decoding=\"async\" width=\"2048\" height=\"566\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2022\/11\/Linux-cheat-sheet.png\/w=1024,h=1024,fit=scale-down\" alt=\"\" class=\"wp-image-69262\" srcset=\"https:\/\/www.hostinger.com\/my\/tutorials\/wp-content\/uploads\/sites\/45\/2022\/11\/Linux-cheat-sheet.png 2048w, https:\/\/www.hostinger.com\/my\/tutorials\/wp-content\/uploads\/sites\/45\/2022\/11\/Linux-cheat-sheet-300x83.png 300w, https:\/\/www.hostinger.com\/my\/tutorials\/wp-content\/uploads\/sites\/45\/2022\/11\/Linux-cheat-sheet-1536x425.png 1024w, https:\/\/www.hostinger.com\/my\/tutorials\/wp-content\/uploads\/sites\/45\/2022\/11\/Linux-cheat-sheet-150x41.png 150w, https:\/\/www.hostinger.com\/my\/tutorials\/wp-content\/uploads\/sites\/45\/2022\/11\/Linux-cheat-sheet-768x212.png 768w\" sizes=\"(max-width: 2048px) 100vw, 2048px\" \/><\/a><\/figure>\n<\/div><p>\n\n\n\n<\/p><h2 class=\"wp-block-heading\" id=\"h-what-to-do-after-buying-a-vps\">What to do after buying a VPS<\/h2><p class=\"wp-block-paragraph\">In this section, we will explain eight necessary measures after you <a href=\"\/my\/vps-hosting\">purchase a VPS hosting plan<\/a> and several Hostinger features that help simplify the task.<\/p><h3 class=\"wp-block-heading\" id=\"h-1-understand-your-vps\">1. Understand your VPS<\/h3><p class=\"wp-block-paragraph\">Each <a href=\"\/my\/tutorials\/what-is-vps-hosting\/\">virtual private server<\/a> comes with specific CPU cores, RAM, and storage allocations. These determine how much load your virtual server can withstand and the amount of data it can save.<\/p><p class=\"wp-block-paragraph\">Web hosting providers commonly provide two operating system options &ndash; Linux and Windows. Hostinger&rsquo;s VPS only supports <a href=\"\/my\/tutorials\/best-linux-distro\/\">Linux distros<\/a> since they are free, more flexible, and perform better than Windows.<\/p><p class=\"wp-block-paragraph\">Consider installing a control panel like <a href=\"\/my\/tutorials\/coolify-vs-dokploy\/\"><strong>Coolify <\/strong>or<strong> Dokploy<\/strong><\/a><strong> <\/strong>to simplify VPS hosting management. They both provide a graphical user interface (GUI) for accessing your server files and configurations without using <a href=\"\/my\/tutorials\/linux-commands\/\">Linux commands<\/a>.<\/p><h3 class=\"wp-block-heading\" id=\"h-2-set-up-your-vps\">2. Set up your VPS<\/h3><p class=\"wp-block-paragraph\">Once you&rsquo;ve figured out your VPS details, let&rsquo;s proceed with the software installation. At Hostinger, you can configure an operating system and control panel in one click using a VPS template. You might need to use custom commands if you&rsquo;re using another web hosting provider.<\/p><figure class=\"wp-block-image size-large\"><a href=\"\/my\/vps-hosting\" target=\"_blank\" rel=\"noreferrer noopener\"><img decoding=\"async\" width=\"1024\" height=\"300\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/02\/VPS-hosting-banner.png\/w=1024,h=1024,fit=scale-down\" alt=\"\" class=\"wp-image-77934\" srcset=\"https:\/\/www.hostinger.com\/my\/tutorials\/wp-content\/uploads\/sites\/45\/2023\/02\/VPS-hosting-banner.png 1024w, https:\/\/www.hostinger.com\/my\/tutorials\/wp-content\/uploads\/sites\/45\/2023\/02\/VPS-hosting-banner-300x88.png 300w, https:\/\/www.hostinger.com\/my\/tutorials\/wp-content\/uploads\/sites\/45\/2023\/02\/VPS-hosting-banner-150x44.png 150w, https:\/\/www.hostinger.com\/my\/tutorials\/wp-content\/uploads\/sites\/45\/2023\/02\/VPS-hosting-banner-768x225.png 768w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure><p class=\"wp-block-paragraph\">You can then access your VPS via the<strong> Browser terminal<\/strong>. This hPanel feature will log you in automatically and allow you to execute commands on your VPS from the browser. Simply go to the <strong>VPS overview <\/strong>page on hPanel and click <strong>Browser terminal<\/strong> to access it.<\/p><p class=\"wp-block-paragraph\">Alternatively, you can use SSH to connect to your VPS. You can <a href=\"\/my\/tutorials\/how-to-use-putty-ssh\/\">use PuTTY<\/a> to access the Linux server or <strong>Remote Desktop<\/strong> for Windows.<\/p><div class=\"wp-block-image\"><figure data-wp-context='{\"imageId\":\"6a6f2c99b6174\"}' data-wp-interactive=\"core\/image\" data-wp-key=\"6a6f2c99b6174\" class=\"aligncenter size-full wp-lightbox-container\"><img decoding=\"async\" width=\"671\" height=\"661\" data-wp-class--hide=\"state.isContentHidden\" data-wp-class--show=\"state.isContentVisible\" data-wp-init=\"callbacks.setButtonStyles\" data-wp-on--click=\"actions.showLightbox\" data-wp-on--load=\"callbacks.setButtonStyles\" data-wp-on--pointerdown=\"actions.preloadImage\" data-wp-on--pointerenter=\"actions.preloadImageWithDelay\" data-wp-on--pointerleave=\"actions.cancelPreload\" data-wp-on-window--resize=\"callbacks.setButtonStyles\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/45\/2024\/04\/putty-ssh-user-interface.png\/public\" alt=\"PuTTY SSH user interface\" class=\"wp-image-107935\" srcset=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/45\/2024\/04\/putty-ssh-user-interface.png\/w=671,fit=scale-down 671w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/45\/2024\/04\/putty-ssh-user-interface.png\/w=300,fit=scale-down 300w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/45\/2024\/04\/putty-ssh-user-interface.png\/w=150,fit=scale-down 150w\" sizes=\"(max-width: 671px) 100vw, 671px\" \/><button class=\"lightbox-trigger\" type=\"button\" aria-haspopup=\"dialog\" data-wp-bind--aria-label=\"state.thisImage.triggerButtonAriaLabel\" data-wp-init=\"callbacks.initTriggerButton\" data-wp-on--click=\"actions.showLightbox\" data-wp-style--right=\"state.thisImage.buttonRight\" data-wp-style--top=\"state.thisImage.buttonTop\">\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><p class=\"wp-block-paragraph\">By default, you will log in as <strong>root<\/strong>. Since this user has the most privileges, running commands and performing server management tasks with it can be somewhat risky if not careful.<\/p><p class=\"wp-block-paragraph\">With that in mind, let&rsquo;s create another superuser in your Linux VPS hosting to run administrative commands. We will use AlmaLinux for this tutorial, but the steps should be the same for all distros like <a href=\"\/my\/tutorials\/what-is-ubuntu\/\">Ubuntu<\/a> or CentOS:<\/p><pre class=\"wp-block-preformatted\">adduser your-username<\/pre><p class=\"wp-block-paragraph\">Enter the new account&rsquo;s password and contact details. Then, switch from the root to the new user using the following command:<\/p><pre class=\"wp-block-preformatted\">su your-username<\/pre><p class=\"wp-block-paragraph\">You&rsquo;ll be able to run administrative commands using the <strong>sudo <\/strong>prefix with this account once you&rsquo;ve entered its password.<\/p><h3 class=\"wp-block-heading\" id=\"h-3-point-your-domain\">3. Point your domain<\/h3><p class=\"wp-block-paragraph\">While you can access your VPS using its IP address, you still need a domain name to make the hosted site or application accessible to users. You will also need it to enable HTTPS and set up a custom mail server in the later steps.<\/p><p class=\"wp-block-paragraph\">There are a couple of ways to <a href=\"\/my\/tutorials\/dns\/how-to-point-domain-to-vps\/\">point a domain name to your VPS<\/a>, but the easiest method is changing the DNS record in your registrar&rsquo;s settings.<\/p><p class=\"wp-block-paragraph\">To do so in Hostinger, open<strong> hPanel<\/strong> and navigate to <strong>Domains <\/strong>&rarr; <strong>Domain Portfolio<\/strong>. Then, find your domain and click on<strong> Manage<\/strong>. <\/p><figure class=\"wp-block-image size-large\"><a href=\"https:\/\/www.hostinger.com\/my\/tutorials\/wp-content\/uploads\/sites\/2\/2024\/04\/domain-portfolio-manage.png\"><img decoding=\"async\" width=\"2104\" height=\"574\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/45\/2024\/04\/domain-portfolio-manage.png\/w=1024,h=1024,fit=scale-down\" alt=\"Hostinger's domain portfolio with the Manage button highlighted\" class=\"wp-image-118792\" srcset=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/45\/2024\/04\/domain-portfolio-manage.png\/w=2104,fit=scale-down 2104w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/45\/2024\/04\/domain-portfolio-manage.png\/w=300,fit=scale-down 300w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/45\/2024\/04\/domain-portfolio-manage.png\/w=1024,fit=scale-down 1024w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/45\/2024\/04\/domain-portfolio-manage.png\/w=150,fit=scale-down 150w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/45\/2024\/04\/domain-portfolio-manage.png\/w=768,fit=scale-down 768w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/45\/2024\/04\/domain-portfolio-manage.png\/w=1536,fit=scale-down 1536w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/45\/2024\/04\/domain-portfolio-manage.png\/w=2048,fit=scale-down 2048w\" sizes=\"(max-width: 2104px) 100vw, 2104px\" \/><\/a><\/figure><p class=\"wp-block-paragraph\">Next, click on <strong>DNS \/ Nameservers<\/strong> on the left side menu, and you&rsquo;ll be taken to the <strong>DNS records page<\/strong>.<\/p><p class=\"wp-block-paragraph\">Under the <strong>Manage DNS records<\/strong> section, add two new <strong>A records<\/strong> pointing to your VPS IP address. Name them <strong>www<\/strong> and <strong>@<\/strong>, but keep other configuration values identical.<\/p><div class=\"wp-block-image\"><figure data-wp-context='{\"imageId\":\"6a6f2c99b8d47\"}' data-wp-interactive=\"core\/image\" data-wp-key=\"6a6f2c99b8d47\" class=\"aligncenter size-large wp-lightbox-container\"><img decoding=\"async\" width=\"1460\" height=\"260\" data-wp-class--hide=\"state.isContentHidden\" data-wp-class--show=\"state.isContentVisible\" data-wp-init=\"callbacks.setButtonStyles\" data-wp-on--click=\"actions.showLightbox\" data-wp-on--load=\"callbacks.setButtonStyles\" data-wp-on--pointerdown=\"actions.preloadImage\" data-wp-on--pointerenter=\"actions.preloadImageWithDelay\" data-wp-on--pointerleave=\"actions.cancelPreload\" data-wp-on-window--resize=\"callbacks.setButtonStyles\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/45\/2024\/04\/dns-record-management-in-hpanel.png\/w=1024,h=1024,fit=scale-down\" alt=\"DNS record management in hPanel\" class=\"wp-image-107937\" srcset=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/45\/2024\/04\/dns-record-management-in-hpanel.png\/w=1460,fit=scale-down 1460w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/45\/2024\/04\/dns-record-management-in-hpanel.png\/w=300,fit=scale-down 300w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/45\/2024\/04\/dns-record-management-in-hpanel.png\/w=1024,fit=scale-down 1024w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/45\/2024\/04\/dns-record-management-in-hpanel.png\/w=150,fit=scale-down 150w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/45\/2024\/04\/dns-record-management-in-hpanel.png\/w=768,fit=scale-down 768w\" sizes=\"(max-width: 1460px) 100vw, 1460px\" \/><button class=\"lightbox-trigger\" type=\"button\" aria-haspopup=\"dialog\" data-wp-bind--aria-label=\"state.thisImage.triggerButtonAriaLabel\" data-wp-init=\"callbacks.initTriggerButton\" data-wp-on--click=\"actions.showLightbox\" data-wp-style--right=\"state.thisImage.buttonRight\" data-wp-style--top=\"state.thisImage.buttonTop\">\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><h3 class=\"wp-block-heading\" id=\"h-4-secure-your-vps\">4. Secure your VPS<\/h3><p class=\"wp-block-paragraph\">To maintain your <a href=\"\/my\/tutorials\/vps-security\/\">VPS security<\/a>, regularly run the <strong>update<\/strong> command to install the latest version of all software. Here&rsquo;s how to do so in AlmaLinux:<\/p><pre class=\"wp-block-preformatted\">sudo dnf update &amp;&amp; sudo apt upgrade<\/pre><p class=\"wp-block-paragraph\">For other distros, replace <strong>dnf <\/strong>with their corresponding package manager, like <strong>apt <\/strong>for <strong>Debian <\/strong>and <strong>Ubuntu <\/strong>VPS. If you use Windows, follow the guide on <a href=\"https:\/\/learn.microsoft.com\/en-us\/windows-server\/get-started\/perform-in-place-upgrade\" target=\"_blank\" rel=\"noopener\">updating your server software<\/a>.<\/p><p class=\"wp-block-paragraph\">In addition, configure firewall rules on your VPS to block malicious traffic that can compromise its safety. Hostinger users can set up the firewall from hPanel by simply going to <strong>VPS overview &rarr; Security &rarr; Firewall<\/strong>. You can also do this using<strong> Linux&rsquo;s <\/strong><a href=\"\/my\/tutorials\/iptables-tutorial\/\"><strong>iptables<\/strong><\/a><strong> <\/strong>or <strong>Windows Firewall<\/strong>.<\/p><p class=\"wp-block-paragraph\">Another essential measure is setting up <a href=\"\/my\/tutorials\/fail2ban-configuration\/\">Fail2Ban<\/a> to block malicious login attempts. Here is the installation command:<\/p><pre class=\"wp-block-preformatted\">sudo dnf install fail2ban<\/pre><p class=\"wp-block-paragraph\">Additionally, consider <a href=\"\/my\/tutorials\/how-to-change-ssh-port-vps\/\">changing the default SSH port<\/a> since the default one is often exploited. You can do so by opening the SSH configuration file with this command and changing the corresponding setting.<\/p><pre class=\"wp-block-preformatted\">sudo nano \/etc\/ssh\/sshd_config<\/pre><div class=\"wp-block-image\"><figure data-wp-context='{\"imageId\":\"6a6f2c99ba9ab\"}' data-wp-interactive=\"core\/image\" data-wp-key=\"6a6f2c99ba9ab\" class=\"aligncenter size-full wp-lightbox-container\"><img decoding=\"async\" width=\"956\" height=\"263\" data-wp-class--hide=\"state.isContentHidden\" data-wp-class--show=\"state.isContentVisible\" data-wp-init=\"callbacks.setButtonStyles\" data-wp-on--click=\"actions.showLightbox\" data-wp-on--load=\"callbacks.setButtonStyles\" data-wp-on--pointerdown=\"actions.preloadImage\" data-wp-on--pointerenter=\"actions.preloadImageWithDelay\" data-wp-on--pointerleave=\"actions.cancelPreload\" data-wp-on-window--resize=\"callbacks.setButtonStyles\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/45\/2024\/04\/the-port-setting-in-the-ssh-configuration-file.png\/public\" alt=\"The port setting in the SSH configuration file\" class=\"wp-image-107938\" srcset=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/45\/2024\/04\/the-port-setting-in-the-ssh-configuration-file.png\/w=956,fit=scale-down 956w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/45\/2024\/04\/the-port-setting-in-the-ssh-configuration-file.png\/w=300,fit=scale-down 300w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/45\/2024\/04\/the-port-setting-in-the-ssh-configuration-file.png\/w=150,fit=scale-down 150w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/45\/2024\/04\/the-port-setting-in-the-ssh-configuration-file.png\/w=768,fit=scale-down 768w\" sizes=\"(max-width: 956px) 100vw, 956px\" \/><button class=\"lightbox-trigger\" type=\"button\" aria-haspopup=\"dialog\" data-wp-bind--aria-label=\"state.thisImage.triggerButtonAriaLabel\" data-wp-init=\"callbacks.initTriggerButton\" data-wp-on--click=\"actions.showLightbox\" data-wp-style--right=\"state.thisImage.buttonRight\" data-wp-style--top=\"state.thisImage.buttonTop\">\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><p class=\"wp-block-paragraph\">While not mandatory, we also recommend <a href=\"\/my\/tutorials\/ssh\/how-to-set-up-ssh-keys\/\">setting up SSH keys<\/a> to secure your connection properly. These are additional login credentials that help protect your server if the username and password are compromised.<\/p><p class=\"wp-block-paragraph\">Lastly, install a secure sockets layer (SSL) certificate to encrypt the connection between your server and clients. You can do so using <strong>Certbot <\/strong>via your command line interface or your hosting management panel&rsquo;s feature.<\/p><p class=\"wp-block-paragraph\">For example, set it up in Cyberpanel by going to the main dashboard &rarr;<strong> SSL<\/strong> &rarr; <strong>Manage<\/strong> <strong>SSL<\/strong>. Select your VPS domain and click <strong>Issue SSL<\/strong>. Then, go to <strong>Websites <\/strong>&rarr;<strong> List Websites<\/strong> &rarr; <strong>Manage <\/strong>&rarr;<strong> Rewrite Rules<\/strong> and select<strong> force HTTPS<\/strong>.<\/p><h3 class=\"wp-block-heading\" id=\"h-5-install-a-web-server\">5. Install a web server<\/h3><p class=\"wp-block-paragraph\">Now, install the web stack to host your website or application. The first component is a <strong>web server, <\/strong>a software that takes clients&rsquo; requests and displays the queried content.<\/p><p><div class=\"announcement-block announcement-block--important\">\n            <span class=\"announcement-block__heading\">\n                <svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\">\n                    <path fill-rule=\"evenodd\" clip-rule=\"evenodd\"\n                          d=\"M12 22.5C17.799 22.5 22.5 17.799 22.5 12C22.5 6.20101 17.799 1.5 12 1.5C6.20101 1.5 1.5 6.20101 1.5 12C1.5 17.799 6.20101 22.5 12 22.5ZM13.637 7.65198C13.637 6.74791 12.9041 6.01501 12 6.01501C11.0959 6.01501 10.363 6.74791 10.363 7.65198C10.5335 9.53749 10.875 13.383 10.875 13.383C10.875 14.0043 11.3787 14.508 12 14.508C12.6213 14.508 13.125 14.0043 13.125 13.383V13.38L13.637 7.65198ZM11.9927 15.714C11.3714 15.714 10.8677 16.2177 10.8677 16.839C10.8677 17.4603 11.3714 17.964 11.9927 17.964H12.0073C12.6286 17.964 13.1323 17.4603 13.1323 16.839C13.1323 16.2177 12.6286 15.714 12.0073 15.714H11.9927Z\"\n                          fill=\"#FEA419\"\/>\n                <\/svg>\n                Important\n            <\/span>\n            <p class=\"announcement-block__content\">\n                <strong>Important!<\/strong> If you use Hostinger&rsquo;s VPS templates, you don&rsquo;t need to configure a web server and other web stack components as they are pre-installed.\n            <\/p><\/div>\n\n\n\n<\/p><p class=\"wp-block-paragraph\">Some popular web servers are <strong>Apache<\/strong>,<strong> NGINX<\/strong>, and <strong>OpenLiteSpeed<\/strong>. Unless you need a specific one, we recommend OpenLiteSpeed due to its high performance and extensive compatibility.<\/p><p class=\"wp-block-paragraph\">To help you make an informed decision, check out our <a href=\"\/my\/tutorials\/optimize-wordpress-with-kvm-vps\/\">WordPress on KVM tutorial<\/a> to learn more about their performance. Now, let&rsquo;s start installing a web server.<\/p><p class=\"wp-block-paragraph\">At Hostinger, you can use our <a href=\"\/my\/vps\/lamp-hosting\">LAMP stack VPS template<\/a> to configure Apache or LEMP for NGINX. OpenLiteSpeed templates are also available, but they are pre-configured with other software.<\/p><p class=\"wp-block-paragraph\">Use commands if you want to install the web server separately. To learn more about the steps, check out the <a href=\"https:\/\/openlitespeed.org\/kb\/step-by-step-install-ols\/\" target=\"_blank\" rel=\"noopener\">OpenLiteSpeed setup guide<\/a>.<\/p><h3 class=\"wp-block-heading\" id=\"h-6-add-email-and-database-services\">6. Add email and database services<\/h3><p class=\"wp-block-paragraph\">Another component of a web stack is a database, which stores and retrieves user information upon request. It enables your website to show dynamic content that automatically changes based on specific queries.<\/p><p class=\"wp-block-paragraph\">There are various database management systems (DBMS), like <strong>MySQL<\/strong>, <strong>MariaDB<\/strong>, and <strong>PostgreSQL<\/strong>. The setup process varies depending on the databases. For example, run the following commands to install MySQL on an AlmaLinux VPS:<\/p><pre class=\"wp-block-preformatted\">sudo dnf install mysql-server<\/pre><p class=\"wp-block-paragraph\">While optional, we also recommend setting up <strong>phpMyAdmin<\/strong>. Instead of using commands, this control panel provides a graphical interface to help simplify MySQL database administration.<\/p><p class=\"wp-block-paragraph\">To learn more about how to set it up, check out our <a href=\"\/my\/tutorials\/how-to-install-phpmyadmin-on-centos-7\/\">installing phpMyAdmin on CentOS<\/a> tutorial, which should also work for other RHEL-based distros like AlmaLinux. Once configured, you should be able to access the panel by visiting this link:<\/p><pre class=\"wp-block-preformatted\">yourvpsdomain.tld\/phpmyadmin<\/pre><div class=\"wp-block-image\"><figure data-wp-context='{\"imageId\":\"6a6f2c99bcc8d\"}' data-wp-interactive=\"core\/image\" data-wp-key=\"6a6f2c99bcc8d\" class=\"aligncenter size-large wp-lightbox-container\"><img decoding=\"async\" width=\"1024\" height=\"507\" data-wp-class--hide=\"state.isContentHidden\" data-wp-class--show=\"state.isContentVisible\" data-wp-init=\"callbacks.setButtonStyles\" data-wp-on--click=\"actions.showLightbox\" data-wp-on--load=\"callbacks.setButtonStyles\" data-wp-on--pointerdown=\"actions.preloadImage\" data-wp-on--pointerenter=\"actions.preloadImageWithDelay\" data-wp-on--pointerleave=\"actions.cancelPreload\" data-wp-on-window--resize=\"callbacks.setButtonStyles\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/45\/2024\/04\/phpmyadmin-login-page.png\/w=1024,h=1024,fit=scale-down\" alt=\"PhpMyAdmin login page\" class=\"wp-image-107939\" srcset=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/45\/2024\/04\/phpmyadmin-login-page.png\/w=1024,fit=scale-down 1024w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/45\/2024\/04\/phpmyadmin-login-page.png\/w=300,fit=scale-down 300w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/45\/2024\/04\/phpmyadmin-login-page.png\/w=150,fit=scale-down 150w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/45\/2024\/04\/phpmyadmin-login-page.png\/w=768,fit=scale-down 768w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><button class=\"lightbox-trigger\" type=\"button\" aria-haspopup=\"dialog\" data-wp-bind--aria-label=\"state.thisImage.triggerButtonAriaLabel\" data-wp-init=\"callbacks.initTriggerButton\" data-wp-on--click=\"actions.showLightbox\" data-wp-style--right=\"state.thisImage.buttonRight\" data-wp-style--top=\"state.thisImage.buttonTop\">\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><p class=\"wp-block-paragraph\">Log in as the root user you created during the MySQL installation process. To connect the database with your application, add the <a href=\"https:\/\/www.php.net\/manual\/en\/function.mysql-connect.php\" target=\"_blank\" rel=\"noopener\">PHP mysql_connect function<\/a> to your <strong>index.php<\/strong> file.<\/p><p class=\"wp-block-paragraph\">We also recommend setting up a private mailing service with your domain to improve deliverability. The easiest way to do so is by <a href=\"\/my\/tutorials\/how-to-host-your-own-email-server-on-a-vps-with-cyberpanel\/\">hosting a custom mail server on CyberPanel<\/a>.<\/p><h3 class=\"wp-block-heading\" id=\"h-7-deploy-your-first-web-application\">7. Deploy your first web application<\/h3><p class=\"wp-block-paragraph\">After the web stack is configured, let&rsquo;s proceed with the web application deployment. The steps slightly differ depending on whether you build it using a framework or content management system (CMS).<\/p><p class=\"wp-block-paragraph\">Hostinger VPS supports popular CMSs like WordPress and frameworks like Laravel, which you can configure using templates or commands. Several management panels also provide an installer feature.<\/p><p class=\"wp-block-paragraph\">For example, install WordPress via CyberPanel by going to the<strong> Dashboard <\/strong>&rarr; <strong>Websites <\/strong>&rarr;<strong> List Websites <\/strong>&rarr; <strong>Manage<\/strong>. Scroll down to the <strong>Application Installer<\/strong> section and select <strong>WP + LSCache<\/strong>. Enter the site information and click <strong>Create Website<\/strong>.<\/p><div class=\"wp-block-image\"><figure data-wp-context='{\"imageId\":\"6a6f2c99bea4f\"}' data-wp-interactive=\"core\/image\" data-wp-key=\"6a6f2c99bea4f\" class=\"aligncenter size-large wp-lightbox-container\"><img decoding=\"async\" width=\"1024\" height=\"209\" data-wp-class--hide=\"state.isContentHidden\" data-wp-class--show=\"state.isContentVisible\" data-wp-init=\"callbacks.setButtonStyles\" data-wp-on--click=\"actions.showLightbox\" data-wp-on--load=\"callbacks.setButtonStyles\" data-wp-on--pointerdown=\"actions.preloadImage\" data-wp-on--pointerenter=\"actions.preloadImageWithDelay\" data-wp-on--pointerleave=\"actions.cancelPreload\" data-wp-on-window--resize=\"callbacks.setButtonStyles\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/45\/2024\/04\/the-application-installer-menu-in-cyberpanel.png\/w=1024,h=1024,fit=scale-down\" alt=\"The application installer menu in CyberPanel\" class=\"wp-image-107940\" srcset=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/45\/2024\/04\/the-application-installer-menu-in-cyberpanel.png\/w=1024,fit=scale-down 1024w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/45\/2024\/04\/the-application-installer-menu-in-cyberpanel.png\/w=300,fit=scale-down 300w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/45\/2024\/04\/the-application-installer-menu-in-cyberpanel.png\/w=150,fit=scale-down 150w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/45\/2024\/04\/the-application-installer-menu-in-cyberpanel.png\/w=768,fit=scale-down 768w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><button class=\"lightbox-trigger\" type=\"button\" aria-haspopup=\"dialog\" data-wp-bind--aria-label=\"state.thisImage.triggerButtonAriaLabel\" data-wp-init=\"callbacks.initTriggerButton\" data-wp-on--click=\"actions.showLightbox\" data-wp-style--right=\"state.thisImage.buttonRight\" data-wp-style--top=\"state.thisImage.buttonTop\">\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><p class=\"wp-block-paragraph\">Once installed, visit <strong>yourdomain.tld\/wp-admin<\/strong> to access the WordPress admin dashboard and configure your web page. Navigate to the <strong>Plugin <\/strong>menu and <a href=\"\/my\/tutorials\/wordpress\/how-to-install-wordpress-plugins\/\">install plugins<\/a> like <strong>WordFence<\/strong> to optimize security and enable caching using <strong>LiteSpeed<\/strong>.<\/p><p class=\"wp-block-paragraph\">For frameworks, you must use Hostinger&rsquo;s VPS template or commands to install it. Once configured, push the files to the server from a Git repository via SSH or using <a href=\"\/my\/tutorials\/what-is-ftp\/\">file transfer protocol<\/a> (FTP).<\/p><h3 class=\"wp-block-heading\" id=\"h-8-monitor-and-maintain-your-server\">8. Monitor and maintain your server<\/h3><p class=\"wp-block-paragraph\">Regularly monitor your server performance to ensure your website or application is responsive. You can use tools like <strong>Grafana<\/strong> or<strong> Prometheus<\/strong>, but setting them up can be complicated.<\/p><p class=\"wp-block-paragraph\">For basic resource tracking, use<strong> <\/strong>your management panel&rsquo;s built-in monitoring feature. In hPanel, you can access it by going to <strong>VPS<\/strong> &rarr; <strong>Manage<\/strong> &rarr;<strong> Backups &amp; Monitoring<\/strong> &rarr; <strong>Server Usage<\/strong>.<\/p><div class=\"wp-block-image\"><figure data-wp-context='{\"imageId\":\"6a6f2c99c0759\"}' data-wp-interactive=\"core\/image\" data-wp-key=\"6a6f2c99c0759\" class=\"aligncenter size-large wp-lightbox-container\"><img decoding=\"async\" width=\"1460\" height=\"768\" data-wp-class--hide=\"state.isContentHidden\" data-wp-class--show=\"state.isContentVisible\" data-wp-init=\"callbacks.setButtonStyles\" data-wp-on--click=\"actions.showLightbox\" data-wp-on--load=\"callbacks.setButtonStyles\" data-wp-on--pointerdown=\"actions.preloadImage\" data-wp-on--pointerenter=\"actions.preloadImageWithDelay\" data-wp-on--pointerleave=\"actions.cancelPreload\" data-wp-on-window--resize=\"callbacks.setButtonStyles\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/45\/2024\/04\/hpanel-vps-monitoring-dashboard.png\/w=1024,h=1024,fit=scale-down\" alt=\"hPanel VPS monitoring dashboard\" class=\"wp-image-107941\" srcset=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/45\/2024\/04\/hpanel-vps-monitoring-dashboard.png\/w=1460,fit=scale-down 1460w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/45\/2024\/04\/hpanel-vps-monitoring-dashboard.png\/w=300,fit=scale-down 300w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/45\/2024\/04\/hpanel-vps-monitoring-dashboard.png\/w=1024,fit=scale-down 1024w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/45\/2024\/04\/hpanel-vps-monitoring-dashboard.png\/w=150,fit=scale-down 150w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/45\/2024\/04\/hpanel-vps-monitoring-dashboard.png\/w=768,fit=scale-down 768w\" sizes=\"(max-width: 1460px) 100vw, 1460px\" \/><button class=\"lightbox-trigger\" type=\"button\" aria-haspopup=\"dialog\" data-wp-bind--aria-label=\"state.thisImage.triggerButtonAriaLabel\" data-wp-init=\"callbacks.initTriggerButton\" data-wp-on--click=\"actions.showLightbox\" data-wp-style--right=\"state.thisImage.buttonRight\" data-wp-style--top=\"state.thisImage.buttonTop\">\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><p class=\"wp-block-paragraph\">Also, regularly update your server software to maintain security. To simplify this recurrent task, set up a <a href=\"\/my\/tutorials\/cron-job\/\">cron job<\/a> script to schedule its execution.<\/p><p class=\"wp-block-paragraph\">Moreover, enable automatic VPS backup to ensure data safety using your web host&rsquo;s feature or cron job. By default, your system will create the archive file locally.<\/p><p class=\"wp-block-paragraph\">We recommend using an additional off-site backup solution to protect your files from potential physical damage. A popular provider of such a service is Google Drive.<\/p><p>        <div class=\"protip\">\n            <div class=\"protip__heading\">\n                <svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\">\n                    <path d=\"M1.49234 23.5024C1.23229 23.5024 0.972242 23.4024 0.782206 23.2123C0.562165 22.9923 0.452144 22.6822 0.502153 22.3722C0.562165 21.9221 1.14227 17.9113 3.00262 16.351C3.63274 15.8209 4.43289 15.5509 5.26305 15.5609C6.09321 15.5909 6.87335 15.9109 7.47347 16.4911C8.6937 17.6913 8.76371 19.6717 7.6435 20.9919C6.0832 22.8523 2.08245 23.4324 1.63237 23.4924C1.59236 23.4924 1.54235 23.4924 1.50234 23.4924L1.49234 23.5024ZM5.16303 17.5613C4.84297 17.5613 4.53291 17.6713 4.29287 17.8813C3.60274 18.4614 3.07264 19.9317 2.75258 21.242C4.06282 20.9219 5.5331 20.3918 6.11321 19.7017C6.55329 19.1716 6.54329 18.3814 6.0832 17.9213C5.85316 17.7013 5.5431 17.5713 5.20304 17.5613C5.19304 17.5613 5.17303 17.5613 5.16303 17.5613ZM11.7243 21.8821C11.4942 21.8821 11.2642 21.8021 11.0841 21.652C10.8541 21.462 10.7241 21.1819 10.7241 20.8819V15.9109L8.08358 13.2705H3.11264C2.81259 13.2705 2.53254 13.1404 2.3425 12.9104C2.15246 12.6803 2.07245 12.3803 2.12246 12.0902C2.19247 11.7102 2.84259 8.36953 4.70294 7.12929C6.33325 6.04909 8.96375 6.49918 10.244 6.80923C11.5442 4.96889 13.2546 3.4286 15.2349 2.33839C17.4553 1.11816 19.9858 0.518051 22.4963 0.498047C23.0464 0.498047 23.4865 0.948132 23.4865 1.49824C23.4865 5.0389 22.3763 9.97983 17.1753 13.7605C17.4853 15.0408 17.9354 17.6613 16.8552 19.2816C15.615 21.1419 12.2744 21.7921 11.8943 21.8621C11.8343 21.8721 11.7743 21.8821 11.7143 21.8821H11.7243ZM12.7245 16.181V19.6016C13.7146 19.2916 14.7948 18.7915 15.2049 18.1814C15.675 17.4812 15.605 16.091 15.385 14.9008C14.5248 15.3808 13.6346 15.8109 12.7245 16.181ZM9.66388 12.0302L11.9643 14.3307C13.1845 13.8306 14.3648 13.2204 15.485 12.5103C19.9358 9.51974 21.2361 5.60901 21.4561 2.53843C19.6157 2.67846 17.8254 3.20856 16.2051 4.09872C14.2847 5.14892 12.6544 6.68921 11.4942 8.54956C10.7841 9.65977 10.174 10.82 9.66388 12.0302ZM4.39289 11.2701H7.81353C8.1936 10.3599 8.63368 9.46974 9.11377 8.60957C7.92355 8.38953 6.51329 8.31952 5.81315 8.78961C5.19304 9.19968 4.70294 10.3099 4.39289 11.2701Z\" fill=\"#673DE6\"\/>\n                <\/svg>\n                <p class=\"protip__title\">\n                    Need Help Managing Your VPS Hosting?                <\/p>\n            <\/div>\n            <p class=\"protip__content\">Use <a href=\"\/blog\/vps-ai-assistant\/\">Kodee<\/a>, Hostinger&rsquo;s own VPS AI assistant, to help with server maintenance and troubleshooting. You can generate instructions and commands for your needs using simple prompts.<\/p>\n                    <\/div>\n        \n\n\n\n<\/p><h2 class=\"wp-block-heading\" id=\"h-conclusion\">Conclusion<\/h2><p class=\"wp-block-paragraph\">Since VPS hosting is typically a self-managed service, users should follow a variety of steps to prepare their hosting environment. After understanding the server&rsquo;s hardware and software compatibility, install an operating system like Linux.<\/p><p class=\"wp-block-paragraph\">Then, access your VPS via SSH to create a new superuser and set up security software, including a firewall and SSL. Install a web stack according to your application requirements and optional software like a hosting management panel.<\/p><p class=\"wp-block-paragraph\">Configure a CMS or framework and deploy your application to the server via FTP. Lastly, a monitoring tool like Prometheus should be set up, and a cronjob script should be created to automate regular tasks like backup and updating.<\/p><h2 class=\"wp-block-heading\" id=\"h-i-bought-a-vps-now-what-faq\">I bought a VPS now what? FAQ<\/h2><p class=\"wp-block-paragraph\">In this section, we will answer several questions users often ask after purchasing a VPS hosting plan.<\/p><div class=\"schema-faq wp-block-yoast-faq-block\"><div class=\"schema-faq-section\" id=\"faq-question-1714051310174\"><h3 class=\"schema-faq-question\">What to Do on a New VPS?<\/h3> <p class=\"schema-faq-answer\">The most critical steps are installing an operating system, setting up a new root password, creating a superuser, and configuring security tools. Then, install the web stack, such as the web server and database, based on your hosting needs.<\/p> <\/div> <div class=\"schema-faq-section\" id=\"faq-question-1714051314800\"><h3 class=\"schema-faq-question\">Can I Host Multiple Websites on a Single VPS?<\/h3> <p class=\"schema-faq-answer\">Absolutely! To host multiple websites on a VPS, create a dedicated folder within your web server&rsquo;s root directory for each domain. Then, upload <strong>index.php<\/strong> and other page files into the location.<\/p> <\/div> <div class=\"schema-faq-section\" id=\"faq-question-1714051324998\"><h3 class=\"schema-faq-question\">How Do I Install a Web Server Like Apache or NGINX on My VPS?<\/h3> <p class=\"schema-faq-answer\">At Hostinger, you can install the Apache, NGINX, or OpenLiteSpeed web server using the operating system template via hPanel. Alternatively, you can do so using the <strong>apt install <\/strong>command via SSH.&nbsp;<\/p> <\/div> <div class=\"schema-faq-section\" id=\"faq-question-1714051334149\"><h3 class=\"schema-faq-question\">What Is the Best Way to Monitor the Performance of My VPS?<\/h3> <p class=\"schema-faq-answer\">The best way to track your VPS performance is by integrating it with a monitoring tool like Prometheus and Grafana. Alternatively, you can use Hostinger&rsquo;s VPS monitoring tool directly via hPanel, but the information is not as comprehensive.&nbsp;<\/p> <\/div> <\/div><h3 class=\"wp-block-heading\" id=\"h-\"><\/h3>\n","protected":false},"excerpt":{"rendered":"<p>Once you&rsquo;ve purhcased a virtual private server (VPS), you&rsquo;ll have to complete several steps before deploying an application or a website. These measures are crucial to ensure security and compatibility since VPS services are typically self-managed. They might not have any pre-configured software, so the user should prepare the hosting environment manually based on their [&#8230;]<\/p>\n<p><a class=\"btn btn-secondary understrap-read-more-link\" href=\"\/my\/tutorials\/i-bought-a-vps-now-what\">Read More&#8230;<\/a><\/p>\n","protected":false},"author":337,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"rank_math_title":"I Bought a VPS Now What? 8 Things to Do After Buying a VPS","rank_math_description":"What to do after buying a VPS: 1. Understand your VPS 2. Set up your virtual private server 3. Point your domain 4. Secure your VPS + more.","rank_math_focus_keyword":"i bought a vps now what","footnotes":""},"categories":[1],"tags":[],"class_list":["post-107934","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"hreflangs":[{"locale":"en-US","link":"https:\/\/www.hostinger.com\/tutorials\/i-bought-a-vps-now-what","default":1},{"locale":"pt-BR","link":"https:\/\/www.hostinger.com\/br\/tutoriais\/comprei-um-vps-e-agora","default":0},{"locale":"de-DE","link":"https:\/\/www.hostinger.com\/de\/tutorials\/vps-gekauft-und-nun","default":0},{"locale":"nl-NL","link":"https:\/\/www.hostinger.com\/nl\/tutorials\/ik-heb-een-vps-gekocht","default":0},{"locale":"en-GB","link":"https:\/\/www.hostinger.com\/uk\/tutorials\/i-bought-a-vps-now-what","default":0},{"locale":"en-MY","link":"https:\/\/www.hostinger.com\/my\/tutorials\/i-bought-a-vps-now-what","default":0},{"locale":"en-PH","link":"https:\/\/www.hostinger.com\/ph\/tutorials\/i-bought-a-vps-now-what","default":0},{"locale":"pt-PT","link":"https:\/\/www.hostinger.com\/pt\/tutoriais\/comprei-um-vps-e-agora","default":0},{"locale":"en-IN","link":"https:\/\/www.hostinger.com\/in\/tutorials\/i-bought-a-vps-now-what","default":0}],"_links":{"self":[{"href":"https:\/\/www.hostinger.com\/my\/tutorials\/wp-json\/wp\/v2\/posts\/107934","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hostinger.com\/my\/tutorials\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hostinger.com\/my\/tutorials\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hostinger.com\/my\/tutorials\/wp-json\/wp\/v2\/users\/337"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hostinger.com\/my\/tutorials\/wp-json\/wp\/v2\/comments?post=107934"}],"version-history":[{"count":14,"href":"https:\/\/www.hostinger.com\/my\/tutorials\/wp-json\/wp\/v2\/posts\/107934\/revisions"}],"predecessor-version":[{"id":121206,"href":"https:\/\/www.hostinger.com\/my\/tutorials\/wp-json\/wp\/v2\/posts\/107934\/revisions\/121206"}],"wp:attachment":[{"href":"https:\/\/www.hostinger.com\/my\/tutorials\/wp-json\/wp\/v2\/media?parent=107934"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hostinger.com\/my\/tutorials\/wp-json\/wp\/v2\/categories?post=107934"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hostinger.com\/my\/tutorials\/wp-json\/wp\/v2\/tags?post=107934"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}