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 10Drupal 11
PHP8.1 to 8.38.3 or newer, with zlib
MySQL / Percona5.7.8+8.0+
MariaDB10.3.7+10.6+
PostgreSQL12+16+, with pg_trgm
SQLite3.26+3.45+, with json1
Web serverApache 2.4.7+ or nginx 1.1+Apache 2.4.7+ or nginx 1.1+
Composer2.x2.7 or newer
Drush12 or 1313

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 --version

No 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