Skip to content

Drupal 11 requirements: PHP, database, memory and web server

· The AYT team · 5 min read

Wooden library shelves with neatly arranged books

Drupal 11 requirements in short: PHP 8.3 or newer, a MySQL 8.0, MariaDB 10.6, PostgreSQL 16 or SQLite 3.45 database, Composer 2.7.0 or newer, a PHP memory_limit of at least 64 MB (128 or 256 MB in practice) and an Apache 2.4.7+ or nginx 1.1+ web server, preferably on Linux. Every value below comes from the requirements documentation on drupal.org.

The requirements table

Component Minimum for Drupal 11 What we recommend in practice
PHP 8.3 8.3 or 8.4, latest patch release
MySQL 8.0 8.0 or newer
MariaDB 10.6 a newer LTS release
PostgreSQL 16 16 or newer, with the pg_trgm extension
SQLite 3.45 only for development or very small sites
Composer 2.7.0 the latest 2.x release
PHP memory_limit 64 MB 256 MB
Apache 2.4.7, with mod_rewrite the latest 2.4 release
nginx 1.1 a current release, with a Drupal configuration

For comparison, Drupal 10 needed less: PHP 8.1, MySQL 5.7.8, MariaDB 10.3.7, PostgreSQL 12. A host where Drupal 10 ran well is not automatically fine for Drupal 11, so check every row before the upgrade from 10 to 11.

PHP: which version for which Drupal 11

PHP support also differs between Drupal 11 minor releases:

Drupal PHP 8.3 PHP 8.4 PHP 8.5
11.1, 11.2 yes yes no
11.3, 11.4 yes yes yes

PHP 8.1 and 8.2 are not supported at all in Drupal 11. If your host still runs PHP 8.2, change PHP first (Drupal 10.6 also runs on 8.3), then upgrade Drupal.

Required PHP extensions

The Drupal documentation requires or recommends:

  • PDO, required, plus the driver for your database (pdo_mysql, pdo_pgsql or pdo_sqlite);
  • XML, which also brings DOM, a Drupal requirement;
  • GD for image handling (ImageMagick is also supported, through a contributed module);
  • JSON, built into PHP 8;
  • OpenSSL, needed for the Update Manager and HTTPS connections;
  • cURL, used by many contributed modules;
  • mbstring, for sites in languages other than English.

If you use OPcache (and you should, for speed), opcache.save_comments must stay at 1, because Drupal reads annotations from code comments. PHP's default value is 1.

The database

Drupal 11 needs MySQL 8.0, MariaDB 10.6, PostgreSQL 16 or SQLite 3.45. For MySQL and MariaDB, tables must use the InnoDB engine, and drupal.org recommends the READ-COMMITTED transaction isolation level. New installs (since Drupal 10.1) write it into settings.php themselves. On an older site, if the Status report shows the warning, add the key to the database connection in settings.php:

$databases['default']['default']['isolation_level'] = 'READ COMMITTED';

For PostgreSQL, the pg_trgm extension must be enabled. SQLite is handy for local development, but for a site with several editors or real traffic choose MySQL or MariaDB.

Memory: PHP and server

Two different values are often confused.

PHP's memory_limit is the memory a single request may use. Drupal's minimum is 64 MB, and below it you get warnings. On production sites 128 or 256 MB is common, and sites with many modules or image processing need more.

Server memory (RAM) is shared by all processes. A composer update on a Drupal project can need far more memory than an ordinary request, so on hosting with strict per-account memory limits, Composer may be the first thing to stop.

Composer and the command line

Drupal 11 is installed and updated with Composer, as a drupal/recommended-project project. Any module with PHP dependencies (external libraries) needs Composer, and core updates are done with composer update "drupal/core-*" --with-all-dependencies. Drush, Drupal's command-line tool, is also installed with Composer, inside the project.

What this means for hosting: you need either SSH access with Composer 2.7+ installed, or a panel that runs Composer and drush for you. On classic shared hosting without SSH, the remaining option is to run Composer on your own computer and upload the whole project, vendor/ included, on every update. It works, but it's slow and easy to get wrong. The steps are in the guide to updating Drupal with Composer.

Web server and document root

Drupal runs on Apache and on nginx.

  • On Apache you need mod_rewrite (for clean URLs) and AllowOverride All, so Drupal's .htaccess file is read. That file also holds security rules, for example blocking access to .yml or .twig files.
  • On nginx, .htaccess is not read at all. The equivalent rules (clean URLs, blocking sensitive files) must be written into the server configuration. The difference is explained in the article on .htaccess on nginx.

In a Composer project the web root is the web/ folder, not the project folder. That keeps vendor/, composer.json and configuration files outside the web root. If your host won't let you choose the document root, files outside web/ can end up reachable from a browser, which is a security problem.

Other things to check with your host

  • HTTPS with an automatically renewed certificate. Drupal can force HTTPS, but the certificate comes from the server.
  • Real cron. Drupal has the Automated Cron module, which runs tasks on page visits. On a production site a cron job running drush cron at fixed intervals is better.
  • A private files folder outside the web root, if the site has documents that must not be public. You set it in settings.php with $settings['file_private_path'].
  • Automatic backups of database and files, plus a simple way to restore.
  • A staging environment, to test updates before they reach the live site.
  • Server-level page caching for anonymous visitors.

How to check a host before moving the site

Don't rely on the provider's marketing page alone. A few 10-minute checks tell you whether Drupal 11 will run:

  1. Create an info.php file containing <?php phpinfo(); in the web root, open it in a browser and note the PHP version, memory_limit and loaded extensions. Delete the file right after, because it exposes server details.
  2. In phpMyAdmin or the panel, note the database server version. Look for "MariaDB" or "MySQL" and the version number.
  3. Check that you can set a domain's document root to a subfolder (web/).
  4. If you have SSH, run php -v, composer --version and php -m to see the same information from the command line. Note that command-line PHP can be a different version from the one serving the site.
  5. If you install a test Drupal, Reports → Status report shows everything missing on one page: versions, extensions, folder permissions, cron, HTTPS.

What about Drupal 12?

The drupal.org schedule gives the week of December 7, 2026 for Drupal 12. The Drupal 12 upgrade guide on drupal.org (still marked as a work in progress in December 2026) requires PHP 8.5.0 or later, and the site has to be on Drupal 11.3 or newer first. Check the final requirements on drupal.org before you upgrade. If you're choosing a host for the next few years, ask whether it offers PHP 8.5 or when it will. Drupal 11 is supported until early December 2028, so there's no rush to move to 12 in the first month.

Frequently asked questions

Does Drupal 11 run on shared hosting?

Yes, if the host has PHP 8.3+, MySQL 8.0 or MariaDB 10.6+, lets you set the document root to web/ and gives you a way to run Composer. Without SSH and without a panel that runs Composer, the last condition isn't met.

How much memory_limit do I need for Drupal 11?

The minimum is 64 MB. Start with 256 MB on a production site and watch the error log: if "Allowed memory size exhausted" shows up, raise the value.

Which MariaDB or MySQL version do I need for Drupal 11?

At least MariaDB 10.6 or MySQL 8.0, with InnoDB tables. On an older server you may find MariaDB 10.3 or 10.5, which are enough for Drupal 10 but not for Drupal 11. Check the version in phpMyAdmin before upgrading.

Can I use PHP 8.5 with Drupal 11?

Yes, from Drupal 11.3. Drupal 11.1 and 11.2 only run on PHP 8.3 and 8.4.

Drupal 11 requirements on AYT hosting

On AYT, each account has its own isolated PHP, and you pick the version per site. PHP settings (memory_limit, upload_max_filesize, post_max_size, max_execution_time) are changed in the domain's php.ini editor, and PHP extensions on a separate page.

Per-domain PHP settings in the AYT panel

The Drupal Toolkit installs Drupal 11 as a Composer project with drush and sets the web root to /web, so vendor/ is never served. There is no SSH, but Composer and drush run from the toolkit: core updates, the module list and the Commands page for drush. The web server is nginx, with a Drupal profile (correct rewrites, sensitive files blocked, a rate limit on admin logins) and page caching. You get free SSL renewed automatically, a toolkit switch that runs Drupal's cron every 5 minutes, the Cron Jobs page and, on paid plans, staging and daily backups. See the supported apps and the plans.

More articles

All articles