Início / Deploy Guides / Laravel → AWS (EC2 & Lightsail)
Laravel + AWS (EC2 & Lightsail) Under 3 minutes

Deploy Laravel on AWS (EC2 & Lightsail) with Zero Downtime

Step-by-step guide to deploying and hosting Laravel on AWS (EC2 & Lightsail) with automated Let's Encrypt SSL, zero-downtime symlinks, and Sense APM monitoring.

Recommended VPS
Lightsail 2 vCPU / 4GB RAM or EC2 t4g.medium
Estimated Monthly TCO
$20.00 / mo (VPS) + $19/mo (Serverfy All-in-One)
Available Regions
Global (US East, Frankfurt, São Paulo, Tokyo, Sydney)

Prerequisites

  • A clean AWS (EC2 & Lightsail) cloud server running Ubuntu 24.04 LTS or 22.04 LTS
  • Root SSH access or an API token from your AWS (EC2 & Lightsail) 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

1. Provision your Ubuntu instance on AWS (EC2 & Lightsail)

Launch a clean Ubuntu 24.04 LTS instance with at least Lightsail 2 vCPU / 4GB RAM or EC2 t4g.medium. Serverfy automatically connects via SSH key pair or your provider API token.

2

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

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

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?

Root Sovereignty

You own the server and database on your own cloud provider account. If you ever leave, your code and servers keep running untouched.

Built-in Sense APM & Centurion SRE

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 AWS (EC2 & Lightsail) in 60s

No credit card required. 7 days full access with unlimited server management.