{"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":"2026-10-29T14:40:48","modified_gmt":"2026-10-29T14:40:48","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\">To set up Laravel Forge on a Hostinger VPS, install Ubuntu 24.04, add your VPS to Laravel Forge as a Custom VPS, run the provisioning command over SSH, and create your site. Once provisioning finishes, you can manage your server and deploy PHP applications from Laravel Forge.<\/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><div class=\"intercom-container intercom-align-center\"><img decoding=\"async\" class=\"alignnone size-full wp-image-19941\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/55\/2026\/10\/2026-10-08_14-34.png\/public\" alt=\"\" width=\"1146\" height=\"381\" srcset=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/55\/2026\/10\/2026-10-08_14-34.png\/w=1146,fit=scale-down 1146w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/55\/2026\/10\/2026-10-08_14-34.png\/w=300,fit=scale-down 300w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/55\/2026\/10\/2026-10-08_14-34.png\/w=1024,fit=scale-down 1024w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/55\/2026\/10\/2026-10-08_14-34.png\/w=768,fit=scale-down 768w\" sizes=\"(max-width: 1146px) 100vw, 1146px\" \/><\/div><p class=\"no-margin\">After installation, head to the VPS Hostinger dashboard overview page, and copy <a data-click-id=\"hgr-post-content-link-your-ip-address\" class=\"intercom-content-link\" href=\"\/support\/5139756-how-to-find-your-vps-ip-address-at-hostinger\/\" target=\"_blank\" rel=\"noopener\">your IP address<\/a>.<\/p><h2 id=\"h_262d041067\">Step 2 &ndash; Forge configuration<\/h2><ol>\n<li>\n<p class=\"no-margin\"><b>Log in to <a data-click-id=\"hgr-post-content-link-laravel-forge\" class=\"intercom-content-link\" href=\"https:\/\/forge.laravel.com\/servers\" target=\"_blank\" 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>\n&#8203;<\/p>\n<div class=\"intercom-container intercom-align-center\"><img decoding=\"async\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/55\/2024\/10\/40710784-616e-475f-843b-4518eda49c46.jpg\/public\" alt=\"Custom VPS selected in Create Server form with server name, IP address, and SSH port fields\" data-media-id=\"2315\"><\/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>\n&#8203;<\/p><div class=\"intercom-container intercom-align-center\"><img decoding=\"async\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/55\/2024\/10\/ee95faac-a504-4e9d-8ae6-e7de2833707d.jpg\/public\" alt=\"Hostinger VPS provisioning modal showing Forge install command and server credentials\" data-media-id=\"2316\"><\/div><p class=\"no-margin\">Open SSH client (terminal, PuTTY, or <a data-click-id=\"hgr-post-content-link-web-console-in-hostinger-dashboard\" class=\"intercom-content-link\" href=\"\/support\/how-to-use-hostinger-agent-vps-terminal-edition\/\" target=\"_blank\" rel=\"noopener\">web console in Hostinger dashboard<\/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 Hostinger dashboard.<\/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><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><div class=\"intercom-container intercom-align-center\"><img decoding=\"async\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/55\/2024\/10\/d5de4b2b-34b9-42b2-a579-29ba5cb61720.jpg\/public\" alt=\"Hostinger VPS provisioning progress with &ldquo;Installing Base Dependencies&rdquo; active\" data-media-id=\"2317\"><\/div><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><div class=\"intercom-container intercom-align-center\"><img decoding=\"async\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/55\/2024\/10\/cd98eaf5-970b-4903-b3b4-8434830c5880.jpg\/public\" alt=\"VPS control panel showing the New Site form with the Add Site button highlighted\" data-media-id=\"2318\"><\/div><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><div class=\"intercom-container intercom-align-center\"><img decoding=\"async\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/55\/2024\/10\/b8a9be00-33b8-491e-a338-a98b9b65f805.jpg\/public\" alt=\"Laravel Forge dashboard on a VPS, showing next steps to install a project, set domain, and configure DNS records\" data-media-id=\"2319\"><\/div><div class=\"intercom-interblocks-callout\" style=\"background-color: #e3e7fa80;border-color: #334bfa33\">\n<p class=\"no-margin\">For further development, visit <a data-click-id=\"hgr-post-content-link-laravel-forge-docs\" class=\"intercom-content-link\" href=\"https:\/\/forge.laravel.com\/docs\/introduction.html\" target=\"_blank\" rel=\"noopener\">Laravel Forge docs<\/a>.&nbsp;See <a data-click-id=\"hgr-post-content-link-how-to-use-the-laravel-vps-template-at-hostinger\" href=\"\/support\/9070980-how-to-use-the-laravel-vps-template-at-hostinger\/\">How to use the Laravel VPS template at Hostinger<\/a> for other details about running Laravel on Hostinger VPS.<\/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":6,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/477\/revisions"}],"predecessor-version":[{"id":22479,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/477\/revisions\/22479"}],"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}]}}