Deploy Laravel on Hetzner Cloud with Zero Downtime
Step-by-step guide to deploying and hosting Laravel on Hetzner Cloud with automated Let's Encrypt SSL, zero-downtime symlinks, and Sense APM monitoring.
Prerequisites
- A clean Hetzner Cloud cloud server running Ubuntu 24.04 LTS or 22.04 LTS
- Root SSH access or an API token from your Hetzner Cloud console
- Your Laravel Git repository (GitHub, GitLab, or Bitbucket)
- A domain name pointing its DNS A record to your server IP
Step-by-Step Production Setup
1. Provision your Ubuntu instance on Hetzner Cloud
Launch a clean Ubuntu 24.04 LTS instance with at least CPX21 (3 vCPU, 4GB RAM, 80GB NVMe). Serverfy automatically connects via SSH key pair or your provider API token.
2. One-click Automated Server Stack Setup
Serverfy provisions Nginx, PHP 8.3 / 8.4, UFW Firewall, and Fail2ban in minutes. No manual apt-get configuration required.
3. Connect your Laravel Git Repository
Select your branch (e.g. main). Serverfy configures the deployment script, builds assets, and runs database migrations in isolated release directories.
4. Enable Automatic TLS SSL & Laravel Sense APM
Issuance of Let's Encrypt certificates is completely automatic. Serverfy Sense APM begins monitoring request latency, database queries, and worker queue throughput instantly.
Why deploy on Serverfy vs DIY or PaaS?
You own the server and database on your own cloud provider account. If you ever leave, your code and servers keep running untouched.
Zero extra fees for Datadog or New Relic. Automatic memory recycling, OOM prevention, and slow-query tracing are included out of the box.
Deploy your Laravel app on Hetzner Cloud in 60s
No credit card required. 7 days full access with unlimited server management.