How to Upgrade to Drupal 12 – Complete Migration Guide
Authored By : tdnshah
Published On
Thursday, Jul 16, 2026
How to Upgrade to Drupal 12: A Complete Step-by-Step Migration Guide
SEO Metadata
- SEO Title: How to Upgrade to Drupal 12: Complete Step-by-Step Migration Guide (2026)
- URL Slug:
/how-to-upgrade-to-drupal-12 - Meta Title: How to Upgrade to Drupal 12 – Complete Migration Guide
- Meta Description: Learn how to upgrade to Drupal 12 safely with this complete step-by-step migration guide covering Composer, deprecated code, modules, themes, testing, and deployment.
- Focus Keyword: How to Upgrade to Drupal 12
Feature Image
Heading
HOW TO
UPGRADE
TO DRUPAL 12
STEP-BY-STEP
GUIDEBottom Ribbon
Upgrade smoothly. Stay secure. Stay future-ready.Why Upgrade?
Drupal 12 delivers improved performance, stronger security, cleaner APIs, better PHP compatibility, and a smoother developer experience.
Prerequisites
- SSH access
- Composer
- Git
- Full database backup
- File backup
- Staging environment
- Administrator access
Step 1 — Check System Requirements
Verify supported PHP, Composer, database, and web server versions before upgrading.
Step 2 — Create a Complete Backup
Back up:
- Database
- Drupal files
- Custom modules
- Themes
- Uploaded media
- Configuration
Step 3 — Update Drupal 11
Update Drupal core, contributed modules, themes, and Composer dependencies before beginning the major upgrade.
Step 4 — Audit Contributed Modules
Confirm every contributed module supports Drupal 12. Remove unused or abandoned modules.
Step 5 — Remove Deprecated Code
Use Upgrade Status, Drupal Rector, and PHPStan for Drupal to identify deprecated APIs and update custom code.
Step 6 — Update Composer Dependencies
Update Drupal core packages and resolve dependency conflicts.
Step 7 — Upgrade Drupal Core
Install Drupal 12, clear caches, and verify the site status.
Step 8 — Run Database Updates
Execute database updates and rebuild caches.
Step 9 — Test Everything
Validate:
- Frontend pages
- Forms
- Media
- Layout Builder
- User permissions
- Integrations
- Performance
Step 10 — Deploy to Production
- Enable maintenance mode.
- Take a final backup.
- Deploy code.
- Run database updates.
- Clear caches.
- Verify functionality.
- Disable maintenance mode.
- Monitor logs.
Common Upgrade Issues
Problem Solution
Composer conflicts Update package constraints Deprecated APIs Refactor custom code Unsupported modules Replace or remove Theme incompatibility Update Twig/templates PHP mismatch Upgrade hosting environment
Best Practices
- Upgrade on staging first.
- Use Git.
- Keep backups.
- Test thoroughly.
- Monitor logs after deployment.
FAQ
Is upgrading from Drupal 11 difficult?
No. If deprecated code has already been addressed, the upgrade is typically straightforward.
Do I need Composer?
Yes. Composer is the recommended way to manage Drupal dependencies.
Internal Links
- Drupal 12 Launch Guide
- Drupal Migration Services
- Drupal Development Services
- Drupal vs WordPress
Please give us your feedback on our articles and if you find them helpful, click the thumbs up icon to motivate us to write more.