This tutorial takes you from an empty dPanel account to a Laravel application answering on your own domain with HTTPS. You launch an Ubuntu server, install PostgreSQL and Redis on it, create the application from GitHub, and put a load balancer in front of it. Then you learn the everyday tasks: changing a setting, deploying again, rolling back and reading the logs.
Every screenshot on this page comes from one real run of these steps with the dPanel-ID/laravel-example repository, published at laravel.terpusat.me. It takes about 30 minutes, most of it waiting for installs. Everything happens in the dPanel web app; you never need SSH.
What dPanel does for a Laravel app
dPanel recognises a Laravel repository by its artisan file and fills in the settings for you. This is called the Laravel preset. You check it and change anything you like. Four things are worth knowing before you start:
- Two runtimes. A runtime is the program that runs your code. The build runs Composer with PHP, then
npmwith Node.js to build the front end, so the app uses both. FrankenPHP, a web server made for PHP, answers the website's requests. - Release commands. After the build and before the new version goes live, dPanel runs
php artisan migrate --forceand the other release commands with your runtime variables (the settings the running app reads, such as the database password). If one fails, the version already running keeps serving. - Release folders. Each deploy goes into a new folder on the server. Your site switches to it only after the release commands and the health check pass, so a failed deploy never takes the site down, and you can roll back in one click.
- The application key. Laravel encrypts sessions and cookies with
APP_KEY. dPanel creates it when the app is created and keeps it, so you never set it yourself.
What you need first
- A dPanel account, signed in, in the workspace you want to use. See Sign in.
- GitHub connected, with access to the repository you deploy. To follow along exactly, fork dPanel-ID/laravel-example into your own account. See Connect GitHub.
- A cloud account in dPanel to launch a server (see Before you start), or a server you already have with a public IP, connected with the dPanel agent. Then skip step 1.
- A domain in Domain & DNS, so dPanel can create the DNS record for you. See Domains and DNS.
Step 1: Launch a server
Open Servers and press Create Server.
On the Launch a cloud server card, pick your provider, for example AWS.

Provider and project: your provider is selected. Under Cloud project, pick the project that pays for the server. Under Location, pick a Region close to your visitors. The Network is created for you.

How dPanel connects: keep dPanel agent and keep Give the VM a public IP on. Visitors reach the site through that public IP.
Size and image: type a Server name, for example
laravel-demo, keep Ubuntu 24.04 LTS, and move RAM to 4 GB and Storage to 30 GB. dPanel shows the cheapest matching size, heret3a.medium(2 vCPU, 4 GB). 2 GB works for a small app, but the front-end build is faster with 4 GB.
The Review panel on the right turns into Ready to launch. Press Launch server.

dPanel says Your server is booting. Press Open server.

The server turns Ready when its agent connects, usually within 5 minutes. The page shows its live CPU, memory and disk use.

You should see: the server with a green Ready badge.
Step 2: Install PostgreSQL and Redis
A module is software dPanel installs on your server. The database is one: PostgreSQL keeps your data. Redis is optional: a fast store for Laravel's cache, queued jobs and sessions.
You do not install PHP, Node.js and FrankenPHP here: the application form adds them in step 3, with the versions your repository asks for.
On the server page, open the Modules tab and press Add module.

Press Install on PostgreSQL. Keep PostgreSQL Version (the newest) and the other fields. For Administrator Password, press Generate, then copy the password somewhere safe: dPanel shows it only once. Your app does not use it; it gets its own database user in step 3.
Press Install role, then Yes.

The password is hidden in this screenshot. Optional: press Install on Redis, keep Bind Interface
127.0.0.1(only apps on this server can reach it, so it needs no password), press Install role, then Yes.
Each install takes a minute or two. The Modules tab shows Installing, then Installed.
You should see: PostgreSQL and Redis marked Installed. After step 3, PHP, Node.js and FrankenPHP join them.

Step 3: Create the application with the Laravel preset
Open Applications and press Create Application. The form has five steps: Repository, Server & modules, App setup, Environment and Preview.
Repository
- Pick your GitHub account or organization in the first list, search for
laravel, and select laravel-example. Keep the main branch. - A Laravel detected panel appears. dPanel read the repository and shows what it found: the Laravel version, the PHP version it asks for, the web server (Octane on FrankenPHP for this repository), the front-end build and the health check. Its notes tell you that dPanel manages
APP_KEYand thatAPP_URLis still missing (you add it in Environment). - Press Continue.

Server & modules
- Select your server.
- What this Laravel app needs lists PHP 8.5, Node.js 22 and FrankenPHP. FrankenPHP answers requests with its own PHP 8.5, so dPanel picks the same PHP for Composer and Artisan whenever your
composer.jsonallows it. Press Add on each one (or Use … on this server when that version is already installed). Nothing is added until you press a button. - Under Installed on selected server, press PostgreSQL and Redis so the app lists them as what it uses.
- Press Continue.

App setup
The form is filled in. Check it:
Application name: type
Laravel(letters, numbers and spaces only).Required binaries: PHP and Node.js are both selected. Other dependencies lists FrankenPHP, PostgreSQL and Redis.

Build steps:
composer install --no-dev --optimize-autoloader --no-interaction --prefer-dist, thennpm ci && npm run build. The build needs no database and noAPP_KEY.Runtime command: Laravel Octane on FrankenPHP, because this repository uses Octane. An app without Octane gets FrankenPHP's classic mode (
frankenphp php-server), which needs no change to your code.Application port: keep the free port dPanel suggests. Your app listens on it on the server; visitors never see it. When the load balancer runs on the same server, dPanel keeps this port reachable from the server itself only.

Release and processes:
- Release commands:
php artisan storage:link --force,php artisan migrate --forceandphp artisan optimize. Octane apps get one more command first: it writesbootstrap/cache/frankenphp.Caddyfile, which tells Octane to listen only where the load balancer reaches it. - After the restart:
php artisan reload, which restarts the queue worker, the scheduler and Octane on the new code. - Health check:
/up. dPanel asks the app for this page after each restart and marks the deploy failed if it does not answer200. - Release folders: on.
storage,.envanddatabase/database.sqliteare kept between releases, and the last 3 releases stay on the server.

Worker and scheduler: turn on Queue worker (it runs queued jobs, such as emails) and Scheduler (it runs
php artisan schedule:runevery minute). The example app has a demo for both. Each uses some memory, so for your own app turn on only what it needs.
Press Continue.
Environment
This step holds the runtime variables, the settings the running app reads.
Under Database for this app, press Create database. Keep Laravel (DB_*). dPanel suggests a database name and user from the application's name; keep them or type your own (this run used
laravel_app). Press Create database, then Yes. dPanel creates the database and its user on your server's PostgreSQL with a strong password, and writesDB_CONNECTION,DB_HOST,DB_PORT,DB_DATABASE,DB_USERNAMEandDB_PASSWORDinto the runtime variables. You never type or see the password.
Optional, if you installed Redis: under Redis for this app, press Connect Redis. Keep the Key prefix and the three boxes (cache, queued jobs and sessions), and press Fill in variables. See Connect Redis.

In Runtime variables, add your site's address on a new line, with your own domain:
dotenvAPP_URL="https://laravel.example.com"Laravel uses it for links and emails.
Leave Build-time variables empty, and do not add
APP_KEY: dPanel creates it.Press Continue.

Preview
Check the summary. Pre-flight checks compares what the repository asks for (the PHP version and extensions, the Node.js version) with what you chose, and should say All good. An error, such as a PHP version the app does not support, holds the button until you fix it. Press Deploy application.

The first deploy takes about 5 minutes, because dPanel installs PHP, Node.js and FrankenPHP first. dPanel opens the application's page, where you follow it. It shows Releasing, then Running.
You should see: the application marked Running, with 1 Serving now.

It is not on the internet yet: that is the next step.
Step 4: Publish it on your domain with HTTPS
A load balancer is the front door of your site: it answers visitors on ports 80 and 443, handles HTTPS, and passes each request to your app.
Open Load Balancers and press Create a load balancer. The form has four steps: Gateway, Domain, Routing and Review.
Gateway: under Gateway server, select your server. Under Install an engine, press Install on Caddy Server, then Install role and Yes. After about a minute it shows Installed; select it and press Continue.

Domain: choose Managed, type the subdomain (
laravel), and pick your domain. dPanel shows the DNS record it creates, an A record pointing at your server's public IP. Keep Proxy through Cloudflare off unless you want it. Press Continue.
Routing: keep L7. In Rule #01, set Type to Application, Matching Path to
/*, and select Laravel. Because the app runs on the same server, dPanel reaches it onlocalhost. Keep HTTPS on. Press Continue.
Review: press Create load balancer.

The DNS record and the certificate are ready in about a minute. See Load balancers.
Step 5: Check your site
Open
https://laravel.example.com/up(with your domain). It shows a short Application up page: this is the health check dPanel uses.Open
https://laravel.example.com/. The Laravel welcome page appears, served over HTTPS.
Press Register and create an account. The example app asks you to confirm your email address before it opens the dashboard; until you set up email sending, that message only goes to the application log. You do not need it for the demo: open
/background-demo, press the button to queue a job, and the queue worker runs it within a few seconds. The scheduler writesscheduler aliveto the log every minute.
You should see: the page loads with a lock icon in the address bar, and the demo job appears as processed.
Day 2: Change a setting and deploy again
Variables are read when the app starts, so a change takes effect on the next deploy.
Open the application, then Settings. Under Run, press Edit next to Environment variables. Values are hidden; ones you leave alone keep their saved value.
Press Add Variable and type, for example,
APP_NAMEandLaravel on dPanel. Press Save.
Open Overview and press Redeploy. The New Artifact panel starts on your branch (
main) and your server. Press Save.
The deploy takes about 2 minutes. Your site keeps answering the whole time: the new release goes live only after its release commands and health check pass.
You should see: the browser tab of your site now reads Laravel on dPanel.
Day 2: Roll back a bad deploy
Open the application, then Deployments, and switch to On servers.
Releases on this server lists the last 3 releases. The one serving now is marked Live. Press Roll back on the release you want.

Read the dialog and press Roll back. Only the code switches: your variables stay, and database migrations are not undone.

It takes about a minute. The worker and the scheduler restart on the older code too. See Roll back to an earlier release.
You should see: the older release marked Live.
Day 2: Read the logs
Open the application, then Logs. Runtime shows what the app, the worker and the scheduler print, newest first, with filters for the level and the time. The queued job and the scheduler alive lines appear here. Load balancer shows each visitor request with its status.

See Application logs. From the terminal: dnocs application logs --id <app ID> --since 1h.
When something does not work
| What you see | What to check |
|---|---|
| Pre-flight checks shows an error | Read it: it names the problem, such as a PHP version your composer.json does not allow. Pick the version it asks for in Server & modules. |
| Redis for this app says to install Redis first | Redis is still installing. Wait until the Modules tab shows it Installed; the step updates by itself. |
npm: command not found in the build log | Node.js is not on the application. Open Settings, edit the Language under Build, add Node.js, and deploy again. |
| A release command fails | The deploy log shows the command and its output, and the previous version keeps serving. For php artisan migrate, check the DB_* runtime variables. |
| The deploy fails at the health check | The log shows the last answer of /up and the app's last lines. A 500 often means a missing variable; read the runtime log. |
MissingAppKeyException | APP_KEY was removed from the variables. Deploy again: dPanel creates one when it is missing. Visitors are signed out. |
| The domain does not answer | Wait a few minutes for DNS and the certificate, then open the load balancer's page and its logs. |
| Queued jobs never run | Turn on the Queue worker in Settings, under Release and processes, and deploy again. |
| Anything else | See Common problems and fixes. |
Prefer to chat? Do the same with Ask dPanel
Ask dPanel can prepare every step for you to approve, for example:
Create an application named Laravel from github.com/my-org/laravel-example on server laravel-demo.
dPanel creates APP_KEY for a Laravel repository whichever way you create the application. More ready-made requests are in the Prompt cookbook.
Clean up
Delete in this order: the load balancer, the application, then the server. See Load balancers, Update or delete an application and Delete a server.
Frequently asked questions
Why does the application need Node.js if Laravel is PHP?
The build runs npm to bundle the front end with Vite. dPanel puts only the runtimes the application declares on the build's path, so Node.js is declared next to PHP. PHP stays the application's main language.
Do the database variables go in the build-time variables too?
No. The build only installs packages and builds the front end. Migrations run as a release command with the runtime variables, so the DB_* settings belong there only.
Octane or classic FrankenPHP: which one do I get?
Octane when your app requires laravel/octane, as this example does: the app stays loaded in memory and answers faster. Every other Laravel app gets FrankenPHP's classic mode, which runs public/index.php for each request like PHP-FPM and needs no change to your code. Both work with release folders and rollback.
Can I use MariaDB instead of PostgreSQL?
Yes. Install MariaDB in step 2. In Database for this app, the helper creates the database on MariaDB and writes the matching DB_* settings.
Can I change the preset?
Yes. Every field the preset fills in stays editable in the form and later under the application's Settings. dPanel applies the preset once, when you pick the repository and branch.
Can I add the queue worker or the scheduler later?
Yes. Open Settings, press Edit on Release and processes, turn them on, and deploy again.
Where do uploaded files go?
Into storage, which release folders keep between deploys, and php artisan storage:link makes storage/app/public reachable at /storage. To keep uploads in a bucket instead, use Use object storage in the Environment step. See Use object storage for uploads.