Skip to header Skip to main navigation Skip to main content Skip to footer

User account menu

  • Log in
Drupal Nerd: Drupal Training & Support

Main navigation

  • Home: Training Videos
  • Drupal Trainings
    • Drupal Training for Marketers
    • Drupal Training for Social Media Marketers
    • Drupal Training for Content Managers
    • Drupal Training for Project Managers
    • Drupal Training for Analysts
    • Drupal Training for Executives
  • Drupal Work & Support
      • School Website
      • University Website
      • Library Website
      • Corporate Website
      • Technology Website
      • Finance Website
      • Corporate Intranet
      • Healthcare Website
      • Life Science Website
      • Insurance Website
      • Government Website
      • City Website
      • State Website
      • Non-Profit Website
      • Media Website
  • Drupal Migrations
  • Portfolio & Clients
  • Blogs
  • About Us
  • Let's Work Together!

How to Upgrade Your Website to Drupal 11: A Step-by-Step Tutorial

Breadcrumb

  • Home
  • How to Upgrade Your Website to Drupal 11: A Step-by-Step Tutorial
By Drupal Training | 3:55 PM EDT, Tue March 24, 2026

Upgrading to Drupal 11 is an important step to keep your website secure, fast, and aligned with modern development standards. The good news is that upgrading from Drupal 10 is much easier than previous major upgrades. However, if you're coming from Drupal 9 or earlier, the process requires more preparation.

This tutorial walks you through how to upgrade your website to Drupal 11 safely and efficiently.

Understand the Upgrade Path

Before starting, it’s important to know where you’re upgrading from.

If your site is on Drupal 10, the upgrade to Drupal 11 is relatively straightforward, as Drupal 10 was designed to prepare for this transition.

If your site is on Drupal 9 or earlier, you will first need to upgrade to Drupal 10 before moving to Drupal 11.

Trying to skip versions can lead to compatibility issues and is not recommended.

Step 1: Back Up Your Website

Always start with a full backup.

Make sure you back up:

  • Your database
  • All files (including the sites directory)
  • Custom code and themes

This ensures you can restore your site if anything goes wrong during the upgrade process.

Step 2: Check Server Requirements

Drupal 11 has updated system requirements.

Make sure your environment supports:

  • PHP 8.3 or higher
  • Updated database versions (MySQL, MariaDB, or PostgreSQL)
  • Composer (latest version recommended)

If your hosting environment is not compatible, update it before proceeding.

Step 3: Update Drupal 10 to the Latest Version

If you're already on Drupal 10, ensure you're using the latest minor version.

Run:

composer update drupal/core --with-all-dependencies

This ensures your site is fully prepared for the Drupal 11 upgrade.

Step 4: Check for Deprecated Code

Drupal 11 removes deprecated APIs, so your site must be free of deprecated code.

Use tools like:

  • Upgrade Status module
  • Drupal Rector

These tools help identify:

  • Outdated functions
  • Deprecated modules
  • Code that needs updating

Fix all issues before continuing.

Step 5: Update Contributed Modules and Themes

Ensure all modules and themes are compatible with Drupal 11.

Steps:

  • Update all contributed modules
  • Remove unsupported or abandoned modules
  • Replace incompatible modules with alternatives if necessary

Check each module’s compatibility status before upgrading.

Step 6: Update Composer Configuration

Modify your composer.json file to require Drupal 11.

Example:

"require": {  "drupal/core-recommended": "^11" }

Then run:

composer update --with-all-dependencies

This will download and install Drupal 11 core and required dependencies.

Step 7: Run Database Updates

After updating the codebase, update the database.

Run:

drush updatedb

Or visit:

/update.php

This applies any necessary database changes for Drupal 11.

Step 8: Clear Cache

Clear all caches to ensure the new code is fully applied.

drush cache:rebuild

This step is essential to avoid unexpected issues.

Step 9: Test Your Website Thoroughly

Testing is critical after upgrading.

Check:

  • All pages and content
  • Forms and user interactions
  • Custom functionality
  • Theme and layout display

Also verify:

  • No PHP errors
  • No broken links
  • No missing assets

Fix any issues before going live.

Step 10: Deploy to Production

Once everything works correctly in your staging environment:

  • Repeat the upgrade steps on production
  • Clear caches again
  • Monitor the site closely after deployment

Upgrading from Drupal 9 or Earlier

If your site is on Drupal 9 or older, follow this path:

  1. Upgrade to Drupal 10
  2. Remove deprecated code
  3. Update modules and themes
  4. Then upgrade to Drupal 11

Each step should be tested before moving to the next.

Common Upgrade Challenges

Be prepared for these potential issues:

  • Incompatible modules
  • Custom code requiring updates
  • Theme layout issues
  • Deprecated API usage

Addressing these early will make the upgrade smoother.

Best Practices for a Smooth Upgrade

  • Always use a staging environment
  • Keep backups at every stage
  • Upgrade incrementally (not all at once)
  • Document changes and fixes
  • Test thoroughly before deployment

Final Thoughts

Upgrading to Drupal 11 is a valuable investment in your website’s future. It brings improved performance, a cleaner codebase, and better long-term maintainability.

If your Drupal 10 site is already up to date and free of deprecated code, the upgrade process is relatively straightforward. For older sites, taking a phased approach ensures stability and success.

With proper planning, testing, and execution, you can upgrade confidently and take full advantage of everything Drupal 11 has to offer.

  • Log in to post comments

Send us email

michael@drupalnerd.com

Fill out form

Let's work together form

About Us :)

Drupal Nerd has 15+ years of experience working with Drupal

 

2026 | Proudly Powered by Drupal 11 | Drupal Nerd

Watch our Drupal Training YouTube Videos