Drupal 12 system requirements: PHP 8.5, databases and Composer

Hosting

Most of what Drupal 12 asks of your server is the same as Drupal 11. The big change is PHP: Drupal 12 requires PHP 8.5. Check that first, because it is the one thing many hosts will need to change.

PHP

  • PHP 8.5 is required. Core's own composer.json asks for PHP 8.5.0 or later, and the release candidate's notes recommend PHP 8.5.13 or higher.
  • Drupal.org's PHP table lists only 8.5 as supported for Drupal 12.0. Support for a later PHP version is tracked in its own issue.
  • Argon2: argon2id becomes the default password hash in Drupal 12, so PHP must be built with Argon2 support. The official PHP Docker images have it.
  • The usual extensions still apply: PDO with the driver for your database, GD (or another image toolkit), and so on.

Database

DatabaseMinimum for Drupal 12
MySQL8.0
MariaDB10.11
SQLite3.45, with JSON support
PostgreSQLSee below

PostgreSQL: drupal.org disagrees with itself here. The database requirements page lists PostgreSQL 18 with the pg_trgm extension, while the alpha and beta release notes say the driver requires PostgreSQL 19. If you run PostgreSQL, check the release notes for 12.0.0 when it is out, or plan for the newer version to be safe.

This site runs MariaDB 11.4, which is well above the minimum.

Composer

Drupal is installed and updated with Composer, and drupal.org recommends the latest secure release – Composer 2.9.3 at the time of writing. Update Composer itself before you update Drupal: composer self-update.

Web server

Drupal works on any web server with a supported PHP version. Some security features rely on Apache and the .htaccess file. Two details to watch:

  • Since Drupal 11.3 the web server and any proxy in front of it must pass through the HX-* request headers used by HTMX.
  • In 12.0.0-rc1 the shipped .htaccess changes the assertion setting from assert.active to zend.assertions. If you maintain your own copy of .htaccess, merge that change.

Hosting Drupal on Windows in production is deprecated in Drupal 12.

A checklist for your host

  1. Is PHP 8.5 available, with Argon2 support?
  2. Is the database at least MySQL 8.0, MariaDB 10.11 or SQLite 3.45 – or, for PostgreSQL, the version 12.0.0's notes ask for?
  3. Can you run Composer (and Drush) on the server or in your deploy pipeline?
  4. Does the proxy or CDN pass the HX-* headers through?

When the server is ready, continue with How to upgrade from Drupal 11 to Drupal 12.