Drupal 运行环境要求

Drupal 9

  • Apache 2.4.7 及以上版本 / 其他 Web 服务器
  • 推荐 PHP 7.3 及以上版本
  • MySQL 5.7.8 / MariaDB 10.3.7 / Percona Server 5.7.8 及以上版本(InnoDB 引擎)

Drupal 8

  • Apache 2.x / 其他 Web 服务器
  • 推荐 PHP 7.3 及以上版本
  • MySQL 5.5.3 / MariaDB 5.5.20 / Percona Server 5.5.8 及以上版本(InnoDB 引擎)

Drupal 7

  • Apache 2.x / 其他 Web 服务器
  • 推荐 PHP 7.2 及以上版本(支持 PHP 5.2.5 及以上版本)
  • MySQL 5.0.15 及以上版本

Drupal 6

  • Apache 2.x / 其他 Web 服务器
  • 推荐 PHP 5.2.5 及以上版本
  • MySQL 4.1.1 及以上版本

Web 服务器

支持 Aapche, Nginx, IIS 等 Web 服务器,推荐使用 Apache 和 Nginx.

Drupal 8 以上版本可运行在任何满足 PHP 运行要求的 Web 服务器上。

更多参考:https://www.drupal.org/docs/system-requirements/web-server

PHP

Drupal 8.8.3 以上版本推荐使用 PHP 7.4(暂不支持 PHP 8.0)。

PHP 官方已停止支持 PHP 5.5, 5.6, 7.0, 7.1。

注意事项

  • 推荐使用 64位 PHP
  • 如启用原生 opcache,opcache.save_comments 必须启用(默认启用),否则 Annotations 不会被保存/加载

更多参考:https://www.drupal.org/docs/system-requirements/php-requirements

数据库

推荐使用 MySQL, MariaDB 或 Percona Server,除此之外也支持 PostgreSQL 和 SQLite,通过使用第三方模块,还支持 SQL Server 及 MongoDB。

更多参考:https://www.drupal.org/docs/system-requirements/database-server