Drupal 11 Requirements: PHP, Database, Drush and Composer
Andrei Condurachi, Drupal developer since 2006 ·
Before any code changes, a Drupal 11 upgrade needs a server that can run it. Most failed upgrades I see fail here, not in the modules. This is what Drupal 11 needs and how to check your hosting in five minutes.
Drupal 11 requirements at a glance
| Drupal 10 | Drupal 11 | |
|---|---|---|
| PHP | 8.1 to 8.3 | 8.3 or newer, with zlib |
| MySQL / Percona | 5.7.8+ | 8.0+ |
| MariaDB | 10.3.7+ | 10.6+ |
| PostgreSQL | 12+ | 16+, with pg_trgm |
| SQLite | 3.26+ | 3.45+, with json1 |
| Web server | Apache 2.4.7+ or nginx 1.1+ | Apache 2.4.7+ or nginx 1.1+ |
| Composer | 2.x | 2.7 or newer |
| Drush | 12 or 13 | 13 |
Sources: the Drupal 11 requirements announcement and the database requirements page on drupal.org.
Check your server in five minutes
Over SSH, on the server that runs the site:
php -v # needs 8.3.x or newer
php -m | grep zlib # must print "zlib"
mysql --version # MySQL 8.0+ or MariaDB 10.6+
composer --version # 2.7 or newer
vendor/bin/drush --versionNo SSH? Drupal's own status report shows the PHP and database versions under Reports → Status report.
The three requirements that trip people up
1. The database, not PHP
Most hosts offer PHP 8.3 by now, often with a dropdown. The database server is a different story. Shared and older managed plans still run MySQL 5.7 or MariaDB 10.3 to 10.5, and the host has to move you to a newer server. Ask them early; it can take a support ticket and a few days.
Temporary backport modules exist for MySQL 5.7 and MariaDB 10.3, and some platforms rely on them for a while. Treat them as a bridge for the upgrade, not as the plan.
2. PHP on the command line
The website and the command line can use different PHP versions. Composer and Drush run on the command-line PHP, so check php -v over SSH, not only the hosting panel.
3. Drush 13
Drupal 11 needs Drush 13. Update it with Composer as part of the upgrade, and update any deployment scripts that call old Drush commands.
Target the newest Drupal 11, not the first one
Drupal 11.0 to 11.2 are already out of security support, and 11.3 loses it in December 2026. Upgrade to the newest 11.x release. It is also the minimum for the next step: Drupal 12 only upgrades from Drupal 11.3 or later, and it needs PHP 8.5. If your host already offers PHP 8.4 or 8.5, use it now and save yourself a later move. More on that in Drupal 12 or Drupal 11.
When the host cannot meet them
If your host cannot give you PHP 8.3 and MySQL 8.0 or MariaDB 10.6 soon, the upgrade includes a move. That is usually the simpler path: the site is rebuilt on the new server, tested there, and the domain is switched only when everything works. Your current site keeps running until then.
Once the server is ready, the rest of the work is in the Drupal 10 to 11 checklist.
Questions people ask
- What PHP version does Drupal 11 need?
- PHP 8.3 or newer, with the zlib extension enabled. Older PHP versions are not supported.
- Does Drupal 11 work with MySQL 5.7?
- Not by default. Drupal 11 requires MySQL 8.0 or MariaDB 10.6. A contributed backport module exists for MySQL 5.7 as a temporary bridge, but upgrading the database server is the real fix.
- Which Drush version works with Drupal 11?
- Drush 13. Older Drush versions do not install alongside Drupal 11.
- Can I run Drupal 11 on shared hosting?
- Yes, if the host offers PHP 8.3 or newer, MySQL 8.0 or MariaDB 10.6, and SSH or Composer access. Check the database version: it is the requirement shared hosts miss most often.
Read next
- Drupal 12 Is Out the Same Week Drupal 10 Ends. Should You Wait for It?
Drupal 12 ships the week of December 7, 2026, two days before Drupal 10 loses security support. Why the answer for almost every Drupal 10 site is: go to Drupal 11 now.
- What Happens to Your Site After Drupal 10 End of Life
Your Drupal 10 site will not switch off on December 9, 2026. Here is what actually stops, what keeps working, and how the risk grows month by month.
- How to Upgrade from Drupal 10 to Drupal 11: A Practical Checklist
A step-by-step checklist covering PHP requirements, contrib module compatibility, deprecated API removal, and how to handle blockers before the December 9, 2026 EOL deadline.