The Nginx + PHP + MariaDB image sets up the web server and the database. You still install Composer, the missing extensions and your Laravel application.
$ ssh root@YOUR_VPS_IP$ php -v$ apt update$ systemctl restart php8.2-fpm$ cd /var/www/example.com$ cd /var/www/example.com/app
Only Nginx, PHP-FPM, MariaDB and certbot are installed automatically. You install Composer, the extra PHP extensions and the Laravel application yourself by following these steps.
Choose the resources of your VPS
Laravel runs on all our Linux VPS plans: you only pay for the VPS.
With your consent, we measure which ads bring us customers and how the site is used. Without it, nothing is measured and the site works exactly the same. You can change your mind at any time. Cookie policy.
Laravel in production on an Nginx, PHP and MariaDB VPS
Put a Laravel app online on an Nginx, PHP-FPM and MariaDB VPS: Composer, PHP extensions, .env, migrations, queue workers and the scheduler cron.
The Nginx + PHP + MariaDB image sets up the web server and the database. You still install Composer, the missing extensions and your Laravel application.
Step-by-step procedure
Order the LEMP VPS and connect
Order a VPS Mini with the Nginx + PHP + MariaDB image. Enter the domain, email and MariaDB credentials, then connect over SSH as root.
Install Composer and extensions
The image does not include Composer. Install the Debian package along with the missing PHP extensions that most Laravel projects rely on.
Create or clone the application
In the site folder, create a new project or clone your Git repository and run composer install. Then let PHP-FPM write to storage and bootstrap/cache.
Configure .env and migrate
In app/.env, set APP_ENV=production, APP_DEBUG=false, APP_URL, DB_CONNECTION=mysql and the MariaDB credentials chosen when ordering. Then run the migrations and build the caches.
Point Nginx to public/
In /etc/nginx/sites-available/example.com, change the root directive to /var/www/example.com/app/public. Test the configuration and reload Nginx.
Add the scheduler and queues
Add the schedule:run cron line given in the Laravel documentation, then create a systemd or Supervisor service that keeps php artisan queue:work running.
Choose the resources of your VPS
Laravel runs on all our Linux VPS plans: you only pay for the VPS.
Recommended base: LEMP Web Server
VPS Mini: €3.99 per month incl. VAT with a 1-year term (or €4.99 per month with no commitment) · 2 vCPU · 8 GB RAM · 40 GB storage
VPS Essentiel: €7.99 per month incl. VAT with a 1-year term (or €9.99 per month with no commitment) · 4 vCPU · 16 GB RAM · 80 GB storage
VPS Performance: €17.59 per month incl. VAT with a 1-year term (or €21.99 per month with no commitment) · 8 vCPU · 48 GB RAM · 150 GB storage
VPS Pro: €27.99 per month incl. VAT with a 1-year term (or €34.99 per month with no commitment) · 12 vCPU · 64 GB RAM · 250 GB storage
Why run Laravel on a VPS?
Laravel is a free PHP framework under the MIT license. It provides a router, the Eloquent ORM, migrations, queues, task scheduling, mail sending and the Blade template engine. Teams use it for business applications, SaaS products, APIs and admin back offices. The core is free; official services such as Forge or Nova are paid options you do not need here.
Shared hosting soon gets in the way of a Laravel app: no permanent queue worker, limited cron, a fixed PHP version. On a VPS, you control PHP-FPM, the MariaDB database, Supervisor or systemd for queues and the scheduler crontab. You deploy with Git and Composer, just as on your own machine.
Nginx, PHP-FPM and MariaDB ready
The LEMP web server image is installed automatically on Debian 12 with PHP-FPM 8.2 plus the MariaDB database and user you enter when ordering.
Queues and scheduler without limits
With root access you run php artisan queue:work as a permanent service and add the scheduler cron line, which shared hosting often refuses.
Dedicated resources
The 2 vCPU and 8 GB of RAM of the VPS Mini only serve your PHP-FPM workers, jobs and MariaDB, with no noisy neighbors.
Backup before each deploy
Take a backup from the panel before a database migration or a major Laravel upgrade, and roll back if something breaks.
Before you start
Good to know: Only Nginx, PHP-FPM, MariaDB and certbot are installed automatically. You install Composer, the extra PHP extensions and the Laravel application yourself by following these steps.
The main steps, to follow over SSH. The official documentation is the reference for the details.
Order the LEMP VPS and connect: Order a VPS Mini with the Nginx + PHP + MariaDB image. Enter the domain, email and MariaDB credentials, then connect over SSH as root.
Install Composer and extensions: The image does not include Composer. Install the Debian package along with the missing PHP extensions that most Laravel projects rely on.
Create or clone the application: In the site folder, create a new project or clone your Git repository and run composer install. Then let PHP-FPM write to storage and bootstrap/cache.
Configure .env and migrate: In app/.env, set APP_ENV=production, APP_DEBUG=false, APP_URL, DB_CONNECTION=mysql and the MariaDB credentials chosen when ordering. Then run the migrations and build the caches.
Point Nginx to public/: In /etc/nginx/sites-available/example.com, change the root directive to /var/www/example.com/app/public. Test the configuration and reload Nginx.
Add the scheduler and queues: Add the schedule:run cron line given in the Laravel documentation, then create a systemd or Supervisor service that keeps php artisan queue:work running.
For which projects?
Custom business application
PHP SaaS product
API for a mobile app
Admin panel with Filament
The essentials, included in every plan
No hidden extras for the essentials: protection, an IP address, a recovery console and support from real people are included from the first plan.
Anti-DDoS: Network protection is included on every service, with no paid option.
Dedicated IPv4: Each VPS has its own public address and full root access.
Recovery console: Take back control of your VPS with the noVNC console, even without SSH.
Support 7 days a week: By ticket and on Discord, from a team that knows your services.
No commitment: Monthly, cancellable at any time, or yearly to pay less.
Run Laravel on your own VPS.
Choose your resources, install, stay in control. No commitment.
Frequently asked questions
How do I install Laravel on a VPS?
Order a VPS with the Nginx + PHP + MariaDB image, connect over SSH and install Composer with php-bcmath and php-intl. Create the project or clone your repository into the site folder, fill .env with the MariaDB credentials, run the migrations and point the Nginx root to the public folder. Finally add the scheduler crontab.
Which plan should I choose for Laravel?
The VPS Mini (2 vCPU, 8 GB RAM, 40 GB storage) is enough for a Laravel application with MariaDB and one or two queue workers. If you add Redis, Horizon, many jobs or steady traffic, the VPS Essential (4 vCPU, 16 GB) leaves headroom. Laravel does not publish an official hardware minimum.
Is Laravel free?
Yes. Laravel is free software under the MIT license and you only pay for the VPS. The ecosystem offers paid services such as Laravel Forge, Laravel Cloud or Nova, but they are optional: on this VPS you deploy with Composer and Git without any extra subscription.
Which Laravel version works with PHP 8.2?
The LEMP image uses PHP-FPM 8.2 from Debian 12. Laravel 12 runs on PHP 8.2, hence the ^12.0 constraint in the command. Later Laravel releases may require a newer PHP: check the upgrade page of the documentation before moving up, and install a newer PHP if needed.
Why a 500 error right after installing?
Most of the time PHP-FPM cannot write to storage or bootstrap/cache, or APP_KEY is missing from .env. Make those folders writable by www-data, run php artisan key:generate if needed, then read storage/logs/laravel.log and the Nginx error log to see the exact message.