{"id":477,"date":"2024-10-10T10:31:36","date_gmt":"2024-10-10T10:31:36","guid":{"rendered":"https:\/\/blog.hostinger.io\/support\/2024\/10\/10\/9979315-installing-laravel-forge-on-hostinger-s-vps\/"},"modified":"2025-08-27T06:44:19","modified_gmt":"2025-08-27T06:44:19","slug":"9979315-installing-laravel-forge-on-hostinger-s-vps","status":"publish","type":"post","link":"https:\/\/www.hostinger.com\/support\/9979315-installing-laravel-forge-on-hostinger-s-vps\/","title":{"rendered":"Installing Laravel Forge on Hostinger&#8217;s VPS"},"content":{"rendered":"<p class=\"no-margin\">Here is a step-by-step guide to setting up Laravel Forge on a VPS from Hostinger. Follow these steps to configure your server and deploy your application successfully.<\/p><p class=\"no-margin\">\n<\/p><h2 id=\"h_3d752284d8\">Step 1 &ndash; VPS installation<\/h2><p class=\"no-margin\">Install <b>Ubuntu 24.04<\/b> on Hostinger&rsquo;s VPS.<\/p><p class=\"no-margin\">\n<\/p><div class=\"intercom-container intercom-align-center\"><img decoding=\"async\" src=\"\/support\/wp-content\/uploads\/sites\/55\/2024\/10\/b6858db1-8f52-463d-bdbe-ed0a78c1e8ca.jpg\"><\/div><p class=\"no-margin\">\n<\/p><p class=\"no-margin\">After installation, head to the VPS hPanel overview page, and copy <a href=\"\/support\/5139756-how-to-find-your-vps-ip-address\" target=\"_blank\" class=\"intercom-content-link\">your IP address<\/a>.<br>&#8203;<\/p><div class=\"intercom-container\"><img decoding=\"async\" src=\"\/support\/wp-content\/uploads\/sites\/55\/2024\/10\/83f5a562-a386-49d7-aad8-9c39a63e6772.jpg\"><\/div><p class=\"no-margin\">\n<\/p><h2 id=\"h_262d041067\">Step 2 &ndash; Forge configuration<\/h2><ol>\n<li>\n<p class=\"no-margin\"><b>Log in to <a href=\"https:\/\/forge.laravel.com\/servers\" target=\"_blank\" class=\"intercom-content-link\" rel=\"noopener\">Laravel Forge<\/a><\/b> and navigate to the <b>Create Server<\/b> section.<\/p>\n<\/li>\n<li>\n<p class=\"no-margin\">Select <b>Custom VPS<\/b> as your provider (shown in the screenshot).<\/p>\n<\/li>\n<li>\n<p class=\"no-margin\">Fill in the following details:<\/p>\n<ul>\n<li>\n<p class=\"no-margin\"><b>Name<\/b>: Give your server a name, e.g., example.vps<\/p>\n<\/li>\n<li>\n<p class=\"no-margin\"><b>Type<\/b>: Choose your application type, based on your needs.<\/p>\n<\/li>\n<li>\n<p class=\"no-margin\"><b>IP Address<\/b>: Enter your VPS public IP address, e.g., 222.222.22.22.<\/p>\n<\/li>\n<li>\n<p class=\"no-margin\"><b>SSH Port<\/b>: Default port is 22 unless otherwise specified.<\/p>\n<\/li>\n<\/ul>\n<\/li>\n<li>\n<p class=\"no-margin\">Once the details are filled, click on <b>Create Server<\/b> to proceed.<br>&#8203;<\/p>\n<div class=\"intercom-container intercom-align-center\"><img decoding=\"async\" src=\"\/support\/wp-content\/uploads\/sites\/55\/2024\/10\/40710784-616e-475f-843b-4518eda49c46.jpg\"><\/div>\n<\/li>\n<\/ol><h2 id=\"h_989bf7bf18\">Step 3 &ndash; Server configuration<\/h2><p class=\"no-margin\">You will see the server&rsquo;s provisioning command and server credentials. Write them down for later use. For now, copy the provisioning command.<br>&#8203;<\/p><div class=\"intercom-container intercom-align-center\"><img decoding=\"async\" src=\"\/support\/wp-content\/uploads\/sites\/55\/2024\/10\/ee95faac-a504-4e9d-8ae6-e7de2833707d.jpg\"><\/div><p class=\"no-margin\">\n<\/p><p class=\"no-margin\">Open SSH client (terminal, PuTTY, or <a href=\"\/support\/7978544-how-to-use-the-browser-terminal\" target=\"_blank\" class=\"intercom-content-link\">browser terminal in hPanel<\/a>) and connect to the server using <code>ssh root@your-ip-address<\/code> replacing your-ip-address with your server&rsquo;s IP address found in your hPanel.<\/p><p class=\"no-margin\">\n<\/p><p class=\"no-margin\">Once logged in, paste and run the server&rsquo;s provisioning command from Laravel Forge. This command will install all the necessary dependencies and configure your server for Laravel Forge management.<\/p><p class=\"no-margin\">\n<\/p><h2 id=\"h_19964fe3ba\">Step 4 &ndash; Monitor the Provisioning Process<\/h2><p class=\"no-margin\">After running the command, Laravel Forge will automatically handle the following steps:<\/p><ul>\n<li>\n<p class=\"no-margin\">Preparing the server<\/p>\n<\/li>\n<li>\n<p class=\"no-margin\">Configuring swap<\/p>\n<\/li>\n<li>\n<p class=\"no-margin\">Installing base dependencies (e.g., Ubuntu updates)<\/p>\n<\/li>\n<li>\n<p class=\"no-margin\">Installing PHP, Nginx, Database, Redis, and Memcached (based on your chosen type).<\/p>\n<\/li>\n<\/ul><p class=\"no-margin\">Wait for Forge to complete the installation, which may take several minutes.<\/p><p class=\"no-margin\">\n<\/p><div class=\"intercom-container intercom-align-center\"><img decoding=\"async\" src=\"\/support\/wp-content\/uploads\/sites\/55\/2024\/10\/d5de4b2b-34b9-42b2-a579-29ba5cb61720.jpg\"><\/div><p class=\"no-margin\">\n<\/p><h2 id=\"h_2b6275376e\">Step 5 &ndash; Create a new site<\/h2><p class=\"no-margin\">Enter all the necessary information (domain, aliases) and press &ldquo;Add Site&rdquo;.<\/p><p class=\"no-margin\">\n<\/p><div class=\"intercom-container intercom-align-center\"><img decoding=\"async\" src=\"\/support\/wp-content\/uploads\/sites\/55\/2024\/10\/cd98eaf5-970b-4903-b3b4-8434830c5880.jpg\"><\/div><p class=\"no-margin\">\n<\/p><h2 id=\"h_b294b1be6a\">Step 6 &ndash; Access your domain<\/h2><p class=\"no-margin\">Your Hostinger VPS is now successfully configured to run Laravel Forge. You can manage your server via Laravel Forge, deploy PHP applications, and use additional services like Redis, Memcached, and databases.<\/p><p class=\"no-margin\">\n<\/p><div class=\"intercom-container intercom-align-center\"><img decoding=\"async\" src=\"\/support\/wp-content\/uploads\/sites\/55\/2024\/10\/b8a9be00-33b8-491e-a338-a98b9b65f805.jpg\"><\/div><p class=\"no-margin\">\n<\/p><div class=\"intercom-interblocks-callout\" style=\"background-color: #e3e7fa80;border-color: #334bfa33\">\n<p class=\"no-margin\">For further development, visit <a href=\"https:\/\/forge.laravel.com\/docs\/introduction.html\" target=\"_blank\" class=\"intercom-content-link\" rel=\"noopener\">Laravel Forge docs<\/a> &#128640;<\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Getting started guide with Laravel Forge and Hostinger VPS<\/p>\n","protected":false},"author":581,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"include_on_kodee":true,"footnotes":""},"categories":[199],"tags":[],"class_list":["post-477","post","type-post","status-publish","format-standard","hentry","category-vps-management"],"hreflangs":[{"locale":"en-US","link":"https:\/\/www.hostinger.com\/support\/9979315-installing-laravel-forge-on-hostinger-s-vps\/","default":1}],"include_on_kodee":true,"_links":{"self":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/477","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/users\/581"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/comments?post=477"}],"version-history":[{"count":1,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/477\/revisions"}],"predecessor-version":[{"id":2322,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/477\/revisions\/2322"}],"wp:attachment":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/media?parent=477"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/categories?post=477"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/tags?post=477"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}