Laravel is a popular PHP framework for building modern web applications. With Vultrโs cloud hosting and xCloudโs oneโclick deployment, you can set up Laravel quickly and manage it with ease. This guide walks you through the process step by step.
If you already have a Vultr server, you can skip the first phase and proceed directly to the second. First, set up your Vultr server in xCloud. Follow these steps to get started.
How to Set Up a Vultr Server in xCloud? #
This guide shows how to set up a Vultr server in xCloud. Follow the steps to quickly launch, configure and start your cloud journey.
Create Your New Vultr Server in xCloud #
After logging in to your xCloud account, start by adding a new server by clicking on the โAdd New Serverโ button from your dashboard.

The next screen will provide the list of our available services. For this tutorial, we will create a Vultr server and for that select the Vultr option under โBring your own server serviceโ. The billing of the server will be handled on your Vultr account and in xCloud we wonโt charge for this first server.

Signup in Vultr with xCloud Promo #
To get started with the free hosting offer, head over to Vultr.com and sign up for a new account. During the registration process, youโll need to link a valid credit card or a verified PayPal account to activate your account and be eligible for the $100 promotional credit. As part of the validation, Vultr will place a small temporary authorization on your credit card, approximately $2.50 USD to verify your payment method.
This charge is not permanent and will be automatically reversed by your bank, although depending on your bankโs policy, it might take up to 30 days for the funds to be released.
If you choose to verify using PayPal, note that Vultr requires a minimum payment of $5.00 USD for validation. Additionally, PayPal must be linked to a valid credit card or bank account to complete this verification process. Once your payment method is verified and your account is deemed eligible, the $100 in free credits will be automatically applied to your account. Make sure to use the promo code โXCLOUD25โ during the sign-up to claim this offer.
Note: If you already have a Vultr account then please skip this step and check how to collect API from Vultr.

Collect API key from Vultr #
After you have successfully completed setting up your billing method, you will need to get the Vultr API key to add it to xCloud to create and manage 1 server and 10 sites for free. Navigate to the Account โ API tab from your Vultr dashboard. After that click on the โEnable APIโ button.

Now, your โPersonal Access Tokenโ will be auto-generated. Copy the API Key/Token.

Please make sure you have added Any IPv4 and Any IPv6 both under Access Control.

Now, you need to go back to the xCloud dashboard and add your Vultr Label & API Key.
Add Team Members In Vultr #
If you want your team members to use xCloud with Vultr, then make sure these permissions are given.

Add Vultr API key in xCloud #
Thanks to xCloud, you can create your first server without spending any money. Now, click on โAdd New Serverโ from the xCloud dashboard and you will be redirected to the server selection screen. Then click on โVultrโ to proceed further.

After selecting โVultrโ, set your โKeyโ, โVultr Labelโ, and โVultr API Keyโ. Then click on โVerifyโ.

Step 3: Create a Vultr Server in xCloud #
Now that you have successfully verified your Vultr account, you will need to add other details to create a server in Vultr using xCloud. Choose your Region, Database Server, Server Size, and much more from one easy dashboard.

How to Deploy Laravel Applications on Vultr with xCloud? #
Deploying Laravel applications can often involve multiple steps and intricate configurations. xCloud simplifies this process by providing a streamlined platform tailored for deploying modern PHP applications, including Laravel, with minimal complexity.
Follow this step-by-step guide to configure and deploy your fully functional Laravel website with ease.
Step 1: Choose Your Server #
Begin by logging into your xCloud account. Once logged in, navigate to your dashboard and click on the โAdd New Siteโ button.

You will then be asked to โChoose a Server to add Siteโ from the dropdown. You must select the Vultr server you set up in xCloud from this dropdown.

Step 2: Go to The Laravel Tab #
Then navigate to the โLaravelโ tab to deploy your Laravel applications. Now, choose โClone A Git Repositoryโ to import your custom PHP site.

Step 3: Set Up Domains #
From the โDomainsโ tab, you will get two options: either you can create a โDemo Siteโ with a test domain and refine it until it is ready for launch or you can migrate into a new domain to get your site up and running in a new domain.
Or you can create your site with your live domain; you need to select the โMigrate into a New Domainโ option.Then you have to put โNew Site Titleโ and โDomain Nameโ. Here we are choosing the โDemo Siteโ domain. Then click on โNextโ.

Step 4: Settings To Manage Database #
Now, you will be sent to the โSettingsโ step. Make sure to correctly add your โPHP Versionโ, โSite Userโ, โWeb rootโ.

Now, it is time for database management. You will get three options. You can either create a new database on the server, you can add your existing database that is hosted on another server.
You can also proceed without any database. For this tutorial, we are going with the โCreate Database In Serverโ option.
If you select this option, enter your โDatabase Nameโ, โDatabase Usernameโ and โDatabase Passwordโ. You can keep these auto-generated credentials or you can modify them according to your choice.

After selecting any one option and providing all essential information and credentials, click on โNextโ.
Step 5: Insert Git Repository Credentials #
In the โGit Repoโ tab, add your โGit Repositoryโ and โGit Branchโ. Also, toggle on the โEnable push to deployโ option. Once you enable the โPush To Deployโ, it will generate a โDeployment URLโ. We can use this URL to CICD pipeline and copy the โDeployment URLโ from here.

Step 6: Add the Deployment URL to the Git Repository #
Now, go to your Git repository. From the โCodeโ tab, go to the โSettingsโ tab and click on the โWebhooksโ page from the โCode and Automationโ section of the left navigation. Insert the deployment URL into the โPayload URLโ field. Select โapplication/jsonโ from the โContent typeโ dropdown.
Note: This step is optional. Adding a webhook enables automatic deployments when you push changes to the repository but itโs not required if you prefer to deploy manually.

Step 7: Add Public Key to Git Repository #
Next in the โDeploy Scriptโ field any script that needs to be executed after the site is deployed. For example, you can use it to install dependencies or run database migrations.
Next, in the โDeploy Scriptโ field, specify any commands that need to be executed after the site is deployed.
If your project uses PHP, you can specify the version (e.g., php8.1) and run Composer along with Laravel-specific commands like this:
php8.1 $(which composer) install –no-interaction –prefer-dist –optimize-autoloader –no-dev
php8.1 artisan migrate –force
php8.1 artisan optimize:clear
If your project also involves Node.js, you can include additional commands as well. These scripts ensure that your backend and frontend are fully prepared after deployment.

From the xCloud dashboard, copy the โPublic Keyโ to add it to your Git repository as a deploy key. Git migration uses the โPublic Keyโ for SSH authentication. This is necessary to enable xCloud to access your Git repository and clone it. It ensures secure and authorized access for the cloning process.

Now, again, go to your Git Repository. From the โCodeโ tab, go to the โSettingsโ tab and click on โDeploy Keysโ in the security section of the left navigation. Click on the โAdd keyโ button and paste the key that you copied from xCloud.

After inserting the deploy key in GitHub, click on โNextโ on your xCloud settings of the โGit Repoโ tab.

Step 8: Confirm Migrating The Website #
Now, to start the migration process, click on the โStartโ button. After clicking the migration process will start and you will see the progress of migration.
Once the migration is successfully complete will see the following screen. You go to the site dashboard from there. Go to the โLaravelโ Option from the menu and customize the โApplicationโ and โEnvironmentโ as your preferences.

Check out the other features of Laravel:
- How to Use Supervisor for Process Management With xCloud
- How to Set Up Laravel Horizon with xCloud
- How to Set Up a Queue Worker for Laravel Applications
Configure Laravel Scheduler with cron job for your Laravel projects with ease. Check out this documentation for more details: How To Configure xCloud Cron Job?

And thatโs it. This is how easily you can successfully deploy your Laravel application on xCloud. Now you can go to your site dashboard from xCloud and customize according to your preferences.
If you are still stuck, feel free to contact our support team.



































