Chapter

Deploying to a VPS

Take everything from this course live: point a real domain at a fresh VPS, deploy a Laravel app from git, and secure it with free HTTPS.

Nginx Basics 3 Lessons from courses

About this chapter

This is where the course comes together. You'll start with a clean Ubuntu 24.04 server, point a real domain at it, deploy a Laravel app straight from git, and finish with a free Let's Encrypt certificate so the whole thing runs on HTTPS.

Lessons from courses

  1. 1 Point a domain at your VPS Point a domain to your VPS the right way: add A and AAAA records for @ and www, wait for DNS propagation, verify with dig, and match it in nginx server_name.
  2. 2 Deploy a Laravel app from git Deploy a Laravel app from git to a fresh Ubuntu 24.04 VPS: nginx, PHP 8.4-FPM, Composer, MySQL, correct permissions and a production server block, step by step.
  3. 3 HTTPS with Let's Encrypt Set up free HTTPS on nginx with Let's Encrypt and certbot: install the nginx plugin, open ports 80 and 443, run certbot --nginx, and confirm auto-renewal.
Nginx Basics Go to course