DEV Community

Cover image for How to Install Drupal 11 on an Ubuntu Dedicated Server
Shannon Dias
Shannon Dias

Posted on Originally published at fitservers.com

How to Install Drupal 11 on an Ubuntu Dedicated Server

Drupal 11 is a flexible, open-source CMS, but getting it running securely in production takes more than a Composer command.

This tutorial walks through a full deployment on an Ubuntu 24.04 dedicated server, including:

  • Installing and securing Nginx, PHP 8.3, and MariaDB
  • Creating the Drupal project with Composer's recommended project structure (/web as the public root)
  • A hardened Nginx server block that blocks PHP execution inside uploaded files, denies hidden files, and routes Drupal Image Styles correctly
  • Enabling HTTPS with Let's Encrypt and testing certificate renewal
  • Setting temporary write permissions for installation, then locking them down afterward
  • Configuring Trusted Host Patterns, UFW firewall rules, and scheduled Drush cron under the www-data user
  • Backups, server monitoring, and a full 26-point pre-launch checklist

Read the Full Tutorial

The complete step-by-step walkthrough, including every command and Nginx config block, is available here:

👉 Read more on the Fit Servers blog

Top comments (0)