Skip to main content
Laravel is a popular PHP framework for building modern web applications. With DigitalOcean’s cloud hosting and ORIV’s one‑click deployment, you can set up Laravel on DigitalOcean Server quickly and manage it with ease. This guide walks you through the process step by step. First, set up your DigitalOcean server in ORIV. Follow these steps to get started.

How to Set Up a DigitalOcean Server in ORIV?

This guide shows how to set up a DigitalOcean server in ORIV. Follow the steps to quickly launch, configure and start your cloud journey.

Step 1: Create Your New DigitalOcean Server in ORIV

After logging in to your ORIV account, start by adding a new server by clicking on the “Add New Server” button from your dashboard.
[!NOTE] Precisa de ajuda visual para esta etapa? Entre em contato com o nosso suporte em support@oriv.cloud.
The next screen will provide the list of our available server providers. For tutorial purposes, we will create a Digital Ocean server and for that select the DigitalOcean option. The billing of the server will be handled on your Digital Ocean account. Note: Don’t have a DigitalOcean account? Check out the documentation below to find out how to provision a server with any providers: We’ve made it easier and safer for you to connect ORIV with your DigitalOcean account. You no longer have to go through the hassle of generating and copying access tokens. Now, ORIV will guide you through an OAuth flow, where you simply authorize ORIV to use your DigitalOcean account.
[!NOTE] Precisa de ajuda visual para esta etapa? Entre em contato com o nosso suporte em support@oriv.cloud.
All you have to do is provision a new DigitalOcean server, click “Authorize” during the setup, and you’ll be redirected to DigitalOcean to grant permission to your account. It’s a straightforward and hassle-free process to set up your server with Digital Ocean.
[!NOTE] Precisa de ajuda visual para esta etapa? Entre em contato com o nosso suporte em support@oriv.cloud.

Step 3: Add Necessary Information

You will be taken to the server creation page after successfully integrating your DO account. Now you need to provide the Server name, your preferred Server Size (CPU, RAM, Storage) and Region nearest to you and your visitors. Only, MySQL 8.0 database server is now available. By default Database, the ‘Root’ Password is auto-filed but you can change this and save it in a safe place. We recommend at least a 2GB/ 1 shared CPU server for 10-20 sites with cache enabled. And for a site whose pages cannot be cached (e.g. WooCommerce site) we recommend a 4 GB / 2 dedicated CPUs server.
[!NOTE] Precisa de ajuda visual para esta etapa? Entre em contato com o nosso suporte em support@oriv.cloud.
We are almost done with our server creation of Digital Ocean in ORIV. After submitting the form this might take up to 12-15 minutes to make the Digital Ocean server live and ready to install a lightning fast WordPress Site.
[!NOTE] Precisa de ajuda visual para esta etapa? Entre em contato com o nosso suporte em support@oriv.cloud.
If you already have a DigitalOcean server, you can skip the first phase and proceed directly to the second. Follow these steps to get started.

How to Set Up Laravel on DigitalOcean Server: Deploy Laravel Applications with ORIV

Deploying a Laravel application can feel complex, with multiple steps and detailed setup. This guide walks you through everything from configuration to deployment, so you can set up Laravel on DigitalOcean Server.

Step 1: Choose Your Server

Begin by logging into your ORIV account. Once logged in, navigate to your dashboard and click on the ‘Add New Site’ button.
[!NOTE] Precisa de ajuda visual para esta etapa? Entre em contato com o nosso suporte em support@oriv.cloud.
You will then be asked to ‘Choose a Server to add Site’ from the dropdown. You must select the DigitalOcean server you set up in ORIV from this dropdown.
[!NOTE] Precisa de ajuda visual para esta etapa? Entre em contato com o nosso suporte em support@oriv.cloud.

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.
[!NOTE] Precisa de ajuda visual para esta etapa? Entre em contato com o nosso suporte em support@oriv.cloud.

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’.
[!NOTE] Precisa de ajuda visual para esta etapa? Entre em contato com o nosso suporte em support@oriv.cloud.

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’.
[!NOTE] Precisa de ajuda visual para esta etapa? Entre em contato com o nosso suporte em support@oriv.cloud.
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 a 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.
[!NOTE] Precisa de ajuda visual para esta etapa? Entre em contato com o nosso suporte em support@oriv.cloud.
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.
[!NOTE] Precisa de ajuda visual para esta etapa? Entre em contato com o nosso suporte em support@oriv.cloud.

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.
[!NOTE] Precisa de ajuda visual para esta etapa? Entre em contato com o nosso suporte em support@oriv.cloud.

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:
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.
[!NOTE] Precisa de ajuda visual para esta etapa? Entre em contato com o nosso suporte em support@oriv.cloud.
From the ORIV 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 ORIV to access your Git repository and clone it. It ensures secure and authorized access for the cloning process.
[!NOTE] Precisa de ajuda visual para esta etapa? Entre em contato com o nosso suporte em support@oriv.cloud.
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 ORIV.
[!NOTE] Precisa de ajuda visual para esta etapa? Entre em contato com o nosso suporte em support@oriv.cloud.
After inserting the deploy key in GitHub, click on ‘Next’ on your ORIV settings of the ‘Git Repo’ tab.
[!NOTE] Precisa de ajuda visual para esta etapa? Entre em contato com o nosso suporte em support@oriv.cloud.

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.
[!NOTE] Precisa de ajuda visual para esta etapa? Entre em contato com o nosso suporte em support@oriv.cloud.
Check out the other features of Laravel: Configure Laravel Scheduler with cron job for your Laravel projects with ease. Check out this documentation for more details:
[!NOTE] Precisa de ajuda visual para esta etapa? Entre em contato com o nosso suporte em support@oriv.cloud.
And that’s it. This is how easily you can successfully deploy your Laravel application on ORIV. Now you can go to your site dashboard from ORIV and customize according to your preferences. If you are still stuck, feel free to contact our support team.