v1.0 — for Laravel 10 / 11 / 12 on Ubuntu 22.04 / 24.04

Run Laravel in production on your own servers — without a DevOps team

Battle-tested scripts, hardened configs and 3am runbooks extracted from real production infrastructure. Zero-downtime deploys, automated backups, monitoring and the rollback you'll wish you had.

One-time purchase · lifetime updates · use on unlimited servers & client projects

$ ./deploy.sh example.com /tmp/release-4f2a91c
[deploy] Staging code into release 20260610213000...
[deploy] Linking shared state...
[deploy] Installing composer dependencies...
[deploy] Running migrations...
[deploy] Caching config/routes/views...
[deploy] Switching live symlink (atomic)...
[deploy] php-fpm reloaded. Queue workers restarted.
[deploy] Smoke test OK (HTTP 200).
[deploy] Deploy complete: 20260610213000 is live.  ← zero requests dropped

Why this exists

A $12 VPS outperforms a $300 PaaS bill — if you know how to run it

Platform hosting is wonderful until the invoice scales with your traffic. The knowledge to run Laravel safely on bare servers is scattered across decade-old blog posts, half of them wrong. This kit is that knowledge, condensed and tested: the exact setup used to host multiple commercial Laravel applications in production.

01 Deploys that don't drop requests

Atomic release switching with shared state, opcache handling done right ($realpath_root), queue workers restarted, smoke-tested — wired to GitHub Actions so git push is your deploy button.

02 A server you don't worry about

One idempotent script provisions PHP-FPM, nginx, MySQL/Postgres, Redis and certbot. A second locks it down: UFW, fail2ban, SSH hardening, auto security updates, least-privilege deploy user.

03 Backups that actually restore

Nightly dumps with integrity checks, rotation and off-site sync to S3/B2/R2. The restore script takes a safety backup before restoring — so even recovery is reversible.

04 You find out before your users do

Health checks every 5 minutes: sites, services, disk, TLS expiry. Alerts to Slack/Discord/anywhere — fired on state change, so an outage is one ping, not 200.

05 Queues & cron, production-grade

systemd units with memory guard-rails so a runaway job can't take the box down. One scheduler timer covers every site on the server. No supervisor, nothing extra to install.

06 Runbooks for the bad day

Step-by-step incident triage (502s, disk full, OOM, slow everything) and a rollback runbook covering the hard part nobody writes about: migrations and data.

What's inside

36 files. Plain bash, nginx, systemd, cron. No magic.

Everything is readable, commented and yours to modify. Nothing phones home, nothing to license per-server, nothing that rots when a vendor pivots.

laravel-ops-kit/ ├── docs/ 9 guides & runbooks │ ├── 00-quick-start.md │ ├── 01-server-provisioning.md │ ├── 02-site-onboarding.md │ ├── 03-zero-downtime-deploys.md │ ├── 04-backups-and-restore.md │ ├── 05-queues-and-schedulers.md │ ├── 06-monitoring-and-health-checks.md │ ├── 07-incident-runbook.md │ └── 08-rollback-runbook.md ├── scripts/ 8 idempotent bash scripts │ ├── provision-server.sh │ ├── harden-server.sh │ ├── add-site.sh │ ├── deploy.sh / rollback.sh │ ├── backup-db.sh / restore-db.sh │ └── healthcheck.sh ├── nginx/ hardened vhost + snippets ├── github-actions/ deploy.yml (CI/CD) ├── systemd/ queue worker + scheduler └── env/ production .env template
  • Multi-site by design — host many apps on one box, each isolated with its own releases, database, vhost, workers and logs.
  • Idempotent scripts — safe to re-run; they detect existing state instead of clobbering your server.
  • Security as a default — keys-only SSH, default-deny firewall, scanner-bait blocking, rate-limited PHP, least-privilege CI.
  • MySQL/MariaDB and PostgreSQL — both supported across provisioning, backups and restores.
  • Works anywhere Ubuntu runs — Hetzner, DigitalOcean, IONOS, OVH, EC2, that box under your desk.
  • Readable in one sitting — the entire kit is ~2,500 lines. You can audit every byte you run as root.
FM

Built by Fabio Marques — Pius Technologies Ltd

Hands-on technology leader with 15+ years across PHP/Laravel, infrastructure and payment systems. This kit is the distilled version of the playbooks I use to run commercial Laravel applications in production — the same scripts, the same configs, the same runbooks I reach for when something breaks at 3am.

Pricing

Less than 20 minutes of a DevOps contractor

One price. No subscription, no per-server licensing, no upsell.

$59$39 one-time

launch pricing

  • The complete kit — all scripts, configs, docs & runbooks
  • Lifetime updates to v1.x
  • Use on unlimited servers & client projects
  • Commercial license included
  • 14-day money-back guarantee, no questions asked
Get the kit — $39

Secure checkout & instant download via Lemon Squeezy.
VAT/sales tax handled automatically. Launching this week — checkout link goes live as soon as store review completes.

FAQ

Questions

Who is this for?

Laravel developers and small teams who want PaaS-grade deploys and reliability on their own servers — whether that's to cut hosting costs, keep client data on-prem, or simply own their stack. If you can SSH into a box, you can use this kit.

How is this different from Forge, Ploi or Envoyer?

Those are excellent subscription panels — you rent the automation. This kit gives you the automation itself: readable scripts you own, audit and modify, with no monthly fee and no dependency on a third-party dashboard having a good day. It also covers what panels mostly don't: incident runbooks, restore drills, and migration-aware rollbacks.

What exactly do I get?

A zip containing 8 idempotent bash scripts (provision, harden, add-site, deploy, rollback, backup, restore, healthcheck), a hardened nginx vhost + snippets, systemd units for queues and the scheduler, a GitHub Actions workflow for zero-downtime CI/CD, a production .env template, and 9 in-depth guides and runbooks.

Which stacks are supported?

Laravel 10/11/12, PHP 8.2+, Ubuntu 22.04/24.04, nginx, MySQL/MariaDB or PostgreSQL, Redis. Any provider — Hetzner, DigitalOcean, IONOS, OVH, AWS EC2, bare metal.

Can I use it for client projects?

Yes. The commercial license covers unlimited servers and unlimited projects, including client work. The only thing you can't do is resell or redistribute the kit itself.

What if it doesn't work for me?

14-day money-back guarantee, no questions asked. Email fabio@pius.tech and you'll get a refund.

Do I get updates?

Yes — lifetime access to all v1.x updates through your download link. Fixes, new Ubuntu/PHP versions, and new runbooks as they're added.